CoinMarketcap deprecated and took offline its v1 API. They have v2 API which has free plan and requires API keys. But as part of https://github.com/poanetwork/blockscout/issues/234 we alresy implemented fetching from CoinGecko. Now, coin id should be set for CoinGecko for the required coin. ``` config :explorer, Explorer.ExchangeRates.Source.CoinGecko, coin_id: System.get_env("COIN_GECKO_ID", "poa-network") ``` Or the `COIN_GECKO_ID` env var should be set. For example, COIN_GECKO_ID=poa-networkpull/2610/head
parent
e9d7b7cf51
commit
0da2afb1ca
@ -1,6 +1,6 @@ |
|||||||
defmodule Explorer.Chain.Supply.CoinMarketCap do |
defmodule Explorer.Chain.Supply.ExchangeRate do |
||||||
@moduledoc """ |
@moduledoc """ |
||||||
Defines the supply API for calculating supply for coins from coinmarketcap. |
Defines the supply API for calculating supply for coins from exchange_rate.. |
||||||
""" |
""" |
||||||
|
|
||||||
use Explorer.Chain.Supply |
use Explorer.Chain.Supply |
Loading…
Reference in new issue