OrderHistory
OrderHistory offers a comprehensive view of a user’s past orders, including those that have been executed, canceled, or partially filled. This component enables users to track their trading activities and gain insights into their past transactions, helping them make more informed decisions for future trades. The Order History component is directly linked with the OrderDeals and OrderLegs components. OrderHistory has the following attributes:
| attributes | description |
|---|---|
| ClOrdId | The Order ID of the Account, within the XTrader connector. |
| Account | The connector account within the XTrader where order was placed from. |
| Instrument | The traded symbol (financial instrument). |
| Side | Order side – Buy or Sell. |
| Type | The order type: Market, Limit, Stop or StopOut. |
| TIF | The time-in-force setting for the order: FOK, IOC or GTC. |
| TTL | Time to live – duration of the order (in ms). |
| Min Size | The minimum accepted fill size specified in the order request. |
| Deviation | The maximum allowed deviation from the requested price, as sent with the order, in points; n/a means no deviation was sent with the order. |
| Order Size | The requested size of the order. |
| Order Price | The requested price of the order. |
| Order Id | XCore Order ID |
| Order Opened Date | The date on which the order was placed in the system. |
| Order Opened Full Time | The full time on which the order was placed in the system, which includes hour, minutes, seconds and milliseconds. |
| Order Closed Date | The date on which the order was closed in the system. |
| Order Closed Full Time | The full time on which the order was closed in the system, which includes hour, minutes, seconds and milliseconds. |
| Order Exec. | Order execution time in ms. |
| Order Fill Size | The volume of the order out of the requested size that was filled by the system. Note: In the event of partial filling, the fill size would be less than the requested size. |
| Order Fill Price | The price at which the order was filled in the system. |
| Order Slippage | Order slippage which is the difference between the filled and the requested price. |
| Order Status | The status of the order: pending, filled, partially filled, rejected, cancelled or timed out. |
| Comment | Additional information about the order which provides more details about the canceled orders. |
| Order Opened | The date and time on which the order was placed in the system. Includes date, hour, minutes, seconds and milliseconds. |
| Order Opened Short Time | The short time on which the order was placed in the system, which includes hour and minutes only. |
| Order Opened Long Time | The long time on which the order was placed in the system, which includes hour, minutes and seconds only. |
| Order Closed | The date and time on which the order closed in the system, which includes date, hour, minutes, seconds and milliseconds. |
| Order Closed Short Time | The short time on which the order was closed in the system, which includes hour and minutes only. |
| Order Closed Long Time | The long time on which the order was closed in the system, which includes hour, minutes and seconds only. |
Important: OrderHistory holds the history of orders up to the last two weeks.
