Skip to content

Commit 4c7b507

Browse files
authored
Merge pull request #2512 from sopel-irc/currency-api-changes
currency: replace `exchangerate.host` -> `open.er-api.com`
2 parents f2e1366 + d4686ff commit 4c7b507

File tree

3 files changed

+661
-115
lines changed

3 files changed

+661
-115
lines changed

sopel/modules/currency.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
PLUGIN_OUTPUT_PREFIX = '[currency] '
2323
FIAT_PROVIDERS = {
24-
'exchangerate.host': 'https://api.exchangerate.host/latest?base=EUR',
24+
'open.er-api.com': 'https://open.er-api.com/v6/latest/EUR',
2525
'fixer.io': '//data.fixer.io/api/latest?base=EUR&access_key={}',
2626
}
2727
CRYPTO_URL = 'https://api.coingecko.com/api/v3/exchange_rates'
@@ -43,7 +43,7 @@ class CurrencySection(types.StaticSection):
4343
fiat_provider = types.ChoiceAttribute(
4444
'fiat_provider',
4545
list(FIAT_PROVIDERS.keys()),
46-
default='exchangerate.host',
46+
default='open.er-api.com',
4747
)
4848
"""Which data provider to use (some of which require no API key)"""
4949
fixer_io_key = types.ValidatedAttribute('fixer_io_key', default=None)

0 commit comments

Comments
 (0)