Order is placing successfully, but in return I am getting this error

TARGET ORDER PAYLOAD:
BuyTARGETLOrder : {‘quantity’: 15, ‘product’: ‘D’, ‘validity’: ‘DAY’, ‘price’: 564.2, ‘tag’: ‘240830000169858’, ‘instrument_token’: ‘NSE_FO|48537’, ‘order_type’: ‘LIMIT’, ‘transaction_type’: ‘SELL’, ‘disclosed_quantity’: 0, ‘trigger_price’: 563.7, ‘is_amo’: False}

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}]}’

Thanks
R C Vamsi

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.

please reply fast.

Thanks
R C Vamsi

@vardhan36397, it appears that you are using a valid order ID as a tag. Could you please provide more details about this use case?

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.

Thanks
R C Vamsi

@vardhan36397, a fix has been implemented on our side. Please try using the order ID as the tag, and let us know the outcome.

Thank you.