[Integrations](https://spiral.ai/integrations) › [n8n](https://spiral.ai/integrations/n8n) › [U.S. Treasury daily deposits and withdrawals](https://spiral.ai/integrations/n8n/u-s-treasury-daily-deposits-and-withdrawals)

# How to Use U.S. Treasury daily deposits and withdrawals in n8n

Returns Treasury cash deposits and withdrawals by reporting category, with daily, month-to-date, and fiscal-year-to-date amounts. Use it to examine tax receipts, benefit payments, and other cash flows behind a balance change.

|  |  |
| --- | --- |
| Model | U.S. Treasury daily deposits and withdrawals |
| Available through | Alexandria |
| Category | Finance |
| Price | $0.001746 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with U.S. Treasury daily deposits and withdrawals in n8n

- Each business evening, use U.S. Treasury daily deposits and withdrawals to summarize the latest corporate income tax and withheld individual tax deposits.
- Each business evening, use U.S. Treasury daily deposits and withdrawals to report Social Security benefit payments and compare them with the previous reported day.
- Every Monday at 9am: use U.S. Treasury daily deposits and withdrawals to look this up and give me the result as a table.
- Pull the latest numbers from U.S. Treasury daily deposits and withdrawals and tell me what changed since last week.
- Check U.S. Treasury daily deposits and withdrawals and summarize what you find in three bullet points.

## How to set up U.S. Treasury daily deposits and withdrawals in n8n

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

### Use the Spiral skill

1. **Send n8n 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 Spiral's MCP server

1. **Create a key**: Create a key under API keys in the console.

2. **Add an MCP Client node**: In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

```text
https://api.spiral.ai/mcp
```

3. **Pick a tool**: The node lists Spiral's tools. In an MCP Client node pick one, such as `run`, and give it its arguments:

```json
{
  "provider": "fal",
  "model": "fal-ai/flux/schnell",
  "input": { "prompt": "a lighthouse at dawn" },
  "wait": true
}
```

4. **Run U.S. Treasury daily deposits and withdrawals in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds U.S. Treasury daily deposits and withdrawals, prices it and runs it each time the step fires.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
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 daily deposits and withdrawals**: One request; the result comes back by polling or a webhook.

```bash
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/deposits-and-withdrawals",
    "input": {
      "sort": "<sort>"
    }
  }'
```

Then paste one of the prompts above: n8n finds U.S. Treasury daily deposits and withdrawals on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/n8n

## U.S. Treasury daily deposits and withdrawals tools and prices

- [Treasury Fiscal Data · Deposits and withdrawals](https://spiral.ai/tools/alexandria/treasury-fiscal-data/daily-statement/deposits-and-withdrawals) (Alexandria): $0.001746 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| sort |  | — | Sort column, prefixed with `-` for descending: `-record_date` puts the latest first. Comma-separated for several. Unsorted results come back oldest first. |
| fields |  | — | Columns to return, comma-separated, in place of all of them. Rows come back distinct over the chosen columns, so `fields=security_type` on auction results answers three rows, not eleven thousand; keep every column that identifies a row in the list before counting or summing (for buybacks, `operation_date` and `operation_start_time_est`, plus `cusip_nbr` on securities). A column not in the declared list answers HTTP 400 naming it. |
| filter |  | — | Filter, as `column:operator:value`, several joined by commas: `record_date:gte:2026-01-01`, `security_type:eq:Bill,auction_date:gte:2026-08-01`. Operators: eq, lt, lte, gt, gte, and in with a parenthesised list `security_type:in:(Bill,Note)`. An unknown column answers HTTP 400. |
| page[size] | … to 10000 | 100 | 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] |  | 1 | Page number, 1-indexed. `meta.total-pages` in the response says how many there are. |

## What can you do with U.S. Treasury daily deposits and withdrawals in n8n?

Produce a U.S. Treasury update after each business day's report. A scheduled agent can compare the latest observation with earlier reports and flag changes that exceed your chosen threshold.

### 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.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All n8n guides](https://spiral.ai/integrations/n8n)

## U.S. Treasury daily deposits and withdrawals in other agents

- [Amp](https://spiral.ai/integrations/amp/u-s-treasury-daily-deposits-and-withdrawals)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/u-s-treasury-daily-deposits-and-withdrawals)
- [Claude](https://spiral.ai/integrations/claude-desktop/u-s-treasury-daily-deposits-and-withdrawals)
- [Claude Code](https://spiral.ai/integrations/claude-code/u-s-treasury-daily-deposits-and-withdrawals)
- [Cline](https://spiral.ai/integrations/cline/u-s-treasury-daily-deposits-and-withdrawals)
- [Codex](https://spiral.ai/integrations/codex/u-s-treasury-daily-deposits-and-withdrawals)
- [Cursor](https://spiral.ai/integrations/cursor/u-s-treasury-daily-deposits-and-withdrawals)
- [Devin](https://spiral.ai/integrations/devin/u-s-treasury-daily-deposits-and-withdrawals)
- [dots](https://spiral.ai/integrations/dots/u-s-treasury-daily-deposits-and-withdrawals)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/u-s-treasury-daily-deposits-and-withdrawals)
- [Gemini](https://spiral.ai/integrations/gemini/u-s-treasury-daily-deposits-and-withdrawals)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/u-s-treasury-daily-deposits-and-withdrawals)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/u-s-treasury-daily-deposits-and-withdrawals)
- [goose](https://spiral.ai/integrations/goose/u-s-treasury-daily-deposits-and-withdrawals)
- [Grok](https://spiral.ai/integrations/grok/u-s-treasury-daily-deposits-and-withdrawals)
- [Grok Build](https://spiral.ai/integrations/grok-build/u-s-treasury-daily-deposits-and-withdrawals)
- [Hermes](https://spiral.ai/integrations/hermes/u-s-treasury-daily-deposits-and-withdrawals)
- [Instinct](https://spiral.ai/integrations/instinct/u-s-treasury-daily-deposits-and-withdrawals)
- [Manus](https://spiral.ai/integrations/manus/u-s-treasury-daily-deposits-and-withdrawals)
- [Muse](https://spiral.ai/integrations/muse/u-s-treasury-daily-deposits-and-withdrawals)
- [Muse Code](https://spiral.ai/integrations/muse-code/u-s-treasury-daily-deposits-and-withdrawals)
- [Notion](https://spiral.ai/integrations/notion/u-s-treasury-daily-deposits-and-withdrawals)
- [OpenClaw](https://spiral.ai/integrations/openclaw/u-s-treasury-daily-deposits-and-withdrawals)
- [opencode](https://spiral.ai/integrations/opencode/u-s-treasury-daily-deposits-and-withdrawals)
- [Perplexity](https://spiral.ai/integrations/perplexity/u-s-treasury-daily-deposits-and-withdrawals)
- [Raycast](https://spiral.ai/integrations/raycast/u-s-treasury-daily-deposits-and-withdrawals)
- [VS Code](https://spiral.ai/integrations/vscode/u-s-treasury-daily-deposits-and-withdrawals)
- [Windsurf](https://spiral.ai/integrations/windsurf/u-s-treasury-daily-deposits-and-withdrawals)
- [Zapier](https://spiral.ai/integrations/zapier/u-s-treasury-daily-deposits-and-withdrawals)

## More n8n guides

- [U.S. Treasury cash balance](https://spiral.ai/integrations/n8n/u-s-treasury-cash-balance)
- [U.S. Treasury debt issues and redemptions](https://spiral.ai/integrations/n8n/u-s-treasury-debt-issues-and-redemptions)
- [U.S. Treasury average interest rates](https://spiral.ai/integrations/n8n/u-s-treasury-average-interest-rates)
- [U.S. Treasury debt to the penny](https://spiral.ai/integrations/n8n/u-s-treasury-debt-to-the-penny)
- [U.S. Treasury auction results](https://spiral.ai/integrations/n8n/u-s-treasury-auction-results)
- [U.S. Treasury gold reserves](https://spiral.ai/integrations/n8n/u-s-treasury-gold-reserves)

## Questions about U.S. Treasury daily deposits and withdrawals in n8n

**Can n8n use U.S. Treasury daily deposits and withdrawals?**

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run U.S. Treasury daily deposits and withdrawals like any built-in tool.

**How much does U.S. Treasury daily deposits and withdrawals cost in n8n?**

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

**Do I need an Alexandria account to use U.S. Treasury daily deposits and withdrawals in n8n?**

You need no Alexandria account. n8n uses one Spiral API key for every tool, and Spiral runs U.S. Treasury daily deposits and withdrawals on its own Alexandria account.

**How long does it take to set up U.S. Treasury daily deposits and withdrawals in n8n?**

About two minutes: create a key, then add an MCP Client node, then pick a tool.

**Does n8n wait while U.S. Treasury daily deposits and withdrawals runs?**

U.S. Treasury daily deposits and withdrawals runs in the background. n8n 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.

