Skip to main content

FXMacroData for Dask

Read FXMacroData public responses as a lazy Dask DataFrame. Join macroeconomic releases, central-bank decisions, FX, commodities and positioning data with your own partitioned datasets using ordinary Dask operations.

FXMacroData documentation

Install

Requires Python 3.10 or later and Dask 2026.8 or later. Install this package and its adjacent public client dependencies from the distribution supplied to you:

python -m pip install /path/to/fxmacrodata-public-client /path/to/fxmacrodata-platform-core /path/to/dask-fxmacrodata

Example

USD data is available without a key:

import dask.dataframe as dd
from fxmacrodata_dask import read_fxmacrodata

history = read_fxmacrodata("indicator_history", {"currency": "usd", "indicator": "policy_rate"})
observed = history[history["value"].notnull()][["date", "value", "record_json"]]
print(observed.compute())

read_fxmacrodata builds the graph without a request. compute, persist, to_parquet or any other executing operation performs the read. The frame has one partition because every operation returns one complete, bounded response; repartition after the read if downstream work needs more. Computing the same frame again performs a fresh read.

Credentials

Set FXMD_API_KEY in your environment or secret manager and pass its name:

calendar = read_fxmacrodata("release_calendar", {"currency": "eur"}, api_key_env="FXMD_API_KEY")

Only the variable name is stored in the task graph; the value is resolved by the worker that executes the read. Omit api_key_env for anonymous access. API keys, URLs and endpoint overrides are rejected as operation arguments.

Data semantics

Columns are operation, source_url, record_id, currency, indicator, date, announcement_datetime, value, value_text, record_json and response_json. value is nullable float64; every other column is a nullable string[pyarrow]. record_json retains the original record and response_json retains the complete response, including pagination and revision metadata. An empty response produces one envelope row with record_json = "null"; it is not an observation. Dates and announcement times remain source strings, no publication time is inferred and no missing value is filled. record_id is a stable hash of the operation and record, so repeated reads of unchanged data produce the same identifiers.

Historical operations follow all pages by default; complete_history=False requests the supplied page only. max_pages (default 10,000) raises on an incomplete history instead of truncating it. Every operation listed by fxmacrodata_platform_core.operations() is available, including MCP tools with an mcp_ prefix. Access requirements remain those of the selected operation.

Development

Run the offline tests with python -m pytest tests -q. They monkeypatch the public reader with fixture responses and never call the live service.

Metadata

Release files for dask-fxmacrodata 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 dask-fxmacrodata 0.1.0
File Size Uploaded Provenance Actions
dask_fxmacrodata-0.1.0.tar.gz 6.5 kB Without provenance Details for dask_fxmacrodata-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 11.8 kB

Release files / dask_fxmacrodata-0.1.0.tar.gz

Download URL dask_fxmacrodata-0.1.0.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7376e0d257ced9499c70e36d2cc80c25b859f36d7addd81f114cb06d912b325d
BLAKE2b-256 checksum
How to use checksums
8dc1e6c8dbc24391557669c446afb757113a98a24fa9c8ae722dd34eb3054661
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via FXMacroData-PackagePublisher/1.0

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

Download URL dask_fxmacrodata-0.1.0-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
916fa84c75569f1b39c211602ec5d705c7377fe1cba3c5479381b34fca8b02f9
BLAKE2b-256 checksum
How to use checksums
ebab6b008ddd5ab0672df6391ffd2fb85a8b223cb0263b506dec48af885f5f5a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via FXMacroData-PackagePublisher/1.0

Security for dask-fxmacrodata 0.1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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