docker-non-root, bitpanda trading, home for .ssh for ssh-to-signal messages
This commit is contained in:
@@ -11,6 +11,10 @@ function get_balances {
|
||||
binance-api-call GET sapi/v1/capital/config/getall || return 1
|
||||
# parse outout
|
||||
cat ${g_tmp}/API_CMD_OUT | jq -r '.[] | .coin + "," + .free' | egrep -v ",0$|,0[\.][0]*$|${TRANSFER_CURRENCY}" | sort >${f_filename}_OUT.tmp_raw
|
||||
elif [ ${STOCK_EXCHANGE} = "BITPANDA" ]
|
||||
then
|
||||
bitpanda-api-call GET public/v1/account/balances || return 1
|
||||
cat ${g_tmp}/API_CMD_OUT | jq -r '.balances[] | .currency_code + "," + .available' | egrep -v ",0$|,0[\.][0]*$|${TRANSFER_CURRENCY}" | sort >${f_filename}_OUT.tmp_raw
|
||||
fi
|
||||
|
||||
if ! [ -s ${f_filename}_OUT.tmp_raw ] && egrep -q "^[A-Z]+,[0-9]*\.[0-9]+$" ${f_filename}_OUT.tmp_raw
|
||||
|
||||
Reference in New Issue
Block a user