pub struct Position {
pub instrument: Option<InstrumentName>,
pub pl: Option<Decimal>,
pub unrealized_pl: Option<Decimal>,
pub margin_used: Option<Decimal>,
pub resettable_pl: Option<Decimal>,
pub financing: Option<Decimal>,
pub commission: Option<Decimal>,
pub dividend_adjustment: Option<Decimal>,
pub guaranteed_execution_fees: Option<Decimal>,
pub long: Option<PositionSide>,
pub short: Option<PositionSide>,
}Expand description
The specification of a Position within an Account.
Fields§
§instrument: Option<InstrumentName>The Position’s Instrument.
pl: Option<Decimal>Profit/loss realized by the Position over the lifetime of the Account.
unrealized_pl: Option<Decimal>The unrealized profit/loss of all open Trades that contribute to this Position.
margin_used: Option<Decimal>Margin currently used by the Position.
resettable_pl: Option<Decimal>Profit/loss realized by the Position since the Account’s resettablePL was last reset by the client.
financing: Option<Decimal>The total amount of financing paid/collected for this instrument over the lifetime of the Account.
commission: Option<Decimal>The total amount of commission paid for this instrument over the lifetime of the Account.
dividend_adjustment: Option<Decimal>The total amount of dividend adjustment paid for this instrument over the lifetime of the Account.
guaranteed_execution_fees: Option<Decimal>The total amount of fees charged over the lifetime of the Account for the execution of guaranteed Stop Loss Orders for this instrument.
long: Option<PositionSide>The details of the long side of the Position.
short: Option<PositionSide>The details of the short side of the Position.