Skip to content

Query the U.S. Treasury Fiscal Data API for debt, statements, rates, auctions, and savings bonds.

CCM score
67 of 100
skills.sh installs
2.2K
GitHub stars
58.9K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers federal financial data across debt, Daily and Monthly Treasury Statements, interest rates, exchange rates, auctions, and savings bonds
  • Includes endpoint paths for Debt to the Penny, DTS operating cash balance, MTS tables, and Treasury Reporting Rates of Exchange
  • Enforces Treasury field conventions such as millions-scale DTS amounts and open_today_bal for the TGA closing balance
  • Designed for analysts and developers who need open federal data without an API key or registration

Install

$ npx -y skills add k-dense-ai/scientific-agent-skills --skill usfiscaldata -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

U.S. Treasury Fiscal Data API

Free, open REST API from the U.S. Department of the Treasury for federal financial data. No API key or registration required.

Base URL: https://api.fiscaldata.treasury.gov/services/api/fiscal_service

Browse the current dataset catalog via the dataset search. Verify endpoint paths on each dataset's API Quick Guide — paths change over time.

Installation

uv pip install requests pandas

Quick Start

import requests
import pandas as pd

BASE_URL = "https://api.fiscaldata.treasury.gov/services/api/fiscal_service"

# Get the current national debt (Debt to the Penny)
resp = requests.get(f"{BASE_URL}/v2/accounting/od/debt_to_penny", params={
    "sort": "-record_date",
    "page[size]": 1
}, timeout=30)
resp.raise_for_status()
data = resp.json()["data"][0]
print(f"Total public debt as of {data['record_date']}: ${float(data['tot_pub_debt_out_amt']):,.0f}")

Details

Repository
github.com/k-dense-ai/scientific-agent-skills
Categories
Finance & Trading, Data Science & Analytics
First seen
Jun 3, 2026

Questions

What is usfiscaldata?

usfiscaldata is an agent skill listed on Claude Marketplaces in the Finance & Trading category. The listing describes usfiscaldata like this: Query the U.S.

How do I install usfiscaldata?

Run npx -y skills add k-dense-ai/scientific-agent-skills --skill usfiscaldata -y in a project to install usfiscaldata. After that, the agent can use usfiscaldata in that project.

Which category is usfiscaldata in?

usfiscaldata is in the Finance & Trading category on Claude Marketplaces. Other listings in that category next to usfiscaldata include wind-mcp-skill, stripe-best-practices and wind-find-finance-skill.

Where is the source code of usfiscaldata?

The source code of usfiscaldata is on GitHub at https://github.com/k-dense-ai/scientific-agent-skills. The k-dense-ai account on GitHub publishes usfiscaldata.

More from k-dense-ai/scientific-agent-skills

All 132

Similar to Usfiscaldata

More Finance & Trading