added coingecko price
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user