Untitled
# Polymarket CLOB Diagnostics Results
Tested from a VPS in Stockholm (~47ms to CLOB). All times are round-trip.
---
## Order Placement
| Test | Result |
| ------------------------------------ | ------------------------------- |
| Single GTC limit order | **50ms** median (44-62ms range) |
| 5 parallel orders, same market | **60ms** wall, all 5 filled |
| 5 parallel orders, different markets | **83ms** wall, all 5 filled |
| Order cancellation | **49ms** median |
| Signing cost | **7ms** (73ms cold start) |
## Order Execution (FAK vs FOK)
| Test | Result |
|------|--------|
| FAK fill ($1) | **159ms** RTT, status: "matched" |
| FOK fill ($1) | **216ms** RTT (~40% slower than FAK) |
| 2 FAK orders, 2 different markets, parallel | **Both filled, 153ms wall** — no wallet-level serialization |
FAK is faster than FOK. No reason to use FOK unless you need all-or-nothing guarantees.
## Rejection Behavior
| Test | Result |
|------|--------|
| FAK below $1 notional | 400 error: "invalid amount, min size: $1" |
| FAK with no matching liquidity | 400 error in ~50ms: "no orders found to match" |
| FOK with no matching liquidity | 400 error in ~44ms: "order couldn't be fully filled" |
| Insufficient balance | 400 error: "not enough balance / allowance" |
All rejections throw exceptions (not graceful error dicts). Callers must try/except.
## Pre-Signing
Orders can be signed ahead of time and submitted later. Tested up to 60s delay, all worked. Two orders for different markets with the same nonce submitted in parallel both succeed (65ms wall).
## Rate Limits
20 orders in 1.1 seconds: all succeeded, no 429s, no latency degradation. Haven't found the ceiling yet.
## WebSocket
| Test | Result |
|------|--------|
| HTTP response to WS price_change | **+2.4ms** median (sometimes WS arrives first) |
| Subscription limit | **750 tokens** — hard cap, 753 silently fails (empty snapshot, no error) |
| Throughput at 400 tokens | 34 msgs/s, 30 KB/s |
| Book events | Rare/sporadic. price_change is the real-time feed |
| Cancel triggers WS event | Yes, 10/10 |
## Balance API
Balance does NOT update immediately after a fill. Still showed the old balance >1s after a confirmed fill. Cannot use balance checks between legs of a multi-order trade.
## Batch Endpoint (post_orders)
Broken — Python SDK throws `'SignedOrder' object has no attribute 'orderType'`. Not worth fixing since parallel individual calls achieve the same wall time.
## Key Takeaways
- **FAK at 155ms is the play.** Fastest fill type, partial fills OK.
- **Parallel cross-market execution works.** Two legs fire simultaneously with no wallet-level lock. 153ms wall for both.
- **Pre-sign your orders.** 7ms signing cost can be done ahead of time. Valid for at least 60s.
- **WS is fast.** Price changes arrive within ~2ms of the HTTP response, sometimes before.
- **750 token hard cap on WS.** Fails silently above this — no error, just empty data.
- **$1 minimum** for marketable (FAK/FOK) orders.
- **Don't trust the balance API** for real-time checks between trades.
Featured
Advertisement
Category
Action