Documentation JSON API CoinMarketCap

Version 1


Méthodes API Public

Ticker

  • Endpoint: /ticker/
  • Méthode: GET
  • Paramètre facultatif:
    • (int) débuter – afficher les résultats du classement [Début] et ci-dessus
    • (int) limiter - afficher un maximum de [limite] résultats (par défaut est 100, utiliser 0 afficher tous les résultats)
    • (string) convertir - afficher prix, volume 24h, et cap. marché en une autre devise. Valeurs valides sont :
      "AUD", "BRL", "CAD", "CHF", "CLP", "CNY", "CZK", "DKK", "EUR", "GBP", "HKD", "HUF", "IDR", "ILS", "INR", "JPY", "KRW", "MXN", "MYR", "NOK", "NZD", "PHP", "PKR", "PLN", "RUB", "SEK", "SGD", "THB", "TRY", "TWD", "ZAR"
  • Exemple: https://api.coinmarketcap.com/v1/ticker/
  • Exemple: https://api.coinmarketcap.com/v1/ticker/?limit=10
  • Exemple: https://api.coinmarketcap.com/v1/ticker/?start=100&limit=10
  • Exemple: https://api.coinmarketcap.com/v1/ticker/?convert=EUR&limit=10
  • Exemple de Réponse:
    [
        {
            "id": "bitcoin",
            "name": "Bitcoin",
            "symbol": "BTC",
            "rank": "1",
            "price_usd": "573.137",
            "price_btc": "1.0",
            "24h_volume_usd": "72855700.0",
            "market_cap_usd": "9080883500.0",
            "available_supply": "15844176.0",
            "total_supply": "15844176.0",
            "percent_change_1h": "0.04",
            "percent_change_24h": "-0.3",
            "percent_change_7d": "-0.57",
            "last_updated": "1472762067"
        },
        {
            "id": "ethereum",
            "name": "Ethereum",
            "symbol": "ETH",
            "rank": "2",
            "price_usd": "12.1844",
            "price_btc": "0.021262",
            "24h_volume_usd": "24085900.0",
            "market_cap_usd": "1018098455.0",
            "available_supply": "83557537.0",
            "total_supply": "83557537.0",
            "percent_change_1h": "-0.58",
            "percent_change_24h": "6.34",
            "percent_change_7d": "8.59",
            "last_updated": "1472762062"
        },
        ...
    ]                               

Ticker (Devise Spécifique)

  • Endpoint: /ticker/{id}/
  • Méthode: GET
  • Paramètre facultatif:
    • (string) convertir - afficher prix, volume 24h, et cap. marché en une autre devise. Valeurs valides sont :
      "AUD", "BRL", "CAD", "CHF", "CLP", "CNY", "CZK", "DKK", "EUR", "GBP", "HKD", "HUF", "IDR", "ILS", "INR", "JPY", "KRW", "MXN", "MYR", "NOK", "NZD", "PHP", "PKR", "PLN", "RUB", "SEK", "SGD", "THB", "TRY", "TWD", "ZAR"
  • Exemple: https://api.coinmarketcap.com/v1/ticker/bitcoin/
  • Exemple: https://api.coinmarketcap.com/v1/ticker/bitcoin/?convert=EUR
  • Exemple de Réponse:
    [
        {
            "id": "bitcoin",
            "name": "Bitcoin",
            "symbol": "BTC",
            "rank": "1",
            "price_usd": "573.137",
            "price_btc": "1.0",
            "24h_volume_usd": "72855700.0",
            "market_cap_usd": "9080883500.0",
            "available_supply": "15844176.0",
            "total_supply": "15844176.0",
            "max_supply": "21000000.0",
            "percent_change_1h": "0.04",
            "percent_change_24h": "-0.3",
            "percent_change_7d": "-0.57",
            "last_updated": "1472762067"
        }
    ]               
  • Exemple de Réponse d’Erreur:
    {
        "error": "id not found"
    }                               

Données Générales

  • Endpoint: /global/
  • Méthode: GET
  • Paramètre facultatif:
    • (string) convertir - afficher Volume 24h , et cap. du marché en une autre devise. Valeurs valides sont :
      "AUD", "BRL", "CAD", "CHF", "CLP", "CNY", "CZK", "DKK", "EUR", "GBP", "HKD", "HUF", "IDR", "ILS", "INR", "JPY", "KRW", "MXN", "MYR", "NOK", "NZD", "PHP", "PKR", "PLN", "RUB", "SEK", "SGD", "THB", "TRY", "TWD", "ZAR"
  • Exemple: https://api.coinmarketcap.com/v1/global/
  • Exemple: https://api.coinmarketcap.com/v1/global/?convert=EUR
  • Exemple de Réponse:
    {
        "total_market_cap_usd": 201241796675,
        "total_24h_volume_usd": 4548680009,
        "bitcoin_percentage_of_market_cap": 62.54,
        "active_currencies": 896,
        "active_assets": 360,
        "active_markets": 6439,
        "last_updated": 1509909852
    }                       

Historiques des Données

Prochainement

API payée

Prochainement - Veuillez remplir le formulaire de contact afin d’être avisé des communiqués.

Notes

Divers

Limites

  • Veuillez limiter vos requêtes à moins de 10 par minute.
  • Endpoints Mise à jour toutes les 5 minutes.

Documentation Dernière Mise à Jour

  • 07 novembre 2017