CoinMarketCap API icon

CoinMarketCap API

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

Price Conversion

AI-generated

Overview

This node performs price conversion between cryptocurrencies and fiat currencies using the CoinMarketCap API. It converts a specified amount from a source currency (e.g., BTC) to a target currency (e.g., USD). This is useful for applications needing real-time currency conversion rates, such as financial dashboards, trading bots, or portfolio trackers.

Use Case Examples

  1. Convert 1 BTC to USD to display the current value in a portfolio.
  2. Convert 100 USD to ETH to determine how much Ethereum can be bought with that amount.

Properties

Name Meaning
Convert The target currency to convert to (e.g., USD, EUR, BTC).
Amount The amount of the source currency to convert.
From Currency The source currency symbol or code to convert from (e.g., BTC, ETH).

Output

JSON

  • json
    • data - The conversion result data returned by the CoinMarketCap API, including the converted amount and currency details.

Dependencies

  • CoinMarketCap API key credential required for authentication.

Troubleshooting

  • Ensure the API key credential is correctly configured and has sufficient permissions.
  • Verify that the source and target currency codes are valid and supported by the API.
  • Check for network connectivity issues that might prevent API calls.
  • Common error messages include API key errors, invalid currency symbols, or rate limit exceeded errors. Resolving these involves correcting credentials, input parameters, or waiting before retrying.

Links

Discussion