KeyError: Unable to place order

krishnanm2006
I found this code on GitHub to place orders...

import logging
from kiteconnect import KiteConnect
logging.basicConfig(level=logging.DEBUG)
kite = KiteConnect(api_key="your_api_key")
data = kite.generate_session("request_token_here", api_secret="your_secret")
kite.set_access_token(data["access_token"])


error below ->

KeyError: 'my_access_token'

I tried searching other threads, unable to find whats wrong. please help
Sign In or Register to comment.