☰
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
153
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
August 2020
dev567
August 2020
sujith
kite API issue
dev567
August 2020
in
Python client
{"status":"error","message":"Invalid `api_key`","data":null,"error_type":"InputException"}
kindly anyone suugest me to solve the above issue and moreover the API Key is correct recently bought
sujith
August 2020
Can you let us know for which API you got this issue?
dev567
August 2020
Hi
@sujith
i am currently using live api
sample script for token
try:
kite = KiteConnect(api_key=Api_key)
print("Generate access Token : ", kite.login_url())
request_tkn = input("Enter Your Request Token Here : ")
print('comes')
data = kite.generate_session(request_tkn, api_secret=Api_secret)
logger.info('Requested for new session.')
kite.set_access_token(data["access_token"])
kws = KiteTicker(Api_key, data["access_token"])
print('Access_Token is :: ',data['access_token'])
logger.info('Access Token is {}'.format(data['access_token']))
and the requested login url is
https://kite.trade/connect/login?api_key='HERE
API'&v=3
while clicking above url getting
{"status":"error","message":"Invalid `api_key`","data":null,"error_type":"InputException"}
if possible i want one clarification on deleting app will cause loss of 2000/ or not...
Thank you in advance
@sujith
sujith
August 2020
Yes, the credits are used for subscription. If you delete or cancel subscription, you will have to create new app or subscribe again.
Are you sure the app is active?
dev567
August 2020
yes it is in active mode .Is there any problem with our Zerodha account id !!!!! for this issue
@sujith
and we should not delete the app ..right.
sujith
August 2020
There is no issue with Kite Connect. Can you private message the login URL you are trying to access with api_key?
Sign In
or
Register
to comment.
sample script for token
try:
kite = KiteConnect(api_key=Api_key)
print("Generate access Token : ", kite.login_url())
request_tkn = input("Enter Your Request Token Here : ")
print('comes')
data = kite.generate_session(request_tkn, api_secret=Api_secret)
logger.info('Requested for new session.')
kite.set_access_token(data["access_token"])
kws = KiteTicker(Api_key, data["access_token"])
print('Access_Token is :: ',data['access_token'])
logger.info('Access Token is {}'.format(data['access_token']))
and the requested login url is
https://kite.trade/connect/login?api_key='HERE API'&v=3
while clicking above url getting
{"status":"error","message":"Invalid `api_key`","data":null,"error_type":"InputException"}
if possible i want one clarification on deleting app will cause loss of 2000/ or not...
Thank you in advance @sujith
Are you sure the app is active?
and we should not delete the app ..right.