# 2s.io Treasury Cash Balance (DTS)

> 2s.io Treasury Cash Balance (DTS) is a paid API for AI agents from 2s.io, paid per call via x402, $0.0012/call, status unknown (last checked 2026-09-14).

Returns daily snapshots of the US Treasury General Account (TGA) and related accounts from the Daily Treasury Statement via US Treasury Fiscal Data

## Facts

- Endpoint: GET https://2s.io/api/treasury/cash
- Price: $0.0012/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-c47661bb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cRw89XfOV8Nypd2ZDyOO8

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 2s-io-c47661bb
```

Example prompt: Pull the latest Daily Treasury Statement cash balance data from the US Treasury — give me the most recent 10 days of TGA closing balances, sorted by record date descending, so I can track Treasury liquidity going into next week's auction.

## When to prefer this

Use this endpoint when you need authoritative, structured daily snapshots of the US Treasury's operating cash balance (TGA and related accounts) for macro research, liquidity monitoring, or debt-ceiling analysis. Prefer this over general financial data APIs when you specifically need official DTS figures with open/close balance breakdowns across account types and fiscal-year-to-date context.

## Known failure modes

- Invalid filter syntax returns a 400 or empty result set
- pageNumber out of range returns empty results
- Unsupported field names in fields param may be ignored or cause errors
- Rate limiting or payment failure (x402) if USDC payment is not attached
- Data may lag by 1 business day as DTS is published after market close

## How this service works

Daily Treasury Statement (DTS) operating cash balance via US Treasury Fiscal Data. Returns daily snapshots of the Treasury General Account (TGA) at the Federal Reserve plus tax-and-loan accounts and Federal Reserve deposit accounts. Each row carries record_date, account_type, close_today_bal, open_today_bal, open_month_bal, open_fiscal_year_bal. Useful for liquidity-tracking agents and macro researchers watching the Treasury Cash Balance heading into Treasury auctions, debt-ceiling pinch-points, etc. Fiscal Data filter syntax.

## Output

A paginated list of daily Treasury cash balance records, each containing record_date, account_type (Treasury General Account, tax-and-loan, or Federal Reserve deposit), close_today_bal, open_today_bal, open_month_bal, and open_fiscal_year_bal. Supports filtering by date range, account type, and field selection using Fiscal Data filter syntax.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "sort": "-record_date",
   "pageSize": 10
  }
 }
}
```

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "properties": {
      "sort": {
       "type": "string",
       "default": "-record_date"
      },
      "fields": {
       "type": "string"
      },
      "filter": {
       "type": "string"
      },
      "pageSize": {
       "type": "integer",
       "default": 100,
       "maximum": 10000,
       "minimum": 1
      },
      "pageNumber": {
       "type": "integer",
       "minimum": 1
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-c47661bb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
