# Market2000 Trading Portfolio

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

Returns the current state of a live trading account, including all open positions with size, entry price, mark price, and unrealized PnL, plus total account equity in USD.

## Facts

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

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-trading-portfolio-e0af205e
```

Example prompt: Show me my current trading portfolio — all open positions with their sizes, entry prices, live mark prices, and unrealized PnL, plus my total account equity in USD.

## When to prefer this

Use this endpoint when you need a real-time, live snapshot of an active trading account's positions and equity — especially when decisions depend on current mark prices and unrealized PnL rather than historical or delayed data. Prefer this over exchange REST APIs when you need a single unified portfolio view already aggregated by market2000.xyz. Best suited for agents that need to monitor, alert on, or reason about live trading exposure.

## Known failure modes

- No open positions returns an empty open_positions array — not an error
- Authentication or authorization failure if the API key does not have access to the account
- Stale mark prices if the venue experiences latency or connectivity issues
- Network errors or timeouts if the API server is unreachable
- Invalid endpoint path returns a 404 response

## How this service works

Trading Portfolio — the book as it stands right now.

Every open position with its size, entry, live mark and unrealized PnL, plus total account equity. Real fills on a real venue, not a delayed report.

HOW TO CALL:
  GET /trading/portfolio

RESPONSE:
  account_value_usd  — total equity in USD
  open_positions     — [{asset, side, size, entry_price, mark_price, unrealized_pnl}]

PRICING: $0.0001 per call.

## Output

A JSON object containing total account equity in USD (account_value_usd) and an array of open positions, each with fields: asset (e.g. BTC, ETH), side (long/short), size, entry_price, mark_price, and unrealized_pnl. Data reflects real fills on a live trading venue, not delayed or simulated data.

## 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",
     "properties": {}
    }
   }
  },
  "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-trading-portfolio-e0af205e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.market2000.xyz](https://www.zero.xyz/host/api.market2000.xyz/llms.txt)
