Skip to main content
You need an API key. Create one in the console, keep it out of your code, and pass it from an environment variable.
Every request below works on every plan. The free plan reads the last 30 days, at 10m and coarser: if a request answers plan_history_limit, move its dates closer to today.

1. Check your access

GET /v2/usage shows your plan, your rate limit, and which venues and data your key can read.

2. Find a market

Search open Polymarket markets about a US recession.
Each market’s id names its venue and the venue’s own ID, such as polymarket:3407418: “US recession by end of 2027?” Use it on every endpoint below.

3. Read its prices

Hourly prices for one day. Each row covers one hour and gives the prices as of the end of that hour. On Polymarket, prices at 1m and coarser are the mid and the last trade; bid and ask come at 1s and 100ms.
The page starts with the market it is about, so you always know which outcome is YES. The curl request returns 24 rows; here are the first two:

4. Stream a week

A stream returns a whole window in one request. The SDK resumes it by itself if the connection breaks.
On plans that include them, the same market also has its trades (/trades) and its order book at any millisecond (/books?at=). With Ultra, it also has every change to its book (/book-updates) and to its best bid and ask (/bbo). See Sub-minute data.

Next

Time and intervals

How windows, grids and event rows line up.

Pages and streams

When to page, when to stream, and how to resume.