Submit a trade order
Submits a market order. side and quantity refer to the pair’s base currency. Pass a quote_id from POST /api/trading/quotes to trade at the locked price.
Authorizations
Your workspace client id.
All calls must include four headers:
X-Auth-Client— your workspace client idX-Auth-Timestamp— Unix secondsX-Auth-Nonce— 16-byte random hexX-Auth-Signature— hex(HMAC-SHA256({client_id}:{timestamp}:{nonce}:{raw_body}, client_secret))
The playground computes the timestamp, nonce and signature for you.
Your sandbox client secret. The playground uses it to sign the request in your browser and removes it before the request is sent. Never send your client secret as a header in your own integration.
Body
Base currency of the pair, for example BTC.
10^[A-Za-z]+$"BTC"
Positive decimal amount of the base currency, in major units unless quantity_in_base_units is true
"0.01"
Quote currency of the pair, for example NGN.
10^[A-Za-z]+$"USDT"
Relative to the base currency; upper-cased by the server
BUY, SELL, buy, sell Optional positive decimal price, quote currency per unit of base. Ignored for NGN pairs.
When true, quantity is in the base currency's smallest unit (for example satoshis)
Quote from POST /api/trading/quotes to fill against
100Your reference. Required for NGN pairs when quote_id is omitted, where it is the idempotency key.
100Response
Created
Successful responses are wrapped in this envelope, and so are errors a handler answers itself (request body and field validation, some not-found and conflict cases, ORG_NOT_ACTIVE): success is false and error carries a code and message. Errors raised by authentication and by the services behind a handler are a Problem instead.
true on success
When the response was written.
The payload; its shape is given per operation. Omitted when there is none.
Human-readable summary; omitted when empty.
List metadata. Page lists set page, per_page, total and total_pages; offset and cursor lists set limit, offset, has_more and next_cursor. Zero and empty fields are omitted, and metadata is absent when nothing is set.
Set on error envelopes: the request's correlation id (req_ followed by a UUID), the same value as the X-Correlation-ID response header. Quote it to support.