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
)

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.