Namespace Integrations.Domain.Fx
Classes
- ExchangeRateObservation
One published daily rate from a source, stored exactly as published and never overwritten. Sources publish against a pivot currency (Bank of Canada: every currency vs CAD); cross rates are derived.
- RateLock
The exchange rate fixed for a currency pair on a business date. Created the first time any line is committed for that pair and date; every later lock for the same pair and date returns this same row, so all lines committed on one day share one rate. Callers store Id on the line and keep it when the line is edited (unless its transaction date changes). A lock is never updated.