API Modify order request issues

Hi Team,

I am facing an while modifying any order, here is a quick example I have created on BO order it executed successfully, after sometime the price is moving in an expected direction hence i want to modify the SL order price (for this I am using modify_order method) but it is failing with different error, can you help is resolving this or correct in case of anything is missing.

#Modify Order implementation for above order
modify_response = dhan.modify_order(
order_id=‘5124032019168’,
order_type=dhan.SL,
leg_name=‘STOP_LOSS_LEG’,
quantity=1,
price=620.0,
trigger_price=620.0,
disclosed_quantity=0,
validity=dhan.DAY
)
image

Also can you share any documentation or reference link of demonstration of this modify order what is in scope and limitations of this modify order.

Thanks!
Ravi

Hi Team, Any help on this will appreciated. Thanks!

Try order_type as LIMIT.

why not order type as SL? one would want to modify the stop loss sell order right?

Has this issure resolved… ?

I am also facing the same issue now to modify an existing Bracket Order. Please help, if this has already resolved or if you get some documentation arond this. Thank you.

Hello @anuragbhumca07

Yes, this has been long resolved. Can you tell us what is the issue that you are facing?

Hi dhan team,
Now your offering 20 depth market data via api