I am using C# for application . Suppose I place an order at market price . After order execution , I need to find the price at which order is executed. The return format of orders function is { /// "status": "PUT ORDER REQ RECEIVED", /// "product": "NRML", /// "pending_quantity": 0, /// "order_type": "MARKET", /// "exchange": "NFO", /// "order_id": "151220000000000", /// "parent_order_id": "151210000000000", /// "price": 0.0, /// "exchange_order_id": null, /// "order_timestamp": "2015-12-20 15:01:43", /// "transaction_type": "BUY", /// "trigger_price": 0.0, /// "validity": "DAY", /// "disclosed_quantity": 0, /// "status_message": null, /// "average_price": 0.0, /// "quantity": 75 }
Please tell me which parameter indicates the price of execution for market orders. or is there any other way to find it.
Hi @mohitgahlyan, In orders json, price field contains value entered by the user while placing the order and average_price contains the value at which order got executed. An order might be executed in multiple trades, average_price is an average of the price at which all the trades got executed.
In orders json, price field contains value entered by the user while placing the order and average_price contains the value at which order got executed.
An order might be executed in multiple trades, average_price is an average of the price at which all the trades got executed.
Thanks you very much.
Regards,
Mohit Gahlyan
You are welcome.