OptionalallowsOptionalallowsIf true, the comment can be edited by the user using session.prepareEditOrder
OptionalallowsIf true, the size of the order can be edited by using session.prepareEditOrder
OptionalallowsIf true, the validity of the order can be edited by using session.prepareEditOrder
Optionalbondonly for reading orders: if this is a bond, the currency ISO code to show for the size input field
OptionalbrokerExchangeId, as defined by the broker (this must be used for order creations)
OptionalcancellationFor canceled orders: when the order has been canceled.
OptionalcancelledAlready cancelled size of the order.
OptionalcashCashFlow, in the portfolio's currency, that this order has produced.
OptionalcashOptionalclearingIf the prepared instrument's clearingAccountNoOptions is set, must be one of those values.
OptionalcloseOptionalcloseOptionalcommentA textual comment assigned to the order.
OptionalcommissionOptionalcreationWhen the order has been created - set in OrderLists.
OptionalcreationOptionalcurrentOptionaldirectionbuy/sell or (for CFD/FX: Long / Short)
OptionalentryCFD/FX entry direction (used by JFD)
OptionalexchangeWhen retrieving orders, the externally mapped exchange id. Note that for order creations, this may not be used (use brokerExchangeId).
Optionalexchange(in order lists) Name of the exchange, as provided by the broker.
OptionalexecutedThe timestamp of the latest execution.
OptionalexecutedAlready executed size of the order
OptionalexecutionsIf there already have been executions of this order, a list of those.
Optionalfallbackfallback instrument data, as provided by the broker (present if it is retrieved via getOrder or order lists).
OptionalfeeFees paid ffor the order / summarized trade.
OptionalhasIf 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).
OptionalidThe id of the order, (present if it is retrieved via getOrder or order lists).
OptionalifOptionalinstrumentinstrument data, as provided by the external instruments dependency (present if it is retrieved via getOrder or order lists).
OptionalinstrumentInstrumentId, 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.
OptionalintentWhether 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).
OptionalisTrue if the order is cancellable.
OptionalisTrue if this order is part of a combination order, and it is possible to cancel all parts of the combination order.
OptionalisOptionallimitOptionallimitlimit (and stop etc.) currency to use for this order
OptionalmayIf true, the current stop value of this order can be observed. In this case, session.createCurrentStopValueObservable can be used.
OptionalopenRemaining/open size of the order
OptionalorderThe visible order number (as opposed to the ID). Some brokers display order numbers to users, and those may be different from the ID.
Optionalorder(AllOrNone/Immediate or Cancel/Fill or Kill)
The OrderModel determines how the order is executed.
OptionalorderIf this is true (for open orders only), this order is currently awaiting the execution of a parent order.
OptionalorderOrder status as text (may be broker-specific, only used for displaying it to users).
OptionalportfolioPortfolioId that this order belongs to (present if it is retrieved via getOrder or order lists).
OptionalprofitIf provided by the broker, the absolute profit/loss this order has produced.
OptionalprofitOptionalprofitIf provided by the broker, the relative profit/loss this order has produced. 1 means +100%
OptionalprofitOptionalpxOptionalpxOptionalpxOptionalpxOptionalpxOptionalpxWhen creating an order, the PxFee structure is used. For retrieving/order lists, see pxFeeValue.
OptionalpxWhen retrieving an order, the absolute value is here. For order creation, see pxFee
OptionalpxIf this is an executed PX order, the transaction will be exposed as the order object. However, internally there are two entities:
order)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.
OptionalpxOptionalpxOptionalpxFor PX trade history: the avg buy quote without fees.
OptionalpxFor PX trade history: the avg sell quote without fees.
OptionalpxFor PX trade history: duration of the trade
OptionalpxOrder IDs of all orders that have been aggregated to this trade.
OptionalpxOptionalquoteOptionalquoteIf supported by the broker, an optional limit can be added to a quote trade.
OptionalreceiptIf 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.
OptionalsellIf sell must base on a specific position selected by the user (to be determined via session's getSellPositions).
OptionalshowOrder 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.
OptionalsizeOverall size of the order.
If all fields are set, should be openSize + executedSize + cancelledSize.
OptionalsizeOptionalsizeCustom 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)
OptionalstateHadC speciality.
OptionalstopOptionalstopOptionalstopOptionalswapsOptionalsymbolSymbol of the ordered instrument (used by CFD/FX broker)
OptionaltakeOptionaltaxtaxes paid for the order / summarized trade.
Optionaltradethe avg buy quote without fees.
Optionaltradethe avg sell quote without fees.
Optionaltradedset for brokerize trades
OptionaltradeHistoric order list (used by HadC and CFDFX broker) Contains previous partly closed orders
OptionaltradingIf 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.
OptionaltrailingOptionaltrailingOptionaltransactiontaxes paid for the order / summarized trade.
Optionalvalidity
If true, a comment can be included with a cancellation of the order. In that case, call
authorizeOrderCancellationwith aCancelOrderOpts.comment.