☰
Login
Signup
Home
›
Python client
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
13.9K
All Categories
0
Incidents
156
Node JS client
40
Go client
793
.Net API client
380
Kite Publisher
537
.Net / VBA / Excel (3rd party)
458
Algorithms and Strategies
998
Java client
1.1K
API clients
404
PHP client
4K
Python client
348
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
January 2020
NaveenHegde
April 2019
sujith
My api_key and acess_token does not work for historical data
s4n989
April 2019
in
Python client
DEBUG:urllib3.connectionpool:
https://api.kite.trade:443
"GET /instruments/historical/136983556/60minute?to=2019-01-13+00%3A00%3A00&continuous=1&from=2019-01-01+00%3A00%3A00&instrument_token=136983556&interval=60minute HTTP/1.1" 403 None
Traceback (most recent call last):
File "fetch_stock.py", line 20, in
stock_trend = kite.historical_data(bse_stocks[10]['instrument_token'], '2019-01-01 00:00:00', '2019-01-13 00:00:00', '60minute', continuous=True)
File "build/bdist.linux-x86_64/egg/kiteconnect/connect.py", line 608, in historical_data
File "build/bdist.linux-x86_64/egg/kiteconnect/connect.py", line 697, in _get
File "build/bdist.linux-x86_64/egg/kiteconnect/connect.py", line 766, in _request
kiteconnect.exceptions.TokenException: Incorrect `api_key` or `access_token`.
Tagged:
Python Client
historical API
sujith
April 2019
Did you re-login after you subscribed for historical data API?
NaveenHegde
January 2020
I am getting similar kind of exception,
https://kite.trade/forum/discussion/7031/kite-gethistoricaldata-api-access-error#latest
. Tried re-login still not working.
NaveenHegde
January 2020
Got the issue in my code. Mismatch in redirect URL in My app setup and listener string caused the issue.
This discussion has been closed.