Be explicit in what is used, db or trades

This commit is contained in:
Matthias
2019-06-22 16:18:49 +02:00
parent 8758218b09
commit 3e61ada34a
3 changed files with 17 additions and 7 deletions

View File

@@ -515,3 +515,10 @@ class Arguments(object):
default=750,
type=int,
)
parser.add_argument(
'--trade-source',
help='Specify the source for trades (Can be DB or file (backtest file)) Default: %(default)s',
dest='trade_source',
default="file",
choices=["DB", "file"]
)

View File

@@ -358,7 +358,8 @@ class Configuration(object):
self._args_to_config(config, argname='plot_limit',
logstring='Limiting plot to: {}')
self._args_to_config(config, argname='trade_source',
logstring='Using trades from: {}')
return config
def _validate_config_schema(self, conf: Dict[str, Any]) -> Dict[str, Any]: