# Treasury Cash Balance (TGA)

> Treasury Cash Balance (TGA) is a paid API for AI agents from payai.agentstools.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns the US Treasury General Account (TGA) closing balance, historical daily cash data, and computed daily change (build or drawdown) sourced from the Daily Treasury Statement.

## Facts

- Endpoint: GET https://payai.agentstools.dev/treasury/cash
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/treasury-cash-balance-tga-d2257025
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FMOh83j984I_mlYU8mFt4

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability treasury-cash-balance-tga-d2257025
```

Example prompt: What's the latest US Treasury General Account balance, and has it been building or drawing down over the past 30 days?

## When to prefer this

Choose this endpoint when you need authoritative, cited US Treasury General Account balance data with built-in build/drawdown classification and historical series — particularly for macroeconomic research, fiscal liquidity monitoring, bond market analysis, or government debt ceiling tracking. Prefer this over scraping Treasury.gov directly or constructing your own daily-change logic, as it handles data normalization and classification automatically.

## Known failure modes

- Invalid 'days' parameter (outside 1–3660 range) returns a validation error
- Treasury Fiscal Data source unavailable or delayed may result in stale or missing data
- Requesting future dates or non-trading days may return no data for those periods
- Network or payment authorization failure (x402) returns 402 Payment Required

## How this service works

The US Treasury operating cash balance (the Treasury General Account) from the Daily Treasury Statement. Returns the latest TGA closing balance, the history over a window and the computed daily change flagged as a build or a drawdown. Cited to Treasury Fiscal Data.

## Output

Returns the latest TGA closing balance in USD, a time series of daily closing balances over the requested window (default or specified number of days), the computed daily change for each day, and a classification of each day's movement as a 'build' (increase) or 'drawdown' (decrease), all cited to Treasury Fiscal Data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "days": {
       "type": "integer",
       "maximum": 3660,
       "minimum": 1,
       "description": "Look back this many days of the daily cash balance"
      },
      "range": {
       "type": "integer",
       "maximum": 3660,
       "minimum": 1,
       "description": "Alias for days"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/treasury-cash-balance-tga-d2257025/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payai.agentstools.dev](https://www.zero.xyz/host/payai.agentstools.dev/llms.txt)
