☰
Login
Signup
Home
›
Market data (WebSockets)
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
14K
All Categories
0
Incidents
157
Node JS client
40
Go client
794
.Net API client
383
Kite Publisher
537
.Net / VBA / Excel (3rd party)
462
Algorithms and Strategies
1K
Java client
1.1K
API clients
405
PHP client
4K
Python client
349
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.4K
General
In this Discussion
April 2016
Vivek
April 2016
Kailash
April 2016
dhavalp
Response
dhavalp
April 2016
in
Market data (WebSockets)
I sent WebSocket request for this message: {a: 'subscribe', v: ['full', [408065, 884737]]}, the server return message every second, but it's just an array with a element "0"
any hint for this?
dhavalp
April 2016
Also there are 3 actions, subscribe/unsubscribe/mode, do i need to send "subscribe" first before "mode"?
Kailash
April 2016
{a: 'subscribe', v: ['full', [408065, 884737]]} is incorrect. To subscribe, it should be:
{a: 'subscribe', v: [408065, 884737]}
And yes, you need to subscribe first.
dhavalp
April 2016
Cant I simply do message = {"a": "mode", "v": ["full", [408065]}; without subscribe? Because I guess I did that and it worked. Thus asking
Vivek
April 2016
Yeah it works because we auto subscribe when you set the mode but for the for verbosity we recommend you to subscribe and change the mode.
Sign In
or
Register
to comment.
{a: 'subscribe', v: [408065, 884737]}
And yes, you need to subscribe first.