unable to get exact quote detail from web socket.

dineshkumarc
I'm using C# to get quotes from webscokets. When I'm subscribing for instrument token "408065" during market close hours, its constantly replying below message:
note:- below data in byte[] array

0x00,0x01,0x00,0x2C,0x00,0x06,0x3A,0x01,0x00,0x01,0xF6,0x08,0x00,0x00,0x00,0x05,0x00,0x01,0xE8,0xBB,0x00,0x15,0xDA,0x6F,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0xDE,0xA2,0x00,0x02,0x0B,0x70,0x00,0x01,0x9A,0x28,0x00,0x01,0xF6,0x08

From above data I'm able to parse below data:
# of packets i.e. 1,
length of first packet i.e. 44,
instrument token i.e 408065
but every other fields ltp, open/close/high/low price, etc,,, having junk data

1) May you please assist us decode the websocket api?
2) As mention on webscoket API -> "packet structure" documentation, type of every bytes have int16 or int32, what is the instrument price in float i.e in point like 43.50, 43.54, etc,,
  • dineshkumarc
    can i have an answer please..
  • Kailash
    Hi, all values are INTs (prices in paise). There are no floats. You should read them as INTs and divide by 100 to get the price in float.

    Can you try this please?
  • dineshkumarc
    @Kailash I'm getting price, but why it's not fetching Last traded quantity, Volume traded for the day, Total buy quantity, Total sell quantity??
Sign In or Register to comment.