Add default to "is_new_pair"

This commit is contained in:
Matthias 2021-11-04 19:52:29 +01:00
parent 1dd6872b80
commit fb6ba62158
2 changed files with 3 additions and 3 deletions

View File

@ -93,7 +93,7 @@ class Binance(Exchange):
raise OperationalException(e) from e
async def _async_get_historic_ohlcv(self, pair: str, timeframe: str,
since_ms: int, is_new_pair: bool
since_ms: int, is_new_pair: bool = False
) -> List:
"""
Overwrite to introduce "fast new pair" functionality by detecting the pair's listing date

View File

@ -1223,8 +1223,8 @@ class Exchange:
drop_incomplete=self._ohlcv_partial_candle)
async def _async_get_historic_ohlcv(self, pair: str, timeframe: str,
since_ms: int, is_new_pair: bool
) -> List:
since_ms: int, is_new_pair: bool = False
) -> Tuple[str, str, List]:
"""
Download historic ohlcv
:param is_new_pair: used by binance subclass to allow "fast" new pair downloading