Orders
Submit Order
Place an order on a commodity order book
POST
Submits an order to a commodity book. Supports limit and market orders with configurable time in force.
The endpoint is documented here because the book-level checks in front of that refusal are real, and because this is the request shape the venue will accept when an operator-signed lock path returns.
Body Parameters
string
required
Target order book. Must be a book your instance owns or has imported.
string
required
Wallet placing the order.
string
required
BUY or SELL.string
required
LIMIT or MARKET. A LIMIT order requires price.string
Limit price in order book units, as a digit-only string. Required for
LIMIT, ignored for MARKET.string
required
Base quantity in order book units, as a digit-only string. Must sit between the book’s
minOrderSize and maxOrderSize.string
default:"GTC"
GTC rests until filled or cancelled. IOC fills what it can immediately and cancels the rest. FOK must fill entirely or is cancelled.string
Optional signature over
message, verified against userAddress. Up to 256 characters.string
The signed payload. Only checked when
signature is also present. Up to 512 characters.Response Fields
This is the shape the endpoint returns once execution is available. It answers201.
object
Error Codes
These are the refusals the endpoint can currently return. The checks that price, size and balance an order are behind the settlement refusal, so they are not reachable today.
When execution returns, the order-level refusals will be those the other venues already raise:
ORDER_TOO_SMALL, ORDER_TOO_LARGE, PRICE_REQUIRED, INVALID_QUANTITY, INVALID_PRICE, PRICE_OUTSIDE_BAND, INSUFFICIENT_CUSTODY_BALANCE, NO_CUSTODY_CONTRACT, NO_LIQUIDITY, INVALID_SIGNATURE, BASE_TOKEN_NOT_SUPPORTED, QUOTE_TOKEN_NOT_SUPPORTED, PRICE_REF_STALE and PRICE_REF_UNAVAILABLE.