Skip to content
PolymarketInstitute

Making Polymarket Exchange Data Accessible for Research

7 min read

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:

  1. 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.

  2. 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

Gamma API

The Gamma API provides market- and event-level data. List active markets with limit and offset pagination; the maximum limit is 500.

Shell
curl "https://gamma-api.polymarket.com/markets?active=true&limit=100&offset=0"

Retrieve one market or event by its ID:

Shell
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.

Shell
curl "https://gamma-api.polymarket.com/tags"

The following request retrieves a complete market record:

Shell
curl "https://gamma-api.polymarket.com/markets/540817"
Market response92 fields · market 540817
Gamma API response fields for market 540817
FieldValue
$schemahttps://gamma-api.polymarket.com/schemas/Market.json
id540817
questionNew Rihanna Album before GTA VI?
conditionId0x1fad72fae204143ff1c3035e99e7c0f65ea8d5cd9bd1070987bd1a3316f772be
slugnew-rhianna-album-before-gta-vi-926
resolutionSource
endDate2026-07-31T12:00:00Z
liquidity11984.4353
startDate2025-05-02T15:48:10.582Z
imagehttps://polymarket-upload.s3.us-east-2.amazonaws.com/what-will-happen-before-gta-vi-7hpNkEzQEqUE.jpg
iconhttps://polymarket-upload.s3.us-east-2.amazonaws.com/what-will-happen-before-gta-vi-7hpNkEzQEqUE.jpg
descriptionThis 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"]
volume859952.5028340152
activetrue
closedfalse
marketMakerAddress
createdAt2025-05-02T15:04:43.762151Z
updatedAt2026-07-20T20:13:11.582475Z
newfalse
featuredfalse
submitted_by0x91430CaD2d3975766499717fA0D66A78D814E5c5
archivedfalse
resolvedBy0x6A9D222616C90FcA5754cd1333cFD9b7fb6a4F74
restrictedtrue
groupItemTitleNew Rihanna Album
groupItemThreshold2
questionID0xb6fd5ea8c21f01471ad673950edd4a1645698946906abb27597e3f3de7bd70f1
enableOrderBooktrue
orderPriceMinTickSize0.01
orderMinSize5
volumeNum859952.5028340152
liquidityNum11984.4353
endDateIso2026-07-31
startDateIso2025-05-02
hasReviewedDatestrue
volume24hr293.478231
volume1wk4782.548152000001
volume1mo29340.92771700001
volume1yr668534.2050249997
clobTokenIds["98022490269692409998126496127597032490334070080325855126491859374983463996227", "53831553061883006530739877284105938919721408776239639687877978808906551086026"]
comboStatusdisabled
umaBond500
umaReward5
volume24hrClob293.478231
volume1wkClob4782.548152000001
volume1moClob29340.92771700001
volume1yrClob668534.2050249997
volumeClob859952.5028340152
liquidityClob11984.4353
makerBaseFee1000
takerBaseFee1000
customLiveness0
acceptingOrderstrue
negRiskfalse
negRiskRequestID
readyfalse
fundedfalse
acceptingOrdersTimestamp2025-05-02T15:47:45Z
cyomfalse
competitive0.9999750006249843
pagerDutyNotificationEnabledfalse
approvedtrue
rewardsMinSize0
rewardsMaxSpread0
spread0.01
oneMonthPriceChange-0.01
oneYearPriceChange-0.245
lastTradePrice0.5
bestBid0.5
bestAsk0.51
automaticallyActivetrue
clearBookOnStarttrue
seriesColor
showGmpSeriesfalse
showGmpOutcomefalse
manualActivationfalse
negRiskOtherfalse
umaResolutionStatuses[]
pendingDeploymentfalse
deployingfalse
deployingTimestamp2025-05-02T15:47:04.727292Z
rfqEnabledfalse
holdingRewardsEnabledfalse
feesEnabledtrue
requiresTranslationfalse
feeTypegeneral_fees
feeSchedule.exponent1
feeSchedule.rate0.05
feeSchedule.takerOnlytrue
feeSchedule.rebateRate0.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.

Shell
curl "https://clob.polymarket.com/price?token_id={token_id}&side=BUY"
Example response
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:

Shell
curl "https://clob.polymarket.com/prices-history?market={token_id}&interval={XX}&fidelity={XX}"
Example response
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.

Shell
curl "https://data-api.polymarket.com/trades?market={condition_id}&limit=500"
Example response
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:

Shell
curl "https://data-api.polymarket.com/closed-positions?user={address}"

Total portfolio value for a user:

Shell
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).