Recent Activity

  • rbt
    Please reply @sujith
    June 2018
  • Welcome Aboard!
    June 2018
  • 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 2018
  • 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 2018
  • Welcome Aboard!
    June 2018
  • Welcome Aboard!
    June 2018
  • hi..how do i get the live feed of all nse shares
    June 2018
  • ashiwani2, hari_haran, hariharan, lalithusf, ramy90 and 10 others joined.
    Welcome Aboard!
    June 2018
  • Welcome Aboard!
    June 2018
  • very very bed serveces my ac no XL8914
    June 2018
  • k365
    • rakeshr
      rakeshr
      Replied on https://kite.trade/forum/discussion/comment/15808#Comment_15808.
  • I just acquired a kite developer account. I am trying to connect to kite using the code below.
    downloaded kiteconnectjs from https://github.com/zerodhatech/kiteconnectjs

    var KiteConnect = require("kiteconnect").KiteConnect;
    var kc = new KiteConnect({
    api_key: "api_key"
    });

    kc.generateSession("request_token", "api_secret")
    .then(function(response) {
    init();
    })
    .catch(function(err) {
    console.log(err);
    });

    function init() {
    kc.getMargins()
    .then(function(response) {
    })
    .catch(function(err) {
    });
    }

    However during generateSession call it is failing with the following exception
    { status: 'error',
    message: 'Token is invalid or has expired.',
    data: null,
    error_type: 'TokenException' }
    I am replacing api_key and api_secret with the corresponding key and secret of my app
    Do we need to replace the "request_token" value passed in generateSession and if YES how do we generate the value.
    June 2018
  • srp201201051, jayanthkurup, nitss83, veds, patpat and 7 others joined.
    Welcome Aboard!
    June 2018
  • Welcome Aboard!
    June 2018
  • Implementing my own Trading Idea / strategy using Python.
    June 2018
  • aabhalerao
    Hi,
    I am presently nearing completion of my own trading idea using python.
    I am based in Pune.
    I may be able to contribute.
    Thanks,
    Atul Bhalerao.
    [email protected]
    June 2018
  • rbt
    Did you get the solution of authorize the app as you have raised the same question earlier,if yes
    then briefly describe the steps to do.

    Thanks in advance
    June 2018
  • Welcome Aboard!
    June 2018
  • vineet_meharia
    Hi Saurav.. Was reading your comments and discussion with @mag regarding string and retrieving websocket tick data. I am complete newbie in this and just starting to think about creating a securities master database from scratch. Was wondering if you could spare a few minutes to help me out and point me in the right direction. Thanks !
    June 2018
  • vineet_meharia
    I need to do the same now. Can either of you kindly help ?
    June 2018
  • bhumi
    Hi,

    I need code / Algo for the Supertrend Buy/Sell signal by using KiteConnect PHP? Can you please share some idea or code?
    June 2018
    • techietrader
      techietrader
      Hi,
      I dont have anything as such in PHP.
      If you want something in python, here is he link
      https://github.com/techietrader/Trading-indicators-and-Chart-patterns
  • vadivel
    Hi Techietrader,
    I have been in commodity intra day trading (part time) and made loss.
    I am looking for guide to make minimum 1% profit per day; Can you please guide me?
    Thanks
    Vadi
    June 2018
    • techietrader
      techietrader
      Hi. I dont have any such strategy which gives a % a day.

      Regards
  • Welcome Aboard!
    June 2018
  • ManishGupta
    Hi Shaha,

    I saw your post on a forum where you said you are creating live 1Min candles for over 400 instruments daily, from tick data and that too without significant delay. Will it be possible for your to share the code for generating 1min candle live? I am new to programming and finding it very difficult to do these things. OR if you can guide how I can do this. Thanks in advance.
    June 2018
    • Shaha
      Shaha
      Read that article over and over again. U will make it.
  • Welcome Aboard!
    June 2018
  • neevedmalik
    Can i please have your contact number... I am looking for a code of OHLC formation for 5 minute charts based on real time data for an instrument..
    June 2018
  • Welcome Aboard!
    June 2018
  • VH7047, rs0760, Raunaq, rthakur7, arjun6970 and 3 others joined.
    Welcome Aboard!
    June 2018
  • sahmad98, CassandraT, gprasadu, gatadeabhijit, neha and 5 others joined.
    Welcome Aboard!
    June 2018
  • vineet_dhandhania
    Hello, I'm also looking for code for automated authentication. I found something that uses Selenium but it's relatively complicated. I think mechanize might offer a simpler solution.
    Thanks in advance. Vineet
    June 2018