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.