Bracket order not working at Market Price

Hi @Hardik @Dhan ,

I am using api to place bracket order using the below :

response = dhan.place_order(
tag=‘’,
transaction_type=dhan.BUY,
exchange_segment=dhan.NSE_FNO,
product_type=dhan.BO,
order_type=dhan.MARKET,
validity=‘DAY’,
security_id=‘46138’,
quantity=15,
disclosed_quantity=0,
price=0, #(Since order_type is MARKET )
after_market_order=False,
amo_time=‘OPEN’,
bo_profit_value=10,
bo_stop_loss_Value=11
)

The price of the option at that time was 483.15.

Target → 10 (i.e 493.15)
Stop loss → 11 (i.e 472.15 )

But iam receiving the below

Order response: {‘status’: ‘failure’, ‘remarks’: {‘error_code’: ‘RS-9005’, ‘message’: ‘Trigger_price Not In Range’}, ‘data’: ‘’}

Could you please advise me what should be the value of my stoploss so that i dont get the error “Trigger price not in range”.
Or am i doing anything wrong.

FYI : But when i do limit order ,
order_type=dhan.LIMIT

Then the order gets executed.

Please suggest.

Hello @avinashpaul01

Are you using v1 or v2 of Dhan Python library?

Hi @Hardik
i was using V1 version , i was told my support team that market orders in BO are not available and to use limit order.

is market order available in V2