BITPANDA(-PRO) now ONETRADING

This commit is contained in:
olli 2024-04-09 09:24:15 +02:00
parent 35fc940da5
commit c9da86b94c

View File

@ -11,9 +11,9 @@ 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" ]
elif [ ${STOCK_EXCHANGE} = "ONETRADING" ]
then
bitpanda-api-call GET public/v1/account/balances || return 1
onetrading-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