CurrencyPairChart
Rate history with a period selector.
npx shadcn add @lopifi/currency-pair-chartHow it behaves
What it renders, what it refuses to render, and why. The same paragraphs as the family spec, so the two can’t disagree.
Rate history with a period selector. The y-axis does not start at zero. It's a rate, not a quantity, and forcing zero destroys the resolution. This is the one sanctioned exception to the zero-baseline rule, so the axis is labeled clearly.
Draws once on mount. Instant on period change.
The accounting it encodes
The concepts this component renders, each defined once in the lexicon.
More in Swaps & FX
See also
Where this component is specified, defined and running.
Elsewhere in the system
The live section CurrencyPairChart renders in, the calculators behind its figures, and the ledger payloads that feed it.
- CurrencyPairChart, runningThe swaps showcase — live, with theme, density, grayscale and reduced-motion switches.
- Swaps & FXThe rule for this family: A rate is a perishable fact. It never appears without a timestamp, and it is never transacted on without a lock. Specs for 9 React components: SwapWidget, RateLine, RateLock, ConversionBreakdown and 5 more.
- Currency decimal placesHow many decimals each ISO 4217 code is stored at, and where Intl disagrees.
Components are copied into your repository and meant to be edited. Rounding policy, fiscal calendar and compliance copy differ per company.
Release notes
Get an email when Swaps & FX changes
Your copy doesn’t update itself when we fix something here.
- One email when a Swaps & FX component needs a migration
- Nothing when nothing changes
Or install it now
npx shadcn add @lopifi/currency-pair-chart