Skip to main content

a python API wrapper for the free fixer.io API

Project description

pyFixerio

A Python wrapper for fixer.io API endpoints.

This wrapper only uses the free version of the API, but delivers similar functionality to paid versions. Namely, the wrapper deals with fixer.io's restrictions on: - Base currency is only allowed to be 'EUR' - No access to the time series API

Basic usage

>>> from pyfixerio import Fixerio

>>> fx = Fixerio('ACCESS_KEY')

>>> fx.current('EURUSD')

### {'EURUSD', 1.1423}

>>> fx.historical('USDGBP', '2019-01-05')

### {'2019-01-05': {'USDGBP': 0.8432'}}

TODO:

  • Validate access key
  • Implement fallback API
  • learn proper import methods for 3rd party modules
  • Create virtual environment and requirements.txt
  • package script for usage on pypi
  • implement proper documentation for each method
  • When converting / dividing to find base rate - round currency decimal places

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyfixerio, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size pyfixerio-0.0.3-py3-none-any.whl (4.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pyfixerio-0.0.3.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page