Issue to place order-Zerodha

Issue placing order - Zerodha

from Zerodha_Tradehull import Tradehull
from rich import print


api_key = "f2yqsoacpxswq0vy"
api_secret = "jg2xnvyugmebsj8tw3ixce0gmsliyx6b"
tsl = Tradehull(api_key, api_secret, "yes")

kite       = tsl.kite

order_id = tsl.place_order(variety="amo", exchange='NSE', tradingsymbol='GAIL', transaction_type='SELL', quantity=1, product="MIS", order_type="MARKET")

print(order_id)

Error…

Logging into zerodha
You have already loggged in for today
reading existing file all_instrument 2025-08-13.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++)
PS D:\Trudehull_Algo Traning\Training Practice\Session 1-20250812T122254Z-1-001\Session 1\Connect with Zerodha>

Hi Tarun

there is a pdb in zerodha_tradehull library, we need to remove it. see session 2 order placement for reference.

like this