CoinMarketCap API icon

CoinMarketCap API

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

Get Exchange Quotes Historical

AI-generated

Overview

This node operation retrieves historical exchange quotes from the CoinMarketCap API. It is useful for users who want to analyze past market data of a specific cryptocurrency exchange over a defined time period. For example, a user can fetch historical price quotes for the Binance exchange between two dates with a specified interval and number of data points.

Use Case Examples

  1. Fetch historical quotes for Binance exchange from 2023-01-01 to 2023-01-10 with daily intervals.
  2. Retrieve the last 20 historical quotes for Coinbase exchange with 1-hour intervals.

Properties

Name Meaning
Convert Currency to convert the exchange quotes into (e.g., USD, EUR, BTC). Default is USD.
Exchange Slug or ID of the exchange to retrieve historical quotes for. This is a required field.
Time Start Start date for the historical data in ISO 8601 format. Optional to define the beginning of the data range.
Time End End date for the historical data in ISO 8601 format. Optional to define the end of the data range.
Count Number of data points to return. Default is 10.
Interval Time interval between data points (e.g., 1m, 1h, 1d). Default is 1 day.

Output

JSON

  • data - The main data object containing historical exchange quotes returned by the API.
  • status - Status information about the API response, including error codes and messages if any.

Dependencies

  • CoinMarketCap API key credential required for authentication.

Troubleshooting

  • Common issues include invalid or missing API key, incorrect exchange slug or ID, invalid date formats for time_start or time_end, and exceeding API rate limits.
  • Error messages from the API are propagated with descriptive messages. Users should verify their API key validity, parameter correctness, and ensure the date range and count parameters are within allowed limits.

Links

Discussion