IHistoricalPositionView

Interface for defining the properties common to private and public views of historical positions.

  • Name Type Description
    AccountId AccountId ID/Name of the account on which the position was traded.
    Amount Number The amount held by the position.
    AmountAccountValueCloseRatio String The relative value of the Closed Position compared to the account at the time of the position closing.
    AmountAccountValueOpenRatio String The relative value of the Closed Position compared to the account at the time of the position creation.
    ClosingAssetType AssetType of instrument of closing trade.
    ClosingDisplayHint DisplayHintType Provides to UI for closing trade.
    ClosingTradeDate Date The date the clsing trade was executed.
    ClosingValueDate Date The value date of the opening trade.
    CopiedFrom String The position id of the position that has been copied.
    CorrelationType CorrelationType The correlation type of the historical position.
    Decimals Integer Number of Decimals.
    ExecutionTimeClose UtcDateTime UTC date and time of when the position was closed.
    ExecutionTimeOpen UtcDateTime UTC date and time of when the position was opened.
    ExpiryDate Date The date the option expires.
    InstrumentSymbol String The Instrument symbol.
    LongShort LongOrShort Indicates whether it is a long or a short position.
    LowerBarrier Number Lower barrier for options.
    OpeningAssetType AssetType of instrument of opening trade.
    OpeningDisplayHint DisplayHintType Provides to UI for opening trade.
    OpeningTradeDate Date The date the opening trade was executed.
    OpeningValueDate Date The value date of the opening trade.
    PipsGainPerInstrumentUnit Number The pips or decipips Only applicable for FX
    PriceClose Number At what price was the posision closed (in instrument base currency).
    PriceGain Number The difference between opening and closing price in percent.
    PriceOpen Number At what price was the position opened (in instrument base currency).
    PricePct Number Percentage gain between the opening price and the closing price. The percentage gained is taking the 'short' / 'long' information into account. A price drops for a 'short' positions yields a positive price gain where as a price drop for a 'long' position yields a negative price gain. The reverse is true a price increase is registred. Return Percentage value from decimal fraction, e.g. 100% for 1, 50% for 0.50
    ProfitLoss Number The P/L of the position in absolute amount.
    ProfitLossAccountValueFraction Number The P/L over account value EOD previous day.
    PutCall PutCall Option type.
    StrikePrice Number The strike price of the option.
    Uic Uic Unique instrument code.
    UpperBarrier Number Upper barrier for options.