Optional
allowsOptional
allowsIf true, the comment can be edited by the user using session.prepareEditOrder
Optional
allowsIf true, the size of the order can be edited by using session.prepareEditOrder
Optional
allowsIf true, the validity of the order can be edited by using session.prepareEditOrder
Optional
bondonly for reading orders: if this is a bond, the currency ISO code to show for the size input field
Optional
brokerExchangeId, as defined by the broker (this must be used for order creations)
Optional
cancellationFor canceled orders: when the order has been canceled.
Optional
cancelledAlready cancelled size of the order.
Optional
cashCashFlow, in the portfolio's currency, that this order has produced.
Optional
cashOptional
clearingIf the prepared instrument's clearingAccountNoOptions is set, must be one of those values.
Optional
closeOptional
closeOptional
commentA textual comment assigned to the order.
Optional
commissionOptional
creationWhen the order has been created - set in OrderLists.
Optional
creationOptional
currentOptional
directionbuy/sell or (for CFD/FX: Long / Short)
Optional
entryCFD/FX entry direction (used by JFD)
Optional
exchangeWhen retrieving orders, the externally mapped exchange id. Note that for order creations, this may not be used (use brokerExchangeId).
Optional
exchange(in order lists) Name of the exchange, as provided by the broker.
Optional
executedThe timestamp of the latest execution.
Optional
executedAlready executed size of the order
Optional
executionsIf there already have been executions of this order, a list of those.
Optional
fallbackfallback instrument data, as provided by the broker (present if it is retrieved via getOrder or order lists).
Optional
hasIf 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).
Optional
idThe id of the order, (present if it is retrieved via getOrder or order lists).
Optional
ifOptional
instrumentinstrument data, as provided by the external instruments dependency (present if it is retrieved via getOrder or order lists).
Optional
instrumentInstrumentId, 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.
Optional
intentWhether 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).
Optional
isTrue if the order is cancellable.
Optional
isTrue if this order is part of a combination order, and it is possible to cancel all parts of the combination order.
Optional
isOptional
limitOptional
limitlimit (and stop etc.) currency to use for this order
Optional
mayIf true, the current stop value of this order can be observed. In this case, session.createCurrentStopValueObservable
can be used.
Optional
openRemaining/open size of the order
Optional
orderThe visible order number (as opposed to the ID). Some brokers display order numbers to users, and those may be different from the ID.
Optional
order(AllOrNone/Immediate or Cancel/Fill or Kill)
The OrderModel determines how the order is executed.
Optional
orderIf this is true
(for open orders only), this order is currently awaiting the execution of a parent order.
Optional
orderOrder status as text (may be broker-specific, only used for displaying it to users).
Optional
portfolioPortfolioId that this order belongs to (present if it is retrieved via getOrder or order lists).
Optional
profitIf provided by the broker, the absolute profit/loss this order has produced.
Optional
profitIf provided by the broker, the relative profit/loss this order has produced. 1 means +100%
Optional
pxOptional
pxOptional
pxOptional
pxOptional
pxOptional
pxWhen creating an order, the PxFee structure is used. For retrieving/order lists, see pxFeeValue
.
Optional
pxWhen retrieving an order, the absolute value is here. For order creation, see pxFee
Optional
pxIf 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.
Optional
pxOptional
pxOptional
pxFor PX trade history: the avg buy quote without fees.
Optional
pxFor PX trade history: the avg sell quote without fees.
Optional
pxFor PX trade history: duration of the trade
Optional
pxOrder IDs of all orders that have been aggregated to this trade.
Optional
pxOptional
quoteOptional
quoteIf supported by the broker, an optional limit can be added to a quote trade.
Optional
receiptIf 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.
Optional
sellIf sell must base on a specific position selected by the user (to be determined via session's getSellPositions
).
Optional
showOrder 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.
Optional
sizeOverall size of the order.
If all fields are set, should be openSize + executedSize + cancelledSize
.
Optional
sizeOptional
sizeCustom 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)
Optional
stateHadC speciality.
Optional
stopOptional
stopOptional
stopOptional
swapsOptional
symbolSymbol of the ordered instrument (used by CFD/FX broker)
Optional
takeOptional
tradethe avg buy quote without fees.
Optional
tradethe avg sell quote without fees.
Optional
tradeHistoric order list (used by HadC and CFDFX broker) Contains previous partly closed orders
Optional
tradingIf 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.
Optional
trailingOptional
trailingOptional
validity
If true, a comment can be included with a cancellation of the order. In that case, call
authorizeOrderCancellation
with aCancelOrderOpts.comment
.