It looks like you're new here. If you want to get involved, click one of these buttons!
var ws = new WebSocket("wss://websocket.kite.trade/?api_key=mysecretkey&user_id=myid&public_token=my_public_token");
// Subscribe to quotes for INFY (408065) and TATAMOTORS (884737)
var message = {"a": "subscribe", "v": [408065, 884737]};
ws.send(JSON.stringify(message))
// Set TATAMOTORS (884737) to 'ltp' to only receive the LTP.
message = {"a": "mode", "v": ["ltp", [884737]]};
ws.send(JSON.stringify(message))
Technically I use PHP for getting the user_id and public_token after accesstoken is set. I am also able to successfully build my app based on the other parts of the API.
Websockets data is returned as binary data. Check out parsing example here.
As a first step, I would suggest setting a callback and check if you are getting data.
i have already made a wrapper in PHP with Kite API. Now it looks like I need to scratch it and start developing a wrapper around Node and Kite API.
i already have a Public API through my PHP App after subjecting it through lot of rerouting, controller and view. What I am expecting from you now is a simple include of the kite.js in the html header and a small tag that could process the kite js object.
Is it possible or not ? If yes, please post the code.
Here is an example you can use: Kite Ticker Pure JS Example
its so kind of you. i will check it out.
thanks a lot.