Issue placing order
from Zerodha_Tradehull import Tradehull
from rich import print
api_key = "f2yqsoacptswq0vy"
api_secret = "2pufbj5qhtt2n9ebrvgboxgw01tytbmw"
tsl = Tradehull(api_key, api_secret, "yes")
kite = tsl.kite
print()
ltp = tsl.get_data_for_single_script(exchange="NFO", name="NIFTY2581424300CE", call_type ="ltp")
Nifty_ltp = tsl.get_data_for_single_script(exchange="NSE", name="NIFTY 50", call_type ="ltp")
atm = tsl.get_atm(ltp=Nifty_ltp, underlying="NIFTY 50", expiry=0, script_type="CE")
order_id = tsl.place_order(variety="amo", exchange='NSE', tradingsymbol='GAIL', transaction_type='BUY', quantity=1, product="MIS", order_type="MARKET")
kite.margins()
Error…
PS D:\Trudehull_Algo Traning\Training Practice\Session 1-20250812T122254Z-1-001\Session 1\Connect with Zerodha> ^C
PS D:\Trudehull_Algo Traning\Training Practice\Session 1-20250812T122254Z-1-001\Session 1\Connect with Zerodha>
PS D:\Trudehull_Algo Traning\Training Practice\Session 1-20250812T122254Z-1-001\Session 1\Connect with Zerodha> d:; cd 'd:\Trudehull_Algo Traning\Training Practice\Session 1-20250812T122254Z-1-001\Session 1\Connect with Zerodha'; & 'c:\Users\HP\AppData\Local\Programs\Python\Python38\python.exe' 'c:\Users\HP\.cursor\extensions\ms-python.debugpy-2025.6.0-win32-x64\bundled\libs\debugpy\launcher' '62019' '--' 'd:\Trudehull_Algo Traning\Training Practice\Session 1-20250812T122254Z-1-001\Session 1\Connect with Zerodha\test_file_my key ID.py'
Logging into zerodha
You have already loggged in for today
reading existing file all_instrument 2025-08-12.csv
you are connected to zerodha Tarun Sharma
[ 9] > c:\users\hp\appdata\local\programs\python\python38\lib\site-packages\zerodha_tradehull\zerodha_tradehull.py(1257)place_order()
-> p_orders = pd.DataFrame(self.kite.orders())
(Pdb++)
Imran
3