mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-21 22:43:52 +00:00
maxapi: add tx id to the columns
This commit is contained in:
parent
a4a3f0fbd8
commit
d7278d0742
|
@ -32,7 +32,7 @@ case "$command" in
|
||||||
fi
|
fi
|
||||||
|
|
||||||
deposits params \
|
deposits params \
|
||||||
| jq -r '.[] | [ .uuid, ((.amount | tonumber) * 10000 | floor / 10000), .currency, .state, (.created_at | strflocaltime("%Y-%m-%dT%H:%M:%S %Z")), .note ] | @tsv' \
|
| jq -r '.[] | [ .uuid, .txid, ((.amount | tonumber) * 10000 | floor / 10000), .currency, .state, (.created_at | strflocaltime("%Y-%m-%dT%H:%M:%S %Z")), .note ] | @tsv' \
|
||||||
| column -ts $'\t'
|
| column -ts $'\t'
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
@ -44,19 +44,7 @@ case "$command" in
|
||||||
fi
|
fi
|
||||||
|
|
||||||
withdrawals params \
|
withdrawals params \
|
||||||
| jq -r '.[] | [ .uuid, ((.amount | tonumber) * 10000 | floor / 10000), .currency, ((.fee | tonumber) * 10000 | floor / 10000), .fee_currency, .state, (.created_at | strflocaltime("%Y-%m-%dT%H:%M:%S %Z")), .note ] | @tsv' \
|
| jq -r '.[] | [ .uuid, .txid, ((.amount | tonumber) * 10000 | floor / 10000), .currency, ((.fee | tonumber) * 10000 | floor / 10000), .fee_currency, .state, (.created_at | strflocaltime("%Y-%m-%dT%H:%M:%S %Z")), .note ] | @tsv' \
|
||||||
| column -ts $'\t'
|
|
||||||
;;
|
|
||||||
|
|
||||||
withdrawals)
|
|
||||||
declare -A params=()
|
|
||||||
currency=$1
|
|
||||||
if [[ -n $currency ]] ; then
|
|
||||||
params[currency]=$currency
|
|
||||||
fi
|
|
||||||
|
|
||||||
withdrawalHistory params \
|
|
||||||
| jq -r '.[] | [ .uuid, ((.amount | tonumber) * 10000 | floor / 10000), .currency, ((.fee | tonumber) * 10000 | floor / 10000), .fee_currency, .state, (.created_at | strflocaltime("%Y-%m-%dT%H:%M:%S %Z")), .note ] | @tsv' \
|
|
||||||
| column -ts $'\t'
|
| column -ts $'\t'
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user