rename --timeperiod to --timerange
This commit is contained in:
@@ -68,9 +68,9 @@ def load_data(datadir: str, ticker_interval: int = 5, pairs: Optional[List[str]]
|
||||
return result
|
||||
|
||||
|
||||
def tickerdata_to_dataframe(data, timeperiod=None):
|
||||
if timeperiod:
|
||||
data = trim_tickerlist(data, timeperiod)
|
||||
def tickerdata_to_dataframe(data, timerange=None):
|
||||
if timerange:
|
||||
data = trim_tickerlist(data, timerange)
|
||||
preprocessed = preprocess(data)
|
||||
return preprocessed
|
||||
|
||||
|
@@ -175,7 +175,7 @@ def start(args):
|
||||
from freqtrade import main
|
||||
main._CONF = config
|
||||
|
||||
preprocessed = optimize.tickerdata_to_dataframe(data, timeperiod=args.timeperiod)
|
||||
preprocessed = optimize.tickerdata_to_dataframe(data, timerange=args.timerange)
|
||||
# Print timeframe
|
||||
min_date, max_date = get_timeframe(preprocessed)
|
||||
logger.info('Measuring data from %s up to %s ...', min_date.isoformat(), max_date.isoformat())
|
||||
|
@@ -260,7 +260,7 @@ def start(args):
|
||||
config = load_config(args.config)
|
||||
pairs = config['exchange']['pair_whitelist']
|
||||
data = optimize.load_data(args.datadir, pairs=pairs, ticker_interval=args.ticker_interval)
|
||||
PROCESSED = optimize.tickerdata_to_dataframe(data, timeperiod=args.timeperiod)
|
||||
PROCESSED = optimize.tickerdata_to_dataframe(data, timerange=args.timerange)
|
||||
|
||||
if args.mongodb:
|
||||
logger.info('Using mongodb ...')
|
||||
|
Reference in New Issue
Block a user