scripts: fix fraction

This commit is contained in:
c9s 2020-12-02 13:44:51 +08:00
parent fe25e38c93
commit c0b21fd392

View File

@ -80,6 +80,6 @@ case "$command" in
market=$1 market=$1
declare -A trades_params=() declare -A trades_params=()
trades_params[market]=$market 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 esac