Remove unneeded initialization
This commit is contained in:
parent
559d5ebd1d
commit
cc56d0e0fc
@ -517,7 +517,8 @@ class Arguments(object):
|
|||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--trade-source',
|
'--trade-source',
|
||||||
help='Specify the source for trades (Can be DB or file (backtest file)) Default: %(default)s',
|
help='Specify the source for trades (Can be DB or file (backtest file)) '
|
||||||
|
'Default: %(default)s',
|
||||||
dest='trade_source',
|
dest='trade_source',
|
||||||
default="file",
|
default="file",
|
||||||
choices=["DB", "file"]
|
choices=["DB", "file"]
|
||||||
|
@ -124,7 +124,6 @@ def analyse_and_plot_pairs(config: Dict[str, Any]):
|
|||||||
tickers = {}
|
tickers = {}
|
||||||
tickers[pair] = data
|
tickers[pair] = data
|
||||||
dataframe = generate_dataframe(strategy, tickers, pair)
|
dataframe = generate_dataframe(strategy, tickers, pair)
|
||||||
trades = None
|
|
||||||
if config["trade_source"] == "DB":
|
if config["trade_source"] == "DB":
|
||||||
trades = load_trades_from_db(config["db_url"])
|
trades = load_trades_from_db(config["db_url"])
|
||||||
elif config["trade_source"] == "file":
|
elif config["trade_source"] == "file":
|
||||||
|
Loading…
Reference in New Issue
Block a user