Adjust typehints to match return value

This commit is contained in:
Matthias 2022-10-17 10:02:55 +00:00
parent c2914feb12
commit c8e103e4a4

View File

@ -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