Skip to main content

Query Details

Returns one entry per probed DEX with a rolled-up status, the individual probe results powering that rollup, and any active or upcoming maintenance windows.
  • Probes both HTTP and WebSocket upstreams. WS probes connect, wait for the first message, and disconnect.
  • Results are cached server-side per check to avoid hammering upstreams. Concurrent cold-cache calls are deduped — N parallel requests fire a single upstream probe.
  • Probes never throw — failures surface as ok: false on the corresponding check.
  • Auxiliary checks are informational and never affect the rollup; only critical checks do.

Endpoint

Query Parameters

Usage Examples

  • Both DEXes:
  • Lighter only:
  • Gains only:

Response

Top-level shape:

PerpDexHealth

One entry per probed DEX.

PerpDexCheckResult

One per upstream probe.

PerpDexMaintenanceWindow

Status Rollup

Ranking best → worst:
  1. maintenance — any maintenance window with active === true.
  2. operational — every critical check is ok && !slow.
  3. down — zero critical checks ok.
  4. degraded — anything else (some critical OK and some not, or one critical is slow).
Auxiliary checks never affect the rollup.

Checks Reference

Lighter

Gains

One trading-variables and one ws-trading per supported chain, plus a single shared ws-pricing. Per-chain weights:

Caching & Timeouts

In-memory per-check TTLs: Probe budgets:
  • HTTP — timeout: 5000 ms · slow threshold: 2000 ms.
  • WS — timeout: 4000 ms · slow threshold: 3000 ms.

Example Response

Truncated for readability.

Errors

Probes themselves never throw — upstream failures are reflected as ok: false on the per-check result, not as HTTP errors.

Perpetuals APIs Overview

Supported exchanges and capability map.

Perp Fees

Fee structure for each integrated DEX.

Get Perp Quote

Preview fees, fills and venue routing before executing.

Perp Execution Flow

Build → execute flow against Lighter and Gains.