added coingecko price

This commit is contained in:
2023-10-31 09:10:48 +01:00
parent 6b8ed5408e
commit 433dc36031
3 changed files with 5 additions and 2 deletions

View File

@@ -122,6 +122,9 @@ function get_asset {
fi
done
# get coingecko price
echo -n ,$(jq -r ".[] |select(.symbol==\"${f_asset}\")|\"\\(.current_price)\"" COINGECKO_GET_ASSETS_CMD_OUT) >>${f_ASSET_HIST_FILE}
# end with newline
echo "" >>${f_ASSET_HIST_FILE}
fi