OrderLite

Enter a new Order into the system.

Order Management Details

Metadata

  • Message Type: TransactionMessage
  • Message Number: 1102

Inherited fields

NameTypeSize (bytes)Description
MessageTypeInteger (unsigned)2The unique identifier of this message.
ClientIdInteger (unsigned)4The unique identifier of a session with the server, returned in a successful LoginReply message.
RequestIdInteger (unsigned)4Within each session each message must be uniquely identified by this field. It must be monotonically increasing for the duration of the session.

Fields

NameTypeSize (bytes)Description
ClOrdIDString60Client OrderId for FIX orders.
InstrumentMarketForeign key to InstrumentMarket8The Id of the InstrumentMarket for which the Order is being entered.
UserForeign key to User8If the Order is being entered on behalf of another User, this is the Id for that User. Otherwise set to 0.
SideOne of OrderSide1Whether this is a Buy (0) or a Sell (1).
TypeSet of OrderType4
PriceInteger (signed)8The price for the Order. It is entered as an integer with the decimal places implied. The number of decimals is given by the PriceDecimals of the InstrumentMarket for the Order.
TotalQuantityInteger (signed)8The total quantity for the Order. This is the absolute size of the Order inclusive of any hidden quantity. It is entered as an integer with the decimal places implied. The number of decimals is given by the QuantityDecimals of the InstrumentMarket for the Order.
HiddenQuantityInteger (signed)8The hidden quantity for the Order. This is the part of the total quantity that is initially hidden from the market. The number of decimals is given by the QuantityDecimals of the InstrumentMarket for the Order.
AccountForeign key to Account8The Id of the Account for the Order.
ExpiryDateInteger (signed)4The expiry date of the Order as an integer in the form YYYYMMDD. If there is no expiry date for the Order (for a Session, Day or Good Till Time Order), set to 0.
Only applies to Good Till Date orders.
ExpiryTimeInteger (signed)4The expiry time of the Order as an integer in the form HHMMSS. If there is no expiry time for the Order, set to 0.
Only applies to Good Till Time orders.

Permissions


Submit New Order Lite

{
	instrumentmarket: "test-im",
	side: OrderSide.Buy,
	type: OrderType.Limit + OrderType.GoodtillCancelled,
	price: 100,
	totalquantity: 1,
}

Permission Checks

PermissionActionTableScopeIndex
ViewInstrumentMarketInstance0
ViewMarketInstance0
EnterInstrumentMarketInstance0
ViewMarketInstance0
AllowBuyOrSellMarketInstance0

Test file: OrderLite