Skip to main content
A single reference for the values the trading API returns. For the flow that produces them, see How trading works.

Order fields

Returned by Get order by id or reference and List orders.
Amounts and prices are decimal strings, not numbers. Parse them with a decimal type, never a float. See Currencies and amounts.

Order status values

Treat only filled as success, and confirm from a lookup or a webhook rather than from the submission response. side is submitted in upper case (BUY, SELL) and may be echoed in lower case in some responses, so compare case-insensitively.

Webhook events

Two events carry every trade outcome. Full payloads and the handler checklist are on Receive trade webhooks.

Webhook payload fields

data.tradeId is null on trade.failed. Key your records on reference, which is present on both events, or a failed trade cannot be matched to the order that produced it.

Failure reasons

reason carries the cause on trade.failed. The two documented values are Quote expired and Insufficient balance. For how to respond to each, see Handle trading failures.