UnifyAPI
← Back to catalog

finance.treasury_data

mock data$0.003 / call

US Treasury Fiscal Data

Get US Treasury fiscal data — interest rates on federal debt, national debt, debt outstanding, gold reserves, exchange rates

Financeprovider: Finance#finance#finance

Input schema

sort

Sort field with direction prefix (e.g. "-record_date" for newest first). Default: "-record_date".

string
filter

Filter expression (e.g. "record_date:gte:2024-01-01,security_desc:eq:Treasury Bills"). See Treasury API docs.

string
endpointrequired

Treasury dataset endpoint: avg_interest_rates (interest rates on federal debt), debt_to_penny (daily national debt), debt_outstanding (debt by security type), top_federal (top federal spending), gold_reserve (US gold reserves), exchange_rates_report (Treasury exchange rates).

string
page_size

Number of records per page (default 100, max 10000).

integer

Call via REST

curl -X POST https://unifyapi.pro/api/call/finance.treasury_data \
  -H "Authorization: Bearer uak_live_..." \
  -H "Content-Type: application/json" \
  -d '{"sort":"<sort>","filter":"<filter>","endpoint":"<endpoint>","page_size":0}'

Try it

Paste a UnifyAPI key (create one in the dashboard) and run a real call.