Order response format issue while placing order with tag.

kunalBandekar
We are placing an order with the required keys along with the tag, but in the response the format is incorrect (half string and half object) and hence we are unable to parse the response.

Below is a sample response object which we got from Zerodha
{
'{"user_id":"CXXXXX","unfilled_quantity":0,"app_id":4XXXX,"checksum":"ccb47d7574fd001XXXXXXXXXXXXXX","placed_by":"CXXXXX","order_id":"2203XXXXXXXXXXXXXX","exchange_order_id":"15000XXXXXXXXXX","parent_order_id":null,"status":"COMPLETE","status_message":null,"status_message_raw":null,"order_timestamp":"2022-03-23 XX:XX:XX","exchange_update_timestamp":"2022-03-23 XX:XX:XX","exchange_timestamp":"2022-03-23 XX:XX:XX","variety":"regular","exchange":"NFO","tradingsymbol":"BANKNIFTYXXXXXXXCE","instrument_token":13XXXXXX,"order_type":"MARKET","transaction_type":"BUY","validity":"DAY","product":"MIS","quantity":25,"disclosed_quantity":0,"price":0,"trigger_price":0,"average_price":48.95,"filled_quantity":25,"pending_quantity":0,"cancelled_quantity":0,"market_protection":0,"meta":{},"tag":"361","tags":': { '"361"': '' }
}

Please help if we need to change anything from our end.

Thanks in advance.
  • rakeshr
    but in the response the format is incorrect (half string and half object) and hence we are unable to parse the response
    No, this won't happen until you are sending the wrong format tag. The tag should always be passed string.
Sign In or Register to comment.