Get curve analytics by currency
Returns a currency-level curve view from official-source government bond tenor nodes. Use view=nodes for raw node snapshots, view=slopes for curve-slope and inversion analytics, or view=forwards for derived forward-rate segments.
Curve Families:
- Supported values: government_nominal.
Metrics:
- Supported values: spot.
Views:
- Supported values: nodes, slopes, forwards.
Authentication:
- Requires an Individual or Business API key via ?api_key=<key> or X-API-Key.
Request
- Base URL: https://api.fxmacrodata.com
- URL: https://api.fxmacrodata.com/v1/curves/{currency}
- Auth: one of:
- none
- API key in header X-API-Key
- HTTP bearer
Path parameters
Currency code
Required path parameter. Currency code Allowed values: AUD, CAD, CHF, CNH, CNY, DKK, EUR, GBP, ILS, JPY, KRW, MYR, NOK, NZD, PEN, SEK, THB, USD.
Query parameters
Official curve family to return.
Optional query parameter. Official curve family to return. Allowed values: government_nominal.
Curve metric to return.
Optional query parameter. Curve metric to return. Allowed values: spot.
Curve view to return: nodes, slopes, or forwards.
Optional query parameter. Curve view to return: nodes, slopes, or forwards. Allowed values: nodes, slopes, forwards.
Forward derivation method used when view=forwards.
Optional query parameter. Forward derivation method used when view=forwards. Allowed values: derived_from_spot_nodes.
Optional target date YYYY-MM-DD. The endpoint returns the latest available node per maturity up to this date, using a recent lookback window.
Optional query parameter. Optional target date YYYY-MM-DD. The endpoint returns the latest available node per maturity up to this date, using a recent lookback window.
Explicit UTC information cutoff for verified vintage replay; date means start of day.
Optional query parameter. Explicit UTC information cutoff for verified vintage replay; date means start of day.
Source-public or captured-value availability clock.
Optional query parameter. Source-public or captured-value availability clock.
Maximum reference-date age; defaults to 7 with as_of, otherwise 60.
Optional query parameter. Maximum reference-date age; defaults to 7 with as_of, otherwise 60.
Require all populated curve nodes to share a reference date; defaults true with as_of.
Optional query parameter. Require all populated curve nodes to share a reference date; defaults true with as_of.
Your Individual or Business API key
Deprecated: legacy query-string API key. Still accepted so existing integrations keep working, but new integrations must send the key in the X-API-Key header (or Authorization: Bearer). A key is required for non-USD, paid-only, or full-history requests. Responses to requests authenticated this way carry a Deprecation header.
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.