mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Adjust typehints to match return value
This commit is contained in:
parent
c2914feb12
commit
c8e103e4a4
|
@ -410,7 +410,7 @@ class Exchange:
|
|||
else:
|
||||
return DataFrame()
|
||||
|
||||
def get_contract_size(self, pair: str) -> float:
|
||||
def get_contract_size(self, pair: str) -> Optional[float]:
|
||||
if self.trading_mode == TradingMode.FUTURES:
|
||||
market = self.markets.get(pair, {})
|
||||
contract_size: float = 1.0
|
||||
|
|
Loading…
Reference in New Issue
Block a user