Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,14 @@ unit | description
`DKK` | Danish krone
`EUR` | Euro
`GBP` | Pound sterling
`GHS` | Ghanaian cedi
`HKD` | Hong Kong dollar
`HUF` | Hungarian forint
`INR` | Indian rupee
`ISK` | Icelandic króna
`JPY` | Japanese yen
`KRW` | South Korean won
`NGN` | Nigerian naira
`NZD` | New Zealand dollar
`PLN` | Polish złoty
`RON` | Romanian leu
Expand Down
4 changes: 4 additions & 0 deletions src/currency/fiat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ pub enum Fiat {
DKK,
EUR,
GBP,
GHS,
HKD,
HUF,
INR,
ISK,
JPY,
KRW,
NGN,
NZD,
PLN,
RON,
Expand Down Expand Up @@ -68,8 +70,10 @@ impl Currency for Fiat {
| Fiat::DKK
| Fiat::EUR
| Fiat::GBP
| Fiat::GHS
| Fiat::HKD
| Fiat::INR
| Fiat::NGN
| Fiat::NZD
| Fiat::PLN
| Fiat::RON
Expand Down
6 changes: 6 additions & 0 deletions src/fiat_rates/blockchain_info_consumer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ struct Currencies {
eur: Ticker,
#[serde(rename(deserialize = "GBP"))]
gbp: Ticker,
#[serde(rename(deserialize = "GHS"))]
ghs: Ticker,
#[serde(rename(deserialize = "HKD"))]
hkd: Ticker,
#[serde(rename(deserialize = "HUF"))]
Expand All @@ -56,6 +58,8 @@ struct Currencies {
jpy: Ticker,
#[serde(rename(deserialize = "KRW"))]
krw: Ticker,
#[serde(rename(deserialize = "NGN"))]
ngn: Ticker,
#[serde(rename(deserialize = "NZD"))]
nzd: Ticker,
#[serde(rename(deserialize = "PLN"))]
Expand Down Expand Up @@ -106,12 +110,14 @@ impl ExchangeRateApiConsumer for ApiConsumer {
map.insert(Fiat::DKK, currencies.dkk.last);
map.insert(Fiat::EUR, currencies.eur.last);
map.insert(Fiat::GBP, currencies.gbp.last);
map.insert(Fiat::GHS, currencies.ghs.last);
map.insert(Fiat::HKD, currencies.hkd.last);
map.insert(Fiat::HUF, currencies.huf.last);
map.insert(Fiat::INR, currencies.inr.last);
map.insert(Fiat::ISK, currencies.isk.last);
map.insert(Fiat::JPY, currencies.jpy.last);
map.insert(Fiat::KRW, currencies.krw.last);
map.insert(Fiat::NGN, currencies.ngn.last);
map.insert(Fiat::NZD, currencies.nzd.last);
map.insert(Fiat::PLN, currencies.pln.last);
map.insert(Fiat::RON, currencies.ron.last);
Expand Down
Loading