This version (v0.7) has not been published to npm yet.
Skip to content

Reference / @getenginex/sdk-predictions / OrderInputBase

OrderInputBase ​

Fields common to every new order (limit or market).

Extended by ​

Properties ​

direction ​

direction: "buy" | "sell"

buy or sell.


marketId ​

marketId: string

Market id.


postOnly? ​

optional postOnly?: boolean

Rejects the order if it would cross the spread (only adds liquidity). Boolean.


quantity ​

quantity: number

Quantity in contracts, an integer greater than zero.


reduceOnly? ​

optional reduceOnly?: boolean

The order can only reduce an existing position. Boolean.


side ​

side: OutcomeSide

Market side: yes or no.


timeInForce? ​

optional timeInForce?: "gtc" | "ioc" | "fok"

gtc (default), ioc or fok.