FX API guides

Practical guidance for exchange-rate history, freshness, and implementation.

A white narwhal studying two currency tokens in an ordered tray.

Base and quote currency explained

Read a currency pair in the right direction, invert an exchange rate, and interpret the base and currency fields in an FX API response.

Guide4 min read
A white narwhal at a small exchange booth with two different currency tokens.

How currency conversion works

Convert an amount using an exchange rate, handle the reverse direction, and distinguish a reference conversion from a payout after fees.

Guide4 min read
A white narwhal beside an abacus and a tray of currency tokens.

Exchange-rate precision and rounding

Keep decimal exchange rates accurate, round monetary results once, and understand half-even rounding with reproducible Python examples.

Guide4 min read
A white narwhal observing three currency tokens connected by a small bridge.

Cross rates explained

Calculate a currency cross rate from two rates with a shared base, check the direction, and avoid mismatched timestamps or rounding inputs too early.

Guide4 min read
A white narwhal checking a desk clock beside an observation slip in an archive tray.

Exchange rate timestamps and freshness

Distinguish observation time from request time, read stale and market-session fields, and design a freshness check for an exchange-rate application.

Guide4 min read