Be selective how to load ohclv data for conversation
This commit is contained in:
parent
d9e7d64f33
commit
377d59abe7
@ -284,7 +284,10 @@ def convert_ohlcv_format(config: Dict[str, Any], convert_from: str, convert_to:
|
|||||||
|
|
||||||
for timeframe in timeframes:
|
for timeframe in timeframes:
|
||||||
for pair in config['pairs']:
|
for pair in config['pairs']:
|
||||||
data = src.ohlcv_load(pair=pair, timeframe=timeframe)
|
data = src.ohlcv_load(pair=pair, timeframe=timeframe,
|
||||||
|
fill_missing=False,
|
||||||
|
drop_incomplete=False,
|
||||||
|
startup_candles=0)
|
||||||
logger.info(f"Converting {len(data)} candles for {pair}")
|
logger.info(f"Converting {len(data)} candles for {pair}")
|
||||||
trg.ohlcv_store(pair=pair, timeframe=timeframe, data=data)
|
trg.ohlcv_store(pair=pair, timeframe=timeframe, data=data)
|
||||||
|
|
||||||
@ -294,8 +297,6 @@ def start_convert_data(args: Dict[str, Any], ohlcv: bool = True) -> None:
|
|||||||
Convert data from one format to another
|
Convert data from one format to another
|
||||||
"""
|
"""
|
||||||
config = setup_utils_configuration(args, RunMode.UTIL_NO_EXCHANGE)
|
config = setup_utils_configuration(args, RunMode.UTIL_NO_EXCHANGE)
|
||||||
from pprint import pprint
|
|
||||||
pprint(config)
|
|
||||||
if ohlcv:
|
if ohlcv:
|
||||||
convert_ohlcv_format(config,
|
convert_ohlcv_format(config,
|
||||||
convert_from=args['format_from'], convert_to=args['format_to'])
|
convert_from=args['format_from'], convert_to=args['format_to'])
|
||||||
|
Loading…
Reference in New Issue
Block a user