Sell Volume vs Buy Volume

Hi All,
Currently i am able to retrieve volume data from historicalBarRequest using below code .


I would like to understand, if there is a way to differentiate buy volume vs sell volume .


With the total volume, the best you can do is make the assumption that if the price is going up then most of the volume is buying. If the price is going down then its more selling volume. Otherwise, you would need to look at the trade and/or quote bars to get a more precise representation.

A trade occurs when there is both a buyer and a seller. What is “buy volume” vs “sell volume”? :man_shrugging:t3:

Hi Dion, I am trying to understand if there is a way to capture what type of trade (Buy or Sell) is largely happening at a specific point of time . also looking at Clintons message i am assuming we cannot preciously go for it .

Ok but the point is there is no such thing as a buy trade or a sell trade. Each trade has both a buyer AND a seller.

1 Like

unless it’s a short sale

I don’t follow. When you borrow shares from a broker and sell them short, who are you selling them to? There’s still a buyer.

if someone sells a borrowed share , there is no buy side to that transaction… how did they obtain the share they are selling? they borrowed it , they didn’t buy it - buy side is missing.

The borrowing of the shares from the broker is not the trade. The trade occurs when you sell the shares short to some buyer in the market. Also, the borrowing itself does not count toward volume, it’s the sell that happens to some other buyer that increments volume.

Note the steps mentioned here … EVERY trade has a buy and a sell side, even a short sale.

I mainly got into this question after looking at the Volume analysis data in Webull .

if you look at the attached screenshot it was showing more Buy vs Sell . I was trying to understand how they arrive at these numbers .

Not sure, but it could be they are counting trades that occur “on the bid” as sells and “on the ask” as buys? There’s always a bid/ask range. I’m curious how they come up with that too!

There’s that little “i” next to it, if you hover over there they probably explain it?