Get foreign exchange rates by parsing central bank websites
Project description
cbfx
Get current foreign exchange rates (local currency → USD) by parsing central bank websites.
Installation
pip install -e .
Usage
from cbfx import get_rate, supported
# By country code
rate = get_rate(country="VN")
# By currency code
rate = get_rate(currency="THB")
# See all supported countries
print(supported()) # {'PH': 'PHP', 'TH': 'THB', 'VN': 'VND'}
Supported Countries
| Country | Code | Currency | Source |
|---|---|---|---|
| Philippines | PH | PHP | Bangko Sentral ng Pilipinas |
| Thailand | TH | THB | Bank of Thailand |
| Vietnam | VN | VND | State Bank of Vietnam |
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cbfx-0.1.0.tar.gz
(17.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
cbfx-0.1.0-py3-none-any.whl
(18.4 kB
view details)
File details
Details for the file cbfx-0.1.0.tar.gz.
File metadata
- Download URL: cbfx-0.1.0.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fd4b91766197c797c36db73426967500fd3be2a5f055d11a4b38a17b84ad0af
|
|
| MD5 |
6e4c97c9bf5f055dfe876bebea71b41f
|
|
| BLAKE2b-256 |
fd8d67e5538548822f49dbdc552a8a5cd15e640db522e6f829a275f77bb31cd3
|
File details
Details for the file cbfx-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cbfx-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8305a333a1dab65b042293167f684199a44b5f4dee5e24d978fc05011657974
|
|
| MD5 |
88161bc125292f62b55c663e8aa403e5
|
|
| BLAKE2b-256 |
d424c649407c96251cd23a4c1dc630bef6e7e8dc1e939de93f23c2da88b8cf90
|