> ## Documentation Index
> Fetch the complete documentation index at: https://docs.b3os.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Polymarket Get Builder Trades

Query trades attributed to a specific builder code on Polymarket. Returns trade details including fees, sizes, prices, and transaction hashes. Ideal for: builder revenue tracking, fee rebate analytics, trade attribution dashboards.

![Polymarket Get Builder Trades logo](https://cdn.b3.fun/b3os-icons/polymarket-icon.png)
Catalog action Utility wallet

Query trades attributed to a specific builder code on Polymarket. Returns trade details including fees, sizes, prices, and transaction hashes. Ideal for: builder revenue tracking, fee rebate analytics, trade attribution dashboards.


## At a Glance

| Field | Value |
| --- | --- |
| Action ID | `polymarket-get-builder-trades` |
| Category | Utility |
| Connector | `wallet` |
| Requires gas | No |
| Funds movement | None declared |
| Tags | `polymarket`, `trading`, `analytics`, `read` |

## Payload Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `builderCode` | `string` | Yes | Builder code to query trades for. Required. |
| `market` | `string` | No | Filter by market condition ID. |
| `assetId` | `string` | No | Filter by asset/token ID. |
| `before` | `string` | No | Filter trades before this timestamp \(ISO 8601 or Unix\). |
| `after` | `string` | No | Filter trades after this timestamp \(ISO 8601 or Unix\). |
| `cursor` | `string` | No | Pagination cursor for fetching the next page of results. |

## Result Schema

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `trades` | `array` | Yes | Array of trades attributed to the builder. |
| `count` | `number` | Yes | Number of trades in this page. |
| `nextCursor` | `string` | No | Pagination cursor for the next page. Absent if no more results. |

## Examples

**Workflow node**

```json
{
  "type": "polymarket-get-builder-trades",
  "payload": {
    "builderCode": "example-builderCode"
  },
  "children": [],
  "connector": {
    "type": "wallet",
    "id": "conn_wallet"
  }
}
```
  **Test with API**

```bash
curl -X POST "https://api.b3os.org/v1/actions/polymarket-get-builder-trades/test" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "inputs": {
    "builderCode": "example-builderCode"
  }
}'
```

**Use expressions for dynamic values**

Payload fields can use workflow expressions such as `{{$trigger.body.amount}}`, `{{$nodes.fetch.result.price}}`, and `{{$props.asset}}` when the value should come from a trigger, prior node, or reusable workflow prop.