Last Active
Member, Administrator, Moderator


  • nb007
    {"status":"error","message":"The user is not enabled for the app.","data":null,"error_type":"InputException"} , i am facing this issue i am the single user
    August 2021
  • durgeshpandey215
    $kite = new KiteConnect($zerodha_apikey); // here i have api key

    try {
    $user = $kite->generateSession($zerodha_request_token, $zerodha_secret); // here i have secret key but i don't have request token
    } catch(Exception $e) {
    echo "Authentication failed: ".$e->getMessage();
    throw $e;

    when i run this program with proper input i do not get any response I got error
    August 2021
  • rajat86
    hi sujith
    as you mentioned
    It is mandatory by the exchange that a trader has to log in at least once a day. We don't recommend automating login.

    Can I use kiteconnect python apis to automate trades across days in aws?
    If yes, can you help me with the redirect url i have to give to purchase api access keys etc. What redirect url to give for use in aws?
    June 2021
  • HarshalRathore
    Hello, sujith sir
    I am in a pickle and need you'r help on this
    Now I am going to present a case in front of you
    say, that today I shorted one PE and one CE (attributes order:market, variety:RGLR, validity:day) manually with kite app. Now I want to automate the tracking of the combined premium of this trade with python and when it hits my desired SL I want to square off the trade meaning I want to close both the trade.
    so, what function to use or which method for this. provide me the solution for both cases MIS and NRML product type.
    Thank you
    May 2021
  • jaymahajan999
    Hi Sujith,

    from where can I get access to console API ?
    May 2021
    • sujith
      We don't have console APIs on Kite Connect.
  • ajy
    this.kt = new K.KiteTicker({ api_key, access_token })

    this.kt.on('order_update', update => {
    console.log("order FOUND. YEAH");


    sometimes it works sometimes it is not called. but the orders are executed i checked.
    May 2021
  • ajy
    hi sujith,
    in my node.js program. order update callback not called, but the order is executed and shows on website positions. please help. it was working yesterday butnot today. it has a very erratic behaviour. please help me.
    May 2021
  • bhasin888
    hi sujith,

    is there a way to backtest my kite connect script before i deploy it in live market?
    the only option i know is to download the ohlc data locally and perform the backtest.
    May 2021
  • narunbabu
    Hi Sujit,
    I have the API account. And I'm trying to get the ticks for around 1000 instruments. But I could not succeed. My python program works for 4 or 5 instruments even on LTP mode. Can you please help me. Or there is limit for the websocket?

    April 2021
    • A_Ahuja
      I am facing the same issue.
  • Kadwa_Such
    This is a kind of 100% fraud by some stock brokers. You can file complaint in consumer court against Zerodha, Upstox and you will definitely win the case and can get huge compensation also. SEBI never allowed any brokers to block any trade but still they are blocking trades with some kind of SEBI’s manipulated message which is not fair trade practice. You can file RTI also in this regard to get the answer whether they have any right to block any specific trade or not and I am sure you will get answer in your favor with the RTI copy you can go to court to win the case. If you do not want to go to court due to money crunch just forward this comments to as many traders as possible so that all will get to know the running fraud.
    April 2021
  • ArjunS
    Hi Sujith,

    I'm not able to see Pledged shares using Let me know if this is supported?
    April 2021
  • pavanvora
    Hi Sujith,

    I just posted a question to the forum and then did a small edit and it got removed and shows as it will get posted after Authorized or something.

    Can you please have a look and make it visible to the forum. I'm facing some serious issues with API response and it was a very long question writing it again would take so many efforts. If it is not possible to make it available very soon then please let me know.

    Awaiting your reply.

    Thank you,
    April 2021
  • deepakyadav
    Hey Sujith,

    My client Id is F02984 and the API is 90n4srk6fnfr9o6x. Not able to authorize the app. What to do?
    March 2021
  • krishnak2
    Hi Sujith,
    is there any possibility to get kiteconnect app expiry date using api?
    March 2021
    hi Sujith,

    I am getting an error like this:
    Connection closed: 1006 - connection was closed uncleanly (I dropped the WebSocket TCP connection: close reason without close code)

    Can you please explain what this means and how to sort it out.
    February 2021
      hii sujith,
      I found the solution. actually I was calling an iterable rather than a list of stocks.

      thank you.
  • atpalgotraders
    Hi Sujuth,

    I want to trade based on candlesticks which requires todays data, Is live data enough or do we need to go for historical data?

    Best Regards,
    December 2020
  • Mangesh
    How to get child order id OF BRAKET OR COVER ORDER ? Can you please post a sample code?
    December 2020
  • mishipal
    Can you please tell me how can i use multiple zerodha ids in single api..?
    November 2020
  • mohitjain080
    hi ... can u pls explain how i can get implied volatility
    October 2020
  • pingmanoj

    I am using this code in, to place a order:
    Rsp = KT.PlaceOrder(Constants.EXCHANGE_NFO, TradedInstrument, Constants.TRANSACTION_TYPE_SELL, QTY, Nothing, Constants.PRODUCT_NRML, Constants.ORDER_TYPE_MARKET)

    and this to display the order status in a datagrid:
    DGV2.DataSource = Rsp.ToList

    In the data grid I see 2 returned values "Key" and "Value".
    In these I get "Status", "success" and
    "data", "System.Collections.Generic.Dictionary`2[System.String,System.Object]".

    How do I get the actual returned message from the placeorder() function, something like "insufficient funds"?
    Looking forward to hearing from you soon.


    October 2020
  • jinalpatelcsoft
    hello Sujith , can you please check my last comment and reply

    October 2020
  • XS8910
    can you hep.....after market hours its showing correct MTM, i mean with no open position.......But when there is a open position...its showing wrong MTM figure...Kindly help me
    October 2020
  • XS8910
    symbol = sell_trades['tradingsymbol']
    sell_value = sell_trades['sell_value']
    buy_value = sell_trades['buy_value']
    multi = sell_trades['multiplier']
    qty = sell_trades['quantity']
    k =0
    mtm_sum = 0
    for i in symbol :
    lp = get_last_price(i,ins_type)
    pnl_1 = (sell_value[k]- buy_value[k]) + (qty[k] * lp * multi[k])
    mtm_sum = mtm_sum + pnl_1
    k = k+1
    October 2020
  • sandeeplk

    When we query instrument data say at 8.34AM it gave me following data.
    LTP of NIFTY50 is at {'256265':
    {'instrument_token': 256265, 'tradingsymbol': 'NIFTY 50', 'timestamp': datetime.datetime(2020, 9, 24, 8, 34, 10),
    'last_price': 11131.65, 'net_change': -1.15,
    'ohlc': {'open': 11131.65, 'high': 11131.65, 'low': 11131.65, 'close': 11131.85}}}

    We were hoping for yesterday's open, high, low and close but it did not give.

    Any idea what are we doing wrong here?

    Same thing has happened on 22nd Sep at 8:31AM whereas it gave zero to open, high and low.

    LTP of NIFTY50 is at {'256265': {'instrument_token': 256265, 'tradingsymbol': 'NIFTY 50',
    'timestamp': datetime.datetime(2020, 9, 22, 8, 31, 26), 'last_price': 11250.55, 'net_change': 0,
    'ohlc': {'open': 0, 'high': 0, 'low': 0, 'close': 11250.55}}}

    September 2020
  • deepmangukiya
    hi sujith query about the co exiting is solved. it is the documentation mistake in your library so kindly change the docs .

    and now one another query is what price is should enter in the stop loss price? i mean the absolute value ?

    for example if i buy from 1000 and want Stop loss of 10 point than should i pass 10 in the stoploss parameter while placing cover order or should i place 990?
    September 2020
  • nidhit
    hi.. plz call on 9810290237, i am not able to exit from my orders,fast plz
    September 2020
  • Ninja2020
    Sujith Sir,
    Good Day

    Could you please share sample code for Quote to retrieve stock future for many stocks .

    Is there any other way to get Open interest for stock future Sir?


    September 2020
  • swas99
    Hi Sujith,

    I get this message when trying to buy IOLCP:
    "Buying is restricted in IOLCP as this is an illiquid scrip. If you wish to buy, enable TOTP on your account and login to place the order."

    This looks like a bug because it I wasn't getting this message till today and I have USED IOLCP several times in the past few months.

    Also, today 's (avg_price x total_quantity) for some stocks:
    MARICO: 14026401 INR(~1k-3k units every min at ~370 INR per unit)
    IOLCP: 31003746 INR (~1.7k-4k units every min at ~800 INR per unit)
    INFY: 36785565 INR(~1.5k-2k units every min at ~950 INR per unit)

    MARICO & INFY aren't illiquid. So IOLCP shouldn't be illiquid.
    August 2020
  • pravinmangalam
    Hi Sujith,

    Hi I got the dump from getInstruments(), but earlier i was trying with getInstrument("NSE"); it does not return option data.

    Now i had another problem, I want to buy option but its throwing Unknown symbol error-

    OrderParams orderParams = new OrderParams();
    orderParams.quantity = this.QUANTITY;
    orderParams.orderType = Constants.ORDER_TYPE_MARKET;
    orderParams.tradingsymbol = "BANKNIFTY20AUG21600PE"
    orderParams.product = Constants.PRODUCT_MIS; = Constants.EXCHANGE_NSE;
    orderParams.transactionType = Constants.TRANSACTION_TYPE_SELL;
    orderParams.validity = Constants.VALIDITY_DAY;

    Please find the below exception--
    Unknown `tradingsymbol`.
    at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.dealWithException(
    at com.zerodhatech.kiteconnect.kitehttp.KiteResponseHandler.handle(
    at com.zerodhatech.kiteconnect.kitehttp.KiteRequestHand
    August 2020
  • dharin1234
    Hey, can you please help me. I am getting 'the user is not enabled for the app'. What user? I signed up on kite connect. i have a demat account as well, but not sure how both are linked.
    July 2020
    • dharin1234
      @sujith can you please help