Macro Rates
by PreReason in Markets & finance
Treasury yield curve and inflation expectations. Yields at every maturity from 1M to 30Y, 10Y-2Y and 10Y-3M spreads, 5Y and 10Y breakevens, 5y5y forward inflation, Germany 10Y. Rates data for macro and fixed income agents. A paid call serves today or any ?date= on record.
https://api.prereason.com/api/macro/rates- Price
- $0.05
- per call in USDC
- Uptime
- 100%
- last 30 days
- Response time
- 488 ms
- 662 ms slowest 5%
- Last check
- Passed
- 4 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
GET https://api.prereason.com/api/macro/rates
Each call costs $0.05 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
GET https://api.prereason.com/api/macro/rates?format=jsonParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
date | string | No | Historical date in YYYY-MM-DD format. A paid call serves today or any ?date= on record. |
format | string | No | Response format. markdown is token-optimized for LLMs, json is structured. Default is markdown. One of: json, markdown. |
Example response
The provider's example. We can't check it without paying.
Example response, 77 lines
{
"briefing_metadata": {
"correlations_count": 2,
"description": "Treasury par yield curve at every maturity, 1 month to 30 years, breakeven inflation at 5Y and 10Y, 5y5y forward inflation expectation, the 10Y-2Y spread, the 10Y-3M recession-indicator spread, Germany 10Y Bund as Eurozone long-end anchor for cross-region rate comparison, France 10Y and its spread over Germany (monthly averages from the ECB), and the latest FOMC statement: decision, vote, dissents and wording changes",
"metrics_count": 22,
"name": "Yield Curve and Breakeven Inflation"
},
"briefing_used": "macro.rates",
"metrics": {
"breakeven-10y": {
"name": "breakeven-10y"
},
"breakeven-5y": {
"name": "breakeven-5y"
},
"france-10y": {
"name": "france-10y"
},
"france-germany-10y-spread": {
"name": "france-germany-10y-spread"
},
"germany-10y": {
"name": "germany-10y"
},
"t10y3m-spread": {
"name": "t10y3m-spread"
},
"t5yifr": {
"name": "t5yifr"
},
"treasury-1-5mo": {
"name": "treasury-1-5mo"
},
"treasury-10y": {
"name": "treasury-10y"
},
"treasury-1mo": {
"name": "treasury-1mo"
},
"treasury-1y": {
"name": "treasury-1y"
},
"treasury-20y": {
"name": "treasury-20y"
},
"treasury-2mo": {
"name": "treasury-2mo"
},
"treasury-2y": {
"name": "treasury-2y"
},
"treasury-30y": {
"name": "treasury-30y"
},
"treasury-3mo": {
"name": "treasury-3mo"
},
"treasury-3y": {
"name": "treasury-3y"
},
"treasury-4mo": {
"name": "treasury-4mo"
},
"treasury-5y": {
"name": "treasury-5y"
},
"treasury-6mo": {
"name": "treasury-6mo"
},
"treasury-7y": {
"name": "treasury-7y"
},
"yield-curve": {
"name": "yield-curve"
}
}
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.05.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://api.prereason.com/api/macro/rates?format=json'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - 'https://api.prereason.com/api/macro/rates?format=json' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.05 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.05" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.05 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.prereason.com%2Fapi%2Fmacro%2Frates
const res = await pay("https://api.prereason.com/api/macro/rates?format=json");
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.05 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.05"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.get("https://api.prereason.com/api/macro/rates?format=json")
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 4 h ago | Passed | 402 | 591 ms | $0.05 |
| 9 h ago | Passed | 402 | 589 ms | $0.05 |
| 13 h ago | Passed | 402 | 559 ms | $0.05 |
| 18 h ago | Passed | 402 | 515 ms | $0.05 |
| 22 h ago | Passed | 402 | 512 ms | $0.05 |
Show 10 older checks
| 26 h ago | Passed | 402 | 531 ms | $0.05 |
| 30 h ago | Passed | 402 | 551 ms | $0.05 |
| 34 h ago | Passed | 402 | 631 ms | $0.05 |
| 39 h ago | Passed | 402 | 662 ms | $0.05 |
| 43 h ago | Passed | 402 | 665 ms | $0.05 |
| 47 h ago | Passed | 402 | 339 ms | $0.05 |
| 2 days ago | Passed | 402 | 454 ms | $0.05 |
| 2 days ago | Passed | 402 | 361 ms | $0.05 |
| 2 days ago | Passed | 402 | 564 ms | $0.05 |
| 3 days ago | Passed | 402 | 459 ms | $0.05 |