mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 01:01:56 +00:00
scripts/max: support showing open stop orders
This commit is contained in:
parent
17590fcc08
commit
b75ebf2f0f
|
@ -58,7 +58,8 @@ case "$command" in
|
|||
market=$1
|
||||
declare -A orders_params=()
|
||||
orders_params[market]=$market
|
||||
myOrders orders_params | jq -r '.[] | "\(.id) \(.market) \(.ord_type) \(.side) \(.price) \t \(.volume) \(.state)"'
|
||||
myOrders orders_params | \
|
||||
jq -r '.[] | "\(.id) \(.market) \(.side) \(.ord_type) \(if .ord_type | test("stop") then "stop@" + .stop_price else "" end) price = \(if .ord_type | test("market") then "any" else .price end) \t volume = \(.volume) \(.state)"'
|
||||
;;
|
||||
|
||||
cancel)
|
||||
|
|
Loading…
Reference in New Issue
Block a user