It looks like you're new here. If you want to get involved, click one of these buttons!
from kiteconnect import KiteConnectapi_k = "sfgshdsgh" #api_key api_s = "sfgsdgsagsg" #api_secretglobal kws,kite;kite = KiteConnect(api_key=api_k)print("[*] Generate access Token : ",kite.login_url())request_tkn = input("[*] Enter Your Request Token Here : ");data = kite.generate_session(request_tkn, api_secret=api_s)kite.set_access_token(data["access_token"])try: o1 = kite.ltp("NSE:DMART") print(" ltp api works ", o1) order_id = kite.place_order(variety="BO",tradingsymbol="INFY", validity='DAY', price=2000,\ quantity=1,exchange="NSE",order_type="LIMIT",transaction_type="BUY",\ product="MIS",squareoff=10, stoploss=10) print("Order placed. ID is ",order_id)except Exception as e: print("Order Not done: ",e)
variety="BO"
Make sure to paste a sample code to reproduce the issue.
I have added screen shot of code and output.
Python = 3.6.7
sys.version_info(major=3, minor=6, micro=7, releaselevel='final', serial=0)
More I should get error of wrong parameters not access token wrong.
But it has left my head spinning.
Please don't post your app or user-specific tokens on public threads. If you need to mention then you can use the private message feature.