# Savings Ledger — Two-Measure Correlation + Date by Category Pivot

> Savings Ledger — Two-Measure Correlation + Date by Category Pivot 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).

Runs two local analytical reports on savings ledger data: a Pearson/rank correlation between deposit_amount and withdrawal_amount, and a date-by-instrument-group pivot table, for up to 200 rows.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ib26-finance-23-182?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-two-measure-correlation-date-by-category-pivot-027b5905
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0ej9spKuOHEdc4p2ySPau

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-two-measure-correlation-date-by-category-pivot-027b5905 -d '<json body>'
```

Example prompt: I have up to 200 rows of savings ledger data with deposit_amount and withdrawal_amount fields — can you run a two-measure correlation between those two amounts AND a date-by-instrument-group pivot, and give me both reports at once?

## When to prefer this

Choose this endpoint when you have savings ledger data (up to 200 rows) with deposit and withdrawal amounts and want both a correlation analysis and a date-by-category pivot in a single cheap call ($0.01 USDC). Prefer this over general-purpose analytics tools when your data already matches the savings ledger schema (row_id, instrument_group, date, deposit_amount, withdrawal_amount) and you need two bundled reports without setting up your own analytics pipeline.

## Known failure modes

- Fewer than 1 row supplied — validation error
- More than 200 rows supplied — rejected with row limit error
- Invalid date format (not YYYY-MM-DD) — pattern validation failure
- Missing required fields (row_id, date, instrument_group, deposit_amount, withdrawal_amount) — schema validation error
- Non-numeric values in deposit_amount or withdrawal_amount — type error
- Insufficient variance in data for meaningful correlation — may return null or degenerate correlation result
- Payment failure — 0.01 USDC not provided or x402 protocol error

## How this service works

Savings ledger — Two-measure correlation + Date by category pivot: Two-measure correlation + Date by category pivot 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 independent analytical reports: (1) a two-measure correlation result quantifying the statistical relationship between deposit_amount and withdrawal_amount across all supplied rows, and (2) a date-by-instrument-group pivot table aggregating the chosen field (deposit_amount or withdrawal_amount) by date and category. Both reports are computed locally on the supplied data with no external lookups.

## 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"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/savings-ledger-two-measure-correlation-date-by-category-pivot-027b5905/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)
