i want to know the ticker data

aswin1231
I followed the sample code to get ticker data and seeing the following

{
tradable: true,
mode: 'full',
instrument_token: 738561,
last_price: 2911.7,
last_traded_quantity: 2,
average_traded_price: 2908.84,
volume_traded: 4279879,
total_buy_quantity: 156857,
total_sell_quantity: 261728,
ohlc: { open: 2899.95, high: 2920, low: 2894.7, close: 2901.95 },
change: 0.3359809783076897,
last_trade_time: 2024-03-22T06:44:46.000Z,
exchange_timestamp: 2024-03-22T06:44:46.000Z,
oi: 0,
oi_day_high: 0,
oi_day_low: 0,
depth: {
buy: [ [Object], [Object], [Object], [Object], [Object] ],
sell: [ [Object], [Object], [Object], [Object], [Object] ]
}
}

I am new to this stock market domain.
I though the followong should be equal but i am seeing those as not equal.
Can you please explain the following

1. total_buy_quantity != total_sell_quantity
2. volume_traded != (total_buy_quantity + total_sell_quantity)
  • MAG
    If you don't know about the market please learn how the markets work. Understand each component of data and order details well before you start dabbling into API based trading. You can't build a building without having a solid foundation. Similarly you cant build an algo trading system without knowing how the market works.

    Also this forum is intended to provide support for API related issues. It is impossible to teach how the market works on a text based forum like this.

    This may sound rude but that's not my intention. My intention is to protect you from your own self so you don't end up losing money dabbling in stuff you don't know/understand.
  • vaibhavsharma13
    total_buy_quantity is the total number of orders placed by buyers to buy the stock and total_sell_quantity is the total number of orders placed by sellers to sell the stock. Why should be they equal?
  • aswin1231
    aswin1231 edited March 22
    @MAG I know basics. Thank you for the heads up.
    I know volume traded is the number of shares.
    similarly i thought total_buy_quantity is also the number of shares bought.
    Earlier i found inconsistent data when i queried day intervl and minute intervals. So, I thought it's better to post this too and ask.

    Thank you @vaibhavsharma13
    This makes sense and I understand now.
This discussion has been closed.