Settlement Model
XFX uses a Delivery-versus-Payment (DvP) settlement model for all trades. This ensures that funds are only released once the corresponding payment has been received and verified.
How settlement works
Step 1: Execute a trade
Once a trade is executed, it becomes a transaction awaiting settlement.
Step 2: Send your deposit
To settle the transaction, send a deposit to the XFX settlement details available in the XFX web dashboard.
Important
- Use only accounts that have been previously whitelisted with XFX as Trusted Accounts
- Deposits from non-whitelisted accounts will be rejected or delayed
Step 3: Include the transaction ID
Include the transaction ID in the payment reference fields. This allows our system to automatically match your deposit to the correct transaction and trigger settlement without manual intervention.
Step 4: Automatic payout
As soon as your deposit is detected and matched:
- The payout is automatically triggered
- Funds are settled to your designated payout account according to the SLAs defined in the Supported Currencies section
Tracking settlement through the API
GET /v1/customer/transactions/{transactionId} returns a settlement object with both legs of the transaction:
payins: your deposit. Amount due, received and outstanding, and a status:awaiting_deposit,partially_received,receivedorreceived_return_due(you sent more than due; XFX returns the difference).payouts: what XFX sends you. Amount, amount sent and outstanding, and a status:payout_not_sent,payout_partially_sentorpayout_sent.
Each leg lists its confirmed payments, with the reference to trace each one with: the IMAD for a wire, the transaction hash on-chain.
To follow a transaction, poll it and re-read it when updatedAt changes.
Reading the amounts
settlementamounts are strings, exact at the currency precision (2 decimals for USD and MXN, 6 for USDC and USDT). The transaction'sfromAmountandtoAmountare numbers rounded to 2 decimals.- A field that does not apply is absent, never
null.amountOutstandingis always present.- When one payment covers several of your transactions,
amountis the whole payment,amountAppliedthe part applied to this transaction, andappliesTolists every one of your transactions it covers, including this one.settlementis absent for cancelled or failed transactions, transactions settled through a settlement batch, and transactions settled before payment tracking began.
Important considerations
One trade = one settlementCurrently, each transaction must be settled individually with a corresponding deposit.
Many-to-many settlement coming soonWe are actively working on support for many-to-many settlement flows (e.g. one larger payment settling multiple transactions). Until this is available, ensure each trade is settled with a dedicated payment.
Settlement timing — Refer to the Supported Currencies section for detailed SLAs. Settlement speed depends on:
- The currency pair
- The payment rails used
- Cutoff times and banking hours
Operational best practices
Tips
- Always include the transaction ID in payment references
- Monitor transaction status via the Transactions API for confirmation
Updated about 1 month ago