store piceticker data

This commit is contained in:
olli 2023-05-22 10:04:01 +02:00
parent a69801b9e0
commit 88cfcfa197

View File

@ -16,6 +16,7 @@ function get_assets {
bitpanda-api-call GET "public/v1/market-ticker" || return 1
cat ${g_tmp}/API_CMD_OUT | jq -r '.[] | select(.state=="ACTIVE") | .instrument_code + "," + .last_price' | sed 's/_//' | grep "${CURRENCY}," | egrep -v "${TRANSFER_CURRENCY},|,0[\.][0]*$" >${f_filename}_OUT.tmp
fi
cp -p ${g_tmp}/API_CMD_OUT PRICETICKER
# timestamp for data
f_timestamp=$(g_date_print)