/coinmarketcap_api_ex

Elixir client for coinmarketcap.com

Primary LanguageElixirMIT LicenseMIT

Unofficial Coinmarketcap.com API client

The following functions are available:

  • fetch_ticker and fetch_ticker("token_name") for ticker and 24h data
  • fetch_ticker_convert("price") and fetch_ticker_convert("token_name", "price") for ticker the convert price and 24h data
  • fetch_global_data for number of active tokens, assets, etc.
  • fetch_coin_data("token_name") for historical data
  • fetch_known_coins_data for all coinmarketcap tokens catalog

Installation

If available in Hex, the package can be installed as:

  1. Add coinmarketcap_com to your list of dependencies in mix.exs:

    def deps do [{:coinmarketcap_api_ex, "~> 0.0.1"}] end