ERROR AFTER PLACING ORDER SUCCESSFULLY:
‘{“status”:“error”,“errors”:[{“errorCode”:“UDAPI100500”,“message”:“Something went wrong… please contact us”,“propertyPath”:null,“invalidValue”:null,“error_code”:“UDAPI100500”,“property_path”:null,“invalid_value”:null}]}’
with this payload, the order is placing and when target hits its working without any issue. but only the thing is its not returning order id and success message. due to this, i lost money, because based on this target, i implemented the OCO scenario.
Its very simple @Ketan, I am using order_id in tag, as a reference for child orders. Below is the scenario.
POSITION ORDER TAG : Strategy Identifier
TARGET ORDER TAG : Position Order ID - Usually SELL Limit Order
STOPLOSS ORDER TAG : Position Order ID - Usually SELL SL Order
Using this tags, its very easy for me to manipulate the orders. I am implementing this myself, because, in volatile markets, brokers use to block other type of orders.
To avoid this, I am handling it myself.
Its very irritating to see this “Something went wrong” message. As we are playing with real money, we should be very careful while Error Handling.
I can understand as a programmer, how hard to capture the cases. But, at least some meaningful error is expected.
Further, I request you to update the example codes by referring real orders for each case. Like, for Equity, Futures, Options, separate for both Buy and Sell. This saves lot of time for programmer.