mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-16 04:41:15 +00:00
chore: fix wrong return typing
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user