{
  "x402Version": 2,
  "id": 29248,
  "slug": "29248",
  "resource": "https://api.agentstools.dev/treasury/cash",
  "description": "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.",
  "type": "http",
  "serviceName": "treasury-cash",
  "resourceType": "Market Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xF22e558a00D91Ee12A1F50C52186FecB8dDFf493",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "days": 30
          },
          "type": "http"
        },
        "output": {
          "example": {
            "account": "Treasury General Account (TGA)",
            "attribution": [
              "Source: U.S. Department of the Treasury, Fiscal Data (public domain)"
            ],
            "computed": {
              "daily_change": -4607,
              "direction": "drawdown"
            },
            "latest": {
              "balance": 744637,
              "record_date": "2026-07-09"
            },
            "series": "operating_cash_balance",
            "unit": "USD_millions",
            "window_days": 30
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET",
                  "HEAD",
                  "DELETE"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "days": {
                    "description": "Look back this many days of the daily cash balance",
                    "maximum": 3660,
                    "minimum": 1,
                    "type": "integer"
                  },
                  "range": {
                    "description": "Alias for days",
                    "maximum": 3660,
                    "minimum": 1,
                    "type": "integer"
                  }
                },
                "required": [],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "treasury",
    "tga",
    "operating-cash",
    "daily-treasury-statement",
    "liquidity",
    "bazaar"
  ],
  "sourceHost": "api.agentstools.dev",
  "lastUpdated": "2026-10-08T06:08:47.976Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-08T06:08:47.743Z"
  },
  "metadata": {
    "serviceName": "treasury-cash",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "days": 30
            },
            "type": "http"
          },
          "output": {
            "example": {
              "account": "Treasury General Account (TGA)",
              "attribution": [
                "Source: U.S. Department of the Treasury, Fiscal Data (public domain)"
              ],
              "computed": {
                "daily_change": -4607,
                "direction": "drawdown"
              },
              "latest": {
                "balance": 744637,
                "record_date": "2026-07-09"
              },
              "series": "operating_cash_balance",
              "unit": "USD_millions",
              "window_days": 30
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET",
                    "HEAD",
                    "DELETE"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "days": {
                      "description": "Look back this many days of the daily cash balance",
                      "maximum": 3660,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "range": {
                      "description": "Alias for days",
                      "maximum": 3660,
                      "minimum": 1,
                      "type": "integer"
                    }
                  },
                  "required": [],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.agentstools.dev",
    "manifest_name": "api.agentstools.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "account": "Treasury General Account (TGA)",
    "attribution": [
      "Source: U.S. Department of the Treasury, Fiscal Data (public domain)"
    ],
    "computed": {
      "daily_change": -4607,
      "direction": "drawdown"
    },
    "latest": {
      "balance": 744637,
      "record_date": "2026-07-09"
    },
    "series": "operating_cash_balance",
    "unit": "USD_millions",
    "window_days": 30
  }
}