OrderStatus

OrderStatus is the domain of state information about an Order.

Concepts

Orders can have an extended working life in MarketGrid. For example an Order may be;

  • created
  • amended
  • held
  • released (returned to the order book)
  • partially matched
  • removed from the order book by the system when the market closes for the day
  • returned to the order book when the market opens again.

As such, an Order might have several "states" at the same time. The OrderStatus domain describes all the possible states that an Order may have at any particular time.

Metadata

  • Underlying type: u32

Values

KeyValueDescription
Matched1The Order has been matched, at least partially.
Amended2The Order has been amended. This is a terminal state for this record. The newly amended Order will continue on.
Cancelled4The Order has been cancelled by User action.
Withdrawn8The Order has been withdrawn as a result of system action.
Held256The Order has been removed from the live order book.
Rejected512The Order has been rejected as a part of the business process. For example a reported trade that the counterparty has rejected.
BuyRejected1024The Order has been rejected as a part of the business process. For example a reported trade that the counterparty has rejected. This indicates more information in that the buyer caused the rejection
SellRejected2048The Order has been rejected as a part of the business process. For example a reported trade that the counterparty has rejected. This indicates more information in that the seller caused the rejection
BlotterHeld4096The Order has been removed from the live order book into a specific Blotter.
PegInactive8192The Order is a pegged order that cannot currently be placed into the live market due to it's current constraints (eg price)
Live65536The Order is live in the market.
Active131072The Order is in a non terminal state.
Suspended262144The Order has been removed from the live market whilst the system runs internal procesess (for example changing the Market Session).
Pending524288The Order has been placed into a pending state either because it was raised with OrderType.Pending or it is awaiting the completion of some other process before it can be made live.
ReportPending1048576The Order is part of a reported Trade and it is awaiting the confirmation of the reporting side.
ReportWaiting2097152The Order is part of a reported Trade and it is awaiting the confirmation of the non-reporting side.
NotTrading2147483648The target InstrumentMarket for the Order is not currently trading when the system tried to add the Order to the order book.

Referenced by

Tables

TableFieldDescription
Level3_changeOrderStatus
OrderOrderStatus
Order_changeOrderStatus
Order_full_changeOrderStatus
OrderNotionalOrderStatus
OrderNotional_changeOrderStatus
OrderRoutingStatusOrderStatus
RFQOrderStatus
RFQ_changeOrderStatus
TradeReport_changeOrderStatus

Messages

MessageFieldDescription
OneSideReportReplyStatus
OrderAmendReplyStatus
OrderLiteReplyStatus
OrderNewReplyStatus
OrderStatusSetStatusThis is the mask of values to which the Status of the Orders will be set if this transaction is successful.
TwoSideReportConfirmReplyStatus