
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.
Practical guidance for exchange-rate history, freshness, and implementation.

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

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

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

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

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

How Narwhal returns real observation dates, sparse currencies, and bounded FX history pages.

How market session, timestamps, and stale state explain an FX rate when markets are closed.