Once you have a firm quote, submit it for execution. The swap settles atomically on the Kaia blockchain — either both sides complete or neither does. Settlement is immediate and irreversible.Documentation Index
Fetch the complete documentation index at: https://docs.ratiofx.com/llms.txt
Use this file to discover all available pages before exploring further.
Check system state first
Before executing, you can verify corridor availability with the system state endpoint:State definitions
| State | Meaning |
|---|---|
NORMAL | Full functionality. Standard spreads. Both directions available. |
PROTECT | Spreads widened. Max size reduced. Both directions still available. |
RESTRICT | Maximum spread. One direction only. Reduced max size. |
HALT | No new quotes accepted. Existing positions settle normally. |
Execute a swap
The
quote_id returned from POST /v1/firm-quote. Each quote ID can only be executed once.Execution amount in the source currency. Must be less than or equal to the quote’s
max_size.On-chain Kaia wallet address to receive the output stablecoin.
Your internal reference for reconciliation. Included in webhook payloads and settlement records.
Example request
Response
Response fields
Unique execution identifier.
The firm quote that was executed.
Settlement status.
SETTLED means the transaction is confirmed on-chain.Actual execution rate.
Amount debited in source currency.
Amount credited in destination currency.
Total platform fee charged, in source currency.
ISO 8601 timestamp of on-chain settlement.
DIRECT or EXTERNAL_RFQ.System state at the time of execution.
Settlement finality
Thetx_hash can be independently verified on the Kaia block explorer.
Common error cases
| Error | Cause | Resolution |
|---|---|---|
QUOTE_EXPIRED | Execution attempted after expiry_timestamp | Request a new firm quote |
QUOTE_HALTED | System entered HALT state between quote and execution | Wait for system recovery; monitor GET /v1/system/state |
BELOW_MIN_TRANSACTION_SIZE | Amount is below the corridor minimum | Increase amount to meet the minimum for this corridor |