# Savings Ledger — Trailing Mean Series + Two-Measure Correlation

> Savings Ledger — Trailing Mean Series + Two-Measure Correlation is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-02).

Computes a trailing moving average series and a Pearson correlation between deposit_amount and withdrawal_amount for up to 200 savings ledger rows, returning two analytical reports.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ib26-finance-23-150?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/savings-ledger-trailing-mean-series-two-measure-correlation-ce0e13d9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iZMlkZg8gjR510im3Y2pN

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 savings-ledger-trailing-mean-series-two-measure-correlation-ce0e13d9 -d '<json body>'
```

Example prompt: Can you run a trailing mean series with a window of 5 and a deposit-vs-withdrawal correlation on my savings ledger data? I have 120 rows with deposit_amount and withdrawal_amount fields, grouped by instrument_group, dated from 2025-01-01 to 2025-04-30.

## When to prefer this

Choose this endpoint when you need both a time-series moving average and a cross-measure correlation on savings ledger data in a single low-cost call. It is ideal for offline, supply-your-own-data analytics on up to 200 rows with no need for live data lookup, external integrations, or professional financial advice. Best suited for developers or agents processing savings ledger exports who want bundled statistical outputs cheaply.

## Known failure modes

- Fewer than 1 row supplied — validation error
- More than 200 rows supplied — request rejected
- Window size larger than number of rows — insufficient data for trailing mean
- Invalid date format (not YYYY-MM-DD) — schema validation failure
- Missing required fields (row_id, date, instrument_group) — validation error
- Non-numeric values in deposit_amount or withdrawal_amount — computation error

## How this service works

Savings ledger — Trailing mean series + Two-measure correlation: Trailing mean series + Two-measure correlation for supplied savings ledger records (deposit_amount, withdrawal_amount). Up to 200 rows; 2 independent reports using shared local analytical engines. No live lookup, prediction, professional assessment or external action. 0.01 USDC includes 2 supplied-data reports for up to 200 rows.

## Output

Returns two analytical reports: (1) a trailing mean series showing the rolling average of the selected field (deposit_amount or withdrawal_amount) over the specified window for each row, and (2) a correlation coefficient and supporting statistics measuring the linear relationship between deposit_amount and withdrawal_amount across all supplied rows.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "row_id",
     "instrument_group",
     "date",
     "deposit_amount",
     "withdrawal_amount"
    ],
    "properties": {
     "date": {
      "type": "string",
      "default": "",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
      "maxLength": 10
     },
     "row_id": {
      "type": "string",
      "default": "",
      "maxLength": 80,
      "minLength": 1
     },
     "deposit_amount": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     },
     "instrument_group": {
      "type": "string",
      "default": "",
      "maxLength": 80
     },
     "withdrawal_amount": {
      "type": [
       "number",
       "null"
      ],
      "maximum": 1000000000000,
      "minimum": -1000000000000
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "date": "2026-10-01",
     "row_id": "row-1",
     "deposit_amount": 10,
     "instrument_group": "group-a",
     "withdrawal_amount": 1
    },
    {
     "date": "2026-10-02",
     "row_id": "row-2",
     "deposit_amount": 20,
     "instrument_group": "group-b",
     "withdrawal_amount": 2
    },
    {
     "date": "2026-10-03",
     "row_id": "row-3",
     "deposit_amount": 15,
     "instrument_group": "group-a",
     "withdrawal_amount": 3
    },
    {
     "date": "2026-10-04",
     "row_id": "row-4",
     "deposit_amount": 30,
     "instrument_group": "group-b",
     "withdrawal_amount": 4
    }
   ],
   "maxItems": 200,
   "minItems": 1
  },
  "field": {
   "enum": [
    "deposit_amount",
    "withdrawal_amount"
   ],
   "type": "string",
   "default": "deposit_amount"
  },
  "window": {
   "type": "integer",
   "default": 2,
   "maximum": 200,
   "minimum": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/savings-ledger-trailing-mean-series-two-measure-correlation-ce0e13d9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
