exchange rate datasource supports Monetary Authority of Singapore

This commit is contained in:
MaysWind
2023-05-29 01:04:16 +08:00
parent 810bce7495
commit 49e62d35c3
5 changed files with 403 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.MonetaryAuthorityOfSingaporeDataSource {
Container.Current = &MonetaryAuthorityOfSingaporeDataSource{}
return nil
}
return errs.ErrInvalidExchangeRatesDataSource