mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 01:01:56 +00:00
fix null fee issue
This commit is contained in:
parent
f53fbffd1d
commit
da80ebe645
|
@ -82,6 +82,6 @@ case "$command" in
|
|||
declare -A trades_params=()
|
||||
trades_params[market]=$market
|
||||
myTrades trades_params | \
|
||||
jq -r '.[] | "\(.id) \(.market) \(.side) \(.price) \t \(.volume) amount = \((.price | tonumber) * (.volume | tonumber) * 100 | floor / 100) \t fee = \( .fee | tonumber * 100000 | floor / 100000 ) \(.fee_currency)\t\( .created_at | strflocaltime("%Y-%m-%dT%H:%M:%S %Z") )"'
|
||||
jq -r '.[] | "\(.id) \(.market) \(.side) \(.price) \t \(.volume) amount = \((.price | tonumber) * (.volume | tonumber) * 100 | floor / 100) \t fee = \( .fee // 0 | tonumber * 100000 | floor / 100000 ) \(.fee_currency)\t\( .created_at | strflocaltime("%Y-%m-%dT%H:%M:%S %Z") )"'
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in New Issue
Block a user