☰
Login
Signup
Home
›
Python client
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
14.6K
All Categories
0
Incidents
172
Node JS client
48
Go client
822
.Net API client
394
Kite Publisher
551
.Net / VBA / Excel (3rd party)
484
Algorithms and Strategies
1K
Java client
1.2K
API clients
408
PHP client
4.2K
Python client
357
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.5K
General
In this Discussion
July 16
sujith
live feed response data receving as mode "quote" instead of "full"
durgaragini
July 10
in
Python client
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
July 16
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.