Unofficial Coinmarketcap.com API client
The following functions are available:
fetch_ticker
andfetch_ticker("token_name")
for ticker and 24h datafetch_ticker_convert("price")
andfetch_ticker_convert("token_name", "price")
for ticker the convert price and 24h datafetch_global_data
for number of active tokens, assets, etc.fetch_coin_data("token_name")
for historical datafetch_known_coins_data
for all coinmarketcap tokens catalog
Installation
If available in Hex, the package can be installed as:
-
Add coinmarketcap_com to your list of dependencies in
mix.exs
:def deps do [{:coinmarketcap_api_ex, "~> 0.0.1"}] end