docs: sync with official Polymarket docs - 2026-04-20

This commit is contained in:
Etherdrake
2026-04-20 01:19:37 +02:00
parent 3ad0048c35
commit ff4882db02
50 changed files with 705 additions and 1857 deletions
+4 -7
View File
@@ -46,7 +46,7 @@ Post-only orders will only rest on the book. If a post-only order would match im
* Side (buy or sell)
* Price and size
* Expiration time
* Nonce (for replay protection)
* Timestamp (in milliseconds, used for order uniqueness)
You sign this order with your private key, creating an EIP712 signature.
</Step>
@@ -75,7 +75,7 @@ Post-only orders will only rest on the book. If a post-only order would match im
* Verifies both signatures
* Transfers tokens from seller to buyer
* Transfers USDC.e from buyer to seller
* Transfers pUSD from buyer to seller
Settlement is **atomic**—either the entire trade succeeds or nothing happens.
</Step>
@@ -119,10 +119,7 @@ Price improvement always benefits the taker. If you place a buy order at `$0.55`
## Cancellation
You can cancel orders at any time before they're matched:
* **Via API** — Cancel through the CLOB API (instant)
* **Onchain** — Cancel directly on the Exchange contract (fallback if API is unavailable)
You can cancel orders at any time before they're matched via the CLOB API.
Partial fills cannot be cancelled—only the unfilled portion of an order can be cancelled.
@@ -132,7 +129,7 @@ Before placing orders, ensure:
| Requirement | Description |
| ------------------- | -------------------------------------------------- |
| **Balance** | Sufficient USDC.e (for buys) or tokens (for sells) |
| **Balance** | Sufficient pUSD (for buys) or tokens (for sells) |
| **Allowance** | Approve the Exchange contract to spend your assets |
| **API Credentials** | Valid API key for authenticated endpoints |