# Polymarket Wallet Positions API — mito.trade

> Polymarket Wallet Positions API — mito.trade is a paid API for AI agents from data.mito.trade, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns open or closed prediction-market positions for a given Ethereum wallet address on Polymarket, including block-level on-chain data.

## Facts

- Endpoint: GET https://data.mito.trade/x402/v1/wallet/positions
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/polymarket-wallet-positions-api-mito-trade-e5bfde87
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_R28vCydK5yCmFta8N-hlg

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 polymarket-wallet-positions-api-mito-trade-e5bfde87
```

Example prompt: Show me all the open Polymarket positions for wallet 0x1234abcd... — use the mito.trade on-chain data API and return the first 100 results.

## When to prefer this

Use this endpoint when you need on-chain Polymarket position data for a specific Ethereum wallet, particularly when you want to distinguish between currently open (non-flat) positions and historically closed (flat) positions. Prefer this over Polymarket's own API when you want x402 micropayment-gated access with Polygon/Base/Arbitrum USDC settlement and block-level data provenance.

## Known failure modes

- Missing or malformed wallet address returns a 400 or empty result
- Invalid status value (not 'open' or 'closed') causes a validation error
- Payment not completed via x402 protocol results in a 402 Payment Required response
- Wallet has no positions returns an empty positions array with count 0
- Offset beyond total results returns empty positions array
- Rate limiting or USDC payment failure blocks the request

## How this service works

Polymarket prediction-market data API (x402 paid): wallet positions, trades, holders, market trades, klines, and markets. USDC on Polygon, Base, or Arbitrum.

## Output

Returns a JSON object with a positions array (each entry representing a wallet's on-chain Polymarket position), a count of positions in the current page, a total count across all pages, and the latest block number and block timestamp at which the data was snapshotted.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "wallet",
      "status"
     ],
     "properties": {
      "limit": {
       "type": "string",
       "description": "Page size (default 100, max 1000)"
      },
      "offset": {
       "type": "string",
       "description": "Pagination offset (default 0)"
      },
      "status": {
       "enum": [
        "open",
        "closed"
       ],
       "type": "string",
       "description": "open = non-flat inventory; closed = flat with prior trades"
      },
      "wallet": {
       "type": "string",
       "description": "Ethereum wallet address (0x…)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "data": {
       "type": "object",
       "properties": {
        "block_number": {
         "type": "integer"
        },
        "block_timestamp": {
         "type": "integer"
        }
       }
      },
      "count": {
       "type": "integer"
      },
      "total": {
       "type": "integer"
      },
      "positions": {
       "type": "array"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "block_number": 0,
   "block_timestamp": 0
  },
  "count": 0,
  "total": 0,
  "positions": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/polymarket-wallet-positions-api-mito-trade-e5bfde87/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data.mito.trade](https://www.zero.xyz/host/data.mito.trade/llms.txt)
