-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ExchangeRateService: Support aggregate rates
Add support for aggregate rates in the ExchangeRateService. If multiple ExchangeRateProviders contain rates for the same currency, then these rates will be automatically aggregated (averaged) into one. This allows the service to transparently scale to multiple providers for any specific currency. The clients index the rates received from the pricenode by currency code, which means they expect at most a single rate per currency. By aggregating rates from multiple providers into one per currency, the ExchangeRateService provides more accurate price data. At the same time, the service API data structure remains intact, thus preserving backward compatibility with all clients.
- Loading branch information
Showing
2 changed files
with
194 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters