Skip to content

Rates and markets endpoint

Yield curves

Government yield curves with slopes and tenor nodes, straight from official bond data.

GET/v1/curves/{currency}
Individual API key required AI tool: rate_curve

An active Individual subscription and API key are required for every request.

1Route
12Parameters
JSONResponse
curl -H "X-API-Key: YOUR_API_KEY" \
  "https://api.fxmacrodata.com/v1/curves/usd"

What it can do

1 route in this endpoint

Reference

Parameters and response fields

GET /v1/curves/{currency} Get curve analytics by currency
Individual API key required

An active Individual subscription and API key are required for every request.

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.

Parameters

NameInTypeDetails
currencyRequired path string Currency code Allowed: 28 currencies.
curve_family query string Official curve family to return. Allowed: government_nominal. Default: government_nominal.
metric query string Curve metric to return. Allowed: spot. Default: spot.
view query string Curve view to return: nodes, slopes, or forwards. Allowed: nodes, slopes, forwards. Default: nodes.
method query string Forward derivation method used when view=forwards. Allowed: derived_from_spot_nodes. Default: derived_from_spot_nodes.
date query string Optional target date YYYY-MM-DD. The endpoint returns the latest available node per maturity up to this date, using a recent lookback window.
as_of query string Explicit UTC information cutoff for verified vintage replay; date means start of day.
availability query string Source-public or captured-value availability clock. Default: public.
max_staleness_days query integer Maximum reference-date age; defaults to 7 with as_of, otherwise 60.
require_common_date query boolean Require all populated curve nodes to share a reference date; defaults true with as_of.
api_key query string 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.
lang query string Optional language for names and labels, for example es or pt-BR. A regional tag falls back to its base language, and a language that is not yet available returns English with Content-Language: en. Translated fields keep the English text in <field>_original and add a <field>_localized flag. Slugs, field names, codes, dates and values never change. Omit it for English.

Response fields

FieldTypeDetails
researchobject
currencystring
curve_familystring
viewstring
metricstring
methodstring
requested_datestring
as_ofstring
node_countinteger
slope_countinteger
inverted_countinteger
segment_countinteger
sources[]string[]
official_forward_source_supportobjectHow the official publisher makes forward rates available, if at all.
official_forward_source_support.source_typestring
official_forward_source_support.source_notestring
data_qualityobject
data_quality.source_freshnessstring
data_quality.source_monitoring_completeboolean
data_quality.known_source_gapboolean
data_quality.source_checked_atinteger
data_quality.source_check_expires_atinteger
data_quality.latest_published_periodstring
data_quality.source_permission_statusstring
data_quality.commodity_coverageobject
data_quality.commodity_coverage.scopestring
data_quality.commodity_coverage.requested_startstring
data_quality.commodity_coverage.requested_endstring
data_quality.commodity_coverage.available_startstring
data_quality.commodity_coverage.available_endstring
data_quality.commodity_coverage.input_row_countinteger
data_quality.commodity_coverage.row_countinteger
data_quality.commodity_coverage.distinct_date_countinteger
data_quality.commodity_coverage.duplicate_date_row_countinteger
data_quality.commodity_coverage.excluded_weekend_row_countinteger
data_quality.commodity_coverage.invalid_date_row_countinteger

Full schema in the API reference

Works well with

Endpoints people use alongside Yield curves

The whole API

All 24 endpoint guides

Open the endpoint map

AI Answer-Ready

Key Facts

Page
Yield Curves
Section
Documentation
Canonical URL
https://fxmacrodata.com/documentation/endpoints/yield-curves
Source
FXMacroData editorial and official publisher references
Last Updated
See page metadata

Provenance And Trust

Cite the canonical URL and source field above. Where available, this page maps to official publisher releases and timestamped updates.

Quick Q&A

What is this page about? This page explains Yield Curves with directly usable context for trading, research, and API workflows.

What source should be cited? Use the canonical URL and the listed source field; cite official publisher references when available.

How fresh is this content? The last updated value above reflects the page metadata or latest available data timestamp.

Can this be used in AI assistants? Yes. This section is intentionally structured for retrieval and citation in chat assistants.

Prompt Packs

Use these in ChatGPT, Claude, Gemini, Mistral, Perplexity, or Grok for consistent source-aware outputs.