Unable to generate access_token

LW3868 edited May 2020 in Python client
Hi, This is my first time and I am trying to retrieve my acces_token by connecting to the API

from kiteconnect import KiteConnect
kite = KiteConnect(api_key=KITE_API_KEY)
data = kite.generate_session(request_token, api_secret=KITE_API_SECRET)
Traceback (most recent call last):
File "", line 1, in
NameError: name 'KITE_API_KEY' is not defined

Please explain if I am doing anything wrong
(I am using terminal in ubuntu)
  • Sree
    Hi @LW3868
    You can check out FAQs to know how to get started.
  • FoxTradingSolutions
    You should initiate KITE_API_KEY with your api_key

    We can code any strategy for you. We have vivid experience in building algorithms.
    Our contact details are: M: 9799871428 E-mail: [email protected] Website www.foxtradingsoutions.com
Sign In or Register to comment.