# Nansen Prediction Market Trades by Address

> Nansen Prediction Market Trades by Address is a paid API for AI agents from api.nansen.ai, paid per call via MPP or x402, $0.01/call, status unknown (last checked 2026-09-13).

Retrieves prediction market trade history for a specific wallet address, showing all trades made by that address across prediction markets.

## Facts

- Endpoint: GET https://api.nansen.ai/api/v1/prediction-market/trades-by-address
- Price: $0.01/call
- Payment: MPP, x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-nansen-ai-47a7298c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_h0oZoNOUIdIUQ5HGlUCDC

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 api-nansen-ai-47a7298c
```

Example prompt: Pull up all the prediction market trades for wallet address 0x4b5922abf25858d012d3ab2d6f89c0df1d61a738 using Nansen — I want to see what bets this address has been making.

## When to prefer this

Use this endpoint when you need to analyze prediction market activity for a specific wallet address — ideal for tracking smart money behavior, researching a counterparty's betting history, or building wallet-level analytics on prediction market participation. Choose this over the market-level endpoint when the wallet address is your primary filter rather than the market itself.

## Known failure modes

- Invalid or malformed wallet address returns 400 error
- Address with no prediction market activity returns empty result set
- Rate limiting or quota exceeded returns 429 error
- Network or upstream Nansen data source unavailable returns 503
- Payment failure via x402 protocol blocks the request

## How this service works

Get Prediction Market Trades by Address

## Output

Returns a list of prediction market trades associated with the specified wallet address, including trade details such as market, position, size, price, and timestamps.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "title": "TradesByAddressRequest",
 "required": [
  "address"
 ],
 "properties": {
  "date": {
   "anyOf": [
    {
     "type": "object",
     "title": "DateRange",
     "properties": {
      "to": {
       "anyOf": [
        {
         "type": "string"
        }
       ],
       "title": "To",
       "examples": [
        "2025-01-31T23:59:59Z"
       ],
       "description": "End date in ISO 8601 format (e.g., 2025-01-31T23:59:59Z or 2025-01-31)"
      },
      "from": {
       "anyOf": [
        {
         "type": "string"
        }
       ],
       "title": "From",
       "examples": [
        "2025-01-01T00:00:00Z"
       ],
       "description": "Start date in ISO 8601 format (e.g., 2025-01-01T00:00:00Z or 2025-01-01)"
      }
     },
     "description": "Date range model matching the API schema."
    }
   ],
   "examples": [
    {
     "to": "2024-12-31T23:59:59Z",
     "from": "2024-01-01T00:00:00Z"
    }
   ],
   "description": "Date range filter (ISO 8601 date-time)"
  },
  "address": {
   "type": "string",
   "title": "Address",
   "examples": [
    "0x1234567890abcdef1234567890abcdef12345678"
   ],
   "maxLength": 100,
   "minLength": 1,
   "description": "Wallet address (hex, with or without 0x prefix)"
  },
  "order_by": {
   "anyOf": [
    {
     "type": "array",
     "items": {
      "type": "object",
      "title": "SortOrder[TradesByAddressSortField]",
      "required": [
       "field",
       "direction"
      ],
      "properties": {
       "field": {
        "enum": [
         "timestamp"
        ],
        "type": "string",
        "title": "TradesByAddressSortField",
        "description": "Sortable fields for trades by address endpoint."
       },
       "direction": {
        "enum": [
         "ASC",
         "DESC"
        ],
        "type": "string",
        "title": "SortDirection",
        "description": "Enum for sort directions."
       }
      }
     }
    }
   ],
   "title": "Order By",
   "examples": [
    [
     {
      "field": "timestamp",
      "direction": "DESC"
     }
    ]
   ],
   "description": "Sort order"
  },
  "pagination": {
   "type": "object",
   "title": "PaginationRequest",
   "properties": {
    "page": {
     "type": "integer",
     "title": "Page",
     "default": 1,
     "minimum": 1,
     "description": "Page number (1-based)"
    },
    "per_page": {
     "type": "integer",
     "title": "Per Page",
     "default": 10,
     "maximum": 1000,
     "minimum": 1,
     "descripti
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "title": "TradesByAddressResponse",
 "required": [
  "data"
 ],
 "properties": {
  "data": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "TradeByAddress",
    "properties": {
     "side": {
      "anyOf": [
       {
        "type": "string"
       }
      ],
      "title": "Side",
      "examples": [
       "Yes"
      ],
      "description": "Outcome side (Yes/No)"
     },
     "size": {
      "anyOf": [
       {
        "type": "number"
       }
      ],
      "title": "Size",
      "examples": [
       1000
      ],
      "description": "Trade size in tokens"
     },
     "buyer": {
      "anyOf": [
       {
        "type": "string"
       }
      ],
      "title": "Buyer",
      "examples": [
       "0xabcdefabcdefabcdefabcdefabcdefabcdefabcd"
      ],
      "description": "Buyer address (hex)"
     },
     "price": {
      "anyOf": [
       {
        "type": "number"
       }
      ],
      "title": "Price",
      "examples": [
       0.52
      ],
      "description": "Price per share (0-1)"
     },
     "seller": {
      "anyOf": [
       {
        "type": "string"
       }
      ],
      "title": "Seller",
      "examples": [
       "0x1234567890abcdef1234567890abcdef12345678"
      ],
      "description": "Seller address (hex)"
     },
     "tx_hash": {
      "anyOf": [
       {
        "type": "string"
       }
      ],
      "title": "Tx Hash",
      "examples": [
       "0xabc123def456"
      ],
      "description": "Transaction hash (hex)"
     },
     "event_id": {
      "anyOf": [
       {
        "type": "string"
       }
      ],
      "title": "Event Id",
      "description": "Parent event ID"
     },
     "market_id": {
      "anyOf": [
       {
        "type": "string"
       }
      ],
      "title": "Market Id",
      "description": "Market ID"
     },
     "timestamp": {
      "anyOf": [
       {
        "type": "string",
        "format": "date-time"
       }
      ],
      "title": "Timestamp",
      "examples": [
       "2024-11-01T12:30:00"
      ],
      "description": "Trade timestamp (ISO format)"
     },
     "usdc_value": {
      "anyOf": [
       {
        "type": "number"
       }
      ],
      "title": "Usdc Value",
      "examples": [
       520
      ],
      "description": "Trade value in USDC"
     },
     "event_title": {
      "anyOf": [
       {
        "type": "string"
       }
      ],
      "title": "Event Title",
      "description": "Parent event title"
     },
 
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-nansen-ai-47a7298c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.nansen.ai](https://www.zero.xyz/host/api.nansen.ai/llms.txt)
