Spiral gives your agent every tool with one account. Browse the tools →

ChatGPT · Finance

How to Use U.S. Treasury cash balance in ChatGPT

Returns Treasury General Account balances and summary deposits and withdrawals. Use it to follow the government's cash position; the detailed deposits and withdrawals endpoint explains individual reporting categories.

Prompts to try with U.S. Treasury cash balance in ChatGPT

Copy an example into ChatGPT, or ask in your own words.

Use U.S. Treasury cash balance to show the latest five reported closing balances and calculate each day's change.

U.S. Treasury cash balanceChatGPT
Try asking
  • Use U.S. Treasury cash balance to look this up and give me the result as a table.

  • Pull the latest numbers from U.S. Treasury cash balance and tell me what changed since last week.

  • Check U.S. Treasury cash balance and summarize what you find in three bullet points.

  • Pull the newest data from U.S. Treasury cash balance and give me the result as a table.

How to set up U.S. Treasury cash balance in ChatGPT

Pick the way that suits you. Each takes about two minutes.

Use the ChatGPT connector

  1. Add a custom MCP server

    In ChatGPT open Plugins, then Add › Add custom MCP server. Name it Spiral, paste this URL and keep Authentication on OAuth. Tick I understand and want to continue, then click Create.

    https://api.spiral.ai/mcp
  2. Click Connect

    ChatGPT asks to connect Spiral. Connect takes you to Spiral in your browser.

  3. Sign in to Spiral and approve

    Sign in, pick the organization ChatGPT should use and click Authorize. Spiral gives the connection its own API key; ChatGPT never sees it, and you can remove the connection under Settings › Connected apps.

Use the Spiral skill

  1. Send ChatGPT this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run U.S. Treasury cash balance

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "alexandria",
        "model": "treasury-fiscal-data/daily-statement/operating-cash-balance",
        "input": {
          "sort": "<sort>"
        }
      }'

Then paste one of the prompts above: ChatGPT finds U.S. Treasury cash balance on Spiral, shows the price and runs it.

U.S. Treasury cash balance providers and prices

Spiral runs U.S. Treasury cash balance through Alexandria. Open a card for today's price, with every fee included.

AlexandriaFinance
Treasury Fiscal Data · Operating cash balance
treasury-fiscal-data/daily-statement/operating-cash-balance

Settings you can ask for

Ask ChatGPT for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Page[size]a number up to 10000100

Rows per page, 1 to 10,000. The default of 100 is fine for a summary series and far too small for a full auction history.

Page[number]a number1

Page number, 1-indexed. meta.total-pages in the response says how many there are.

Every API field of Treasury Fiscal Data · Operating cash balance is on its tool page: open its card above.

What can you do with U.S. Treasury cash balance in ChatGPT?

Explain a U.S. Treasury cash or borrowing change with a dated table. A chat app can compare reported days and calculate changes from the returned balances or transaction amounts.

Daily Treasury briefing

Prepare a dated briefing with the cash balance, major deposit and withdrawal categories, and security issues and redemptions.

Cash and borrowing comparison

Compare changes in Treasury cash with reported cash flows and debt transactions over a selected week.

Historical episode review

Examine a period such as June 2023 through separate charts of Treasury balances, cash transactions, and security issuance and redemption.

Quarterly fiscal comparison

Compare two quarters using closing cash balances, daily cash flows, and daily debt issues and redemptions. Keep cumulative transaction amounts separate from daily amounts.

Tax season cash analysis

Chart reported tax deposit categories during April and compare them with Treasury's cash balance over the same dates.

Questions about U.S. Treasury cash balance in ChatGPT

Can ChatGPT use U.S. Treasury cash balance?

Yes. Add Spiral to ChatGPT as an MCP server, and ChatGPT can find and run U.S. Treasury cash balance like any built-in tool.

How much does U.S. Treasury cash balance cost in ChatGPT?

$0.001746 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your ChatGPT plan is separate.

Do I need an Alexandria account to use U.S. Treasury cash balance in ChatGPT?

No. Spiral runs U.S. Treasury cash balance on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up U.S. Treasury cash balance in ChatGPT?

About two minutes: add a custom MCP server, then click Connect, then sign in to Spiral and approve.

Does ChatGPT wait while U.S. Treasury cash balance runs?

U.S. Treasury cash balance runs in the background. ChatGPT starts the run, checks on it and gives you the json when it's ready.

What government activity does this source cover?

The Daily Treasury Statement covers the U.S. Treasury's cash and debt operations for the federal government. Its scope is federal cash and debt reporting.

How soon does Treasury publish each day's report?

Treasury states that the Daily Treasury Statement is available by 4:00 p.m. the following business day. The figures describe a completed reporting day.

How are weekends and federal holidays handled?

Treasury includes transactions occurring on weekends and federal holidays in the next business day's statement. A business-day observation can therefore include activity from intervening nonbusiness days.

How precise are the reported amounts?

Figures are rounded to the nearest million dollars. Treasury warns that rounded detail may not add exactly to published totals.

What accounting basis does Treasury use?

The statement uses a modified cash basis. Deposits are reported when received and withdrawals when processed.

Get started

Start using U.S. Treasury cash balance in ChatGPT

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into ChatGPT:

Set up ChatGPT

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options