Skip to content
This repository was archived by the owner on May 25, 2026. It is now read-only.
This repository was archived by the owner on May 25, 2026. It is now read-only.

/prices-history end point returns empty data for resolved markets at granularities below 12 hours #216

Description

@MuhammadOmarMuhdhar

Problem

The /prices-history endpoint only returns historical data at 12+ hour granularity for resolved/closed markets, even for extremely high-volume events where price fluctuations definitely occurred at finer intervals.

Example:

Market: 2024 US Presidential Election (https://polymarket.com/event/presidential-election-popular-vote-winner-2024)
Token ID: 21271000291843361249209065706097167029083067325856089903026951915683588703117 (yes on will Kamala Harris win popular vote)
Status: Resolved/Closed

Despite this market having massive trading activity with prices fluctuating minute-by-minute during the election, I cannot retrieve historical data at hourly (or any sub-12-hour) granularity.

Code:

import requests

url = "https://clob.polymarket.com/prices-history"
token_id = '21271000291843361249209065706097167029083067325856089903026951915683588703117'

# This works - returns data
params_12h = {
    "market": token_id,
    "interval": "max",
    "fidelity": 60*12  # 12 hours in minutes
}
response = requests.get(url, params=params_12h)
print("12-hour:", response.json())
# Returns: {'history': [{'t': ..., 'p': ...}, ...]} 

# This fails - returns empty
params_1h = {
    "market": token_id,
    "interval": "max",
    "fidelity": 60  # 1 hour in minutes
}
response = requests.get(url, params=params_1h)
print("1-hour:", response.json())
# Returns: {'history': []} 

Is this a data retention policy issue, or is there a way to access finer granularity for closed markets?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions