Static
getGets the price of a token from CoinGecko.
The coingecko ID for the token to get the price for.
The duration in milliseconds for which the price should be cached.
A Promise that resolves to the price of the token, or -1 if the price cannot be fetched.
Static
initializeStatic
is
The
CoinGeckoAPI
class provides methods to get coin prices.