Developer platform
Data access
A single, authenticated interface to the same normalized market and wallet intelligence used throughout the workspace.
v1 available
All /v1/* routes require an X-API-Key header. Generate one with:
pnpm --filter @data-poly/api seed:key
| Method | Path | Description |
|---|---|---|
| GET | /v1/markets | List markets |
| GET | /v1/markets/{id} | Market detail: outcomes, metrics, recent trades, price history |
| GET | /v1/wallets | List wallets |
| GET | /v1/wallets/{address} | Wallet detail + latest computed metrics |
| GET | /v1/wallets/{address}/trades | Wallet trade history |
| GET | /v1/wallets/{address}/positions | Wallet open positions |
| GET | /v1/wallets/{address}/pnl | Wallet PnL, per-market and totals |
| GET | /v1/trades | Recent trades (?large=true for the live-feed threshold) |
| GET | /v1/orderbook?tokenId= | Latest orderbook snapshot for a token |
| GET | /v1/whales | Recent whale-sized trades |
| GET | /v1/smart-money | Pre-computed smart-money flow per market |
| GET | /v1/leaderboard | Trader leaderboard |
| GET | /v1/analytics/markets | Platform-wide market aggregates |
| GET | /v1/analytics/wallets | Platform-wide wallet aggregates |
| GET / POST | /v1/alerts/rules | List / create alert rules |
| GET | /v1/alerts/fired | Recently fired alerts |
| POST | /graphql | GraphQL: marketDetail(id), walletDetail(address) |
| WS | /v1/ws | Subscribe: {action:'subscribe', channel:'ws:trades:{marketId}' | 'ws:trades:large' | 'ws:prices:{tokenId}' | 'ws:alerts:{id}'} |
