Reference / @getenginex/sdk-predictions / MarketOrderInput
MarketOrderInput
Market order: executes against the book immediately. price is optional and, when omitted, the SDK sends 0 (which is what the production player app sends). A non-zero price is interpreted by the predictions service, not by the gateway: use it only if you know what it does. When given, an integer from 0 to 99.
Extends
Properties
direction
direction:
"buy"|"sell"
buy or sell.
Inherited from
marketId
marketId:
string
Market id.
Inherited from
orderType
orderType:
"market"
Market order.
postOnly?
optionalpostOnly?:boolean
Rejects the order if it would cross the spread (only adds liquidity). Boolean.
Inherited from
price?
optionalprice?:number
Optional; when omitted it goes as 0. When given, an integer from 0 to 99.
quantity
quantity:
number
Quantity in contracts, an integer greater than zero.
Inherited from
reduceOnly?
optionalreduceOnly?:boolean
The order can only reduce an existing position. Boolean.
Inherited from
side
side:
OutcomeSide
Market side: yes or no.
Inherited from
timeInForce?
optionaltimeInForce?:"gtc"|"ioc"|"fok"
gtc (default), ioc or fok.