ticks are not coming, same code was given the ticks 2 days before but now ticks are not comming.

rohittaleja1
var KiteTicker = require("kiteconnect").KiteTicker;

const api_key = '';
const api_secret = '';
const accountKey = '';
const request_token = '';
const access_token = '';
var ticker = new KiteTicker({
api_key,
access_token,
});

ticker.connect();
ticker.on("ticks", onTicks);
ticker.on("connect", subscribe);

function onTicks(ticks) {
console.log("Ticks", ticks);
}
function subscribe() {
var items = [1076225];
ticker.subscribe(items);
ticker.setMode(ticker.modeFull, items);
}
Sign In or Register to comment.