Skip to main content
market
string
required

Market id.

Example:

"12"

ord_type
enum<string>
required
Available options:
limit,
market
Example:

"limit"

side
enum<string>
required

The OUTCOME this order is about — never buy/sell. Pair it with direction: a sell of yes and a buy of no are different orders that happen to sit on the same side of the book.

Available options:
yes,
no
Example:

"yes"

signed_order
object
required

The EIP-712-signed order. Validated before anything is placed — a signature the server cannot verify is rejected, never rested.

volume
string
required

Number of shares.

Example:

"100"

direction
enum<string>

Whether you are opening or closing. buy posts collateral and acquires the outcome; sell offers outcome tokens you already hold, so it locks INVENTORY rather than cash and its locked is zero. Defaults to buy, which is how every order behaved before position exit. See /account/positions for how much of a holding is sellable.

Available options:
buy,
sell
Example:

"buy"

ioc
boolean

Immediate-or-cancel. Set it on a marketable order — the "market" order a signed wallet has to send as a limit at a price ceiling: whatever the book cannot fill on arrival is refunded instead of resting at that ceiling. Ignored together with post_only. Recorded on the order as ioc.

Example:

false

post_only
boolean

Reject the order if it would take liquidity. A post-only order reserves no taker fee, because it can only ever rest as a maker.

Example:

false

price
string

Limit price, 0.01–0.99, in whole cents (e.g. 0.27, not 0.275) — an order finer than the market precision is rejected, not rounded. Required for a limit order.

Example:

"0.60"