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
+14 -12
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.
# Quickstart
> Fetch a market and place your first order
@@ -10,13 +14,13 @@ Get up and running with the Polymarket API in minutes — fetch market data and
<Tabs>
<Tab title="cURL">
```bash theme={null}
```bash theme={null}
curl "https://gamma-api.polymarket.com/markets?active=true&closed=false&limit=1"
```
</Tab>
<Tab title="TypeScript">
```typescript theme={null}
```typescript theme={null}
const response = await fetch(
"https://gamma-api.polymarket.com/markets?active=true&closed=false&limit=1"
);
@@ -30,7 +34,7 @@ Get up and running with the Polymarket API in minutes — fetch market data and
</Tab>
<Tab title="Python">
```python theme={null}
```python theme={null}
import requests
response = requests.get(
@@ -47,7 +51,7 @@ Get up and running with the Polymarket API in minutes — fetch market data and
</Tab>
<Tab title="Rust">
```rust theme={null}
```rust theme={null}
use polymarket_client_sdk::gamma::Client;
use polymarket_client_sdk::gamma::types::request::MarketsRequest;
@@ -91,7 +95,7 @@ Get up and running with the Polymarket API in minutes — fetch market data and
<Tabs>
<Tab title="TypeScript">
```typescript theme={null}
```typescript theme={null}
import { ClobClient } from "@polymarket/clob-client";
import { Wallet } from "ethers"; // v5.8.0
@@ -116,7 +120,7 @@ Get up and running with the Polymarket API in minutes — fetch market data and
</Tab>
<Tab title="Python">
```python theme={null}
```python theme={null}
from py_clob_client.client import ClobClient
import os
@@ -141,7 +145,7 @@ Get up and running with the Polymarket API in minutes — fetch market data and
</Tab>
<Tab title="Rust">
```rust theme={null}
```rust theme={null}
use std::str::FromStr;
use polymarket_client_sdk::POLYGON;
use polymarket_client_sdk::auth::{LocalSigner, Signer};
@@ -179,7 +183,7 @@ Get up and running with the Polymarket API in minutes — fetch market data and
<Tabs>
<Tab title="TypeScript">
```typescript theme={null}
```typescript theme={null}
import { Side, OrderType } from "@polymarket/clob-client";
// Fetch market details to get tick size and neg risk
@@ -207,7 +211,7 @@ Get up and running with the Polymarket API in minutes — fetch market data and
</Tab>
<Tab title="Python">
```python theme={null}
```python theme={null}
from py_clob_client.clob_types import OrderArgs, OrderType
from py_clob_client.order_builder.constants import BUY
@@ -236,7 +240,7 @@ Get up and running with the Polymarket API in minutes — fetch market data and
</Tab>
<Tab title="Rust">
```rust theme={null}
```rust theme={null}
use polymarket_client_sdk::clob::types::Side;
use polymarket_client_sdk::types::dec;
@@ -285,5 +289,3 @@ Get up and running with the Polymarket API in minutes — fetch market data and
Understand markets, events, prices, and positions.
</Card>
</CardGroup>
Built with [Mintlify](https://mintlify.com).