market data

sivarc07
I'm getting the following while activating my file to run Can anyone help me to sort out the issue
C:\Users\DELL\Documents\order>sell_order.py
Traceback (most recent call last):
File "C:\Users\DELL\Documents\order\sell_order.py", line 79, in
spot = kite.ltp("NSE:NIFTY")['NSE:NIFTY']['last_price']
~~~~~~~~^^^^^^^^^^^^^
File "C:\Users\DELL\AppData\Local\Programs\Python\Python313\Lib\site-packages\kiteconnect\connect.py", line 611, in ltp
return self._get("market.quote.ltp", params={"i": ins})
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DELL\AppData\Local\Programs\Python\Python313\Lib\site-packages\kiteconnect\connect.py", line 861, in _get
return self._request(route, "GET", url_args=url_args, params=params, is_json=is_json)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DELL\AppData\Local\Programs\Python\Python313\Lib\site-packages\kiteconnect\connect.py", line 937, in _request
raise exp(data["message"], code=r.status_code)
kiteconnect.exceptions.PermissionException: Insufficient permission for that call.
  • sivarc07
    Python error
  • sujith
    You need to have a valid Kite Connect app to fetch the live market data and historical candle data.
  • Vamshi304
    i am using kite connect nuget package in c#.
    var ins = kite.GetQuote(["INFY"]);
    I am Tring to get data response is Insufficient permission for that call.
    but i am already subscribed to historical data.
  • salim_chisty
    You need to subscribe to Kite Connect to access live market or historical candle data or your Kite Connect subscription has expired.
Sign In or Register to comment.