CoinGecko API icon

CoinGecko API

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

Get Coin Market Chart Range

AI-generated

Overview

This node operation fetches the market chart data for a specific cryptocurrency over a defined date range using the CoinGecko API. It is useful for analyzing historical price trends and market behavior of a cryptocurrency between two specific dates. For example, a user can retrieve Bitcoin's market chart data from January 1, 2023, to March 1, 2023, to study its price fluctuations during that period.

Use Case Examples

  1. Retrieve Bitcoin market chart data from 2023-01-01 to 2023-03-01 in USD.
  2. Get Ethereum market chart data from 2023-05-01 to 2023-06-01 in EUR.

Properties

Name Meaning
From Date The start date of the market chart data range, provided as a Unix timestamp. This is a required field to specify the beginning of the data period.
To Date The end date of the market chart data range, provided as a Unix timestamp. This is a required field to specify the end of the data period.
Coin ID The identifier of the cryptocurrency for which the market chart data is requested. This is a required field, e.g., 'bitcoin'.
VS Currency The reference currency in which the market data prices are expressed, such as USD, EUR, BTC, etc. This helps to get price data in the desired currency.

Output

JSON

  • prices - Array of price points over the specified date range.
  • market_caps - Array of market capitalization data over the specified date range.
  • total_volumes - Array of total volume data over the specified date range.

Dependencies

  • CoinGecko public API

Troubleshooting

  • Ensure 'From Date' and 'To Date' are valid Unix timestamps and 'From Date' is earlier than 'To Date'.
  • Verify that the 'Coin ID' is correct and supported by the CoinGecko API.
  • Check internet connectivity as the node fetches data from the CoinGecko public API.
  • If the API rate limit is exceeded, wait and retry later.

Links

Discussion