crystal-ball-markets
Python client for the free Crystal Ball Markets exchange rate and gold price API. It covers exchange rates for 60 currencies against the US dollar, the gold price in local money in 69 countries, and live quotes for forex, metals, energy, indices, shares and crypto. The data is JSON, refreshed every minute, and there is no sign-up. The client uses only the standard library.
pip install crystal-ball-markets
import os
from crystal_ball_markets import Client, ATTRIBUTION_HTML
cbm = Client(
site="https://your-site.com/rates", # the page of your site that shows the figures
key=os.environ["CBM_SITE_KEY"], # a secret of your own, 16+ characters
)
print(cbm.rate("EUR")) # euros per 1 US dollar
print(cbm.convert(100, "GBP", "NGN")) # 100 pounds in naira
print(cbm.gold_price("IN")) # gold price in India, in rupees
print(cbm.quote("XAUUSD")) # live gold quote
The first call reserves your site for your key. Responses are cached for at least 60 seconds.
Terms in short
Wherever the figures appear, show this link. It must be visible and unchanged, with no nofollow, ugc or sponsored. It is also available as ATTRIBUTION_HTML:
<a href="https://crystalballmarkets.com/markets">Rates by Crystal Ball Markets</a>
The named site must be on a domain of your own. Each address allows up to 60 requests a minute. The figures are indicative and for information only. Full terms: https://crystalballmarkets.com/markets/rates-api.
The client is MIT licensed. Questions: support@crystalballmarkets.com.
Metadata
Release files for crystal-ball-markets 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| crystal_ball_markets-1.0.0.tar.gz | 4.2 kB | With provenance | Details for crystal_ball_markets-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| crystal_ball_markets-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for crystal_ball_markets-1.0.0-py3-none-any.whl |
Total release size: 8.6 kB
Release files / crystal_ball_markets-1.0.0.tar.gz
| Download URL | crystal_ball_markets-1.0.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ee5349537b599002192edffa90cd35bc4de86b081c1b58175bbf3ba3445aa3d9
|
|
BLAKE2b-256 checksum How to use checksums |
7bb2570ac47eb9657d9fda19d304d33ce2db22945b37ab9d19b618f88f5008c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logRelease files / crystal_ball_markets-1.0.0-py3-none-any.whl
| Download URL | crystal_ball_markets-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
da303e5d947a61e8aca4bed5513924154b50460335efe8c3efa9cc42a61e3b7e
|
|
BLAKE2b-256 checksum How to use checksums |
f13a74f017a3fa1441c46540730987182f7e8c78681007cdbe260e6c4eca1225
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logSecurity for crystal-ball-markets 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for crystal_ball_markets-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.