tonystark

About

Username
tonystark
Joined
Visits
18
Last Active
Roles
Member, Moderator

Activity

  • rbt
    please ask from anybody also for the same @tonystark
    June 27
  • rbt
    Kindly reply @tonystark
    June 27
  • rbt
    please reply @tonystark
    June 27
  • rbt
    my code is :-
    var KiteTicker = require("./views/scripts/kiteconnect").KiteTicker;
    var ticker = new KiteTicker("**************", access_token);

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

    function subscribe() {
    var items = [instrument_token];
    ticker.subscribe(items);
    ticker.setMode(ticker.modeFull, items);
    }

    function onTicks(ticks) {
    //if (redirectpage == 'http://localhost:8383/chart') {
    list.add(ticks[0]);
    console.log(ticks[0]);
    StartAPI();
    //console.log(list.length);
    blocks.sort(sortAscending);
    io.emit('ticks', { blocks: blocks });
    io.emit('ticker', { data: ticks[0] });
    }

    kindly help me thanks in advance
    June 27
  • rbt
    Still i am getting this error

    Unhandled rejection StatusCodeError: 403 - "{\"status\":\"error\",\"message\":\"Token is invalid or has expired.\",\"data\":null,\"error_type\":\"TokenExcepti
    at new StatusCodeError (C:\vivekblocklyproject\node_modules\request-promise-core\lib\errors.js:32:15)
    at C:\vivekblocklyproject\node_modules\request-promise-core\lib\plumbing.js:97:41
    at tryCatcher (C:\vivekblocklyproject\node_modules\request-promise\node_modules\bluebird\js\release\util.js:16:23)
    at Promise._settlePromiseFromHandler (C:\vivekblocklyproject\node_modules\request-promise\node_modules\bluebird\js\release\promise.js:512:31)
    at Promise._settlePromise (C:\vivekblocklyproject\node_modules\request-promise\node_modules\bluebird\js\release\promise.js:569:18)
    at Promise._settlePromiseCtx (C:\vivekblocklyproject\node_modules\request-promise\node_modules\bluebird\js\release\promise.js:606:10)
    at Async._drainQueue (C:\vivekblocklyproject\node_modules\request-promise\n
    June 27
  • Ashok121
    1. import logging
    2. from kiteconnect import KiteConnect
    3. logging.basicConfig(level=logging.DEBUG)
    4. kite = KiteConnect(api_key="my api key")
    # my request token from "https://kite.trade/connect/login?api_key=xxxxx&v=3" and login.
    5. data = kite.generate_session("my request token",api_secret="my api secret")

    7. kite.set_access_token(data["access_token"])

    Please correct if above steps are not correct or anything missing. becuase with above even I am not able to get access token in ipython and getting message " Invalid token"
    February 23
  • Ashok121
    1. import logging
    2. from kiteconnect import KiteConnect
    3. logging.basicConfig(level=logging.DEBUG)
    4. kite = KiteConnect(api_key="my api key")
    # my request token from "https://kite.trade/connect/login?api_key=xxxxx&v=3" and login.
    5. data = kite.generate_session("my request token",api_secret="my api secret")

    7. kite.set_access_token(data["access_token"])

    Please correct if above steps are not correct or anything missing. becuase with above even I am not able to get access token in ipython and getting message " Invalid token"
    February 23
  • SAGARJAIN
    look at this i cant show secret button display ony api key so what is problem ?
    December 2017
  • tonystark changed his profile picture.
    Thumbnail
    December 2017