Merge pull request #11027 from xzmeng/fix-cond
fix: invert API download condition from `and` to `or`
This commit is contained in:
@@ -136,7 +136,7 @@ class Binance(Exchange):
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
self._config["exchange"].get("only_from_ccxt", False)
|
self._config["exchange"].get("only_from_ccxt", False)
|
||||||
and
|
or
|
||||||
# only download timeframes with significant improvements,
|
# only download timeframes with significant improvements,
|
||||||
# otherwise fall back to rest API
|
# otherwise fall back to rest API
|
||||||
not (
|
not (
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ async def download_archive_ohlcv(
|
|||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.warning(
|
logger.warning(
|
||||||
"An exception occurred during fast download from Binance, falling back to"
|
"An exception occurred during fast download from Binance, falling back to "
|
||||||
"the slower REST API, this can take more time.",
|
"the slower REST API, this can take more time.",
|
||||||
exc_info=e,
|
exc_info=e,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user