Files
purple-electrumwallet/electrum
f321x 9827734ab6 exchange rate: fix coingecko api
The CoinGecko API failed as the Honduran Lempira currency returned
null as value, rendering the API unusable:
```
11.19 | I | exchange_rate.CoinGecko | getting fx quotes for EUR
11.41 | E | exchange_rate.CoinGecko | failed fx quotes: InvalidOperation([<class 'decimal.ConversionSyntax'>])
Traceback (most recent call last):
  File "/var/home/user/code/vibecoding_vm/electrum/electrum/exchange_rate.py", line 87, in update_safe
    self._quotes = await self.get_rates(ccy)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/var/home/user/code/vibecoding_vm/electrum/electrum/exchange_rate.py", line 449, in get_rates
    return dict([(ccy.upper(), to_decimal(d['value']))
                               ~~~~~~~~~~^^^^^^^^^^^^
  File "/var/home/user/code/vibecoding_vm/electrum/electrum/util.py", line 243, in to_decimal
    return Decimal(str(x))
decimal.InvalidOperation: [<class 'decimal.ConversionSyntax'>]
```

```
"hnl":{"name":"Honduran Lempira","unit":"L","value":null,"type":"fiat"}
```
2026-04-08 10:20:01 +02:00
..
2026-02-21 03:51:52 +00:00
2026-02-17 18:11:13 +00:00
2026-03-20 17:43:12 +00:00
2026-03-20 18:12:55 +00:00
2025-12-02 10:38:10 +01:00
2026-01-28 17:49:36 +01:00
2026-04-02 14:46:50 +02:00
2026-03-20 18:12:55 +00:00
2026-03-20 18:14:38 +00:00
2026-03-27 13:15:07 +00:00
2026-04-02 14:46:50 +02:00
2026-03-20 18:14:38 +00:00