blockscout icon indicating copy to clipboard operation
blockscout copied to clipboard

coinmarketcap price not update

Open qbittex opened this issue 2 years ago • 1 comments

i add env EXCHANGE_RATES_SOURCE=coin_market_cap EXCHANGE_RATES_COINMARKETCAP_API_KEY=API key

and run again explorer but still price show N/A and marketcap shop $0.00 USD

what i missing please someone help me

qbittex avatar Sep 19 '22 22:09 qbittex

@qbittex you also should set COIN, which should be searchable at CoinMarketCap. Did you set?

vbaranov avatar Sep 22 '22 10:09 vbaranov

@qbittex you also should set COIN, which should be searchable at CoinMarketCap. Did you set?

you mean this export COIN=coinname yes i already set this

qbittex avatar Sep 26 '22 10:09 qbittex

Add COIN to the explorer env vars - the same where you set EXCHANGE_RATES_SOURCE and EXCHANGE_RATES_COINMARKETCAP_API_KEY . The value is the ticker of the coin, which equal ticker in CoinMarketCap.

vbaranov avatar Sep 26 '22 10:09 vbaranov

Add COIN to the explorer env vars - the same where you set EXCHANGE_RATES_SOURCE and EXCHANGE_RATES_COINMARKETCAP_API_KEY . The value is the ticker of the coin, which equal ticker in CoinMarketCap.

already set export COIN=coinname

qbittex avatar Sep 26 '22 10:09 qbittex

What is the value of COIN?

vbaranov avatar Sep 26 '22 10:09 vbaranov

What is the value of COIN?

$0.0001051

qbittex avatar Sep 26 '22 10:09 qbittex

No, I mean ticker value. What is the coin?

vbaranov avatar Sep 26 '22 10:09 vbaranov

I see coin price:

Screenshot 2022-09-26 at 13 56 51

COIN=RISU
EXCHANGE_RATES_SOURCE=coin_market_cap
EXCHANGE_RATES_COINMARKETCAP_API_KEY=...

Probably, provided CoinMarketCap api key is not valid.

vbaranov avatar Sep 26 '22 11:09 vbaranov

I see coin price:

Screenshot 2022-09-26 at 13 56 51

COIN=RISU
EXCHANGE_RATES_SOURCE=coin_market_cap
EXCHANGE_RATES_COINMARKETCAP_API_KEY=...

Probably, provided CoinMarketCap api key is not valid.

where you see i have show

image

qbittex avatar Sep 26 '22 11:09 qbittex

I just run Blockscout locally with env variables, I've posted above. How did you run Blockscout?

vbaranov avatar Sep 26 '22 11:09 vbaranov

I just run Blockscout locally with env variables, I've posted above. How did you run Blockscout?

i run on server

can you give me api which you use for testing and its show you price

qbittex avatar Sep 26 '22 11:09 qbittex

I provided ENV vars above, which I set for my local deployment. I follow https://docs.blockscout.com/for-developers/manual-deployment. Is your deployment different?

vbaranov avatar Sep 26 '22 11:09 vbaranov

I provided ENV vars above, which I set for my local deployment. I follow https://docs.blockscout.com/for-developers/manual-deployment. Is your deployment different?

you use coinmarketcap basic API or pro?

qbittex avatar Sep 26 '22 11:09 qbittex

I just run Blockscout locally with env variables, I've posted above. How did you run Blockscout?

which command you run blockscout locally can you please tell me

qbittex avatar Sep 26 '22 15:09 qbittex

Exactly as in the guide:

  1. Return to the root directory and start the Phoenix Server. mix phx.server

vbaranov avatar Sep 26 '22 15:09 vbaranov

@qbittex I didn't get from you how did you run Blockscout, but if you're using Docker-compose you need also set DISABLE_EXCHANGE_RATES=false. By default price feed is disabled.

vbaranov avatar Sep 27 '22 09:09 vbaranov

I am closing this. Let us know if you still experience the issue.

vbaranov avatar Oct 04 '22 07:10 vbaranov