I want to make a parser. However, I was stuck on a problem. How can I understand if a person is buying or selling?
Can you be more specific as to what endpoint you’re referring to? If you’re pulling trade history, understand that each trade has a buyer and a seller. Obviously a trade must have both for it to be a completed trade. Otherwise it would still be a pending order on the orderbook which has a
side parameter which is either
If you go on binance spot website you will see that some trades are greenish(basically someone is buying) and others are reddish(someone is selling). So how can i collect these information? I’ have showed some data before: