A firm quote returns an executable BID/ASK price with a hard expiry timestamp. Unlike indicative quotes, firm quotes reserve inventory — guaranteeing that the quoted rate is available for execution until the quote expires.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.
When to use
- Your user has confirmed they want to execute a transfer
- You need a binding rate to display before the final confirmation step
- You’re building a two-step flow: preview rate → confirm → execute
Request
Currency pair to quote. Supported values:
USD-IDR, USD-SGD, MYR-IDR.Trade direction.
BUY or SELL.Notional amount in the source currency.
Must be
FIRM.Your internal reference for reconciliation. Included in webhook payloads and settlement records.
Example request
Response
Response fields
Unique quote identifier. Pass this to
POST /v1/execute to execute the swap.Currency pair.
Trade direction.
Notional in source currency.
Bid price — the rate at which the FX Engine buys the base currency.
Ask price — the rate at which the FX Engine sells the base currency.
Oracle mid-rate after inventory adjustment.
Total spread in basis points.
ISO 8601 hard expiry. The quote cannot be executed after this time.
Maximum executable size for this quote. Your execution
amount must not exceed this value.Permitted trade direction under current system conditions.
Current system state for this corridor:
NORMAL, PROTECT, or RESTRICT.Always
FIRM.How the trade will be filled.
DIRECT means filled from Ratio’s internal liquidity pools. EXTERNAL_RFQ means the trade size exceeds internal pool depth and will be filled via an external market maker.Full breakdown of all fee components. See below.
Fee breakdown
Thefee_breakdown object provides full transparency on all fee components applied to this quote.
Volume tier applied to this transaction:
MICRO, SMALL, MEDIUM, LARGE, or INSTITUTIONAL.Fixed fee in source currency.
Source currency code.
Fixed fee converted to destination currency.
Destination currency code.
Variable fee in source currency.
Variable fee rate in basis points.
Base spread component from the fee tier.
Total spread including all dynamic components.
Total platform fee (fixed + variable) in USD equivalent.
Source amount after fee deduction. This is the amount converted at the quoted rate.
Whether partner-specific custom rates were applied to this quote.
Quote expiry
Firm quotes have a short expiry window — typically 30–60 seconds. After expiry:- The quote cannot be executed.
- Reserved inventory is released back to the pool.
- You must request a new firm quote at current rates.
Next step
Submit thequote_id to execute the swap on-chain.
Execute the swap →