Polymarket historical orderbook
curl --request GET \
--url https://api.probsights.com/v1/historical/polymarket/orderbook \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.probsights.com/v1/historical/polymarket/orderbook"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.probsights.com/v1/historical/polymarket/orderbook', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Historical
Polymarket historical orderbook
Orderbook snapshots per Polymarket token.
GET
/
v1
/
historical
/
polymarket
/
orderbook
Polymarket historical orderbook
curl --request GET \
--url https://api.probsights.com/v1/historical/polymarket/orderbook \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.probsights.com/v1/historical/polymarket/orderbook"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.probsights.com/v1/historical/polymarket/orderbook', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Full orderbook snapshots with bids, asks, and derived best bid/ask per token.
Polymarket markets have two tokens (YES and NO) per condition; each snapshot row is
for a single token. Use
asset_id to filter to one token, or omit it to return both.
Request
https://api.probsights.com/v1/historical/polymarket/orderbook
Query parameters
string
required
Polymarket condition ID (
0x...). Also accepts the numeric source_market_id.string
CLOB token ID. Omit to return both YES and NO tokens.
string
Range start in Unix milliseconds. Must be set with
end_time.string
Range end in Unix milliseconds.
string
default:"1m"
Bucket size for range queries:
1m or 5m.integer
default:"100"
Max rows per page (1–200).
string
Cursor from the previous response.
Examples
Latest snapshots
curl -H "X-API-Key: YOUR_API_KEY" \
"https://api.probsights.com/v1/historical/polymarket/orderbook?market_id=0xb99571ae54fae7610197d6de9471154ca0d1b5457a9d5c24abe29cf26b01d95b&limit=5"
import requests
response = requests.get(
"https://api.probsights.com/v1/historical/polymarket/orderbook",
headers={"X-API-Key": "YOUR_API_KEY"},
params={
"market_id": "0xb99571ae54fae7610197d6de9471154ca0d1b5457a9d5c24abe29cf26b01d95b",
"limit": 5,
},
)