Refactor the comparison involving not
Signed-off-by: shubhendra <withshubh@gmail.com>
This commit is contained in:
parent
4d81834912
commit
f47dc31786
@ -1,16 +0,0 @@
|
|||||||
version = 1
|
|
||||||
|
|
||||||
test_patterns = ["tests/**/test_*.py"]
|
|
||||||
|
|
||||||
exclude_patterns = [
|
|
||||||
"docs/**",
|
|
||||||
"user_data/**",
|
|
||||||
"build/helpers/**"
|
|
||||||
]
|
|
||||||
|
|
||||||
[[analyzers]]
|
|
||||||
name = "python"
|
|
||||||
enabled = true
|
|
||||||
|
|
||||||
[analyzers.meta]
|
|
||||||
runtime_version = "3.x.x"
|
|
@ -806,7 +806,7 @@ class Exchange:
|
|||||||
|
|
||||||
# Gather coroutines to run
|
# Gather coroutines to run
|
||||||
for pair, timeframe in set(pair_list):
|
for pair, timeframe in set(pair_list):
|
||||||
if (not ((pair, timeframe) in self._klines)
|
if (((pair, timeframe) not in self._klines)
|
||||||
or self._now_is_time_to_refresh(pair, timeframe)):
|
or self._now_is_time_to_refresh(pair, timeframe)):
|
||||||
input_coroutines.append(self._async_get_candle_history(pair, timeframe,
|
input_coroutines.append(self._async_get_candle_history(pair, timeframe,
|
||||||
since_ms=since_ms))
|
since_ms=since_ms))
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
Performance pair list filter
|
Performance pair list filter
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from typing import Any, Dict, List
|
from typing import Dict, List
|
||||||
|
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
|
|
||||||
import logging
|
import logging
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
from typing import Any, Dict
|
|
||||||
|
|
||||||
from freqtrade.persistence import Trade
|
from freqtrade.persistence import Trade
|
||||||
from freqtrade.plugins.protections import IProtection, ProtectionReturn
|
from freqtrade.plugins.protections import IProtection, ProtectionReturn
|
||||||
|
@ -197,8 +197,8 @@ class StrategyResolver(IResolver):
|
|||||||
strategy._buy_fun_len = len(getfullargspec(strategy.populate_buy_trend).args)
|
strategy._buy_fun_len = len(getfullargspec(strategy.populate_buy_trend).args)
|
||||||
strategy._sell_fun_len = len(getfullargspec(strategy.populate_sell_trend).args)
|
strategy._sell_fun_len = len(getfullargspec(strategy.populate_sell_trend).args)
|
||||||
if any(x == 2 for x in [strategy._populate_fun_len,
|
if any(x == 2 for x in [strategy._populate_fun_len,
|
||||||
strategy._buy_fun_len,
|
strategy._buy_fun_len,
|
||||||
strategy._sell_fun_len]):
|
strategy._sell_fun_len]):
|
||||||
strategy.INTERFACE_VERSION = 1
|
strategy.INTERFACE_VERSION = 1
|
||||||
|
|
||||||
return strategy
|
return strategy
|
||||||
|
Loading…
Reference in New Issue
Block a user