Skip to main content

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

Metadata

Release files for cbfx 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cbfx 0.1.0
File Size Uploaded
cbfx-0.1.0.tar.gz 17.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cbfx 0.1.0
File Interpreter ABI Platform
cbfx-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 36.2 kB

Release files / cbfx-0.1.0.tar.gz

Download URL cbfx-0.1.0.tar.gz
Size 17.8 kB
Tags Source
SHA-256 checksum
How to use checksums
5fd4b91766197c797c36db73426967500fd3be2a5f055d11a4b38a17b84ad0af
BLAKE2b-256 checksum
How to use checksums
fd8d67e5538548822f49dbdc552a8a5cd15e640db522e6f829a275f77bb31cd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / cbfx-0.1.0-py3-none-any.whl

Download URL cbfx-0.1.0-py3-none-any.whl
Size 18.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e8305a333a1dab65b042293167f684199a44b5f4dee5e24d978fc05011657974
BLAKE2b-256 checksum
How to use checksums
d424c649407c96251cd23a4c1dc630bef6e7e8dc1e939de93f23c2da88b8cf90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page