Closed JacobHepworth closed 6 years ago
Hello @JacobHepworth,
can you share the whole code snippet you're trying to use? (Pastebin or Gist will do).
Cheers.
Getting the same error! Seems to happen when adding an optional currency.
Here's a code snippet:
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from coinmarketcap import Market
>>> coin = Market()
>>> coin.ticker(currency='CAD')
@404-brain That's mainly because you need to use the full name of the currency, so 'bitcoin' instead of 'BTC'.
Cheers.
@404-brain That was the problem. I was just confused by the exception that was given.
@mrsmn Any chance the ticker function could be improved to accept ticker symbols as well? It's hard to integrate with other libraries at the moment.
@benibienz The coinmarketcap API doesn't really allow for symbol input, only ID input is supported. Guess I could come up with something if people are interested.
I'm receiving the following error when trying to use the ticker method. I'm still able to access coinmarketcap.com regularly.