Update Polymarket documentation (2026-02-19)

- Added new documentation URLs from llms.txt index
- Updated TARGET.md with 244 total documentation pages
- Scraped new pages for trading, concepts, and API reference sections
- Updated changelog and new index pages
This commit is contained in:
AI Agent
2026-02-19 14:31:02 +01:00
parent 81f77eff3c
commit b2a29fe51f
250 changed files with 33306 additions and 9659 deletions
@@ -8,7 +8,7 @@
## OpenAPI
````yaml api-reference/gamma-openapi.json get /markets/{id}
````yaml api-spec/gamma-openapi.yaml get /markets/{id}
openapi: 3.0.3
info:
title: Markets API
@@ -1186,4 +1186,4 @@ components:
type: string
nullable: true
````
````
@@ -8,7 +8,7 @@
## OpenAPI
````yaml api-reference/gamma-openapi.json get /markets/slug/{slug}
````yaml api-spec/gamma-openapi.yaml get /markets/slug/{slug}
openapi: 3.0.3
info:
title: Markets API
@@ -1186,4 +1186,4 @@ components:
type: string
nullable: true
````
````
@@ -8,7 +8,7 @@
## OpenAPI
````yaml api-reference/gamma-openapi.json get /markets/{id}/tags
````yaml api-spec/gamma-openapi.yaml get /markets/{id}/tags
openapi: 3.0.3
info:
title: Markets API
@@ -105,4 +105,4 @@ components:
type: boolean
nullable: true
````
````
@@ -0,0 +1,135 @@
> ## 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 prices history
> Retrieve historical price data for a market.
## OpenAPI
````yaml api-spec/clob-openapi.yaml get /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
paths:
/prices-history:
get:
tags:
- Markets
summary: Get prices history
description: Retrieve historical price data for a market.
operationId: getPricesHistory
parameters:
- name: market
in: query
required: true
description: The market (asset id) to query.
schema:
type: string
- name: startTs
in: query
required: false
description: Filter by items after this unix timestamp.
schema:
type: number
format: double
- name: endTs
in: query
required: false
description: Filter by items before this unix timestamp.
schema:
type: number
format: double
- name: interval
in: query
required: false
description: Time interval for data aggregation.
schema:
type: string
enum:
- max
- all
- 1m
- 1w
- 1d
- 6h
- 1h
- name: fidelity
in: query
required: false
description: Accuracy of the data expressed in minutes. Default is 1 minute.
schema:
type: integer
responses:
'200':
description: Successful response with price history
content:
application/json:
schema:
$ref: '#/components/schemas/PricesHistoryResponse'
'400':
description: Bad Request - Missing or invalid query 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:
PricesHistoryResponse:
type: object
properties:
history:
type: array
items:
$ref: '#/components/schemas/MarketPrice'
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
````
@@ -0,0 +1,181 @@
> ## 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 sampling markets
## OpenAPI
````yaml api-spec/clob-openapi.yaml get /sampling-markets
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
paths:
/sampling-markets:
get:
tags:
- Markets
summary: Get sampling markets
operationId: getSamplingMarkets
parameters:
- name: next_cursor
in: query
required: false
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/PaginatedMarkets'
'400':
description: Invalid request
'500':
description: Internal server error
security: []
components:
schemas:
PaginatedMarkets:
type: object
properties:
limit:
type: integer
next_cursor:
type: string
count:
type: integer
data:
type: array
items:
$ref: '#/components/schemas/Market'
Market:
type: object
properties:
enable_order_book:
type: boolean
active:
type: boolean
closed:
type: boolean
archived:
type: boolean
accepting_orders:
type: boolean
accepting_order_timestamp:
type: string
format: date-time
minimum_order_size:
type: number
format: double
minimum_tick_size:
type: number
format: double
condition_id:
type: string
question_id:
type: string
question:
type: string
description:
type: string
market_slug:
type: string
end_date_iso:
type: string
format: date-time
game_start_time:
type: string
format: date-time
seconds_delay:
type: integer
fpmm:
type: string
maker_base_fee:
type: integer
format: int64
taker_base_fee:
type: integer
format: int64
notifications_enabled:
type: boolean
neg_risk:
type: boolean
neg_risk_market_id:
type: string
neg_risk_request_id:
type: string
icon:
type: string
image:
type: string
rewards:
$ref: '#/components/schemas/Rewards'
is_50_50_outcome:
type: boolean
tokens:
type: array
items:
$ref: '#/components/schemas/Token'
tags:
type: array
items:
type: string
Rewards:
type: object
properties:
rates:
type: array
items:
type: object
properties:
asset_address:
type: string
rewards_daily_rate:
type: number
format: double
min_size:
type: number
format: double
max_spread:
type: number
format: double
Token:
type: object
properties:
token_id:
type: string
outcome:
type: string
price:
type: number
format: double
winner:
type: boolean
````
@@ -0,0 +1,128 @@
> ## 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 sampling simplified markets
## OpenAPI
````yaml api-spec/clob-openapi.yaml get /sampling-simplified-markets
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
paths:
/sampling-simplified-markets:
get:
tags:
- Markets
summary: Get sampling simplified markets
operationId: getSamplingSimplifiedMarkets
parameters:
- name: next_cursor
in: query
required: false
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/PaginatedSimplifiedMarkets'
'400':
description: Invalid request
'500':
description: Internal server error
security: []
components:
schemas:
PaginatedSimplifiedMarkets:
type: object
properties:
limit:
type: integer
next_cursor:
type: string
count:
type: integer
data:
type: array
items:
$ref: '#/components/schemas/SimplifiedMarket'
SimplifiedMarket:
type: object
properties:
condition_id:
type: string
rewards:
$ref: '#/components/schemas/Rewards'
tokens:
type: array
items:
$ref: '#/components/schemas/Token'
active:
type: boolean
closed:
type: boolean
archived:
type: boolean
accepting_orders:
type: boolean
Rewards:
type: object
properties:
rates:
type: array
items:
type: object
properties:
asset_address:
type: string
rewards_daily_rate:
type: number
format: double
min_size:
type: number
format: double
max_spread:
type: number
format: double
Token:
type: object
properties:
token_id:
type: string
outcome:
type: string
price:
type: number
format: double
winner:
type: boolean
````
@@ -0,0 +1,128 @@
> ## 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 simplified markets
## OpenAPI
````yaml api-spec/clob-openapi.yaml get /simplified-markets
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
paths:
/simplified-markets:
get:
tags:
- Markets
summary: Get simplified markets
operationId: getSimplifiedMarkets
parameters:
- name: next_cursor
in: query
required: false
schema:
type: string
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '#/components/schemas/PaginatedSimplifiedMarkets'
'400':
description: Invalid request
'500':
description: Internal server error
security: []
components:
schemas:
PaginatedSimplifiedMarkets:
type: object
properties:
limit:
type: integer
next_cursor:
type: string
count:
type: integer
data:
type: array
items:
$ref: '#/components/schemas/SimplifiedMarket'
SimplifiedMarket:
type: object
properties:
condition_id:
type: string
rewards:
$ref: '#/components/schemas/Rewards'
tokens:
type: array
items:
$ref: '#/components/schemas/Token'
active:
type: boolean
closed:
type: boolean
archived:
type: boolean
accepting_orders:
type: boolean
Rewards:
type: object
properties:
rates:
type: array
items:
type: object
properties:
asset_address:
type: string
rewards_daily_rate:
type: number
format: double
min_size:
type: number
format: double
max_spread:
type: number
format: double
Token:
type: object
properties:
token_id:
type: string
outcome:
type: string
price:
type: number
format: double
winner:
type: boolean
````
+2 -2
View File
@@ -8,7 +8,7 @@
## OpenAPI
````yaml api-reference/gamma-openapi.json get /markets
````yaml api-spec/gamma-openapi.yaml get /markets
openapi: 3.0.3
info:
title: Markets API
@@ -1312,4 +1312,4 @@ components:
type: string
nullable: true
````
````