mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
improve max command
This commit is contained in:
parent
ad7a176c3e
commit
11eab78bd3
|
@ -29,6 +29,12 @@ case "$command" in
|
|||
side=$2
|
||||
price=$3
|
||||
volume=$4
|
||||
|
||||
if [[ $# < 4 ]] ; then
|
||||
echo "$0 limit [market] [side] [price] [volume]"
|
||||
exit
|
||||
fi
|
||||
|
||||
declare -A order_params=()
|
||||
order_params[market]=$market
|
||||
order_params[side]=$side
|
||||
|
@ -43,6 +49,11 @@ case "$command" in
|
|||
;;
|
||||
|
||||
orders)
|
||||
if [[ $# < 1 ]] ; then
|
||||
echo "$0 orders [market]"
|
||||
exit
|
||||
fi
|
||||
|
||||
market=$1
|
||||
declare -A orders_params=()
|
||||
orders_params[market]=$market
|
||||
|
@ -50,6 +61,11 @@ case "$command" in
|
|||
;;
|
||||
|
||||
trades)
|
||||
if [[ $# < 1 ]] ; then
|
||||
echo "$0 trades [market]"
|
||||
exit
|
||||
fi
|
||||
|
||||
market=$1
|
||||
declare -A trades_params=()
|
||||
trades_params[market]=$market
|
||||
|
|
Loading…
Reference in New Issue
Block a user