Allow user to update testdata files with parameter --refresh-pairs-cached (#174)

This commit is contained in:
Gérald LONLAS
2017-12-16 06:42:28 -08:00
committed by Michael Egger
parent e00f02b603
commit 512fcdbcb1
8 changed files with 204 additions and 23 deletions

View File

@@ -166,6 +166,13 @@ def build_subcommands(parser: argparse.ArgumentParser) -> None:
action='store_true',
dest='realistic_simulation',
)
backtesting_cmd.add_argument(
'-r', '--refresh-pairs-cached',
help='refresh the pairs files in tests/testdata with the latest data from Bittrex. Use it if you want to \
run your backtesting with up-to-date data.',
action='store_true',
dest='refresh_pairs',
)
# Add hyperopt subcommand
hyperopt_cmd = subparsers.add_parser('hyperopt', help='hyperopt module')