From c0b21fd3927924d135504d6211d7c593e5eac028 Mon Sep 17 00:00:00 2001 From: c9s Date: Wed, 2 Dec 2020 13:44:51 +0800 Subject: [PATCH] scripts: fix fraction --- scripts/max.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/max.sh b/scripts/max.sh index 9da72aec6..d89306736 100644 --- a/scripts/max.sh +++ b/scripts/max.sh @@ -80,6 +80,6 @@ case "$command" in market=$1 declare -A trades_params=() trades_params[market]=$market - myTrades trades_params | jq -r '.[] | "\(.id) \(.market) \(.side) \(.price) \t \(.volume) \t fee = \( .fee | tonumber * 1000 | floor / 1000 ) \(.fee_currency)\t\( .created_at | strflocaltime("%Y-%m-%dT%H:%M:%S %Z") )"' + myTrades trades_params | jq -r '.[] | "\(.id) \(.market) \(.side) \(.price) \t \(.volume) \t fee = \( .fee | tonumber * 100000 | floor / 100000 ) \(.fee_currency)\t\( .created_at | strflocaltime("%Y-%m-%dT%H:%M:%S %Z") )"' ;; esac