Chartbreaker
    Preparing search index...

    Interface Order

    interface Order {
        allowsCancellationComment?: boolean;
        allowsEditComment?: boolean;
        allowsEditSize?: boolean;
        allowsEditValidity?: boolean;
        bondCurrencyIso?: string;
        brokerExchangeId?: string;
        cancellationDateTime?: Date;
        cancelledSize?: string;
        cashFlow?: Amount;
        cashQuotation?: CashQuotation;
        clearingAccountNo?: string;
        closeDateTime?: Date;
        closeQuotation?: string;
        comment?: string;
        commission?: string;
        creationDateTime?: Date;
        creationQuotation?: string;
        currentStop?: Amount;
        direction?: Direction;
        entry?: Entry;
        exchangeId?: string;
        exchangeName?: string;
        executedAt?: Date;
        executedSize?: string;
        executions?: OrderExecution[];
        fallbackInstrument?: Partial<
            { isin: string; name: string; symbol: string; wkn: string },
        >;
        hasNoOrderReceipt?: boolean;
        id?: string;
        ifDoneLimit?: string;
        instrument?: Instrument;
        instrumentId?: string;
        intent?: OrderIntent;
        isCancellable?: boolean;
        isCancellableAll?: boolean;
        isEditable?: boolean;
        limit?: string;
        limitCurrencyIso?: string;
        mayObserveCurrentStop?: boolean;
        openSize?: string;
        orderDisplayNo?: string;
        orderExtension?: OrderExtension;
        orderModel: OrderModel;
        orderStatusIsAwaitingParentOrder?: boolean;
        orderStatusText?: string;
        portfolioId?: string;
        profitLossAbs?: Amount;
        profitLossRel?: string;
        pxAdminOverride?: boolean;
        pxArticleId?: number;
        pxCrossRate?: string;
        pxDateTime?: Date;
        pxExpertDisclosure?: boolean;
        pxFee?: PxFee;
        pxFeeValue?: string;
        pxOriginalOrderId?: number;
        pxQuote?: string;
        pxRelatedStreampost?: number;
        pxTradeAvgBuyQuote?: Amount;
        pxTradeAvgSellQuote?: Amount;
        pxTradeHoldingPeriodInDays?: number;
        pxTradeOrderIds?: string[];
        pxTransactionType?: PxTransactionType;
        quoteDecimals?: number;
        quoteLimit?: string;
        receiptNotRetrievableById?: boolean;
        sellPositionId?: string;
        showAsDisabled?: boolean;
        size?: string;
        sizeDecimals?: number;
        sizeUnit?: string;
        state?: "active" | "closed";
        stop?: string;
        stopLimit?: string;
        stopLoss?: string;
        swaps?: string;
        symbol?: string;
        takeProfit?: string;
        tradeAvgBuyQuote?: Amount;
        tradeAvgSellQuote?: Amount;
        tradeHistory?: Order[];
        tradingViaCryptoService?: boolean;
        trailingDistance?: TrailingDistance;
        trailingLimitTolerance?: string;
        validity?: OrderValidity;
        [key: string]: any;
    }

    Indexable

    • [key: string]: any
    Index

    Properties

    allowsCancellationComment?: boolean

    If true, a comment can be included with a cancellation of the order. In that case, call authorizeOrderCancellation with a CancelOrderOpts.comment.

    allowsEditComment?: boolean

    If true, the comment can be edited by the user using session.prepareEditOrder

    allowsEditSize?: boolean

    If true, the size of the order can be edited by using session.prepareEditOrder

    allowsEditValidity?: boolean

    If true, the validity of the order can be edited by using session.prepareEditOrder

    bondCurrencyIso?: string

    only for reading orders: if this is a bond, the currency ISO code to show for the size input field

    brokerExchangeId?: string

    ExchangeId, as defined by the broker (this must be used for order creations)

    cancellationDateTime?: Date

    For canceled orders: when the order has been canceled.

    cancelledSize?: string

    Already cancelled size of the order.

    cashFlow?: Amount

    CashFlow, in the portfolio's currency, that this order has produced.

    cashQuotation?: CashQuotation
    clearingAccountNo?: string

    If the prepared instrument's clearingAccountNoOptions is set, must be one of those values.

    closeDateTime?: Date
    closeQuotation?: string
    comment?: string

    A textual comment assigned to the order.

    commission?: string
    creationDateTime?: Date

    When the order has been created - set in OrderLists.

    creationQuotation?: string
    currentStop?: Amount
    direction?: Direction

    buy/sell or (for CFD/FX: Long / Short)

    Optionalentry

    entry?: Entry

    CFD/FX entry direction (used by JFD)

    exchangeId?: string

    When retrieving orders, the externally mapped exchange id. Note that for order creations, this may not be used (use brokerExchangeId).

    exchangeName?: string

    (in order lists) Name of the exchange, as provided by the broker.

    executedAt?: Date

    The timestamp of the latest execution.

    executedSize?: string

    Already executed size of the order

    executions?: OrderExecution[]

    If there already have been executions of this order, a list of those.

    fallbackInstrument?: Partial<
        { isin: string; name: string; symbol: string; wkn: string },
    >

    fallback instrument data, as provided by the broker (present if it is retrieved via getOrder or order lists).

    hasNoOrderReceipt?: boolean

    If this is true, it is not possible to show a receipt for this order (this is the case if order data is incomplete in order lists).

    id?: string

    The id of the order, (present if it is retrieved via getOrder or order lists).

    ifDoneLimit?: string
    instrument?: Instrument

    instrument data, as provided by the external instruments dependency (present if it is retrieved via getOrder or order lists).

    instrumentId?: string

    InstrumentId, as defined by the external dependency (if applicable for the type of order). Only present if the instrument could be matched using the external instruments API. For creation of orders, this must be set.

    intent?: OrderIntent

    Whether this order is supposed to open or close a position. If PreparedTrade.availableOrderIntents (and/or the corressponding subscription via availableOrderIntentsToken) is available, it should be set.

    Set it to close for orders that are supposed to close an existing position. Note that this is independent of the order's direction (e.g. a short position is closed by a buy order).

    OrderCreate

    isCancellable?: boolean

    True if the order is cancellable.

    isCancellableAll?: boolean

    True if this order is part of a combination order, and it is possible to cancel all parts of the combination order.

    isEditable?: boolean
    limit?: string
    limitCurrencyIso?: string

    limit (and stop etc.) currency to use for this order

    mayObserveCurrentStop?: boolean

    If true, the current stop value of this order can be observed. In this case, session.createCurrentStopValueObservable can be used.

    openSize?: string

    Remaining/open size of the order

    orderDisplayNo?: string

    The visible order number (as opposed to the ID). Some brokers display order numbers to users, and those may be different from the ID.

    orderExtension?: OrderExtension

    (AllOrNone/Immediate or Cancel/Fill or Kill)

    orderModel: OrderModel

    The OrderModel determines how the order is executed.

    orderStatusIsAwaitingParentOrder?: boolean

    If this is true (for open orders only), this order is currently awaiting the execution of a parent order.

    orderStatusText?: string

    Order status as text (may be broker-specific, only used for displaying it to users).

    portfolioId?: string

    PortfolioId that this order belongs to (present if it is retrieved via getOrder or order lists).

    profitLossAbs?: Amount

    If provided by the broker, the absolute profit/loss this order has produced.

    profitLossRel?: string

    If provided by the broker, the relative profit/loss this order has produced. 1 means +100%

    pxAdminOverride?: boolean
    pxArticleId?: number
    pxCrossRate?: string
    pxDateTime?: Date
    pxExpertDisclosure?: boolean
    pxFee?: PxFee

    When creating an order, the PxFee structure is used. For retrieving/order lists, see pxFeeValue.

    pxFeeValue?: string

    When retrieving an order, the absolute value is here. For order creation, see pxFee

    pxOriginalOrderId?: number

    If this is an executed PX order, the transaction will be exposed as the order object. However, internally there are two entities:

    • the original order (in database table order)
    • the resulting transaction (in database table transaction)

    Clients normally do not need to know this, but there is a special case (assigning a stream post to an order afterwards), where the information is required. Note that this is subject to change - this could be improved by adding an assignStreampost() to PxSession which abstracts this away.

    pxQuote?: string
    pxRelatedStreampost?: number
    pxTradeAvgBuyQuote?: Amount

    For PX trade history: the avg buy quote without fees.

    pxTradeAvgSellQuote?: Amount

    For PX trade history: the avg sell quote without fees.

    pxTradeHoldingPeriodInDays?: number

    For PX trade history: duration of the trade

    pxTradeOrderIds?: string[]

    Order IDs of all orders that have been aggregated to this trade.

    pxTransactionType?: PxTransactionType
    quoteDecimals?: number
    quoteLimit?: string

    If supported by the broker, an optional limit can be added to a quote trade.

    receiptNotRetrievableById?: boolean

    If this is present and true, a receipt can be shown for the order, but it cannot be retrieved using getOrder (which also means it is not possible to link to the current state of the order). Therefore this order object can simply be serialized and shown as a receipt.

    sellPositionId?: string

    If sell must base on a specific position selected by the user (to be determined via session's getSellPositions).

    showAsDisabled?: boolean

    Order is visible, but it cannot be interacted with (e.g. because it is the discarded part of a combination order). It should be displayed to the user, but visibily disabled.

    size?: string

    Overall size of the order. If all fields are set, should be openSize + executedSize + cancelledSize.

    sizeDecimals?: number
    sizeUnit?: string

    Custom unit for the size field. Used by CFD/FX broker to show different units (like CFDs, Lots, etc.) or brokers where different sizeUnits are possible (according to preparedInstrument.sizeUnitsByClearingAccountNo)

    state?: "active" | "closed"

    HadC speciality.

    stop?: string
    stopLimit?: string
    stopLoss?: string
    swaps?: string
    symbol?: string

    Symbol of the ordered instrument (used by CFD/FX broker)

    takeProfit?: string
    tradeAvgBuyQuote?: Amount

    the avg buy quote without fees.

    tradeAvgSellQuote?: Amount

    the avg sell quote without fees.

    tradeHistory?: Order[]

    Historic order list (used by HadC and CFDFX broker) Contains previous partly closed orders

    tradingViaCryptoService?: boolean

    If true, order changes and cancellations for this order must be directed to an external service. This is handled internally. However, the frontend must display the information to the user according to this flag.

    trailingDistance?: TrailingDistance
    trailingLimitTolerance?: string
    validity?: OrderValidity