add International Monetary Fund exchange rates data source

This commit is contained in:
MaysWind
2024-08-28 01:12:16 +08:00
parent 62d3dc63d1
commit ab745ad56b
5 changed files with 245 additions and 6 deletions
@@ -32,6 +32,9 @@ func InitializeExchangeRatesDataSource(config *settings.Config) error {
} else if config.ExchangeRatesDataSource == settings.NationalBankOfPolandDataSource {
Container.Current = &NationalBankOfPolandDataSource{}
return nil
} else if config.ExchangeRatesDataSource == settings.InternationalMonetaryFundDataSource {
Container.Current = &InternationalMonetaryFundDataSource{}
return nil
}
return errs.ErrInvalidExchangeRatesDataSource