Parent Order ID showing extra value

hitman1980
How come the parent_id is adding |1 to the parent_id value. It has thrown multiple errors in my script ..
Previous parent_id was just an id .. Now it comes with concatenated |1 ..

Below is the orderid array which I am getting back from zerodha today


[7] => stdClass Object
(
[placed_by] => TN5434
[order_id] => 191125000452457
[exchange_order_id] => 1300000001368808
[parent_order_id] => 191125000452455|1
[status] => COMPLETE
[status_message] =>
[status_message_raw] =>
[order_timestamp] => DateTime Object
(
[date] => 2019-11-25 09:41:54.000000
[timezone_type] => 3
[timezone] => Asia/Kolkata
)

[exchange_update_timestamp] => 2019-11-25 09:41:54
[exchange_timestamp] => DateTime Object
(
[date] => 2019-11-25 09:41:54.000000
[timezone_type] => 3
[timezone] => Asia/Kolkata
)

[variety] => co
[exchange] => NSE
[tradingsymbol] => TECHM
[instrument_token] => 3465729
[order_type] => MARKET
[transaction_type] => SELL
[validity] => DAY
[product] => CO
[quantity] => 4
[disclosed_quantity] => 0
[price] => 0
[trigger_price] => 0
[average_price] => 759.4
[filled_quantity] => 4
[pending_quantity] => 0
[cancelled_quantity] => 0
[market_protection] => 0
[tag] =>
[guid] => 1574655114-739140-TN5434-CO
)

)

Sign In or Register to comment.