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
format decimal

The original quantity of the trade, before part closures.

Quantity number
format decimal

The current quantity of the trade.

Price number
format decimal

The open price of the trade.

TradingAccountId integer

The Trading Account ID that the order is on.

Currency string

The trade currency.

RealisedPnl

number

nullable true
format decimal

The realised profit and loss (P&L).

RealisedPnlCurrency string

The realised P&L currency.

LastChangedDateTimeUtc string
format wcf-date

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
format wcf-date

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
format decimal
The fixed amount of trading resources used to place the trade.

 

Last updated: 23 June 2022

 

 

 

Copyright © 2024 GAIN Capital