Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

usfiscaldata

Skill by K-Dense-AI

Queries the U.S. Treasury Fiscal Data REST API for national debt, Treasury statements, auctions, interest and exchange rates, and savings bond data. Built for users who need federal financial figures. No API key is needed.

  • Score 94
  • 59k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install usfiscaldata

Built from the published package, never by AI.

git clone --depth 1 https://github.com/K-Dense-AI/scientific-agent-skills /tmp/scientific-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/scientific-agent-skills/skills/usfiscaldata ~/.claude/skills/usfiscaldata

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install usfiscaldata in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The usfiscaldata skill gives an AI assistant access to the U.S. Department of the Treasury Fiscal Data REST API. The source describes it as a free, open API that requires no API key or registration. It covers national debt (Debt to the Penny), Daily Treasury Statements, Monthly Treasury Statements, Treasury securities auctions, interest rates, foreign exchange rates, savings bonds, and U.S. government revenue and spending statistics.

The skill documents the base URL and query parameters such as fields, filter, sort, and page size, along with endpoints for each dataset. It includes Python and R examples, a pagination helper, and notes on units and fields, such as DTS amounts being in millions. It is aimed at users who need federal financial data in code or through an assistant.

Written from the project's SKILL.md and checked against it.

What it can do

  • Query national debtRetrieves total public debt from Debt to the Penny and historical debt outstanding data.
  • Fetch Daily Treasury StatementsReads daily operating cash balance and deposits and withdrawals data.
  • Pull Monthly Treasury StatementsAccesses Monthly Treasury Statement tables, which the source lists as 18 tables.
  • Look up Treasury auctionsRetrieves auction results, upcoming auctions, and securities buybacks.
  • Retrieve interest and exchange ratesGets average interest rates on Treasury securities and Treasury reporting exchange rates.
  • Get savings bond dataRetrieves I Bond interest rates and savings bond issues, redemptions, and maturities.

What you need

  • Python 3.10+ with requests and pandas for Python examples
  • R with httr and jsonlite for R examples
  • Network access

Try asking

  • What is the current national debt from Debt to the Penny?
  • Show Treasury exchange rates for Canada and Mexico since January 2024.
  • Get the latest Treasury auction results for 10-year notes.

Good to know

  • Endpoint paths change over time, so verify them on each dataset's API Quick Guide.
  • Data-row values are returned as strings, and nulls appear as the string null.
  • Exchange rates are government reporting rates, not live trading quotes.
  • DTS amounts are in millions.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/usfiscaldata/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: Read Write Edit Bash

  • SKILL.md9 KB
  • references/api-basics.md4 KB
  • references/datasets-debt.md7 KB
  • references/datasets-fiscal.md9 KB
  • references/datasets-interest-rates.md7 KB
Show all 9 files
  • references/datasets-securities.md10 KB
  • references/examples.md9 KB
  • references/parameters.md7 KB
  • references/response-format.md6 KB

Alternatives to usfiscaldata

All alternatives →

Compare with meme-rush, okx-market or saas-metrics-coach

usfiscaldata: common questions

Does the Treasury Fiscal Data API need an API key?

No. The source says the API is fully open and free, and no API key or registration is required.

Which federal datasets does this skill cover?

The skill's endpoint tables cover debt, Daily and Monthly Treasury Statements, interest and exchange rates, Treasury auctions, and savings bonds.

Are the Treasury exchange rates live market quotes?

No. The source states that they are government reporting rates, not live trading quotes.

How do I install usfiscaldata?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is usfiscaldata free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is usfiscaldata safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to usfiscaldata?

Similar skills: meme-rush, okx-market, saas-metrics-coach, sec-edgar.

usfiscaldata Install

Add to stack

Loading.