# Polymarket — Get builder trades

Get Polymarket Builder Trades data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Polymarket, pass parameters such as builder_code, and retrieve structured data including data, returned count context, response page-size context, and next cursor for attribution views, and filtered collection, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/polymarket/polymarket-get-builder-trades/c9fe9949-06e3-470a-bc23-a9921bb9eec3/
API ID: c9fe9949-06e3-470a-bc23-a9921bb9eec3
Provider: Polymarket
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/polymarket/builder/trades
Page update time: 2026-12-03T02:49:27.752Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:27.219Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Polymarket Builder Trades API

Provide builder\_code as a query string. Optional id, market, asset\_id, before, after and next\_cursor narrow the read. The response has data and pagination context; data can be empty when the query returns no records.

## What You Can Build

- **Attribution views**: Display read-only activity associated with an integration code.
- **Filtered collection**: Collect pages for a chosen condition or asset while retaining the builder code.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `data` | Attributed trade records; the array can be empty |
| `count` | Returned count context |
| `limit` | Response page-size context |
| `next_cursor` | Continuation cursor returned by the service |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Polymarket — Get builder trades request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "builder_code": {
          "type": "string",
          "description": "Builder code to fetch attributed trades for"
        },
        "id": {
          "type": "string",
          "description": "Trade ID to filter by specific trade"
        },
        "market": {
          "type": "string",
          "description": "Market (condition ID) to filter trades"
        },
        "asset_id": {
          "type": "string",
          "description": "Asset ID (token ID) to filter trades"
        },
        "before": {
          "type": "string",
          "description": "Filter trades before this Unix timestamp"
        },
        "after": {
          "type": "string",
          "description": "Filter trades after this Unix timestamp"
        },
        "next_cursor": {
          "type": "string",
          "description": "Cursor for pagination (base64 encoded offset)"
        }
      },
      "required": [
        "builder_code"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "count": {
      "type": "integer"
    },
    "data": {
      "type": "array",
      "items": {}
    },
    "limit": {
      "type": "integer"
    },
    "next_cursor": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/polymarket/builder/trades?builder_code=0x0000000000000000000000000000000000000000000000000000000000000001&market=20006732765674855733524007935991362439352594042415161039767275461950712817548' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "count": 0,
  "data": [],
  "limit": 300,
  "next_cursor": "LTE="
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which identifier is required?
builder_code is required. It identifies the integration to which trades are attributed, rather than a wallet or market.

### Are market and asset_id interchangeable?
No. market filters by condition ID, while asset_id filters by outcome token ID. Keep these identities separate even when both are represented as strings.

### How do I request another page?
Pass the returned next_cursor unchanged into the next request. It is a cursor, not an offset input to calculate yourself.

### Does an empty data array mean a failed request?
An empty array contains no trade records. Check the HTTP and business result separately and retain the response count and cursor context.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.

## Available implementations
- Polymarket: https://openany.si/polymarket/polymarket-get-builder-trades/c9fe9949-06e3-470a-bc23-a9921bb9eec3/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
