1
0

commands: fix convert_currency cmd

This commit is contained in:
SomberNight
2025-06-27 15:15:12 +00:00
parent ce64dea0a1
commit 588363749c

View File

@@ -1965,8 +1965,8 @@ class Commands(Logger):
configured exchange rate source. configured exchange rate source.
arg:decimal:from_amount:Amount to convert (default=1) arg:decimal:from_amount:Amount to convert (default=1)
arg:decimal:from_ccy:Currency to convert from arg:str:from_ccy:Currency to convert from
arg:decimal:to_ccy:Currency to convert to arg:str:to_ccy:Currency to convert to
""" """
if not self.daemon.fx.is_enabled(): if not self.daemon.fx.is_enabled():
raise UserFacingException("FX is disabled. To enable, run: 'electrum setconfig use_exchange_rate true'") raise UserFacingException("FX is disabled. To enable, run: 'electrum setconfig use_exchange_rate true'")