Create order
Creates an OTC order. The order is created in waiting_approval and doesn't execute until a second user approves it.
A market order executes at the current rate once approved. A limit order waits until the rate reaches target_rate, then executes once approved.
Set destination_type to control where the converted funds settle: an internal account, a crypto wallet, or a saved settlement instruction (ssi).
The Idempotency-Key header is required; requests without it are rejected.
Body Params
customer_idstringrequiredID of the customer the order is created for.
order_typestringrequiredAllowed:A
marketorder executes at the current rate once approved. Alimitorder waits until the rate reachestarget_rate, then executes once approved.marketlimitpairobjectrequiredamountstringrequiredAmount of the base currency to exchange. Must be greater than zero.
target_ratestringRequired for
limitorders. The rate at which the order should execute.sidestringAllowed:Side of the order. Defaults to
sell.buysellDefaults tosellsource_typestringAllowed:Where the funds come from. Fiat base currencies are funded from an
account; crypto base currencies from awallet.accountwalletsource_idstringID of the source account or wallet.
destination_typestringAllowed:Where the proceeds settle. Use
ssito settle to a saved settlement instruction.accountwalletssidestination_idstringID of the destination account, wallet, or settlement instruction.
Headers
Idempotency-KeystringrequiredA unique key to prevent duplicate requests. Required on all FX write operations; requests without it are rejected with a
400.