Merge pull request #576 from lilcheti/IRT-api

add IRT api
This commit is contained in:
fusion44 2022-03-31 18:52:53 +02:00 committed by GitHub
commit 799065e982
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,6 +71,7 @@ currencies = {
"IMP": "Isle of Man Pound",
"INR": "Indian Rupee",
"IQD": "Iraqi Dinar",
"IRT": "Iranian Toman",
"ISK": "Icelandic Króna",
"JEP": "Jersey Pound",
"JMD": "Jamaican Dollar",
@ -179,6 +180,12 @@ class Provider(NamedTuple):
exchange_rate_providers = {
"exir": Provider(
"Exir",
"exir.io",
"https://api.exir.io/v1/ticker?symbol={from}-{to}",
lambda data, replacements: data["last"],
),
"bitfinex": Provider(
"Bitfinex",
"bitfinex.com",