Update Polymarket documentation - April 9, 2026

Changes:
- Changelog: Added Apr 9, 2026 entry - GET /markets: closed defaults to false
- list-markets.md: Updated to reflect closed=false default on the 'closed' query parameter
- New endpoint: Added get-batch-prices-history.md (POST /batch-prices-history)
- TARGET.md: Added new get-batch-prices-history.md URL
This commit is contained in:
Etherdrake
2026-04-09 17:10:16 +02:00
parent ad5a26710b
commit 2664984585
4 changed files with 150 additions and 21 deletions
@@ -0,0 +1,140 @@
< > ## Documentation Index
> Fetch the complete documentation index at: https://docs.polymarket.com/llms.txt
> Use this file to discover all available pages before exploring further.
# Get batch prices history
> Retrieve historical price data for multiple markets in a single request.
## OpenAPI
````yaml /api-spec/clob-openapi.yaml post /batch-prices-history
openapi: 3.1.0
info:
title: Polymarket CLOB API
description: Polymarket CLOB API Reference
license:
name: MIT
identifier: MIT
version: 1.0.0
servers:
- url: https://clob.polymarket.com
description: Production CLOB API
- url: https://clob-staging.polymarket.com
description: Staging CLOB API
security: []
tags:
- name: Trade
description: Trade endpoints
- name: Markets
description: Market data endpoints
- name: Account
description: Account and authentication endpoints
- name: Notifications
description: User notification endpoints
- name: Rewards
description: Rewards and earnings endpoints
- name: Rebates
description: Maker rebate endpoints
paths:
/batch-prices-history:
post:
tags:
- Markets
summary: Get batch prices history
description: Retrieve historical price data for multiple markets in a single request.
operationId: getBatchPricesHistory
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/BatchPricesHistoryRequest'
responses:
'200':
description: Successful response with price history for each market
content:
application/json:
schema:
$ref: '#/components/schemas/BatchPricesHistoryResponse'
'400':
description: Bad Request - Missing or invalid parameters
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
'500':
description: Internal server error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
security: []
components:
schemas:
BatchPricesHistoryRequest:
type: object
required:
- markets
properties:
markets:
type: array
items:
type: string
description: List of market asset ids to query. Maximum 20.
maxItems: 20
start_ts:
type: number
format: double
description: Filter by items after this unix timestamp (seconds).
end_ts:
type: number
format: double
description: Filter by items before this unix timestamp (seconds).
interval:
type: string
enum:
- max
- all
- 1m
- 1w
- 1d
- 6h
- 1h
description: Time interval for data aggregation.
fidelity:
type: integer
description: Accuracy of the data expressed in minutes. Default is 1 minute.
BatchPricesHistoryResponse:
type: object
properties:
history:
type: object
additionalProperties:
type: array
items:
$ref: '#/components/schemas/MarketPrice'
description: Map of market asset id to array of price data points.
ErrorResponse:
type: object
required:
- error
properties:
error:
type: string
description: Error message
MarketPrice:
type: object
properties:
t:
type: integer
format: uint32
p:
type: number
format: float
````
Built with [Mintlify](https://mintlify.com).
+1 -16
View File
@@ -159,6 +159,7 @@ paths:
in: query
schema:
type: boolean
default: false
responses:
'200':
description: List of markets
@@ -972,10 +973,6 @@ components:
type: string
format: date-time
nullable: true
updatedAt:
type: string
format: date-time
nullable: true
Tag:
type: object
properties:
@@ -1003,10 +1000,6 @@ components:
type: string
format: date-time
nullable: true
updatedAt:
type: string
format: date-time
nullable: true
forceHide:
type: boolean
nullable: true
@@ -1100,10 +1093,6 @@ components:
type: string
format: date-time
nullable: true
updatedAt:
type: string
format: date-time
nullable: true
commentsEnabled:
type: boolean
nullable: true
@@ -1230,10 +1219,6 @@ components:
type: string
format: date-time
nullable: true
updatedAt:
type: string
format: date-time
nullable: true
commentsEnabled:
type: boolean
nullable: true