It looks like you're new here. If you want to get involved, click one of these buttons!
var KiteTicker = require("kiteconnect").KiteTicker;
var ticker = new KiteTicker({
api_key: "XXX",
access_token: "XXXX"
});
ticker.connect();
ticker.on("ticks", onTicks);
ticker.on("connect", subscribe);
function onTicks(ticks) {
console.log("Ticks", ticks);
}
function subscribe() {
console.log('dafaf');
var items = ['RELIANCE'];
ticker.subscribe(items);
ticker.setMode(ticker.modeFull, items);
}
After ran that above code i did not get anything.
You need to give us more detail for us to debug. Run it in debug mode and paste complete logs here.
Please do understand that we don't provide support for Kite Connect. We are all developers here just like you. This is just a community forum wherein we help fellow developers to grow the community.
We don't encourage passive-aggressive comments on the forum.