store piceticker data
This commit is contained in:
parent
a69801b9e0
commit
88cfcfa197
@ -16,6 +16,7 @@ function get_assets {
|
|||||||
bitpanda-api-call GET "public/v1/market-ticker" || return 1
|
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
|
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
|
fi
|
||||||
|
cp -p ${g_tmp}/API_CMD_OUT PRICETICKER
|
||||||
|
|
||||||
# timestamp for data
|
# timestamp for data
|
||||||
f_timestamp=$(g_date_print)
|
f_timestamp=$(g_date_print)
|
||||||
|
Loading…
Reference in New Issue
Block a user