# market2000.xyz Position Size Calculator

> market2000.xyz Position Size Calculator is a paid API for AI agents from market2000.xyz, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Calculates Kelly-criterion-based position sizing and risk parameters for a stock trade using time series analog pattern matching

## Facts

- Endpoint: GET https://market2000.xyz/position_size
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/market2000-xyz-position-size-calculator-5a0fc041
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_W2cf-UsJiXnMY2dT6r_v3

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 market2000-xyz-position-size-calculator-5a0fc041
```

Example prompt: Based on historical time series analogs, how large a position should I take in NVDA over a 30-day horizon — give me the Kelly sizing, recommended allocation, and stop/target reference levels for a $10,000 portfolio.

## When to prefer this

Choose this endpoint when you need quantitatively grounded position sizing derived from historical time series pattern matching rather than simple fixed-percentage rules. It is ideal when you want Kelly-criterion-based allocation with empirical win rates and expected value estimates from analog trades, especially for equity tickers over defined horizons like 30 days.

## Known failure modes

- Unknown or unsupported ticker symbol — returns error or empty analogs
- Insufficient historical data for the requested horizon — low analog count or fallback
- Payment failure via x402 on Base — request rejected before computation
- Invalid horizon format — returns validation error
- Network timeout on pattern matching computation — no result returned

## How this service works

An origin the crawlers already index. We count what AI agents try to buy, what they are refused, and what the AI companies take without sending anyone back. Sold per call in USDC.

## Output

Returns a JSON object with: ticker and horizon, edge metrics (win/loss ratio, expected value percentage, actual win rate), position sizing (dollar amount, full Kelly percentage, recommended half-Kelly allocation percentage), risk levels (stop reference and target reference percentages), and number of historical analogs used in the analysis.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "ticker",
      "start_date",
      "end_date"
     ],
     "properties": {
      "k": {
       "type": "integer"
      },
      "ticker": {
       "type": "string"
      },
      "horizon": {
       "enum": [
        "7d",
        "14d",
        "30d",
        "60d"
       ],
       "type": "string"
      },
      "end_date": {
       "type": "string",
       "format": "date"
      },
      "start_date": {
       "type": "string",
       "format": "date"
      },
      "kelly_fraction": {
       "type": "number"
      },
      "portfolio_value": {
       "type": "number"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "edge": {
       "type": "object"
      },
      "notes": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "sizing": {
       "type": "object"
      },
      "risk_levels": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "edge": {
   "win_loss_ratio": 1.8,
   "expected_value_pct": 4.2,
   "actual_win_rate_pct": 65
  },
  "sizing": {
   "dollar_size": 710,
   "full_kelly_pct": 14.2,
   "recommended_allocation_pct": 7.1
  },
  "ticker": "NVDA",
  "horizon": "30d",
  "risk_levels": {
   "stop_reference_pct": -8.4,
   "target_reference_pct": 12.1
  },
  "analogs_used": 20
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/market2000-xyz-position-size-calculator-5a0fc041/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market2000.xyz](https://www.zero.xyz/host/market2000.xyz/llms.txt)
