Adjust trade-ids param
This commit is contained in:
parent
7dcef58f15
commit
1c9c72937e
@ -529,7 +529,7 @@ Print selected (or all) trades from database to screen.
|
|||||||
```
|
```
|
||||||
usage: freqtrade show-trades [-h] [-v] [--logfile FILE] [-V] [-c PATH]
|
usage: freqtrade show-trades [-h] [-v] [--logfile FILE] [-V] [-c PATH]
|
||||||
[-d PATH] [--userdir PATH] [--db-url PATH]
|
[-d PATH] [--userdir PATH] [--db-url PATH]
|
||||||
[--tradeids TRADE_IDS [TRADE_IDS ...]]
|
[--trade-ids TRADE_IDS [TRADE_IDS ...]]
|
||||||
[--print-json]
|
[--print-json]
|
||||||
|
|
||||||
optional arguments:
|
optional arguments:
|
||||||
@ -538,8 +538,8 @@ optional arguments:
|
|||||||
deployments (default: `sqlite:///tradesv3.sqlite` for
|
deployments (default: `sqlite:///tradesv3.sqlite` for
|
||||||
Live Run mode, `sqlite:///tradesv3.dryrun.sqlite` for
|
Live Run mode, `sqlite:///tradesv3.dryrun.sqlite` for
|
||||||
Dry Run).
|
Dry Run).
|
||||||
--tradeids TRADE_IDS [TRADE_IDS ...]
|
--trade-ids TRADE_IDS [TRADE_IDS ...]
|
||||||
Specify Trade ids to trade
|
Specify the list of trade ids.
|
||||||
--print-json Print output in JSON format.
|
--print-json Print output in JSON format.
|
||||||
|
|
||||||
Common arguments:
|
Common arguments:
|
||||||
@ -564,5 +564,5 @@ Common arguments:
|
|||||||
Print trades with id 2 and 3 as json
|
Print trades with id 2 and 3 as json
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
freqtrade show-trades --db-url sqlite:///tradesv3.sqlite --tradeids 2 3 --print-json
|
freqtrade show-trades --db-url sqlite:///tradesv3.sqlite --trade-ids 2 3 --print-json
|
||||||
```
|
```
|
||||||
|
@ -426,8 +426,8 @@ AVAILABLE_CLI_OPTIONS = {
|
|||||||
default="file",
|
default="file",
|
||||||
),
|
),
|
||||||
"trade_ids": Arg(
|
"trade_ids": Arg(
|
||||||
'--tradeids',
|
'--trade-ids',
|
||||||
help='Specify Trade ids to trade',
|
help='Specify the list of trade ids.',
|
||||||
nargs='+',
|
nargs='+',
|
||||||
),
|
),
|
||||||
# hyperopt-list, hyperopt-show
|
# hyperopt-list, hyperopt-show
|
||||||
|
@ -1066,7 +1066,7 @@ def test_show_trades(mocker, fee, capsys, caplog):
|
|||||||
"--db-url",
|
"--db-url",
|
||||||
"sqlite:///",
|
"sqlite:///",
|
||||||
"--print-json",
|
"--print-json",
|
||||||
"--tradeids", "1", "2"
|
"--trade-ids", "1", "2"
|
||||||
]
|
]
|
||||||
pargs = get_args(args)
|
pargs = get_args(args)
|
||||||
pargs['config'] = None
|
pargs['config'] = None
|
||||||
|
Loading…
Reference in New Issue
Block a user