Skip to content

Rates and markets endpoint

Risk sentiment

One daily risk-on, risk-off reading, for filtering trades by market mood.

GET/v1/risk_sentiment

No API key required.

2Routes
6Parameters
JSONResponse
curl -H "X-API-Key: YOUR_API_KEY" \
  "https://api.fxmacrodata.com/v1/risk_sentiment"

What it can do

2 routes in this endpoint

Example response

What comes back

A shortened example of the JSON this endpoint returns. Lists are cut to two rows here.

200 OK
{
  "start_date": "2025-12-01",
  "end_date": "2026-03-01",
  "data": [
    {
      "date": "2026-02-28",
      "val": 0.31,
      "regime": "risk_on",
      "components": {
        "ofr_fsi": 0.18,
        "gold": -0.07,
        "aud_usd": 0.09,
        "usd_jpy": 0.04
      }
    }
  ]
}

Reference

Parameters and response fields

GET /v1/risk_sentiment Global risk-on / risk-off indicator
Always free

No API key required.

Returns a composite daily risk-sentiment score indicating whether global financial conditions favour risk-on currencies (AUD, NZD, CAD) or risk-off safe havens (JPY, CHF, USD).

The score is derived from four publicly available sources:

  • OFR FSI (U.S. Treasury Office of Financial Research Financial Stress Index) — primary stress gauge, *inverted*
  • Gold (National Bank of Ukraine official gold price, USD per troy ounce; Narodowy Bank Polski where the NBU did not publish) — safe-haven demand proxy, *inverted*
  • AUD/USD (European Central Bank euro reference rates, crossed via EUR) — risk-sensitive currency pair
  • USD/JPY (European Central Bank euro reference rates, crossed via EUR) — safe-haven flow proxy

Each component is normalised to a 252-day rolling z-score, weighted, and compressed through tanh to produce a final score in [-1.0, +1.0].

Weights: OFR FSI 40%, Gold 20%, AUD/USD 20%, USD/JPY 20%.

Weights are renormalised over available components and reported as effective_weights. input_dates and input_status describe component observation dates and carry-forward. provisional marks lagged, missing or unknown inputs; complete inputs may also be revised. Recorded changes are available at /v1/risk_sentiment/changes; recording clocks are distinct from publisher publication times.

Each data record contains:

  • date: Observation date (YYYY-MM-DD).
  • val: Composite score -1.0 (extreme risk-off) ... +1.0 (extreme risk-on).
  • regime: risk_on (>= 0.25) | neutral | risk_off (<= -0.25).
  • components.ofr_fsi: Normalised (inverted) OFR FSI contribution.
  • components.gold: Normalised (inverted) gold price contribution.
  • components.aud_usd: Normalised AUD/USD contribution.
  • components.usd_jpy: Normalised USD/JPY contribution.

Parameters

NameInTypeDetails
start_date query string Start date YYYY-MM-DD
end_date query string End date YYYY-MM-DD
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.
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
start_datestring
end_datestring
latest_available_datestring
last_updatedstring
revision_trackingobject
revision_tracking.enabledboolean
revision_tracking.started_atstring
revision_tracking.last_change_sequenceinteger
revision_tracking.complete_first_release_history_verifiedboolean
revision_tracking.timestamp_semanticsstring
revision_tracking.changes_endpointstring
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
data_quality.commodity_coverage.expected_weekday_label_countinteger
data_quality.commodity_coverage.missing_weekday_label_countinteger
data_quality.commodity_coverage.largest_missing_weekday_runinteger
data_quality.commodity_coverage.largest_calendar_gap_daysinteger
data_quality.commodity_coverage.missing_weekday_ranges[]object[]

Full schema in the API reference

GET /v1/risk_sentiment/changes Recorded risk-sentiment changes
Always free

No API key required.

Returns retained additions, score revisions and input-metadata changes in increasing change_sequence order. Pass pagination.next_after_sequence as after_sequence on the next page or poll. The sequence remains stable when changes share a recording timestamp. recorded_at is the FXMacroData recording clock; earlier untracked revisions and publisher publication times are unavailable. An undated legacy baseline is retained but is not emitted as a newly recorded change.

Parameters

NameInTypeDetails
after_sequence query integer Return changes after this sequence (exclusive). Default: 0.
limit query integer Maximum retained changes per page. Default: 20.
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
revision_trackingobject
revision_tracking.enabledboolean
revision_tracking.started_atstring
revision_tracking.last_change_sequenceinteger
revision_tracking.complete_first_release_history_verifiedboolean
revision_tracking.timestamp_semanticsstring
revision_tracking.changes_endpointstring
paginationobject
pagination.limitinteger
pagination.after_sequenceinteger
pagination.returned_countinteger
pagination.has_moreboolean
pagination.next_after_sequenceinteger
data[]object[]
data[].datestring
data[].revisioninteger
data[].change_sequenceinteger
data[].kindstring
data[].recorded_atstring
data[].observationobject
data[].observation.datestring
data[].observation.valnumber
data[].observation.scorenumber
data[].observation.regimestring
data[].observation.risk_regimestring
data[].observation.sentimentstring
data[].observation.componentsobject
data[].observation.component_coverageobjectPer-component availability for one observation.
data[].observation.stored_component_countinteger
data[].observation.financial_stress_scorenumber
data[].observation.commodity_beta_scorenumber
data[].observation.safe_haven_scorenumber
data[].observation.input_datesobject
data[].observation.input_statusobject
data[].observation.effective_weightsobject
data[].observation.coverage_statusstring

Full schema in the API reference

Works well with

Endpoints people use alongside Risk sentiment

The whole API

All 24 endpoint guides

Open the endpoint map

AI Answer-Ready

Key Facts

Page
Risk Sentiment
Section
Documentation
Canonical URL
https://fxmacrodata.com/documentation/endpoints/risk-sentiment
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 Risk Sentiment 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.