Skip to content
Fourohtwo

api.financialdatasets.ai/macro/yield-curve/snapshot

The most recent business day's US Treasury par yield curve as one object with one key per tenor from 1 month to 30 years, in percent. Takes no parameters. Use when an agent needs today's yields or spread without history. Non-Professional use; Professional use needs a plan at financialdatasets.ai.

BaseUnchecked
GEThttps://api.financialdatasets.ai/macro/yield-curve/snapshot

UptimeNot checked yet

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://api.financialdatasets.ai/macro/yield-curve/snapshot");
console.log(await res.json());