STOP_LOSS_MARKET order failing with DH-906 Basic Validation Failed on NSE_FNO

I’m trying to place a SL-M SELL order on NSE_FNO INTRADAY after buying a NIFTY option. Getting DH-906 Basic Validation Failed. Parameters: - order_type: STOP_LOSS_MARKET - product_type: INTRADAY - transaction_type: SELL - price: 0.0 - trigger_price: 70.0 What are the correct parameters?

Hey @Suraj2 ,

We want to inform you that currently SLM (Stop Loss Market) orders are only allowed for Futures and Equity segments. SLM orders are not allowed for the Options segment. We request you to kindly confirm the exact segment for which you are placing the orders.

Further for Options, you can place a Stop Loss Limit order , by changing the order type to Stop Loss Limit.
For detailed parameters and usage, please refer to our API documentation here https://dhanhq.co/docs/v2/orders/.

Hello @Shrutika_Poojari Ma’am,

                            I was using STOP_LOSS_MARKET for equity trading but it has stopped working now.

STOP_LOSS is working fine:

response = dhan.place_order(

security_id="17939",       # PNB

exchange_segment="NSE_EQ",

transaction_type="SELL",

quantity=1,

order_type="STOP_LOSS",

product_type="INTRADAY",

price=550,                # set your price

trigger_price=550.05         # SL above price for SELL

)

SLM is throwing error:

'Got exception in place_order as {‘status’: ‘failure’, ‘remarks’: {‘error_code’: ‘DH-906’, ‘error_type’: ‘Order_Error’, ‘error_message’: ‘Trigger Price should be greater than Price’}, ‘data’: {‘errorType’: ‘Order_Error’, ‘errorCode’: ‘DH-906’, ‘errorMessage’: ‘Trigger Price should be greater than Price’}}

response = dhan.place_order(

security_id="10666",

exchange_segment="NSE_EQ",

transaction_type="SELL",

quantity=1,

order_type="STOP_LOSS_MARKET",   

product_type="INTRADAY",

price=0,                      

trigger_price=113               

)

Please help.
Thanks in advance.

Regards,
Neeraj

Hi,
Is this issue resolved, I am facing same issue with ‘CNC’. If we keep the trigger price higher than the LTP the order triggers immediately always i.e. no point of trigger and it becomes same as directly placing market order.