pub struct PositionSide {
pub units: Option<Decimal>,
pub average_price: Option<Decimal>,
pub trade_ids: Option<Vec<TradeID>>,
pub pl: Option<Decimal>,
pub unrealized_pl: Option<Decimal>,
pub resettable_pl: Option<Decimal>,
pub financing: Option<Decimal>,
pub dividend_adjustment: Option<Decimal>,
pub guaranteed_execution_fees: Option<Decimal>,
}Expand description
The representation of a Position for a single direction (long or short).
Fields§
§units: Option<Decimal>Number of units in the position (negative value indicates short position, positive indicates long position).
average_price: Option<Decimal>Volume-weighted average of the underlying Trade open prices for the Position.
trade_ids: Option<Vec<TradeID>>List of the open Trade IDs which contribute to the open Position.
pl: Option<Decimal>Profit/loss realized by the PositionSide over the lifetime of the Account.
unrealized_pl: Option<Decimal>The unrealized profit/loss of all open Trades that contribute to this PositionSide.
resettable_pl: Option<Decimal>Profit/loss realized by the PositionSide since the Account’s resettablePL was last reset by the client.
financing: Option<Decimal>The total amount of financing paid/collected for this PositionSide over the lifetime of the Account.
dividend_adjustment: Option<Decimal>The total amount of dividend adjustment paid for the PositionSide 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 attached to Trades for this PositionSide.