Not Receiving Ticks

QD1497
I am trying to run ticks but since today morning I am not able to receive any of them. Is there any maintenance going on?
Tagged:
  • rakeshr
    We just checked. It's working fine at our end.
    Can you give info on the above issue to debug? Are you using the correct instrument token/tokens?
  • QD1497
    I am seeing an error no reconnect and ticks are not even triggered to subscribe function
  • rakeshr
    Can you paste complete error traceback here?
  • QD1497
    var ticker = new KiteTicker({
    api_key: api_key,
    access_token: global.access_token
    });

    ticker.autoReconnect(true, 10, 5)

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

    ticker.on("noreconnect", function() {
    console.log("noreconnect");
    });

    ticker.on("reconnecting", function(reconnect_interval, reconnections) {
    console.log("Reconnecting: attempt - ", reconnections, " innterval - ", reconnect_interval);
    });

    function subscribe() {
    console.log("Item Subscribed");
    items.push(13613826);
    ticker.subscribe(items);
    ticker.setMode(ticker.modeFull, items);
    }



    function onTicks(ticks) {
    \\ Code begins from here
    }

    This is the code I am using and I am using and just having an output no reconnect
Sign In or Register to comment.