Q1: Correct me if I am wrong, buyQty represents the quantity of Bid contracts executed and sellQty represent the number of Ask contracts executed while the Volume represents the total quantity traded. If you look into Ticker1 and 2, you will find that the volume executed within that interval is 75 but if you see the BuyQty and sellQty, it is 75 and 2625 respectively. Can you please explain me the correlation between these 2 attributes? This inconsistency is throughout the ticker data received.
Q2: How can I get the openInterest value in an option?
A trade can happen only when a buyer and seller price match. For every sell, there is a buy and vice versa.
Total buy quantity is the total bid quantity and total sell quantity is the total ask quantity.
You can get open interest in get quote API.
Thanks for answering, but based on your point, the value of all buyQnty, SellQty and Vol should be same. But it isnt. Could you please elaborate your point?
Total buy quantity and total sell quantity doesn't refer to the executed orders.
At any point of time during market hours, there will be lakhs pending orders. Total buy quantity is the sum of the quantity of all the buy orders and total sell quantity is the sum of the quantity of all the sell orders.