It looks like you're new here. If you want to get involved, click one of these buttons!
var KiteTicker = require("kiteconnect").KiteTicker;
console.log('Successfully imported module');
var ticker = new KiteTicker({
api_key: "<>",
access_token: "<>"
});
try {
ticker.connect();
console.log('Called ticker.connect');
ticker.on("ticks", onTicks);
ticker.on("connect", subscribe);
function onTicks(ticks) {
console.log("Ticks", ticks);
}
function subscribe() {
var items = [408065];
ticker.subscribe(items);
ticker.setMode(ticker.modeFull, items);
}
} catch (err) {
console.log(err);
}
It is neither throwing any error nor giving tick data.