# US Treasury Macro US national debt, Treasury yield curve, average interest rates, interest expense and Treasury exchange rates from US Treasury data. ## How to pay Machine-payable over x402. USDC on: Base (eip155:8453), Solana (solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp), Polygon (eip155:137), Arbitrum One (eip155:42161). No accounts. No API keys. No signup. The paying wallet is the account. ## Machine-readable - OpenAPI: https://treasury-macro.x402tookit.com/openapi.json - x402 manifest: https://treasury-macro.x402tookit.com/.well-known/x402 - Catalog (free): https://treasury-macro.x402tookit.com/catalog - Health (free): https://treasury-macro.x402tookit.com/health - Uptime (free): https://treasury-macro.x402tookit.com/uptime ## Endpoints (6) ### GET /treasury-fx-rate — $0.02 US Treasury official quarterly reporting exchange rate for a country's currency, with effective date and prior quarters. Params: country: string Example: https://treasury-macro.x402tookit.com/treasury-fx-rate?country=Canada ### GET /us-avg-interest-rates — $0.02 Average interest rate the US government pays on Treasury bills, notes, bonds and TIPS, with change from a year ago. Params: view?: string Example: https://treasury-macro.x402tookit.com/us-avg-interest-rates?view=now ### GET /us-debt — $0.02 US national debt now (Debt to the Penny): total, public vs intragovernmental, growth over a year and per day. Params: view?: string Example: https://treasury-macro.x402tookit.com/us-debt?view=now ### GET /us-interest-expense — $0.02 US federal interest expense on public debt: latest month, fiscal-year-to-date and split by security type. Params: view?: string Example: https://treasury-macro.x402tookit.com/us-interest-expense?view=now ### GET /us-yield-curve — $0.02 Latest US Treasury yield curve from 1 month to 30 years, with 2s10s and 3m10y spreads and an inverted/flat/normal verdict. Params: view?: string Example: https://treasury-macro.x402tookit.com/us-yield-curve?view=now ### GET /us-yield-spread — $0.02 Spread between two Treasury maturities (for example 2Y and 10Y) now and over recent days, with inverted/normal verdict. Params: short: string, long: string Example: https://treasury-macro.x402tookit.com/us-yield-spread?short=2Y&long=10Y ## Terms Figures computed from US Department of the Treasury open data (FiscalData and daily Treasury yield curve rates), US government public domain, provided as is. Yields are end-of-day par rates, not tradable quotes. Not investment or tax advice and not affiliated with the Treasury.