CoinGecko API icon

CoinGecko API

Accède aux données de cryptomonnaies via l'API CoinGecko - Prix, marchés, historiques

Get Coin Market Chart

AI-generated

Overview

This node operation fetches the market chart data of a specified cryptocurrency from the CoinGecko API. It retrieves historical price, market cap, and volume data over a defined number of days in a chosen reference currency. This is useful for analyzing the price trends and market behavior of cryptocurrencies over time.

Use Case Examples

  1. Tracking Bitcoin's price movements over the past 30 days in USD.
  2. Analyzing Ethereum's market cap and volume trends over the last 7 days in EUR.

Properties

Name Meaning
Coin ID The identifier of the cryptocurrency to fetch market chart data for (e.g., bitcoin).
VS Currency The reference currency in which prices are displayed (e.g., USD, EUR).
Days The number of days of historical data to retrieve (e.g., 1, 7, 30, max).

Output

JSON

  • json
    • prices - Array of price points over the specified period
    • market_caps - Array of market capitalization data points over the specified period
    • total_volumes - Array of total volume data points over the specified period

Dependencies

  • CoinGecko public API

Troubleshooting

  • Ensure the Coin ID is valid and exists on CoinGecko.
  • Verify the VS Currency is supported by the API.
  • Check network connectivity to the CoinGecko API endpoint.
  • If the API returns an error, verify the date range and parameters are correctly formatted.

Links

Discussion