Macro tape
Interest rates
404 for an unknown bank code.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
The macro tape and central-bank policy rates.
GET /macro
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
scenario_id | string | Yes | - | The world to read from. |
start_date / end_date | date | No | - | Inclusive window. |
limit | integer | No | 500 | Page size (max 10000). |
offset | integer | No | 0 | Pagination offset. |
curl -s "https://api.davidhf.com/macro?scenario_id=<id>&start_date=2026-01-02" \
-H "X-API-KEY: YOUR_API_KEY"
dd.macro.series(scenario_id="<id>", start_date="2026-01-02")
{
"macro_data": [
{
"time": "2026-01-02",
"regime_name": "inflation_shock",
"market_return": -0.0008,
"risk_free_rate": 0.052,
"ten_year_yield": 0.047,
"inflation_expectation": 0.034,
"credit_spread": 0.021,
"volatility_index": 23.4,
"metadata": { "...": "..." }
}
]
}
GET /macro/interest-rates
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
scenario_id | string | Yes | - | The world to read from. |
bank | string | Yes | - | Central-bank code (e.g. FED). |
start_date / end_date | date | No | - | Inclusive window. |
curl -s "https://api.davidhf.com/macro/interest-rates?scenario_id=<id>&bank=FED" \
-H "X-API-KEY: YOUR_API_KEY"
dd.macro.interest_rates("FED", scenario_id="<id>")
{ "interest_rates": [ { "bank": "FED", "effective_date": "2026-03-18", "target_low": 0.0475, "target_high": 0.0500, "decision": "hold" } ] }
404 for an unknown bank code.
GET /macro/interest-rates/snapshot
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
scenario_id | string | Yes | - | The world to read from. |
bank | string | Yes | - | Bank code. |
as_of | date | No | latest | Cutoff date. |
curl -s "https://api.davidhf.com/macro/interest-rates/snapshot?scenario_id=<id>&bank=FED&as_of=2026-03-26" \
-H "X-API-KEY: YOUR_API_KEY"
dd.macro.interest_rate_snapshot("FED", scenario_id="<id>", as_of="2026-03-26")
GET /macro/interest-rates/banks
curl -s "https://api.davidhf.com/macro/interest-rates/banks" \
-H "X-API-KEY: YOUR_API_KEY"
dd.macro.banks()
{ "banks": [ { "bank": "FED", "name": "Federal Reserve" }, { "bank": "ECB", "name": "European Central Bank" } ] }