chore: fix wrong return typing

This commit is contained in:
Matthias
2024-12-08 16:58:31 +01:00
parent 4d36aaff39
commit f529cfe8cf

View File

@@ -1863,7 +1863,7 @@ class Exchange:
except ccxt.BaseError as e: except ccxt.BaseError as e:
raise OperationalException(e) from e raise OperationalException(e) from e
def get_conversion_rate(self, coin: str, currency: str) -> float: def get_conversion_rate(self, coin: str, currency: str) -> float | None:
""" """
Quick and cached way to get conversion rate one currency to the other. Quick and cached way to get conversion rate one currency to the other.
Can then be used as "rate * amount" to convert between currencies. Can then be used as "rate * amount" to convert between currencies.