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
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.