Skip to content

FX endpoint

Rate differentials

The policy-rate gap between two currencies over time, the carry behind a pair.

GET/v1/rate_differentials/{base}/{quote}
Individual API key required AI tool: rate_differentials

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

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

What it can do

1 route in this endpoint

Reference

Parameters and response fields

GET /v1/rate_differentials/{base}/{quote} Get pair rate differentials
Individual API key required

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

Returns a historical differential between the base and quote currency using a shared rate measure. The endpoint aligns the two legs by date intersection and reports the spread in both percentage points and basis points.

Measures:

  • Supported values: auto, risk_free_rate, gov_bond_2y, gov_bond_10y, policy_rate.
  • auto prefers risk_free_rate, then gov_bond_2y, then policy_rate.

Rate Types:

  • Supported values: spot, forward.
  • spot compares the selected shared rate measure.
  • forward derives each leg from government bond curve nodes, then aligns dates.

Authentication:

  • Requires an Individual or Business API key via ?api_key=<key> or X-API-Key.

Parameters

NameInTypeDetails
baseRequired path string Base currency code Allowed: 62 currencies.
quoteRequired path string Quote currency code Allowed: 62 currencies.
measure query string Shared rate measure to compare across the pair. Allowed: auto, risk_free_rate, gov_bond_2y, gov_bond_10y, policy_rate. Default: auto.
rate_type query string Differential type: spot for shared rate measures, forward for derived curve segments. Allowed: spot, forward. Default: spot.
curve_family query string Curve family used when rate_type=forward. Allowed: government_nominal. Default: government_nominal.
start_tenor_years query number Start tenor in years when rate_type=forward. Default: 2.0.
end_tenor_years query number End tenor in years when rate_type=forward. Default: 5.0.
start_date query string Inclusive start date YYYY-MM-DD. Defaults to 365 days ago.
end_date query string Inclusive end date YYYY-MM-DD. Defaults to today.
limit query integer Maximum rows to return. Defaults to 20. Maximum 100. Default: 20.
offset query integer Number of rows to skip after most-recent-first ordering. Default: 0.
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.
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
basestring
quotestring
rate_typestring
measure_requestedstring
measure_usedstring
base_indicatorstring
quote_indicatorstring
curve_familystring
start_tenorstring
end_tenorstring
forward_labelstring
start_datestring
end_datestring
matched_pointsinteger
unitstring
latest_spreadnumber
latest_spread_bpsnumber
latest_differentialnumber
latest_differential_bpsnumber
base_latestnumber
quote_latestnumber
sourcesobjectPublisher of each leg's rate. The spot path reports a single publisher name per leg; the curve and forward paths report the list of curve sources each leg was built from, so both shapes are declared.
sources.basestring
sources.quotestring
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

Full schema in the API reference

Works well with

Endpoints people use alongside Rate differentials

The whole API

All 24 endpoint guides

Open the endpoint map

AI Answer-Ready

Key Facts

Page
Rate Differentials
Section
Documentation
Canonical URL
https://fxmacrodata.com/documentation/endpoints/rate-differentials
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 Rate Differentials 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.