Ratio provides a REST API for partners to request FX quotes, execute swaps, and receive settlement confirmations. This page covers authentication, rate limits, and the complete integration flow.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.
Base URLs
| Environment | Base URL | Description |
|---|---|---|
| Sandbox | https://api.sandbox.ratiofx.com | Kaia Kairos testnet. No real funds. |
| Production | https://api.ratiofx.com | Kaia mainnet. Live funds. |
/v1/.
- Sandbox
- Production
Use the sandbox environment to build and test your integration. All stablecoins are test tokens with no real value. Sandbox API keys are issued alongside production keys during onboarding.
Authentication
Every API request requires two headers:| Header | Value | Description |
|---|---|---|
Authorization | Bearer {api_key} | API key issued during partner onboarding |
X-Partner-ID | {partner_id} | Partner UUID for fee routing and audit trail |
Content-Type | application/json | Required for all request bodies |
Rate limits
| Tier | Requests per second | Burst |
|---|---|---|
| Standard | 10 req/s | 20 req burst |
| Premium | 50 req/s | 100 req burst |
429 with a Retry-After header indicating the number of seconds to wait before retrying.
Integration flow
Get an indicative quote
Call
GET /v1/quote to retrieve a reference price for a currency pair. Use this to display approximate rates to your users before they commit to a trade.Indicative quotes →Request a firm quote
Call
POST /v1/firm-quote to lock an executable rate with inventory reservation. The quote carries a hard expiry timestamp — typically 30–60 seconds.Firm quotes →Execute the swap
Call
POST /v1/execute with the quote_id from the firm quote. The swap settles atomically on the Kaia blockchain.Executing swaps →Receive settlement confirmation
Settlement status is returned synchronously in the execute response. Ratio also delivers webhook callbacks for asynchronous confirmation.Settlements & webhooks →
Step 1 is optional. You can skip directly to a firm quote if you don’t need to preview pricing for your users.
Partner configuration
During onboarding, Ratio configures the following parameters for each partner:| Parameter | Description |
|---|---|
| Corridors enabled | Which currency pairs the partner can access |
| Daily volume limit | Maximum daily volume per corridor |
| Monthly volume limit | Maximum aggregate monthly volume |
| Fee tier overrides | Custom pricing for specific corridors and tiers (if applicable) |
| Webhook URL | Endpoint for settlement and event callbacks |
| Wallet whitelist | Kaia addresses approved for LP deposits and withdrawals |