-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fetch coin gecko id based on coin symbol #2662
Conversation
Coin Gecko provides API with all listed coins. We can use this API to find coin id instead of setting it by hand.
Pull Request Test Coverage Report for Build 1a214014-d8f3-41a6-b637-b56f4580fe6a
💛 - Coveralls |
@@ -18,6 +18,26 @@ defmodule Explorer.ExchangeRates.Source.CoinGeckoTest do | |||
} | |||
""" | |||
|
|||
@coins_list """ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ayrat555 let's add coins for all chains, that we support, to the tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@can you please list their coin symbols defined as COIN
in env vars?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ETH, POA, RBTC, DAI, CLO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added tests for all supported chains
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ayrat555 in case of RSK market cap is empty for some reason (COIN=RBTC
):
@vbaranov rootstock market cap calculation uses records from db. I think your db was empty that's why it returned 0. on production it should be correc |
Coin Gecko provides API with all listed coins.
We can use this API to find coin id instead of setting
it by hand.
Changelog