I’m trying to modify a SL order.
It’s a FNO SL order. ‘leg_name’ is marked as conditionally required. But if I leave it off, I get the error that a positional field is missing. Same issue with ‘disclosed_quantity’. If I leave ‘leg_name’ as ‘’ (like in the example), I get the error that the field is blank. If I get any of the other value (like STOP_LOSS_LEG), I get the error code RS-9005 with message " todo mandatory fields ’ !! What does that even mean?
And more important, how do I modify an order. Using python.
Welcome to Dhan Community!
As in the example shared by you,
leg_name should be
ENTRY_LEG only if you want to add that. If you add this, what is the error message you are getting?
It will be great if you can share your Client ID along with API request time at firstname.lastname@example.org, so that we can look into from our end and help you resolve this faster.
Sent an email with the details. Thanks
Hi @Hardik , I never got a reply back after sending the email to email@example.com.
To your question after adding the
ENTRY_LEG, the error message is RS-9005 " todo mandatory fields ". What does this cryptic remark message mean? Someone forgot to finish their TODO items in the code?? There seems to be no way to modify an existing order contrary to what is in the API and examples. Any help will be appreciated.
We checked the logs and found that the orders modifications were placed successfully. Have replied you on mail as well couple of days back for the same. In case you are still facing the issue, feel free to send in order ID on the same mail, and would definitely look into it.