Skip to content

This project allows you to fetch real-time currency exchange rates from an API and save the data in a CSV file. The exchange rates are retrieved from the **apilayer.net** API, and the data is processed and written into a CSV file. This can be used for business intelligence reporting or any system that requires real-time currency rate information

Notifications You must be signed in to change notification settings

dihitha-n/Realtime_Currency_Exchange_Rates_To_CSV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Real-time Currency Exchange Rates To CSV

This project allows you to fetch real-time currency exchange rates from an API and save the data in a CSV file. The exchange rates are retrieved from the apilayer.net API, and the data is processed and written into a CSV file. This can be used for business intelligence reporting or any system that requires real-time currency rate information

Features

  • Fetches real-time currency exchange rates from the apilayer.net API.
  • Saves the exchange rate data for all currencies against USD in a CSV file.
  • Easy-to-use solution for business intelligence reporting purposes.

Requirements

  • Python or Java
  • requests library for Python, or the appropriate HTTP library for Java.
  • apilayer.net API key.

Script Overview

  • Fetches Exchange Rates: The script sends an HTTP GET request to the API endpoint using the requests library to retrieve real-time exchange rates.
  • Parses the Response: The JSON response is parsed to extract the exchange rates.
  • Writes Data to CSV: The script processes the rates and writes them into a CSV file with the currency code and its corresponding rate against USD.

API Key Setup

To fetch real-time currency exchange rates, you'll need an API key from apilayer.net. You can sign up and get your API key from apilayer.net.
Replace the access_key parameter in the url variable with your personal API key:

url = "http://apilayer.net/api/live?access_key=YOUR_API_KEY&source=USD&format=1"


** This update clearly indicates that both **Python** and **Java** implementations are available, and users can choose the one that fits their preference.

About

This project allows you to fetch real-time currency exchange rates from an API and save the data in a CSV file. The exchange rates are retrieved from the **apilayer.net** API, and the data is processed and written into a CSV file. This can be used for business intelligence reporting or any system that requires real-time currency rate information

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published