0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions114

Convert → Convert Currency

AI-generated

Overview

This node performs currency conversion by taking an amount in a source currency and converting it to a target currency. It supports specifying the amount, source currency, target currency, and an optional date format for the conversion date. This is useful in financial applications, e-commerce, or any scenario where currency exchange calculations are needed.

Use Case Examples

  1. Convert 100 USD to EUR to get the equivalent amount in Euros.
  2. Convert 50 GBP to JPY with a specific date format to get historical exchange rates.

Properties

Name Meaning
Amount The amount of money to convert from the source currency to the target currency.
Source Currency The currency code of the original currency of the amount to be converted.
Target Currency The currency code to which the amount should be converted.
Date Format Optional date format in which the conversion date should be returned, e.g., YYYY-MM-DD.

Output

JSON

  • convertedAmount - The amount converted from the source currency to the target currency.
  • sourceCurrency - The original currency code of the amount.
  • targetCurrency - The currency code to which the amount was converted.
  • conversionDate - The date of the conversion, formatted according to the specified date format if provided.

Dependencies

  • An API key credential for the currency conversion service used by the node.

Troubleshooting

  • Ensure the source and target currency codes are valid and supported by the conversion service.
  • Verify that the amount is a positive number greater than or equal to 0.01.
  • If a date format is specified, ensure it is a valid date format string.
  • Check that the API key credential is correctly configured and has the necessary permissions for currency conversion.
  • Common error messages may include invalid currency codes, insufficient API permissions, or network connectivity issues. Resolving these typically involves correcting the input parameters or updating the API credentials.

Discussion