docs: sync Polymarket docs - 2026-04-14

This commit is contained in:
Etherdrake
2026-04-14 21:53:47 +02:00
parent 814cdc00c9
commit d8e396519a
263 changed files with 1118 additions and 21257 deletions
@@ -1,7 +1,14 @@
> ## 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.
# Cancel all orders
> Cancels all open orders for the authenticated user. Works even in cancel-only mode.
## OpenAPI
````yaml /api-spec/clob-openapi.yaml delete /cancel-all
@@ -160,6 +167,4 @@ components:
name: POLY_TIMESTAMP
description: Unix timestamp of the request
````
Built with [Mintlify](https://mintlify.com).
````
@@ -1,9 +1,16 @@
> ## 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.
# Cancel multiple orders
> Cancels multiple orders by their IDs. Maximum 3000 orders per request.
Duplicate order IDs in the request are automatically ignored.
Works even in cancel-only mode.
## OpenAPI
````yaml /api-spec/clob-openapi.yaml delete /orders
@@ -200,6 +207,4 @@ components:
name: POLY_TIMESTAMP
description: Unix timestamp of the request
````
Built with [Mintlify](https://mintlify.com).
````
@@ -1,8 +1,15 @@
> ## 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.
# Cancel orders for a market
> Cancels all open orders for the authenticated user in a specific market (condition) and asset.
Works even in cancel-only mode.
## OpenAPI
````yaml /api-spec/clob-openapi.yaml delete /cancel-market-orders
@@ -195,6 +202,4 @@ components:
name: POLY_TIMESTAMP
description: Unix timestamp of the request
````
Built with [Mintlify](https://mintlify.com).
````
@@ -1,7 +1,14 @@
> ## 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.
# Cancel single order
> Cancels a single order by its ID. Works even in cancel-only mode.
## OpenAPI
````yaml /api-spec/clob-openapi.yaml delete /order
@@ -184,6 +191,4 @@ components:
name: POLY_TIMESTAMP
description: Unix timestamp of the request
````
Built with [Mintlify](https://mintlify.com).
````
@@ -1,8 +1,15 @@
> ## 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 builder trades
> Retrieves originated trades for a given builder.
Builders can only see their own originated trades.
## OpenAPI
````yaml /api-spec/clob-openapi.yaml get /builder/trades
@@ -356,6 +363,4 @@ components:
name: POLY_BUILDER_TIMESTAMP
description: Unix timestamp for builder authentication
````
Built with [Mintlify](https://mintlify.com).
````
@@ -1,3 +1,7 @@
> ## 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 order scoring status
> Checks if a specific order is currently scoring for rewards.
@@ -8,6 +12,9 @@ An order is considered "scoring" if it meets all the criteria for earning maker
- The order is within the valid spread range
- The order has been live for the required duration
## OpenAPI
````yaml /api-spec/clob-openapi.yaml get /order-scoring
@@ -47,6 +54,7 @@ paths:
description: >
Checks if a specific order is currently scoring for rewards.
An order is considered "scoring" if it meets all the criteria for
earning maker rewards:
@@ -177,6 +185,4 @@ components:
name: POLY_TIMESTAMP
description: Unix timestamp of the request
````
Built with [Mintlify](https://mintlify.com).
````
@@ -1,8 +1,15 @@
> ## 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 single order by ID
> Retrieves a specific order by its ID (order hash) for the authenticated user.
Builder-authenticated clients can also use this endpoint to retrieve orders attributed to their builder account.
## OpenAPI
````yaml /api-spec/clob-openapi.yaml get /order/{orderID}
@@ -271,6 +278,4 @@ components:
name: POLY_BUILDER_TIMESTAMP
description: Unix timestamp for builder authentication
````
Built with [Mintlify](https://mintlify.com).
````
+8 -3
View File
@@ -1,8 +1,15 @@
> ## 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 trades
> Retrieves trades for the authenticated user. Returns paginated results.
Requires readonly or level 2 API key authentication.
## OpenAPI
````yaml /api-spec/clob-openapi.yaml get /trades
@@ -379,6 +386,4 @@ components:
name: POLY_TIMESTAMP
description: Unix timestamp of the request
````
Built with [Mintlify](https://mintlify.com).
````
+8 -3
View File
@@ -1,8 +1,15 @@
> ## 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 user orders
> Retrieves open orders for the authenticated user. Returns paginated results.
Builder-authenticated clients can also use this endpoint to retrieve orders attributed to their builder account.
## OpenAPI
````yaml /api-spec/clob-openapi.yaml get /data/orders
@@ -335,6 +342,4 @@ components:
name: POLY_BUILDER_TIMESTAMP
description: Unix timestamp for builder authentication
````
Built with [Mintlify](https://mintlify.com).
````
+8 -3
View File
@@ -1,7 +1,14 @@
> ## 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.
# Post a new order
> Creates a new order in the order book
## OpenAPI
````yaml /api-spec/clob-openapi.yaml post /order
@@ -368,6 +375,4 @@ components:
name: POLY_TIMESTAMP
description: Unix timestamp of the request
````
Built with [Mintlify](https://mintlify.com).
````
@@ -1,8 +1,15 @@
> ## 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.
# Post multiple orders
> Creates multiple new orders in the order book. Orders are processed in parallel.
Maximum 15 orders per request.
## OpenAPI
````yaml /api-spec/clob-openapi.yaml post /orders
@@ -390,6 +397,4 @@ components:
name: POLY_TIMESTAMP
description: Unix timestamp of the request
````
Built with [Mintlify](https://mintlify.com).
````
+8 -3
View File
@@ -1,3 +1,7 @@
> ## 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.
# Send heartbeat
> Sends a heartbeat signal to maintain active session status.
@@ -5,6 +9,9 @@ If heartbeats are not sent regularly, all open orders for the user will be autom
This is useful for automated trading systems that need to ensure orders are canceled
if the system becomes unresponsive.
## OpenAPI
````yaml /api-spec/clob-openapi.yaml post /heartbeats
@@ -130,6 +137,4 @@ components:
name: POLY_TIMESTAMP
description: Unix timestamp of the request
````
Built with [Mintlify](https://mintlify.com).
````