ApiTradeHistoryDTO
Description
Details of a previous trade for use in the Trade History.
Properties
Name | Type | Description | ||||
---|---|---|---|---|---|---|
OrderId | integer |
The order ID. |
||||
OpeningOrderIds | integer[] |
The orders that are being closed / part closed by this order. |
||||
MarketId | integer |
The market ID. |
||||
MarketName | string |
The name of the market. |
||||
Direction | string |
The direction of the trade, Buy or Sell. |
||||
OriginalQuantity | number
|
The original quantity of the trade, before part closures. |
||||
Quantity | number
|
The current quantity of the trade. |
||||
Price | number
|
The open price of the trade. |
||||
TradingAccountId | integer |
The Trading Account ID that the order is on. |
||||
Currency | string |
The trade currency. |
||||
RealisedPnl |
number
|
The realised profit and loss (P&L). |
||||
RealisedPnlCurrency | string |
The realised P&L currency. |
||||
LastChangedDateTimeUtc | string
|
Represents the date and time when the trade/order was last edited. Note: does not include things such as the current market price. |
||||
ExecutedDateTimeUtc | string
|
The time that the order was executed. |
||||
TradeReference | string |
An alternative trade reference. |
||||
ManagedTrades | ApiManagedTradeHistoryDTO[] |
The list of constituent trades for Trading Advisor managed positions (if applicable). |
||||
OrderReference | string | The order reference for this trade. | ||||
Source | string | The source for this trade i.e. FIX/MT4/G2. | ||||
IsCloseBy | boolean | Flag to indicate if this order was closed or used to close another order. | ||||
Liquidation | boolean | Flag to indicate if this order was placed to liquidate a position. | ||||
FixedInitialMargin | number
|
The fixed amount of trading resources used to place the trade. |
Last updated: 23 June 2022
Copyright © 2024 GAIN Capital