Skip to content
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

How to get price information of coins with same symbol #21

Closed
1 of 4 tasks
cxd1995 opened this issue Sep 25, 2019 · 4 comments · Fixed by #62
Closed
1 of 4 tasks

How to get price information of coins with same symbol #21

cxd1995 opened this issue Sep 25, 2019 · 4 comments · Fixed by #62
Labels
enhancement New feature or request question Further information is requested

Comments

@cxd1995
Copy link

cxd1995 commented Sep 25, 2019

@guptarohit

This is a(n):

  • New feature
  • Update to an existing feature
  • Error
  • Proposal to the Repository

There are many coins with the same ticker symbol. For example, UNUS SED LEO and LEOcoin use the same ticker symbol LEO; Cosmos and Atomic Coin use the same ticker symbol ATOM; CyberMiles and Comet use the same ticker symbol CMT. The circumstance is common for coins.

So I am wondering how to get the price information of these coins that have the same symbol?

@guptarohit
Copy link
Owner

@cxd1995 Thanks for pointing out this case 👍

Currently, the only way I see to distinguish the coin with the same coin-code is by explicitly providing its coinmarketcap-id to fetch data. For example, Atomic Coin have cmc-id atomic-wallet-coin and Cosmos have cmc-id cosmos.
Let me know if you find any other solution. You can always send a PR :)
:octocat: 🍰

@cxd1995
Copy link
Author

cxd1995 commented Oct 7, 2019

Will the scraper still works if the input is the coinmarketcap-id? It seems that the input of the scraper could only be the ticker symbol such as ETH, BTC.

When I try to use the coinmarketcap-id such as atomic-wallet-coin and cosmos, the returned result is
"This coin code is unavailable on "coinmarketcap.com"

@guptarohit
Copy link
Owner

No, it doesn't accept coinmarketcap-id as input currently, will need make changes for that.

@guptarohit guptarohit self-assigned this Oct 17, 2019
@guptarohit guptarohit removed their assignment Oct 3, 2020
@ttozatto
Copy link
Contributor

I forked the project and added an id_number parameter, so you can pass instead of symbol.

You can check the id here https://web-api.coinmarketcap.com/v1/cryptocurrency/map?symbol=ATOM

You can clone the repository from here https://github.com/ttozatto/cryptoCMD.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
3 participants