CoinGecko API icon

CoinGecko API

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

Get Coin Price

AI-generated

Overview

This node operation retrieves the current price of one or more specified cryptocurrencies using the CoinGecko API. It allows users to specify the cryptocurrencies by their IDs and choose a reference currency for the price. Additionally, users can optionally include market capitalization, 24-hour trading volume, and 24-hour price change in the response. This operation is useful for applications that need up-to-date cryptocurrency price data, such as portfolio trackers, trading bots, or financial dashboards.

Use Case Examples

  1. Get the current price of Bitcoin and Ethereum in USD.
  2. Retrieve the price of Cardano in EUR including market cap and 24h volume.
  3. Fetch the price of multiple coins in BTC without additional market data.

Properties

Name Meaning
Coin IDs IDs of the cryptocurrencies to retrieve prices for, separated by commas.
VS Currency The reference currency in which to get the cryptocurrency prices (e.g., USD, EUR, BTC).
Include Market Cap Whether to include the market capitalization data in the response.
Include 24h Volume Whether to include the 24-hour trading volume data in the response.
Include 24h Change Whether to include the 24-hour price change data in the response.

Output

JSON

  • json - The JSON response from the CoinGecko API containing the current price and optionally market cap, 24h volume, and 24h change for the specified cryptocurrencies.

Dependencies

  • CoinGecko public API

Troubleshooting

  • Common issues include invalid or misspelled coin IDs, unsupported reference currencies, or network connectivity problems.
  • If the API returns an error, verify that the coin IDs and VS currency are correct and supported by CoinGecko.
  • Ensure the node has internet access to reach the CoinGecko API endpoint.
  • If the node throws an 'Operation not supported' error, confirm that the operation parameter is set to 'getCoinPrice'.

Links

Discussion