Skip to main content
All examples use the requests library. If you prefer httpx, the interface is nearly identical.

Setup

setup.py

Fetch observations

Output

Point-in-time query

Output

Yield curve

Output

Pagination helper

Most endpoints return up to 1,000 rows per request. Page through results with cursor:
helpers.py

Error handling

The API returns RFC 9457 Problem Details for all errors. Check status to decide how to handle it — 429 means back off, 400 means fix your request, 401 means check your key.
Last modified on March 29, 2026