sujith

About

Username
sujith
Joined
Visits
10,528
Last Active
Roles
Member, Administrator, Moderator

Activity

  • noft
    com.neovisionaries.ws.client.OpeningHandshakeException: The status code of the opening handshake response is not '101 Switching Protocols'. The status line is: HTTP/1.1 403 Forbidden

    Have been getting this error since afternoon of 31 Aug 2021. Have relogined several times and regenerated the token multiple times.
    This isnt going away. Usually it was very infrequent and went away after logging in again.
    What's to be done?
    September 2021
  • rubaljhavar
    Hi Sujith , Need your help on the publisher API issue that I mentioned. It is now occurring very frequently. Need your urgent help here. It is still giving this error 'Error while fetching session. Please reload the page.' On reload of the page it goes away.
    Thanks!
    August 2021
  • maheshk3176
    Maximum allowed order requests exceeded.
    how much is allowed?
    August 2021
  • maheshk3176
    raise ConnectionError(e, request=request)
    requests.exceptions.ConnectionError: HTTPSConnectionPool(host='api.kite.trade', port=443): Max retries exceeded with url: /instruments/NFO (Caused by NewConnectionError(': Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))
    August 2021
  • Kamalv
    Issue: GeneralException: Couldn't find that `order_id`.
    OrderID# 210818000157782
    CustID# KF8186
    Placing Order at 2021-08-18 09:15:32.504196 (from my end)
    August 2021
  • raviteja546
    Hi Sujith, When i try to extract P&L for intraday positions, i use kite.getPostions() and filter by "day" and trying to take sum of unrealised value, but its not updating live data.. i used 5secs gap to run p&l method but its not giving live value.. Please suggest..
    August 2021
  • 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
    $kite->setAccessToken($user->access_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
      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?

    Regards,
    Arun
    April 2021
    • A_Ahuja
      A_Ahuja
      +1
      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 kite.holdings().. 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,
    Pavan
    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
  • SAPANKHUNTIA
    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
    • SAPANKHUNTIA
      SAPANKHUNTIA
      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,
    Rams
    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
    Hi,

    I am using this code in VB.net, 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:
    Rsp.ToList()
    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.

    Thanks

    Manoj
    October 2020
  • jinalpatelcsoft
    hello Sujith , can you please check my last comment and reply https://kite.trade/forum/discussion/8678/position-api-not-workig#latest

    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']
    #print(positions)
    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
    print(mtm_sum)
    October 2020
  • sandeeplk
    Sir,

    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}}}

    Thanks.
    -Sandeep
    September 2020