# market2000.xyz Portfolio Factors

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

Decomposes a portfolio of holdings into price-based factors including momentum, trend, and beta to S&P 500 and BTC.

## Facts

- Endpoint: GET https://market2000.xyz/api/portfolio-factors
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/market2000-xyz-portfolio-factors-7a5feac0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_d5FfCMC9oeavpbUuxxoSX

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-portfolio-factors-7a5feac0
```

Example prompt: Break down my portfolio — I'm holding 1000 notional in NVDA and 500 in BTC — into momentum, trend, and beta factors relative to the S&P 500 and BTC using a 90-day lookback window.

## When to prefer this

Use this endpoint when you need a quantitative factor decomposition of a multi-asset portfolio, particularly one mixing equities and crypto. It is purpose-built for momentum, trend, and dual-beta (S&P 500 + BTC) analysis in a single call, making it ideal for agents managing mixed books or performing pre-trade risk checks.

## Known failure modes

- Missing 'holdings' parameter returns an error requiring ticker:weight pairs
- Invalid ticker format or unsupported tickers may return empty or partial results
- Lookback value outside 60–250 range may be rejected or clamped
- Payment failure (x402) if USDC payment is not properly submitted
- Database (clean_prices.db) may lack price history for exotic or newly listed tickers

## How this service works

Portfolio Factors — price-based factor decomposition of a book (clean_prices.db).

HOW TO CALL:
  GET /api/portfolio-factors?holdings=xyz:NVDA:1000,BTC:500

PARAMETERS:
  holdings — TICKER:weight pairs, HL-format tickers (required)
  lookback — estimation window in days, 60–250 (default 120)

RESPONSE: notional-weighted momentum, trend, book beta to S&P 500 and BTC.

PRICING: $0.05 per call.

## Output

Returns notional-weighted factor scores for the submitted portfolio, including momentum, trend, beta to S&P 500, and beta to BTC — giving a quantitative breakdown of the book's systematic risk and style exposures.

## 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": [
      "holdings"
     ],
     "properties": {
      "holdings": {
       "type": "string",
       "description": "TICKER:weight pairs, HL-format, e.g. 'xyz:NVDA:1000,BTC:500'"
      },
      "lookback": {
       "type": "integer",
       "default": 120,
       "description": "Estimation window in days (60–250)"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/market2000-xyz-portfolio-factors-7a5feac0/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)
