When to use
- Display approximate FX rates in your UI before the user commits
- Preview the full fee breakdown (fixed, variable, spread) for a given amount
- Pre-flight check before requesting a firm quote
Request
Swap direction is determined entirely by which address you pass as
from_token vs to_token. The pair and side fields appear in the response as server-derived values but are not request fields.Example request
Response
Key response fields
How the numbers relate
1000 − 0.564971 (fixed) − 0.7 (variable) = 998.735029 USDT is swapped at mid → gross output 17,677,610.01 IDRX; the 14 bps spread → 24,748.66 IDRX; net output = 17,652,861.35 IDRX.