mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-20 14:00:38 +00:00
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 (
|
||||
self._config["exchange"].get("only_from_ccxt", False)
|
||||
and
|
||||
or
|
||||
# only download timeframes with significant improvements,
|
||||
# otherwise fall back to rest API
|
||||
not (
|
||||
|
||||
@@ -89,7 +89,7 @@ async def download_archive_ohlcv(
|
||||
)
|
||||
except Exception as e:
|
||||
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.",
|
||||
exc_info=e,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user