{"uid":"cap_0hOpLi3xXZxA2nmBBmRrs","slug":"d21-treasury-fiscal-snapshot-367981e1","name":"d21 Treasury Fiscal Snapshot","description":"Treasury Fiscal Snapshot ($0.005): total U.S. public debt outstanding (Debt to the Penny), recent Treasury operating cash balance, and current-quarter Treasury Reporting Rates of Exchange, in one call. Fetched live from api.fiscaldata.treasury.gov, not a snapshot. Body {} (no fields required). Check free /v1/treasury_fiscal_snapshot/availability first.","url":"https://draconic21-x402-api.onrender.com/v1/treasury_fiscal_snapshot?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","required":[],"properties":{},"additionalProperties":true},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["debt_to_the_penny","exchange_rates_current_quarter"],"properties":{"source":{"type":"object","properties":{"name":{"type":"string"},"cache_age_seconds":{"type":"integer"},"served_from_cache":{"type":"boolean"}}},"caveats":{"type":"array","items":{"type":"string"}},"debt_to_the_penny":{"type":"object","required":["record_date","tot_pub_debt_out_amt"],"properties":{"record_date":{"type":"string","format":"date"},"intragov_hold_amt":{"type":"string"},"debt_held_public_amt":{"type":"string"},"tot_pub_debt_out_amt":{"type":"string"}}},"operating_cash_balance_recent":{"type":"array","items":{"type":"object","properties":{"balance":{"type":"string"},"record_date":{"type":"string","format":"date"},"account_type":{"type":"string"}}}},"exchange_rates_current_quarter":{"type":"array","items":{"type":"object","properties":{"country":{"type":"string"},"currency":{"type":"string"},"record_date":{"type":"string","format":"date"},"exchange_rate":{"type":"string"}}}}}}}}}},"responseSchema":{"type":"json","example":{"ok":true,"brand":"draconic21","product":"treasury_fiscal_snapshot"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jnjtolSVhJPwjISPhL0dM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches live U.S. total public debt outstanding, Treasury operating cash balance, and current-quarter Treasury exchange rates in a single call.","exampleAgentPrompt":"What's the current U.S. national debt, Treasury cash balance, and this quarter's Treasury exchange rates — can you pull all three live from fiscal data right now?","exampleUseCases":[{"title":"Daily fiscal briefing for macro traders","prompt":"Pull the latest U.S. public debt outstanding, Treasury cash balance, and current-quarter exchange rates so I can include them in my morning macro briefing."},{"title":"Automated government debt monitoring","prompt":"Check the live U.S. total public debt and Treasury cash balance and alert me if the debt has crossed a new trillion-dollar threshold since yesterday."},{"title":"Fiscal data enrichment for research report","prompt":"I'm writing a report on U.S. government finances — can you grab the live Debt to the Penny figure, the Treasury's current operating cash balance, and the latest Treasury exchange rates in one shot?"}],"resultDescription":"Returns a JSON object with three live data points fetched from api.fiscaldata.treasury.gov: (1) total U.S. public debt outstanding (Debt to the Penny), (2) the most recent Treasury operating cash balance, and (3) current-quarter Treasury Reporting Rates of Exchange. Response includes ok: true, brand, and product identifiers on success.","failureModes":["Upstream api.fiscaldata.treasury.gov unavailability causes fetch failure","Payment not received or insufficient USDC balance results in 402 error","Rate limiting or network timeout on the Render-hosted service","Stale or delayed data if Treasury source is lagging updates"],"whenToPreferThis":"Use this endpoint when you need a quick, combined snapshot of core U.S. fiscal metrics — public debt, cash balance, and exchange rates — without making multiple separate calls to the Treasury FiscalData API. Ideal for macro monitoring, financial reporting pipelines, or any agent that needs live U.S. government financial data aggregated in one round-trip. Prefer this over direct Treasury API calls when operating in an x402 micropayment agent context.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T00:34:21.115Z","isFirstParty":false,"canonicalSlug":"d21-treasury-fiscal-snapshot-367981e1"}