Currency Exchange Rates

Script to retrieve currency exchange rates and put them in a CSV, plus the CSV with daily data
Alternatives To Currency Exchange Rates
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Module Matrixrate113629 months ago24June 21, 20222osl-3.0PHP
WebShopApps MatrixRates for Magento2
Magento_eu_tax_rates103
2 months agoShell
Magento CSV taxrates for usage within the EU
Vat Rates84
2 months ago8bsd-2-clause
💸 {Digital,Cloud,Electronic,Online} Services VAT Rate Database
Chalaoshi44
5 years ago4JavaScript
查老师-面向学生的匿名教评平台 Chinese Rate My Professor
Plex2letterboxd41
5 months agomitPython
Export your watched movies on Plex to the Letterboxd Import Format.
Workout34
a year ago9mitSwift
A simple iOS app that accesses Health data to export workout data to CSV for any use.
Climbing_ratings21
a month agoapache-2.0Python
route and climber ratings for rock climbing
Justdail Scrapper20
a year ago1Python
A 100% working Justdial scrapper, Just enter the url and it'll extract business info from it
Claimskg Extractor16
a year ago1Jupyter Notebook
Claim Review extractor for ClaimsKG
Get Heart Rate Csv13
5 years agomitPython
A small Python script to get the heart rate data generated from an Apple Watch in a CSV form
Alternatives To Currency Exchange Rates
Select To Compare


Alternative Project Comparisons
Readme

currency-exchange-rates

Script to retrieve currency exchange rates and put them in a CSV, plus a CSV with data added every day. Attempts to have a lot of currencies.

Uses the Yahoo Finance API (which has a lot of currencies) to retrieve current exchange rates and stick them in a CSV together with the date.

This repository will be updated once in a while to include daily data.

This should not break when the world changes and currencies appear or disappear -- the script will just retrieve whatever is available and correctly merge the new data with the old CSV. (Therefore the CSV file cannot be append-only. At least it is written atomically.)

Usage

  • rates.csv: Data that falls out of the script when it is run once a day (from 2017-01-10). Example thing to do with it:

    from datetime import date
    from currency_converter import CurrencyConverter  # https://pypi.python.org/pypi/CurrencyConverter/
    URL = 'https://raw.githubusercontent.com/AnotherKamila/currency-exchange-rates/master/rates.csv'
    cc = CurrencyConverter(URL, ref_currency='USD')
    print(cc.convert(10, 'EUR', 'CHF', date=date(2016, 12, 20)))  # prints 10.69
    
  • getrates.py: commandline tool to retrieve the data. Make sure to install the requirements (probably in a venv). See getrates.py --help.

  • cron.sh: If your venv is called venv and the requirements are installed, this will run getrates.py and commit the updated rates.csv.

All of this is best effort: I will not be responsible if your world-domination bot makes wrong decisions because of the data/script here.

License

I believe that the currency exchange rates are public domain, correct me if I am wrong.

I unlicense everything in this repository. But it would be nice if you linked to this repo when you use it.

Popular Csv Projects
Popular Rating Projects
Popular Data Formats Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Python
Csv
Rate
Currency