TARGET_LEG CO not modifying

I placed CO using dhan api, order also got executed.

Now when i tried to modify TARGET_LEG i am getting below error.

{‘status’: ‘failure’,
‘remarks’: {‘error_code’: ‘RS-9005’, ‘message’: ’ todo mandatory fields '},
‘data’: ‘’}

I am using below formart in request

dhan.modify_order(
order_id=‘52240424199xxx’,
order_type=dhan.LIMIT,
leg_name=‘TARGET_LEG’,
quantity=50,
price=9,
disclosed_quantity=50,
trigger_price=8.50,
validity=dhan.DAY
)

I am able to update STOP_LOSS_LEG.

Could you please tell me, what must be issue with TARGET_LEG modification then.

Hello @amarjambukar

With CO order, you can only have one Stop Loss leg associated with the order, and hence you are only able to modify Stop Loss leg.

You might want to try BO order for Target and Stop Loss legs.

I have tried BO order sill i am getting same issue.

In that case what i can do.?

Can you send the request JSON, will take a look