live feed response data receving as mode "quote" instead of "full"

durgaragini
after subscribing instruments
I am sending mode request as "full" instead of getting full data I am only getting data for "quote"

below is the sample code for checking

subscribe_message = {"a": "subscribe", "v": instrument_tokens} # [instrument_tokens]
await ws.send(json.dumps(subscribe_message))
mode_message = {"a": "mode", "v": ["full", instrument_tokens]} #[instrument_tokens]
await ws.send(json.dumps(mode_message))

Data dump for reference

⚠️ Incomplete packet (len=44): 009bcf02000061fd0000004b00005f460000025800000d2f00001770000057670000660d0000576700005807
(10211074, 25085, 75, 24390, 600, 3375, 6000, 22375, 26125, 22375, 22535)
???? Partial data unpacked: {'instrument_token': 10211074, 'last_price': 250.85, 'last_quantity': 75, 'average_price': 243.9, 'volume': 600, 'buy_quantity': 3375, 'sell_quantity': 6000, 'open': 223.75, 'high': 261.25, 'low': 223.75, 'close': 225.35}
  • sujith
    When you subscribe for the tick it will give you Quote mode data in the beginning. Once the second message is sent, the next tick you receive will have full mode data.
Sign In or Register to comment.