☰
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.8K
All Categories
0
Incidents
154
Node JS client
40
Go client
793
.Net API client
378
Kite Publisher
537
.Net / VBA / Excel (3rd party)
457
Algorithms and Strategies
993
Java client
1.1K
API clients
404
PHP client
4K
Python client
346
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
February 2017
sidsam12
February 2017
sujith
TokenException: Invalid API credentials
sidsam12
February 2017
in
Python client
#Please
tell where I am wrong
#Got
request token from login_url()
# I got access_token successfully
from kiteconnect import WebSocket
from kiteconnect import KiteConnect
instrument_token = "xxxx"
from_date = "2017-01-01"
to_date= "2017-01-31"
interval = "minute"
kite = KiteConnect(api_key = myapi_key)
#success
kite.set_access_token(access_token)
# Get Historical data from Kite Connect
def get_historical_data():
return kite.historical(instrument_token, from_date, to_date, interval)
get_historical_data()
This gives me TokenException: Invalid API credentials
Please help.
sujith
February 2017
Hi,
Historical API is an add on subscription. You have to subscribe for it.
Checkout more details
here
.
sidsam12
February 2017
Thank you.
This discussion has been closed.
Historical API is an add on subscription. You have to subscribe for it.
Checkout more details here.