We noticed that you are placing a market order and hence request you to set the price as 0 for the same. Additionally, we observed that you have mentioned “tag”: “SUPER”, which is not required you may try removing that field.
We request you to please try the below mentioned request structure by making necessary changes in client id and target , stop loss if required. As the same working fine from our end.
Hi @Dhan_Auto_Moderator Can you please help me with below error for super order API.
curl --request DELETE
–url /v2/super/orders/363250922500XXXXX/STOP_LOSS_LEG
–header ‘Content-Type: application/json’
–header ‘access-token: JWT’
{“errorType”:“Order_Error”,“errorCode”:“DH-906”,“errorMessage”:“Incorrect request for order and cannot be processed”}
This orderID is already traded and when I am trying to cancel Target or SL I am getting this error after 40 secs, but it works fine when I cancel pending order.
Note: I was not able to post full link so truncated it.
Hi @Shubham_Singh Here is the complete endpoint.
api[.]dhan[.]co/v2/super/orders/3132509235xxxxx/TARGET_LEG
api[.]dhan[.]co/v2/super/orders/3132509235xxxxx/STOP_LOSS_LEG
The entry leg is executed and above two legs are pending, now I am trying to cancel these legs.
I am getting error that new user can’t post links so added [.]
@Shrutika_Poojari Everything is working fine but not the cancellation of target/stoploss of the traded intraday super order, so from an implementation side I have no doubt.