CurrencyCore SDK for Python
Official client for the CurrencyCore API — currency conversion, FX rates, PPP, and analytics.
Generated from the CurrencyCore OpenAPI 3.1 spec with
OpenAPI Generator (python, urllib3), plus a
thin create_client helper for API-key and version handling.
- Website: https://currency-core.com
- Documentation: https://currency-core.com/docs
Install
pip install currencycore
Quickstart
from currencycore.client import create_client
api = create_client(api_key="cc_live_...") # or set CURRENCYCORE_API_KEY
res = api.convert(var_from="USD", to="EUR", amount=100)
print(res.results[0])
var_from carries the var_ prefix because from is a reserved word in Python.
Public reference endpoints need no key:
api = create_client()
print(api.currencies())
Endpoints
All 14 endpoints are methods on the api client. * marks a required argument; the rest are optional. from/date become var_from/var_date (reserved words). Public = no key; Free = any plan with a key; Growth = Growth plan or higher.
| Endpoint | Call | Plan |
|---|---|---|
| Convert an amount (optional PPP) | api.convert(var_from*, to*, amount, ppp, var_date) |
Free |
| Rate snapshot for a date (USD base) | api.rates(var_date) |
Free |
| Rate snapshot in any base | api.rates_by_base(base*, var_date) |
Free |
| One currency's daily time series | api.history(currency*, var_from, to, base, interval) |
Growth |
| Trends, comparisons & movers | api.history_analysis(base, currencies, var_from, to, period, sort, asset_class, limit, interval, stats) |
Growth |
| PPP factor over time / movers | api.ppp_analysis(countries, var_from, to, period, sort, limit, stats) |
Growth |
| Volatility or stability ranking | api.volatility(currency, base, var_from, to, sort, universe, limit) |
Growth |
| Return correlation vs a base | api.correlation(currencies*, base, var_from, to) |
Growth |
| Max drawdown or ranking | api.drawdown(currency, base, var_from, to, sort, universe, limit) |
Growth |
| Safe-haven score ranking | api.safe_haven(currencies, base, var_from, to, limit) |
Growth |
| Mean-reversion ranking | api.mean_reversion(currencies, base, var_from, to, limit) |
Growth |
| Supported countries + currencies | api.countries() |
Public |
| Supported ISO 4217 currencies | api.currencies() |
Public |
| Natural-language question | api.ai(q*) |
Free |
More calls:
api.rates() # latest snapshot (USD base)
api.rates_by_base(base="EUR") # same snapshot, EUR base
api.history(currency="INR", var_from="2024-01-01")
api.volatility(universe="majors", sort="volatile") # most-volatile majors
api.ai(q="How has the rupee moved this year?")
API key
create_client resolves the key as api_key → CURRENCYCORE_API_KEY.
API version
Base URL is https://api.currency-core.com/{version} (default v1):
create_client(version="v1")
create_client(base_url="https://api.currency-core.com/v1")
Low-level client
import currencycore
config = currencycore.Configuration(
host="https://api.currency-core.com/v1", access_token="cc_live_..."
)
api = currencycore.CurrencyCoreApi(currencycore.ApiClient(config))
Regenerate
The committed openapi.json is the source of truth:
bash scripts/generate.sh
Hand-written files (currencycore/client.py, this README) are protected by
.openapi-generator-ignore.
License
MIT
Metadata
Release files for currencycore 0.1.2
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 |
|---|---|---|---|---|
| currencycore-0.1.2.tar.gz | 44.2 kB | With provenance | Details for currencycore-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| currencycore-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for currencycore-0.1.2-py3-none-any.whl |
Total release size: 123.4 kB
Release files / currencycore-0.1.2.tar.gz
| Download URL | currencycore-0.1.2.tar.gz |
|---|---|
| Size | 44.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
68cff5bd6a4c5f87741ffd365845d8928d61e1f52803a6e578c85ccf81bec95a
|
|
BLAKE2b-256 checksum How to use checksums |
120f1cfee594e2871e7b6e64e4050b6b04a6f74b87f71fdb5a90a99b964ed254
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 23, 2026.
Transparency logRelease files / currencycore-0.1.2-py3-none-any.whl
| Download URL | currencycore-0.1.2-py3-none-any.whl |
|---|---|
| Size | 79.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
26c16ff6edf1cf5929a1cb2d3c88aab7994a69ef6074e4850bac5d1b49af9fe6
|
|
BLAKE2b-256 checksum How to use checksums |
babd9352f253e2494496370de1002041022baeb83ded5b2644dac881a4b967ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jun 23, 2026.
Transparency logSecurity for currencycore 0.1.2
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
All 2 files in this release have been uploaded with provenance metadata.
Attestation for currencycore-0.1.2.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 Jun 23, 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.