Tick - TotalBuy and TotalSell

parayusmittal
These attributes are always zero for every tick. Is there a reason?
example - Tick: {full 16697090 true false 2025-08-11 12:06:25 +0530 IST 2025-08-11 12:05:41 +0530 IST 1484.5 600 196800 230400 663600 0 0 1481.38 15043800 15051600 14871600 -0.7999999999999545 {0 1483 1488.3 1474.2 1485.3} {[{1483.6 600 1} {1483.5 1200 2} {1483.4 600 1} {1483.3 1200 2} {1483.2 600 1}] [{1484.5 600 1} {1484.6 600 1} {1484.9 600 1} {1485.1 1800 2} {1485.3 1200 2}]}}
  • nagavenij
    We have verified that we are able to fetch the total buy and total sell attributes. The above response does not appear to be from our official API WebSocket.
  • parayusmittal
    @nagavenij, I am using the Go library provided by Kite. How can I help you verify that this response is from your official API WebSocket? Furthermore, only these two attributes currently have zero, and I am just asking whether the issue is in consuming data or somewhere else. I have the data logs for yesterdays ticks - {"Mode":"full","InstrumentToken":16410370,"IsTradable":true,"IsIndex":false,"Timestamp":"1970-01-01T05:30:00+05:30","LastTradeTime":"2025-08-08T15:29:59+05:30","LastPrice":24441.1,"LastTradedQuantity":75,"TotalBuyQuantity":0,"TotalSellQuantity":0,"VolumeTraded":0,"TotalBuy":0,"TotalSell":0,"AverageTradePrice":0,"OI":17244675,"OIDayHigh":0,"OIDayLow":0,"NetChange":0,"OHLC":{"open":24669,"high":24694,"low":24413.1,"close":24441.1},"Depth":{"buy":[{"price":0,"quantity":0,"orders":0},{"price":0,"quantity":0,"orders":0},{"price":0,"quantity":0,"orders":0},{"price":0,"quantity":0,"orders":0},{"price":0,"quantity":0,"orders":0}],"sell":[{"price":0,"quantity":0,"orders":0},{"price":0,"quantity":0,"orders":0},{"price":0,"quantity":0,"orders":0},{"price":0,"quantity":0,"orders":0},{"price":0,"quantity":0,"orders":0}]}}
    {"Mode":"full","InstrumentToken":16410370,"IsTradable":true,"IsIndex":false,"Timestamp":"2025-08-11T09:10:00+05:30","LastTradeTime":"2025-08-08T15:29:59+05:30","LastPrice":24441.1,"LastTradedQuantity":75,"TotalBuyQuantity":0,"TotalSellQuantity":0,"VolumeTraded":0,"TotalBuy":0,"TotalSell":0,"AverageTradePrice":0,"OI":17244675,"OIDayHigh":0,"OIDayLow":0,"NetChange":0,"OHLC":{"open":24669,"high":24694,"low":24413.1,"close":24441.1},"Depth":{"buy":[{"price":0,"quantity":0,"orders":0},{"price":0,"quantity":0,"orders":0},{"price":0,"quantity":0,"orders":0},{"price":0,"quantity":0,"orders":0},{"price":0,"quantity":0,"orders":0}],"sell":[{"price":0,"quantity":0,"orders":0},{"price":0,"quantity":0,"orders":0},{"price":0,"quantity":0,"orders":0},{"price":0,"quantity":0,"orders":0},{"price":0,"quantity":0,"orders":0}]}}
    {"Mode":"full","InstrumentToken":16410370,"IsTradable":true,"IsIndex":false,"Timestamp":"2025-08-11T09:15:02+05:30","LastTradeTime":"2025-08-11T09:15:02+05:30","LastPrice":24450,"LastTradedQuantity":75,"TotalBuyQuantity":69000,"TotalSellQuantity":77850,"VolumeTraded":5400,"TotalBuy":0,"TotalSell":0,"AverageTradePrice":24438.89,"OI":17244675,"OIDayHigh":17244675,"OIDayLow":17244675,"NetChange":8.900000000001455,"OHLC":{"open":24455,"high":24455,"low":24429.9,"close":24441.1},"Depth":{"buy":[{"price":24440.1,"quantity":75,"orders":1},{"price":24440,"quantity":150,"orders":1},{"price":24439.8,"quantity":150,"orders":1},{"price":24439.7,"quantity":75,"orders":1},{"price":24439.6,"quantity":225,"orders":1}],"sell":[{"price":24451.9,"quantity":300,"orders":1},{"price":24452,"quantity":75,"orders":1},{"price":24452.7,"quantity":300,"orders":1},{"price":24452.8,"quantity":375,"orders":1},{"price":24453.9,"quantity":300,"orders":1}]}}
    {"Mode":"full","InstrumentToken":16410370,"IsTradable":true,"IsIndex":false,"Timestamp":"2025-08-11T09:15:03+05:30","LastTradeTime":"2025-08-11T09:15:02+05:30","LastPrice":24441.2,"LastTradedQuantity":75,"TotalBuyQuantity":69000,"TotalSellQuantity":77850,"VolumeTraded":5400,"TotalBuy":0,"TotalSell":0,"AverageTradePrice":24438.89,"OI":17244675,"OIDayHigh":17244675,"OIDayLow":17244675,"NetChange":0.10000000000218279,"OHLC":{"open":24455,"high":24455,"low":24429.9,"close":24441.1},"Depth":{"buy":[{"price":24440.1,"quantity":75,"orders":1},{"price":24440,"quantity":150,"orders":1},{"price":24439.8,"quantity":150,"orders":1},{"price":24439.7,"quantity":75,"orders":1},{"price":24439.6,"quantity":225,"orders":1}],"sell":[{"price":24451.9,"quantity":300,"orders":1},{"price":24452,"quantity":75,"orders":1},{"price":24452.7,"quantity":300,"orders":1},{"price":24452.8,"quantity":375,"orders":1},{"price":24453.9,"quantity":300,"orders":1}]}}
    {"Mode":"full","InstrumentToken":16410370,"IsTradable":true,"IsIndex":false,"Timestamp":"2025-08-11T09:15:04+05:30","LastTradeTime":"2025-08-11T09:15:04+05:30","LastPrice":24441.1,"LastTradedQuantity":75,"TotalBuyQuantity":84525,"TotalSellQuantity":112500,"VolumeTraded":13350,"TotalBuy":0,"TotalSell":0,"AverageTradePrice":24441.92,"OI":17244675,"OIDayHigh":17244675,"OIDayLow":17244675,"NetChange":0,"OHLC":{"open":24455,"high":24455,"low":24429.9,"close":24441.1},"Depth":{"buy":[{"price":24435.8,"quantity":300,"orders":1},{"price":24435.7,"quantity":150,"orders":2},{"price":24435.6,"quantity":300,"orders":1},{"price":24435.5,"quantity":150,"orders":1},{"price":24435.2,"quantity":300,"orders":1}],"sell":[{"price":24441.1,"quantity":150,"orders":1},{"price":24447.4,"quantity":300,"orders":1},{"price":24447.5,"quantity":150,"orders":1},{"price":24447.6,"quantity":300,"orders":1},{"price":24447.7,"quantity":375,"orders":1}]}}
    {"Mode":"full","InstrumentToken":16410370,"IsTradable":true,"IsIndex":false,"Timestamp":"2025-08-11T09:15:04+05:30","LastTradeTime":"2025-08-11T09:15:04+05:30","LastPrice":24435.8,"LastTradedQuantity":225,"TotalBuyQuantity":84525,"TotalSellQuantity":112500,"VolumeTraded":13350,"TotalBuy":0,"TotalSell":0,"AverageTradePrice":24441.92,"OI":17244675,"OIDayHigh":17244675,"OIDayLow":17244675,"NetChange":-5.299999999999272,"OHLC":{"open":24455,"high":24455,"low":24429.9,"close":24441.1},"Depth":{"buy":[{"price":24435.8,"quantity":300,"orders":1},{"price":24435.7,"quantity":150,"orders":2},{"price":24435.6,"quantity":300,"orders":1},{"price":24435.5,"quantity":150,"orders":1},{"price":24435.2,"quantity":300,"orders":1}],"sell":[{"price":24441.1,"quantity":150,"orders":1},{"price":24447.4,"quantity":300,"orders":1},{"price":24447.5,"quantity":150,"orders":1},{"price":24447.6,"quantity":300,"orders":1},{"price":24447.7,"quantity":375,"orders":1}]}}
    {"Mode":"full","InstrumentToken":16410370,"IsTradable":true,"IsIndex":false,"Timestamp":"2025-08-11T09:15:05+05:30","LastTradeTime":"2025-08-11T09:15:04+05:30","LastPrice":24437.5,"LastTradedQuantity":75,"TotalBuyQuantity":84525,"TotalSellQuantity":112500,"VolumeTraded":13350,"TotalBuy":0,"TotalSell":0,"AverageTradePrice":24441.92,"OI":17244675,"OIDayHigh":17244675,"OIDayLow":17244675,"NetChange":-3.599999999998545,"OHLC":{"open":24455,"high":24455,"low":24429.9,"close":24441.1},"Depth":{"buy":[{"price":24435.8,"quantity":300,"orders":1},{"price":24435.7,"quantity":150,"orders":2},{"price":24435.6,"quantity":300,"orders":1},{"price":24435.5,"quantity":150,"orders":1},{"price":24435.2,"quantity":300,"orders":1}],"sell":[{"price":24441.1,"quantity":150,"orders":1},{"price":24447.4,"quantity":300,"orders":1},{"price":24447.5,"quantity":150,"orders":1},{"price":24447.6,"quantity":300,"orders":1},{"price":24447.7,"quantity":375,"orders":1}]}}{"Mode":"full","InstrumentToken":16410370,"IsTradable":true,"IsIndex":false,"Timestamp":"2025-08-11T09:10:00+05:30","LastTradeTime":"2025-08-08T15:29:59+05:30","LastPrice":24441.1,"LastTradedQuantity":75,"TotalBuyQuantity":0,"TotalSellQuantity":0,"VolumeTraded":0,"TotalBuy":0,"TotalSell":0,"AverageTradePrice":0,"OI":17244675,"OIDayHigh":0,"OIDayLow":0,"NetChange":0,"OHLC":{"open":24669,"high":24694,"low":24413.1,"close":24441.1},"Depth":{"buy":[{"price":0,"quantity":0,"orders":0},{"price":0,"quantity":0,"orders":0},{"price":0,"quantity":0,"orders":0},{"price":0,"quantity":0,"orders":0},{"price":0,"quantity":0,"orders":0}],"sell":[{"price":0,"quantity":0,"orders":0},{"price":0,"quantity":0,"orders":0},{"price":0,"quantity":0,"orders":0},{"price":0,"quantity":0,"orders":0},{"price":0,"quantity":0,"orders":0}]}}

    ```go/pkg/mod/github.com/zerodha/gokiteconnect/[email protected]/models/snaps.go```
    this is the struct from - type Tick struct {
    Mode string
    InstrumentToken uint32
    IsTradable bool
    IsIndex bool

    // Timestamp represents Exchange timestamp
    Timestamp Time
    LastTradeTime Time
    LastPrice float64
    LastTradedQuantity uint32
    TotalBuyQuantity uint32
    TotalSellQuantity uint32
    VolumeTraded uint32
    TotalBuy uint32
    TotalSell uint32
    AverageTradePrice float64
    OI uint32
    OIDayHigh uint32
    OIDayLow uint32
    NetChange float64

    OHLC OHLC
    Depth Depth
    }
  • parayusmittal
    Recieved bytes - []byte{0, 254, 227, 2, 0, 1, 118, 246, 0, 0, 3, 132, 0, 1, 118, 216, 0, 50, 21, 124, 0, 0, 221, 124, 0, 2, 4, 204, 0, 1, 115, 229, 0, 1, 124, 20, 0, 1, 114, 80, 0, 1, 118, 11, 104, 155, 16, 159, 0, 126, 154, 140, 0, 129, 29, 232, 0, 124, 163, 208, 104, 155, 33, 74, 0, 0, 3, 132, 0, 1, 118, 156, 0, 1, 0, 0, 0, 0, 3, 132, 0, 1, 118, 66, 0, 1, 0, 0, 0, 0, 3, 132, 0, 1, 117, 187, 0, 1, 0, 0, 0, 0, 3, 132, 0, 1, 117, 142, 0, 1, 0, 0, 0, 0, 7, 8, 0, 1, 117, 42, 0, 2, 0, 0, 0, 0, 24, 156, 0, 1, 119, 0, 0, 3, 0, 0, 0, 0, 3, 132, 0, 1, 119, 10, 0, 1, 0, 0, 0, 0, 3, 132, 0, 1, 119, 80, 0, 1, 0, 0, 0, 0, 3, 132, 0, 1, 119, 135, 0, 1, 0, 0, 0, 0, 3, 132, 0, 1, 119, 140, 0, 1, 0, 0}
    Parsed output - {full 16704258 true false 2025-08-12 16:41:06 +0530 IST 2025-08-12 15:29:59 +0530 IST 959.9 900 56700 132300 3282300 0 0 959.6 8297100 8461800 8168400 2.3500000000000227 {0 952.05 973 948 957.55} {[{959 900 1} {958.1 900 1} {956.75 900 1} {956.3 900 1} {955.3 1800 2}] [{960 6300 3} {960.1 900 1} {960.8 900 1} {961.35 900 1} {961.4 900 1}]}}
  • nagavenij
    We are looking into this.
Sign In or Register to comment.