Skip to main content
The Polymarket matching engine undergoes periodic restarts for maintenance and upgrades. This page covers the restart schedule, how to detect and handle downtime, and where to get advance notice of changes.

Restart Schedule

The matching engine restarts weekly on Mondays at 20:00 ET. During a restart window, the engine is temporarily unavailable — typically for about 90 seconds.
Details
CadenceWeekly
Day & timeMonday, 20:00 ET
Typical duration~90 seconds
What happensOrder matching is paused, API returns 425
Unscheduled restarts may occur for critical updates or hotfixes. These are announced with as much advance notice as possible.

Announcements

Matching engine changes — planned restarts, updates, and maintenance windows — are announced before they happen in these channels: Announcements typically include what’s changing, the scheduled time, and the expected downtime window. The goal is ~2 days notice when possible.

Handling HTTP 425

During a restart window, the CLOB API returns HTTP 425 (Too Early) on all order-related endpoints. This tells your client that the matching engine is restarting and will be back shortly.
1

Detect 425

When you receive an HTTP 425 response, the matching engine is restarting. Do not treat this as a permanent error.
2

Back off and retry

Wait and retry with exponential backoff. Start at 1–2 seconds and increase the interval on each retry.
3

Resume normal operation

Once you receive a successful response, the engine is back online. Resume normal order flow.

Code Examples

Check the HTTP status code on responses to the CLOB API and retry on 425:
const CLOB_HOST = "https://clob.polymarket.com";

async function postWithRetry(path: string, body: any, headers: Record<string, string>) {
  const MAX_RETRIES = 10;
  let delay = 1000;

  for (let attempt = 0; attempt < MAX_RETRIES; attempt++) {
    const response = await fetch(`${CLOB_HOST}${path}`, {
      method: "POST",
      headers: { "Content-Type": "application/json", ...headers },
      body: JSON.stringify(body),
    });

    if (response.status === 425) {
      console.log(`Engine restarting, retrying in ${delay / 1000}s...`);
      await new Promise((r) => setTimeout(r, delay));
      delay = Math.min(delay * 2, 30000);
      continue;
    }

    return response;
  }
  throw new Error("Engine restart exceeded maximum retry attempts");
}

Best Practices

  • Subscribe to announcement channels — get notified before restarts happen so you can prepare
  • Handle 425 gracefully — treat it as a temporary condition, not an error; your retry logic should resume automatically
  • Avoid aggressive retries — the engine needs time to reload orderbooks; rapid-fire retries won’t speed things up and may hit rate limits once the engine is back
  • Log restart events — track when your client encounters 425s to correlate with announced maintenance windows