# Mark Position Value

> Mark Position Value is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Computes the dollar value of an equity position by marking it to a specified price using local arithmetic, returning deterministic JSON.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/position-value
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mark-position-value-97fde4e2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_km3fWF83I2J3ne5y3XkTg

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 mark-position-value-97fde4e2 -d '<json body>'
```

Example prompt: What's the total value of my position if I hold 250 shares marked at a price of 148?

## When to prefer this

Use this endpoint when you need a fast, deterministic, local calculation of an equity position's value at a specific mark price — especially when no live exchange feed is available. Ideal for portfolio snapshot tools, offline risk calculations, or any workflow requiring reproducible mark-to-price math without external dependencies.

## Known failure modes

- Missing or invalid size field returns an error
- Missing or non-integer price field returns an error
- Negative or zero size/price may produce unexpected results
- Payment failure via x402 prevents the call from completing

## How this service works

Mark a position to a given price for equity snapshots. Call when portfolio marks without a live exchange feed in the tool itself. Returns position value at mark as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.

## Output

Returns deterministic JSON containing the computed position value (size × mark price) at the specified mark, with no reliance on live market data, external APIs, or storage. Advisory output only.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "size": {
   "type": "number",
   "description": "Input field: size."
  },
  "price": {
   "type": "integer",
   "description": "Input field: price."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "size": 2.5,
  "price": 40,
  "value": 100,
  "schema": "delx/util-position-value/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mark-position-value-97fde4e2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
