Skip to main content

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


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cbfx-0.1.0-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

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

Hashes for cbfx-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5fd4b91766197c797c36db73426967500fd3be2a5f055d11a4b38a17b84ad0af
MD5 6e4c97c9bf5f055dfe876bebea71b41f
BLAKE2b-256 fd8d67e5538548822f49dbdc552a8a5cd15e640db522e6f829a275f77bb31cd3

See more details on using hashes here.

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

Hashes for cbfx-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e8305a333a1dab65b042293167f684199a44b5f4dee5e24d978fc05011657974
MD5 88161bc125292f62b55c663e8aa403e5
BLAKE2b-256 d424c649407c96251cd23a4c1dc630bef6e7e8dc1e939de93f23c2da88b8cf90

See more details on using hashes here.

Supported by

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