If I make a request to get the full list of coingecko
coins using with
https://api.coingecko.com/api/v3/coins/list
and get the ids of each coins taking the 'id'
entry.
Then I can loop on all coins id with a
https://api.coingecko.com/api/v3/simple/price?ids=<coin>&vs_currencies=usd
(in which <coin>
should be replaced by the id coming from the full list) (e.g. https://api.coingecko.com/api/v3/simple/price?ids=bitcoin&vs_currencies=usd
to get bitcoin price), and then reorder it by marketcap.
This works but the problem is that there are many requests and this is taking ages (a few hours at least).
It there a possibility to immediately get the id of the first 300 coins by marketcap?