Skip to main content

Bulgarian National Bank - get history exchage rates

Project description

bnbxrate

Provides historical exchange rates USD/BGN for a given date. The main source of the data is Bulgarian National Bank - bnb.bg.

Usage

bnbxrate '01.01.2020'

In this case the provided date was a national holiday, so the result is for the last working day:

{'31.12.2019': '1.74099'}

The date format should be in '%d.%m.%Y'.

Installation

Create a virtual environment with python3.6+, before running the code.

git clone https://github.com/hristo-mavrodiev/bnbxrate.git
cd bnbxrate
pip install -r requirements.txt
python setup.py install

License

MIT

Project details


Download files

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

Source Distribution

bnbxrate-0.1.0.tar.gz (7.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page