Currency Conversion avatar

Currency Conversion

Try for free

1 day trial then $7.50/month - No credit card required now

Go to Store
Currency Conversion

Currency Conversion

dev_bodex/currency-conversion
Try for free

1 day trial then $7.50/month - No credit card required now

This actor is designed to automate the process of real-time currency conversion by fetching live exchange rates and converting one currency to another.

Currency Conversion Actor

The Currency Conversion Actor allows you to easily convert currency values between different currencies in real-time using up-to-date exchange rates. This actor is ideal for financial applications, pricing adjustments, e-commerce, and any scenario where you need accurate currency conversions.

Features

  • Real-time conversion: Fetch the latest exchange rates to convert between any two supported currencies.
  • Customizable input: Specify the amount, base currency, and target currency.
  • Accurate and reliable: Uses up-to-date data to ensure accurate conversion rates.

Input Schema

The actor accepts the following inputs:

  • amount (required): The amount of currency to convert (e.g., 100).

  • currencyFrom (required): The currency you want to convert from (e.g., USD). It should be a valid currency code according to ISO 4217.

  • currencyTo (required): The currency you want to convert to (e.g., EUR). It should be a valid currency code according to ISO 4217.

Example Input:

1{
2    "amount": "1000",
3    "currencyFrom": "USD",
4    "currencyTo": "EUR"
5}

#Output Schema The actor will return a JSON object with the converted value and other relevant details:

  • amount: The value of the converted currency.
  • convert: The exchange rate used for the conversion.
  • rate: The currency you are converting from.

Example Output:

1{
2  "amount": 1000,
3  "convert": {
4    "currencyFrom": "1,000.00 US Dollars",
5    "currencyTo": "910.57232 Euros"
6  },
7  "rate":[
8    {
9      "currencyFrom": "1 USD",
10      "currencyTo": "0.910572 EUR"
11    },
12    {
13      "currencyFrom": "1 EUR",
14      "currencyTo": "1.09821 USD"
15    }
16  ]
17}

How to Use

  1. Go to the Currency Conversion Actor on Apify.
  2. Set up the required inputs (amount, currencyFrom, currencyTo).
  3. Run the actor and get real-time currency conversion results!

Use Cases

  • E-commerce: Convert prices from one currency to another for international users.
  • Travel: Calculate the equivalent value of foreign currencies before a trip.
  • Finance: Get real-time data on exchange rates for trading, accounting, or budgeting.

Example Scenarios

  1. Convert 100 USD to EUR.
  2. Convert 500 USD to GBP for travel budgeting.
  3. Use live exchange rates for a price comparison app.

Actor Settings

This actor uses Node.js and Puppeteer to fetch the latest exchange rate data from trusted online sources. You can extend its functionality by integrating it with specific API providers for enhanced data accuracy and reliability.

Support If you have any questions or need assistance, feel free to reach out!

Developer
Maintained by Community

Actor Metrics

  • 2 monthly users

  • 1 star

  • >99% runs succeeded

  • Created in Jul 2024

  • Modified a month ago

Categories