Releases endpoint
Release settlement
A fixed record of what was published and when, for settling contracts or audits on official releases.
USD is publicly accessible within the freemium window, on a 15-minute release delay, up to 100 no-key requests per day. Real-time releases, other currencies, deeper history, or higher-volume use require an Individual API key.
curl -H "X-API-Key: YOUR_API_KEY" \
"https://api.fxmacrodata.com/v1/settlement/contracts"
import os
import requests
response = requests.get(
"https://api.fxmacrodata.com/v1/settlement/contracts",
headers={"X-API-Key": os.environ["FXMACRODATA_API_KEY"]},
timeout=30,
)
response.raise_for_status()
print(response.json())
const response = await fetch("https://api.fxmacrodata.com/v1/settlement/contracts", {
headers: { "X-API-Key": process.env.FXMACRODATA_API_KEY },
});
const payload = await response.json();
console.log(payload);
What it can do
4 routes in this endpoint
Settlement record for one release of an announcement series
Use to build a settlement record for one release of any announcement series, with an optional strike.
GET/v1/settlement/contractsContract templates for settling event contracts on official releases
Use to list the event-contract templates: series, unit, publisher, printed precision and outcome rule.
GET/v1/settlement/keysPublic keys that verify signed settlement records
Use to fetch the Ed25519 public keys that verify signed settlement records.
GET/v1/settlement/contracts/{contract_id}Settle a contract template for one release
Use to settle a contract template for one release: first print, latest value, release timing, strike outcome and signature.
Reference
Parameters and response fields
GET /v1/settlement/{currency}/{indicator} Settlement record for one release of an announcement series
USD is publicly accessible within the freemium window, on a 15-minute release delay, up to 100 no-key requests per day. Real-time releases, other currencies, deeper history, or higher-volume use require an Individual API key.
Parameters
| Name | In | Type | Details |
|---|---|---|---|
| currencyRequired | path | string | Allowed: 62 currencies. |
| indicatorRequired | path | string | Allowed: 1481 indicators. |
| period | query | string | Reference date of the release (YYYY-MM-DD), or latest. |
| announcement_id | query | string | Canonical announcement id, e.g. usd_inflation_2026-09-30. |
| strike | query | number | Contract strike in the series unit. |
| comparison | query | string | Allowed: above, at_or_above, below, at_or_below, equal. Default: above. |
| decimals | query | integer | Published precision used to evaluate the strike. Defaults to the contract template's. |
| 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. |
GET /v1/settlement/contracts Contract templates for settling event contracts on official releases
No API key required.
Parameters
| Name | In | Type | Details |
|---|---|---|---|
| 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. |
GET /v1/settlement/keys Public keys that verify signed settlement records
No API key required.
Parameters
| Name | In | Type | Details |
|---|---|---|---|
| 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. |
GET /v1/settlement/contracts/{contract_id} Settle a contract template for one release
USD is publicly accessible within the freemium window, on a 15-minute release delay, up to 100 no-key requests per day. Real-time releases, other currencies, deeper history, or higher-volume use require an Individual API key.
Parameters
| Name | In | Type | Details |
|---|---|---|---|
| contract_idRequired | path | string | Allowed: 18 values. |
| period | query | string | Reference date of the release (YYYY-MM-DD), or latest. Default: latest. |
| strike | query | number | Contract strike in the series unit. |
| comparison | query | string | How the published value is compared with the strike. Allowed: above, at_or_above, below, at_or_below, equal. Default: above. |
| currencyRequired | query | string | |
| 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. |
Works well with
Endpoints people use alongside Release settlement
The whole API
All 24 endpoint guides
Rates and markets