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
+4 -2
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.
# Builder Methods
> Methods for querying orders and trades using builder API credentials.
@@ -364,5 +368,3 @@ async revokeBuilderApiKey(): Promise<any>
Execute onchain operations without paying gas.
</Card>
</CardGroup>
Built with [Mintlify](https://mintlify.com).
+8 -6
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.
# L1 Methods
> These methods require a wallet signer (private key) but do not require user API credentials. Use these for initial setup.
@@ -8,7 +12,7 @@ L1 methods require the client to initialize with a signer.
<Tabs>
<Tab title="TypeScript">
```typescript theme={null}
```typescript theme={null}
import { ClobClient } from "@polymarket/clob-client";
import { Wallet } from "ethers";
@@ -26,7 +30,7 @@ L1 methods require the client to initialize with a signer.
</Tab>
<Tab title="Python">
```python theme={null}
```python theme={null}
from py_clob_client.client import ClobClient
import os
@@ -361,7 +365,7 @@ async createMarketOrder(
</Accordion>
<Accordion title="Lost API credentials but have nonce">
```typescript theme={null}
```typescript theme={null}
// Use deriveApiKey with the original nonce
const recovered = await client.deriveApiKey(originalNonce);
```
@@ -370,7 +374,7 @@ async createMarketOrder(
<Accordion title="Lost both credentials and nonce">
There's no way to recover lost credentials without the nonce. Create new ones:
```typescript theme={null}
```typescript theme={null}
// Create fresh credentials with a new nonce
const newCreds = await client.createApiKey();
// Save the nonce this time!
@@ -399,5 +403,3 @@ async createMarketOrder(
Place and manage orders with API credentials.
</Card>
</CardGroup>
Built with [Mintlify](https://mintlify.com).
+6 -4
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.
# L2 Methods
> These methods require user API credentials (L2 headers). Use these for placing trades and managing your positions.
@@ -8,7 +12,7 @@ L2 methods require the client to initialize with a signer, signature type, API c
<Tabs>
<Tab title="TypeScript">
```typescript theme={null}
```typescript theme={null}
import { ClobClient } from "@polymarket/clob-client";
import { Wallet } from "ethers";
@@ -35,7 +39,7 @@ L2 methods require the client to initialize with a signer, signature type, API c
</Tab>
<Tab title="Python">
```python theme={null}
```python theme={null}
from py_clob_client.client import ClobClient
from py_clob_client.clob_types import ApiCreds
import os
@@ -766,5 +770,3 @@ async dropNotifications(params?: DropNotificationParams): Promise<void>
Real-time market data streaming.
</Card>
</CardGroup>
Built with [Mintlify](https://mintlify.com).
+6 -4
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.
# Public Methods
> These methods can be called without a signer or user credentials. Use these for reading market data, prices, and order books.
@@ -8,7 +12,7 @@ Public methods require the client to initialize with the host URL and Polygon ch
<Tabs>
<Tab title="TypeScript">
```typescript theme={null}
```typescript theme={null}
import { ClobClient } from "@polymarket/clob-client";
const client = new ClobClient(
@@ -22,7 +26,7 @@ Public methods require the client to initialize with the host URL and Polygon ch
</Tab>
<Tab title="Python">
```python theme={null}
```python theme={null}
from py_clob_client.client import ClobClient
client = ClobClient(
@@ -657,5 +661,3 @@ async getServerTime(): Promise<number>
Real-time market data streaming.
</Card>
</CardGroup>
Built with [Mintlify](https://mintlify.com).