One liner to fetch the simple price of any token listed
on CoinGecko via their open API.
You need the utilities curl
and jq
. Type the command below into your terminal:
curl -s -X 'GET' 'https://api.coingecko.com/api/v3/simple/price?ids=dragon-egg%2Cstorm-token%2Cwrapped-avax%2Cstellar%2Cmonero%2Cbitcoin%2Cethereum&vs_currencies=usd%2Ceur&include_market_cap=false&include_24hr_vol=false&include_24hr_change=false&include_last_updated_at=false' -H 'accept: application/json' | jq . --sort-keys && date