# Savings Ledger — Numeric Row Ordering + Secondary-Measure Weighted Mean

> Savings Ledger — Numeric Row Ordering + Secondary-Measure Weighted Mean is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-30).

Computes numeric row ordering (rank) and secondary-measure weighted mean on savings ledger records (deposit_amount, withdrawal_amount) for up to 200 rows, returning two analytical reports.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-ib26-finance-23-121?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/savings-ledger-numeric-row-ordering-secondary-measure-weighted-mean-f81aa8be
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BI39pRxccOJoEmtS8RJRT

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-numeric-row-ordering-secondary-measure-weighted-mean-f81aa8be -d '<json body>'
```

Example prompt: I have a savings ledger with 4 rows — row-1 on 2026-10-01 with deposit 10 and withdrawal 1 (group-a), row-2 on 2026-10-02 with deposit 20 and withdrawal 2 (group-b), row-3 on 2026-10-03 with deposit 15 and withdrawal 3 (group-a), row-4 on 2026-10-04 with deposit 30 and withdrawal 4 (group-b) — can you rank these rows by deposit_amount and also give me the secondary-measure weighted mean for deposit_amount?

## When to prefer this

Choose this endpoint when you need both numeric row ranking and a secondary-measure weighted mean computed on savings ledger data (deposit_amount, withdrawal_amount) in a single call for up to 200 rows, without needing live data lookups, predictions, or external integrations. It is cost-effective at $0.01 for two reports and is ideal for offline batch analytics on already-collected savings transaction records.

## Known failure modes

- Exceeding 200 rows returns an error or truncation
- Missing required fields (row_id, date, deposit_amount, withdrawal_amount, instrument_group) cause validation failure
- Invalid date format (not YYYY-MM-DD) causes schema rejection
- Null values in both measures may yield undefined weighted mean
- Supplying fewer than 1 row causes a minItems validation error

## How this service works

Savings ledger — Numeric row ordering + Secondary-measure weighted mean: Numeric row ordering + Secondary-measure weighted mean 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 for the supplied savings ledger rows: (1) numeric row ordering (ranks) of each row by the specified field (deposit_amount or withdrawal_amount), and (2) a secondary-measure weighted mean where one measure is weighted by the other. Results are computed locally from 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-numeric-row-ordering-secondary-measure-weighted-mean-f81aa8be/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)
