Making Polymarket Exchange Data Accessible for Research
Overview
Polymarket’s exchange data is accessible to students, researchers, and learners. Our open APIs provide access to markets, orders, trades, and more.
This guide is the Institute’s researcher-focused introduction to that data. The complete technical references remain at docs.polymarket.com (opens in a new tab) and docs.polymarket.us (opens in a new tab).
First, it is important to understand that two exchanges collectively form Polymarket:
Decentralized (polymarket.com (opens in a new tab)): Available globally to non-US users, with markets spanning elections, sports, weather, culture, entertainment, mentions, economics, and more.
US-only (polymarket.us (opens in a new tab)): Available through the website and the iOS and Android applications. The platform is expanding to other fields but is currently concentrated in sports and politics.
For administrative reasons, the two platforms use distinct APIs and their data is managed separately.
Blockchain data. This guide focuses on the decentralized platform. Because Polymarket orders are recorded on Polygon, every position, trade, and resolution is publicly verifiable. The APIs are convenient views into data that is already public on-chain, so market history cannot be altered.
Markets & events
Polymarket supports large, multi-option events such as “Who will win the 2024 Presidential Election?” An event contains underlying binary markets, such as “Will Joe Biden win the 2024 Presidential Election?” Traders can place market and limit orders to buy or sell Yes and No outcomes.
Accessing Polymarket DeFi data (recommended)
Data API
Use it for questions about who is trading and how:
- Which wallets hold the largest position in a market?
- What has a user’s trading activity looked like over time?
- What is a user’s total portfolio value?
- Who are the platform’s top traders, and by what metric?
Gamma API
Use it for questions about what markets exist:
- Which markets are active, and how are they grouped into events?
- What is the implied probability for a market?
- Which markets belong to a category or tag, such as the NBA?
- Which recurring series does a market belong to?
- How can a market be found by topic, team, or person?
- What are the resolution criteria, end date, and source?
CLOB API
Use it for questions about pricing and execution:
- What is the current bid-ask spread or midpoint?
- How deep is the order book at a given price level?
- What has the price history looked like over a chosen period?
Key variables
conditionId: The unique blockchain address assigned to an event with a binary outcome.Example: 0x1fad72fae204143ff1c3035e99e7c0f65ea8d5cd9bd1070987bd1a3316f772betoken_id / clobTokenId: The unique identifier assigned to each Yes or No token in an event.Example: 98022490269692409998126496127597032490334070080325855126491859374983463996227address / proxyWallet: The unique blockchain address for a wallet, which can also identify a public profile.Example: 0x6A9D222616C90FcA5754cd1333cFD9b7fb6a4F74https://polymarket.com/0x6A9D222616C90FcA5754cd1333cFD9b7fb6a4F74 (opens in a new tab)market_slug / slug: The unique readable string used to construct a market or event URL.Example: what-will-happen-before-gta-vihttps://polymarket.com/event/what-will-happen-before-gta-vi (opens in a new tab)
Gamma API
The Gamma API provides market- and event-level data. List active markets with limit and offset pagination; the maximum limit is 500.
curl "https://gamma-api.polymarket.com/markets?active=true&limit=100&offset=0"Retrieve one market or event by its ID:
curl "https://gamma-api.polymarket.com/{markets OR events}/{id}"Ranked tags and categories—such as NBA or politics—can be used to discover related markets and events.
curl "https://gamma-api.polymarket.com/tags"The following request retrieves a complete market record:
curl "https://gamma-api.polymarket.com/markets/540817"Market response92 fields · market 540817
| Field | Value |
|---|---|
| $schema | https://gamma-api.polymarket.com/schemas/Market.json |
| id | 540817 |
| question | New Rihanna Album before GTA VI? |
| conditionId | 0x1fad72fae204143ff1c3035e99e7c0f65ea8d5cd9bd1070987bd1a3316f772be |
| slug | new-rhianna-album-before-gta-vi-926 |
| resolutionSource | — |
| endDate | 2026-07-31T12:00:00Z |
| liquidity | 11984.4353 |
| startDate | 2025-05-02T15:48:10.582Z |
| image | https://polymarket-upload.s3.us-east-2.amazonaws.com/what-will-happen-before-gta-vi-7hpNkEzQEqUE.jpg |
| icon | https://polymarket-upload.s3.us-east-2.amazonaws.com/what-will-happen-before-gta-vi-7hpNkEzQEqUE.jpg |
| description | This market will resolve to "Yes" if Rihanna officially releases a new album before Grand Theft Auto VI is officially released in the US… |
| outcomes | ["Yes", "No"] |
| outcomePrices | ["0.505", "0.495"] |
| volume | 859952.5028340152 |
| active | true |
| closed | false |
| marketMakerAddress | — |
| createdAt | 2025-05-02T15:04:43.762151Z |
| updatedAt | 2026-07-20T20:13:11.582475Z |
| new | false |
| featured | false |
| submitted_by | 0x91430CaD2d3975766499717fA0D66A78D814E5c5 |
| archived | false |
| resolvedBy | 0x6A9D222616C90FcA5754cd1333cFD9b7fb6a4F74 |
| restricted | true |
| groupItemTitle | New Rihanna Album |
| groupItemThreshold | 2 |
| questionID | 0xb6fd5ea8c21f01471ad673950edd4a1645698946906abb27597e3f3de7bd70f1 |
| enableOrderBook | true |
| orderPriceMinTickSize | 0.01 |
| orderMinSize | 5 |
| volumeNum | 859952.5028340152 |
| liquidityNum | 11984.4353 |
| endDateIso | 2026-07-31 |
| startDateIso | 2025-05-02 |
| hasReviewedDates | true |
| volume24hr | 293.478231 |
| volume1wk | 4782.548152000001 |
| volume1mo | 29340.92771700001 |
| volume1yr | 668534.2050249997 |
| clobTokenIds | ["98022490269692409998126496127597032490334070080325855126491859374983463996227", "53831553061883006530739877284105938919721408776239639687877978808906551086026"] |
| comboStatus | disabled |
| umaBond | 500 |
| umaReward | 5 |
| volume24hrClob | 293.478231 |
| volume1wkClob | 4782.548152000001 |
| volume1moClob | 29340.92771700001 |
| volume1yrClob | 668534.2050249997 |
| volumeClob | 859952.5028340152 |
| liquidityClob | 11984.4353 |
| makerBaseFee | 1000 |
| takerBaseFee | 1000 |
| customLiveness | 0 |
| acceptingOrders | true |
| negRisk | false |
| negRiskRequestID | — |
| ready | false |
| funded | false |
| acceptingOrdersTimestamp | 2025-05-02T15:47:45Z |
| cyom | false |
| competitive | 0.9999750006249843 |
| pagerDutyNotificationEnabled | false |
| approved | true |
| rewardsMinSize | 0 |
| rewardsMaxSpread | 0 |
| spread | 0.01 |
| oneMonthPriceChange | -0.01 |
| oneYearPriceChange | -0.245 |
| lastTradePrice | 0.5 |
| bestBid | 0.5 |
| bestAsk | 0.51 |
| automaticallyActive | true |
| clearBookOnStart | true |
| seriesColor | — |
| showGmpSeries | false |
| showGmpOutcome | false |
| manualActivation | false |
| negRiskOther | false |
| umaResolutionStatuses | [] |
| pendingDeployment | false |
| deploying | false |
| deployingTimestamp | 2025-05-02T15:47:04.727292Z |
| rfqEnabled | false |
| holdingRewardsEnabled | false |
| feesEnabled | true |
| requiresTranslation | false |
| feeType | general_fees |
| feeSchedule.exponent | 1 |
| feeSchedule.rate | 0.05 |
| feeSchedule.takerOnly | true |
| feeSchedule.rebateRate | 0.25 |
More Gamma API applications are documented in the Events API reference (opens in a new tab).
CLOB API
CLOB requests require the specific token_id for a Yes or No outcome. The clobTokenIds returned by Gamma provide those identifiers.
curl "https://clob.polymarket.com/price?token_id={token_id}&side=BUY"curl "https://clob.polymarket.com/price?token_id=98022490269692409998126496127597032490334070080325855126491859374983463996227&side=BUY"
{"price":"0.5"}Therefore, $0.50 was the best price for the Yes token on the order book on July 20.
To retrieve time-series data:
curl "https://clob.polymarket.com/prices-history?market={token_id}&interval={XX}&fidelity={XX}"curl "https://clob.polymarket.com/prices-history?market=98022490269692409998126496127597032490334070080325855126491859374983463996227&interval=1d&fidelity=10"
{"history":[{"t":1784493604,"p":0.505},{"t":1784494204,"p":0.505},{"t":1784494818,"p":0.505},{"t":1784495406,"p":0.505},{"t":1784496006,"p":0.505}...]}Fees, tick sizes, bid-ask spreads, and other data points are available in the Orderbook & Pricing documentation (opens in a new tab).
Data API
The Data API provides user-level history and trade data on markets. Trade history can be filtered by market, user, or time range.
curl "https://data-api.polymarket.com/trades?market={condition_id}&limit=500"curl "https://data-api.polymarket.com/trades?market=0x1fad72fae204143ff1c3035e99e7c0f65ea8d5cd9bd1070987bd1a3316f772be&limit=500"
[{"proxyWallet":"0x2f54bd8300000000000000000000000000000000","side":"SELL","asset":"98022490269692409998126496127597032490334070080325855126491859374983463996227","conditionId":"0x1fad72fae204143ff1c3035e99e7c0f65ea8d5cd9bd1070987bd1a3316f772be","size":1.98,"price":0.5}...]The returned proxyWallet can be used as the address when studying a user’s behavior and history.
Closed positions for a user:
curl "https://data-api.polymarket.com/closed-positions?user={address}"Total portfolio value for a user:
curl "https://data-api.polymarket.com/value?user={address}"User positions, open interest, market history, and related endpoints are available in the Profile API documentation (opens in a new tab).