Closed ddarbs closed 6 years ago
Please, paste your code and the coins you want to "get" so we can check
Formatting messing up when I try to post here. https://pastebin.com/WEkwT8p5
BTM I am trying to get Bitmark, not Bytom.
https://api.coinmarketcap.com/v1/ticker/?&limit=0
Can you check (sorry my mobile can't do the search for the whole list) if they actually have same symbol? (BTM)
If that is the case, will need to add new function and ask for the name or id instead of the symbol
No worries, yes they both have the symbol BTM, but Bytom is a higher rank than Bitmark.
We had the code to search for "id" before, but adding the coin symbol was easier and friendly..
We may need to go back to id or check for other options
Would it be easier to add a part for exceptions? if the id = ___ then skip it until the next instance of the symbol type thing.
I think that will make things more complex.
"id" should be unique, so I think will be a good idea to use it
Can't imagine the confusion in the exchanges with that...
True. Changing to using 'id' and changing the symbols to ids worked.
Weird, good catch. I thought symbols were unique as well. That's an oversight on my part. I changed it to symbols because it's more of a pain for people to look through the api list to find the correct ID. I think we may just need to provide a list that's updated periodically with the name
, id
, and symbol
of the coins in the API.
Symbol BTM returns coin Bytom, but I am looking to return BTM Bitmark.