Can some one please help me with placing a trade of type SL

order = dhan.place_order(tag=‘’,transaction_type=dhan.BUY,exchange_segment=dhan.NSE_FNO,product_type=dhan.INTRA,order_type=dhan.SL,validity=‘DAY’,security_id=“NIFTY-May2024-22500-PE”,quantity=25,disclosed_quantity=0,price=120.5,trigger_price=120,after_market_order=False,amo_time=‘OPEN’)

In [20]: order
Out[20]:
{‘status’: ‘failure’,
‘remarks’: {‘error_code’: ‘RS-9005’, ‘message’: ’ todo mandatory fields '},
‘data’: ‘’}

whats wrong with this

Hello @Manan_Shah

Welcome to Dhan Community!

Over here, there is an error in the parameters passed by you. security_id - this is a numeric code, that you can find in the Security ID List.

Do try with this and let us know if you are still facing issues.