New API users should migrate to deposit wallets. Read the migration guide.
curl --request GET \
--url https://clob.polymarket.com/builder/trades{
"limit": 300,
"next_cursor": "MzAw",
"count": 2,
"data": [
{
"id": "trade-123",
"tradeType": "TAKER",
"takerOrderHash": "0xabcdef1234567890abcdef1234567890abcdef12",
"builder": "0x0000000000000000000000000000000000000000000000000000000000000001",
"market": "0x0000000000000000000000000000000000000000000000000000000000000001",
"assetId": "15871154585880608648532107628464183779895785213830018178010423617714102767076",
"side": "BUY",
"size": "100000000",
"sizeUsdc": "50000000",
"price": "0.5",
"status": "TRADE_STATUS_CONFIRMED",
"outcome": "YES",
"outcomeIndex": 0,
"owner": "f4f247b7-4ac7-ff29-a152-04fda0a8755a",
"maker": "0x1234567890123456789012345678901234567890",
"transactionHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"matchTime": "1700000000",
"bucketIndex": 0,
"fee": "300000",
"feeUsdc": "150000",
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}
]
}Retrieves trades attributed to a builder code.
curl --request GET \
--url https://clob.polymarket.com/builder/trades{
"limit": 300,
"next_cursor": "MzAw",
"count": 2,
"data": [
{
"id": "trade-123",
"tradeType": "TAKER",
"takerOrderHash": "0xabcdef1234567890abcdef1234567890abcdef12",
"builder": "0x0000000000000000000000000000000000000000000000000000000000000001",
"market": "0x0000000000000000000000000000000000000000000000000000000000000001",
"assetId": "15871154585880608648532107628464183779895785213830018178010423617714102767076",
"side": "BUY",
"size": "100000000",
"sizeUsdc": "50000000",
"price": "0.5",
"status": "TRADE_STATUS_CONFIRMED",
"outcome": "YES",
"outcomeIndex": 0,
"owner": "f4f247b7-4ac7-ff29-a152-04fda0a8755a",
"maker": "0x1234567890123456789012345678901234567890",
"transactionHash": "0x1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef",
"matchTime": "1700000000",
"bucketIndex": 0,
"fee": "300000",
"feeUsdc": "150000",
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}
]
}Documentation Index
Fetch the complete documentation index at: https://docs.polymarket.com/llms.txt
Use this file to discover all available pages before exploring further.
Builder code to fetch attributed trades for
^0x[a-fA-F0-9]{64}$Trade ID to filter by specific trade
Market (condition ID) to filter trades
^0x[a-fA-F0-9]{64}$Asset ID (token ID) to filter trades
Filter trades before this Unix timestamp
^\d+$Filter trades after this Unix timestamp
^\d+$Cursor for pagination (base64 encoded offset)
Successfully retrieved builder trades
Paginated builder trades response
Maximum number of items per page
300
Cursor for next page (base64 encoded offset). "LTE=" indicates no more pages
"MzAw"
Number of items in current response
2
Array of builder trades
Show child attributes
Was this page helpful?