I am first time user. Unable to place order. Tried all corrections mentioned in earlier forums Please suppot
from kiteconnect import KiteConnect ...: ...: ...: In [5]: api_key="my api key from app" ...: ...: In [6]: api_secret="my secret key from app" ...: ...: In [7]: kite=KiteConnect(api_key ="my api key from app") ...: ...: In [8]: kite.login_url() ...: c:\users\sachin\appdata\local\programs\python\python37-32\lib\site-packages\OpenSSL\_util.py:6: UserWarning: You are using cryptography on a 32-bit Python on a 64-bit Windows Operating System. Cryptography will be significantly faster if you switch to using a 64-bit Python. from cryptography.hazmat.bindings.openssl.binding import Binding Out[1]: 'https://kite.zerodha.com/connect/login?api_key=............=3'
In [2]: ...: kite = KiteConnect(api_key="my api key from app") ...: ...: ...: ...: # Set the access token ...: ...: kite.set_access_token("access token received") ...: ...: ...: ...: # Place an order ...: ...: order_id = kite.place_order( ...: ...: tradingsymbol="SBIN", ...: ...: quantity=1, ...: ...: exchange="NSE", ...: ...: order_type="MARKET", ...: ...: transaction_type="BUY", ...: ...: product="CNC", ...: ...: variety="regular") ...: ...: ...: ...: print("Order placed. ID is:", order_id) --------------------------------------------------------------------------- TokenException Traceback (most recent call last) in 12 transaction_type="BUY", 13 product="CNC", ---> 14 variety="regular") 15 16 print("Order placed. ID is:", order_id)