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.
@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
{"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
}
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}]}}