diff --git a/dabo/functions/get_marketdata_coinmarketcap.sh b/dabo/functions/get_marketdata_coinmarketcap.sh index c3d0838..5b53e41 100644 --- a/dabo/functions/get_marketdata_coinmarketcap.sh +++ b/dabo/functions/get_marketdata_coinmarketcap.sh @@ -118,6 +118,9 @@ function get_marketdata_coinmarketcap { else egrep -h "^[1-9][0-9][0-9][0-9]-[0-1][0-9]-[0-9][0-9].*,[0-9]" "${f_targetcsvtmp}" | sort -k1,2 -t, -u >"$f_targetcsv" fi + + # change exponential notation to normal notation + g_num_exponential2normal_file "${f_targetcsv}" } @@ -151,7 +154,7 @@ function get_marketdata_coinmarketcap_ids { f_latest_date_seconds=$(date -d "$f_latest_date" +%s) if [ $f_latest_date_seconds_now -lt $f_latest_date_seconds ] then - jq -r '.data | .symbol + "," + (.id|tostring) + "," + .name + "," + (.quotes[].quote|.marketCap|tostring)' "$g_tmp/get_marketdata_coinmarketcap_ids.json" | head -n 1 + jq -r '.data | .symbol + "," + (.id|tostring) + "," + .name + "," + (.quotes[].quote|.marketCap|tostring)' "$g_tmp/get_marketdata_coinmarketcap_ids.json" | grep -vi ",0e-" | head -n 1 fi done | egrep --line-buffered '^.+,[0-9]*,' >"$f_target_loop"