diff --git a/scripts/max.sh b/scripts/max.sh index 3168aae14..7de07103f 100644 --- a/scripts/max.sh +++ b/scripts/max.sh @@ -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)