@somnia-chain/markets-sdk / index / ORDER_TYPE
Variable: ORDER_TYPE
constORDER_TYPE:object
Defined in: trade.ts:279
OrderBook OrderType — shared by binary placeOrder and spot placeSpotOrder
(both ride the same OrderBook core): 0 NormalOrder (limit), 1 FillOrKill,
2 ImmediateOrCancel (market), 3 PostOnly. Pass to either call's orderType.
Type Declaration
LIMIT
readonlyLIMIT:0=0
0 — NormalOrder: fill what crosses, rest the remainder on the book.
FILL_OR_KILL
readonlyFILL_OR_KILL:1=1
1 — FillOrKill: fill the full quantity immediately, or place nothing.
MARKET
readonlyMARKET:2=2
2 — ImmediateOrCancel: fill what crosses now, cancel the remainder.
POST_ONLY
readonlyPOST_ONLY:3=3
3 — PostOnly: rest only — never takes liquidity.