Get a Polymarket wallet's trade history
Fetch cached Polymarket wallet trades with pagination and history coverage.
GET /wallets/{id}/trades
Use this endpoint to export the fills available for a wallet. Querying a wallet adds it to the refresh set. The upstream API caps historical trades, so a complete response page is not proof of complete lifetime history.
Authentication
Send your key in the X-API-Key header. Keep the key out of URLs and shared logs.
Parameters
| Name | Location | Type | Required | Details |
|---|---|---|---|---|
id | path | string | Yes | minLength: 1. maxLength: 160. pattern: ^[A-Za-z0-9_.-]+$. |
limit | query | integer | No | Default: 100. minimum: 1. maximum: 500. |
offset | query | integer | No | Default: 0. minimum: 0. maximum: 10000000. |
Example request
curl --fail-with-body -X GET \
"https://polymarket.omray.dev/wallets/YOUR_WALLET_OR_MARKET_ID/trades" \
-H "X-API-Key: $PM_API_KEY"Responses
| Status | Meaning |
|---|---|
200 | Successful Response |
422 | Validation Error |
Authenticated requests can return 401 for an invalid key or 429 when a plan limit is reached. Upstream failures may return a server error; do not treat an error as an empty dataset.
OpenAPI operation schema
{
"tags": [
"Wallets"
],
"summary": "Download a Polymarket wallet's trade history",
"description": "Page through locally retained fills. The upstream per-wallet offset cap means older fills may be missing.",
"operationId": "wallet_trades",
"security": [
{
"APIKeyHeader": []
}
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[A-Za-z0-9_.-]+$",
"title": "Id"
}
},
{
"name": "limit",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"maximum": 500,
"minimum": 1,
"default": 100,
"title": "Limit"
}
},
{
"name": "offset",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"maximum": 10000000,
"minimum": 0,
"default": 0,
"title": "Offset"
}
}
],
"responses": {
"200": {
"description": "Successful Response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/WalletTrades"
}
}
}
},
"422": {
"description": "Validation Error",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HTTPValidationError"
}
}
}
}
}
}