POST
https://www.brainiac.software/api/v1/polymarket/markets$0.008 USDCPolymarket markets and odds
List Polymarket markets from the public Gamma API.
Body
| Field | Required | Notes |
|---|---|---|
query | No | string |
slug | No | string |
conditionId | No | string |
closed | No | boolean |
limit | No | integer |
offset | No | integer |
order | No | string |
ascending | No | boolean |
cursor | No | string |
Request exampleJSON
{
"limit": 5,
"closed": false
}Response exampleJSON
{
"status": "complete",
"data": {
"retrievedAt": "2026-11-20T21:36:00.000Z",
"limit": 20,
"offset": 0,
"markets": [
{
"id": "559651",
"question": "Xi Jinping out before 2027?",
"slug": "xi-jinping-out-before-2027",
"conditionId": "0xa467b14d51f01b957109d9cbb1d6c124fab2a089d52ed8f471d23c2812e743b7",
"outcomes": [
"Yes",
"No"
],
"outcomePrices": [
"0.0175",
"0.9825"
],
"bestBid": 0.017,
"bestAsk": 0.018,
"lastTradePrice": 0.015,
"spread": 0.001,
"volume": "17392796.370488998",
"liquidity": "299906.07864",
"endDate": "2027-01-01T04:59:00Z",
"active": true,
"closed": false
}
],
"unavailable": []
},
"nextCursor": null,
"progress": {
"processed": 0,
"total": null,
"unit": "items",
"scannedRange": null
},
"sources": [
{
"source": "upstream",
"url": "https://gamma-api.polymarket.com/markets",
"retrievedAt": "2026-11-20T21:36:00.000Z"
}
],
"missing_items": [],
"limitations": []
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/polymarket/markets" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"limit": 5,
"closed": false
}
JSONPOST
https://www.brainiac.software/api/v1/polymarket/events$0.008 USDCPolymarket events
List Polymarket events and nested markets from the public Gamma Events API.
Body
| Field | Required | Notes |
|---|---|---|
query | No | string |
slug | No | string |
eventId | No | string |
closed | No | boolean |
active | No | boolean |
limit | No | integer |
offset | No | integer |
cursor | No | string |
Request exampleJSON
{
"limit": 5,
"closed": false
}Response exampleJSON
{
"status": "complete",
"data": {
"retrievedAt": "2026-11-20T21:36:00.000Z",
"limit": 20,
"offset": 0,
"events": [
{
"id": "12345",
"title": "Example event",
"slug": "example-event",
"endDate": "2026-12-31T00:00:00Z",
"volume": "1000000",
"liquidity": "50000",
"active": true,
"closed": false,
"markets": [
{
"id": "559651",
"question": "Example market?",
"slug": "example-market",
"conditionId": "0xa467b14d51f01b957109d9cbb1d6c124fab2a089d52ed8f471d23c2812e743b7",
"outcomes": [
"Yes",
"No"
],
"outcomePrices": [
"0.42",
"0.58"
],
"volume": "100000",
"endDate": "2026-12-31T00:00:00Z"
}
]
}
],
"unavailable": []
},
"nextCursor": null,
"progress": {
"processed": 0,
"total": null,
"unit": "items",
"scannedRange": null
},
"sources": [
{
"source": "upstream",
"url": "https://gamma-api.polymarket.com/events",
"retrievedAt": "2026-11-20T21:36:00.000Z"
}
],
"missing_items": [],
"limitations": []
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/polymarket/events" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"limit": 5,
"closed": false
}
JSONPOST
https://www.brainiac.software/api/v1/polymarket/trades$0.008 USDCPolymarket recent trades
Recent Polymarket trades from the public Data API v2 trade feed (not v1, not authenticated CLOB).
Body
| Field | Required | Notes |
|---|---|---|
conditionId | No | string |
eventId | No | string |
user | No | string |
limit | No | integer |
cursor | No | string |
Request exampleJSON
{
"limit": 20
}Response exampleJSON
{
"status": "complete",
"data": {
"retrievedAt": "2026-11-20T21:36:00.000Z",
"trades": [
{
"proxyWallet": "0x81d529f0a6b2cfb3e64dedd1cb171350dd38c38e",
"side": "SELL",
"tokenId": "72131623180530088702232590799201462172787760651892934121714422597098986683477",
"conditionId": "0xe1f1fb6e070d5196ef36e38bba8f8ab4c50b2ce989f332065bdb8654af9ea837",
"size": 0.01,
"price": 0.88,
"timestamp": 1795210636,
"title": "Bitcoin Up or Down - November 20, 4:35PM-4:40PM ET",
"slug": "btc-updown-5m-1795210500",
"outcome": "Up",
"outcomeIndex": 0,
"transactionHash": "0x1387942877a3c7ca9281c120eb79397b8146e82a255845979a9e4d1cf6792a7a"
}
],
"pagination": {
"limit": 20,
"hasMore": true,
"nextCursor": "cursor-example"
},
"unavailable": []
},
"nextCursor": null,
"progress": {
"processed": 0,
"total": null,
"unit": "items",
"scannedRange": null
},
"sources": [
{
"source": "upstream",
"url": "https://data-api.polymarket.com/v2/trades",
"retrievedAt": "2026-11-20T21:36:00.000Z"
}
],
"missing_items": [],
"limitations": []
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/polymarket/trades" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"limit": 20
}
JSONPOST
https://www.brainiac.software/api/v1/polymarket/leaderboard$0.0085 USDCPolymarket leaderboard
Official Polymarket Data API v2 leaderboard of wallets by PnL and volume, with optional timeframe.
Body
| Field | Required | Notes |
|---|---|---|
timeframe | No | string; One of: day, week, month, all |
category | No | string |
limit | No | integer |
cursor | No | string |
Request exampleJSON
{
"timeframe": "day",
"limit": 10
}Response exampleJSON
{
"status": "complete",
"data": {
"timeframe": "day",
"leaders": [
{
"rank": 1,
"userId": "0x2c335066fe58fe9237c3d3dc7b275c2a034a0563",
"userName": "demo",
"pnl": "595456.2685383962",
"volume": "3870941.3891580007",
"verified": false
}
],
"pagination": {
"limit": 10,
"hasMore": true
},
"sourceUrl": "https://data-api.polymarket.com/v2/leaderboard",
"asOf": "2026-11-20T23:20:00.000Z"
},
"nextCursor": null,
"progress": {
"processed": 0,
"total": null,
"unit": "items",
"scannedRange": null
},
"sources": [],
"missing_items": [],
"limitations": []
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/polymarket/leaderboard" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"timeframe": "day",
"limit": 10
}
JSONPOST
https://www.brainiac.software/api/v1/polymarket/price-history$0.0085 USDCPolymarket price history
Official Polymarket CLOB historical prices for a market token from the public prices-history API.
Body
| Field | Required | Notes |
|---|---|---|
tokenId | No | string |
conditionId | No | string |
outcome | No | string |
interval | No | string; One of: 1m, 1h, 6h, 1d, 1w, max |
fidelity | No | integer |
cursor | No | string |
Request exampleJSON
{
"tokenId": "32338220190071351435772801779725302244575775216413325951443816017994629993401",
"interval": "1d"
}Response exampleJSON
{
"status": "complete",
"data": {
"tokenId": "32338220190071351435772801779725302244575775216413325951443816017994629993401",
"interval": "1d",
"history": [
{
"time": "2026-11-19T12:00:00.000Z",
"price": "0.0145"
},
{
"time": "2026-11-20T12:00:00.000Z",
"price": "0.0175"
}
],
"sourceUrl": "https://clob.polymarket.com/prices-history",
"asOf": "2026-11-20T23:20:00.000Z"
},
"nextCursor": null,
"progress": {
"processed": 0,
"total": null,
"unit": "items",
"scannedRange": null
},
"sources": [],
"missing_items": [],
"limitations": []
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/polymarket/price-history" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"tokenId": "32338220190071351435772801779725302244575775216413325951443816017994629993401",
"interval": "1d"
}
JSONPOST
https://www.brainiac.software/api/v1/polymarket/order-book$0.0085 USDCPolymarket order book
Official Polymarket CLOB order book for a market token: bids and asks with price and size.
Body
| Field | Required | Notes |
|---|---|---|
tokenId | No | string |
conditionId | No | string |
outcome | No | string |
depth | No | integer |
Request exampleJSON
{
"tokenId": "32338220190071351435772801779725302244575775216413325951443816017994629993401",
"depth": 10
}Response exampleJSON
{
"status": "complete",
"tokenId": "32338220190071351435772801779725302244575775216413325951443816017994629993401",
"bids": [
{
"price": "0.017",
"size": "10507.64"
}
],
"asks": [
{
"price": "0.018",
"size": "7893.67"
}
],
"truncated": true,
"source": "Polymarket CLOB",
"sourceUrl": "https://clob.polymarket.com/book",
"asOf": "2026-11-20T23:20:00.000Z",
"missing_items": []
}cURL
curl -i -X POST "https://www.brainiac.software/api/v1/polymarket/order-book" \
-H 'content-type: application/json' \
-H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
--data-binary @- <<'JSON'
{
"tokenId": "32338220190071351435772801779725302244575775216413325951443816017994629993401",
"depth": 10
}
JSON