Order placement

i am unable to place order using this code. please check and correct me…

the code is :
tsl = Tradehull(client_code,token_id)

account_balance = tsl.get_balance()
print(account_balance, “is available for trading.”)

stock_name = ‘ACC’
buy_order = tsl.order_placement(stock_name,‘NSE’, 1, 0, 0, ‘MARKET’, ‘BUY’, ‘MIS’)

and the error is

CHANGE EXCHANGE, QTY AND OTHER AS PER UR NEED

trading_symbol      = "NIFTY 19 DEC 24300 PUT"
qty                 = 75
buying_trigger      = 170.9
buying_limit_price  = buying_trigger + 0.50
stop_loss_offset    = 149.5
target_offset       = 30
exchange            = "NFO"
ordertype           = "STOPLIMIT"


# Initialize Tradehull
tsl = Tradehull(client_code, token_id)

try:
    # Place buy order
    buy_entry_orderid = tsl.order_placement(trading_symbol, exchange, qty, buying_limit_price, buying_trigger, 'STOPLIMIT', 'BUY', 'MIS')
    print(f"Buy Order Placed. Order ID: {buy_entry_orderid}")
    time.sleep(0.5)
1 Like

did you find te solution same thing is happening ith me