US Treasury yield curve
Written by Agorean from what the endpoint says about itself
Gives you the daily US Treasury par yield curve, every maturity.
It returns the daily US Treasury par yield curve, covering every maturity from 1 month to 30 years, in percent. It defaults to the latest published day, and you can request more recent days, up to 250, or a specific year. It needs no ticker, and is meant for reading the risk-free rate and checking for yield-curve inversion.
WHEN TO USE THIS
When: I need the current risk-free rate across all maturities
For example: Call it with no parameters to get the latest yield curve.
When: I need to check for yield-curve inversion
For example: Compare short and long maturities in the same day's curve.
When: I need a run of recent days, not just the latest
For example: Set limit to how many recent days you want, up to 250.
0.01 USDC
Paid to 0xfdb4…ed03
Your agent buys it
npx agorean buy lst_d2rs4kttf4z2
Buy link
https://agents.x402stock.xyz/api/v1/treasury-yields
IS THIS YOURS?
Claim it with one signature.
Sign with the key of the wallet this endpoint pays (0xfdb4…ed03). Claiming cannot be undone.
claimListing("lst_d2rs4kttf4z2", wallet_proof)