Omen Developer Portal
API Reference
Perps REST API
Detailed reference for endpoints, authentication, channels, messages, environment endpoints, and data models in this integration area.
OpenAPI referencev0.1.0Perpetuals
Omen Perps API
Client-facing REST API for the Omen perpetuals exchange. This API exposes public market data plus authenticated account endpoints used by perps clients for wallet linking and position lookups. Monetary values are serialized as decimal strings. Market-level price and size fields are 1e18-scaled fixed-point values rendered as plain decimal strings. Orderbook snapshots are exposed through `GET /api/v1/orderbook/{market_
Environment endpoints
Test environment
https://api.perps.test.omen.tradeTest environmentLocal development
http://localhost:8083Local developmentAuthentication
BearerAuthhttpbearer
JWT issued by omen-auth. Authenticated endpoints expect a standard `Authorization: Bearer <token>` header with an `aud` of `authenticated`.
Endpoints
| Method | Path | Summary | Tags |
|---|---|---|---|
| GET | /health | Health check | Health |
| GET | /readyz | Readiness check | Readiness |
| GET | /api/v1/markets | List live perps markets | Markets |
| GET | /api/v1/trades/{market_id} | Get trade history for a market | Trades |
| GET | /api/v1/candles/{market_id} | Get OHLCV candles for a market | Candles |
| GET | /api/v1/ticker/{market_id} | Get 24h ticker stats for a market | Ticker |
| GET | /api/v1/orderbook/{market_id} | Get an L2 orderbook snapshot for a market | Orderbook |
| GET | /api/v1/wallet | Get the caller's linked wallet | Wallet |
| POST | /api/v1/wallet/link | Link a wallet to the authenticated perps account | Wallet |
| DELETE | /api/v1/wallet/link | Unlink the authenticated account's wallet | Wallet |
| GET | /api/v1/risk/bad-debt | Get bad-debt summary | Risk |
| GET | /api/v1/positions/{account} | Get open positions for the caller's linked wallet | Positions |
Data models
ErrorResponseUpstreamWalletErrorResponseHealthResponseReadinessMarketCheckReadinessResponseMarketResponseTradeResponseCandleResponseTickerResponseOrderbookPriceLevelOrderbookSnapshotResponsePositionResponseWalletResponseLinkWalletRequestLinkWalletResponseBadDebtEventBadDebtSummary