# Prediction market data (early access)

> Metastreams is a real-time crypto data API. Spot market data for Solana, BNB Chain, Robinhood Chain and Elysium is in the API today; perpetuals and prediction markets are in early access.

Source: https://metastreams.io/prediction-markets

**Early access. Not in the API yet.** The page shows sample data. [Request early access](https://t.me/ohdatskate).

Markets, outcome prices, trades and positions, indexed straight from the chain. Prediction markets are in early access and not in the API yet.

## What early access covers

### Markets and events

Every market and event with live outcome prices, volume and status.

Covers: Markets, Events, Outcome prices, Volume, Status.

### Trades

Every outcome trade, as it settles on-chain.

Covers: Per trade, On-chain settlement.

### Charts

Price history for every outcome, ready to render.

Covers: Outcome history, Render-ready.

### Wallets

Positions, realized PnL and redemptions for any address.

Covers: Positions, Realized PnL, Redemptions.

## Products

- [Spot](https://metastreams.io/spot): Tokens, charts, holders, wallets and discovery. In the API today.
- [Perpetuals](https://metastreams.io/perps): Funding, open interest, liquidations and positions. Early access. Not in the API yet.
- [Prediction markets](https://metastreams.io/prediction-markets): Markets, outcome prices, trades and positions. Early access. Not in the API yet.

## The API

- REST: `https://api.metastreams.io/v1`
- WebSocket: `wss://api.metastreams.io/v1/stream`
- OpenAPI: https://api.metastreams.io/openapi.json
- Authentication: Send `Authorization: Bearer $API_KEY` from your server. A browser sends a short-lived session token instead, minted by your server, so the key never reaches users.

| Endpoint | Path | Returns |
| --- | --- | --- |
| [Tokens](https://docs.metastreams.io/reference/rest/token-details) | `GET /v1/tokens` | Price, stats, holders, security and launchpad of up to 100 tokens |
| [Candles](https://docs.metastreams.io/reference/rest/token-ohlcv) | `GET /v1/ohlcv` | OHLCV from 1s to 7d, per token or per pool |
| [Trades](https://docs.metastreams.io/reference/rest/trades) | `GET /v1/trades` | Recent trades by token, wallet or notable-wallet feed |
| [Trade history](https://docs.metastreams.io/reference/rest/trade-search) | `POST /v1/trades` | Trades that match any spot.trades filter, newest first or ranked |
| [Holders](https://docs.metastreams.io/reference/rest/token-holders) | `GET /v1/holders` | Current holders, largest balance first, with wallet classifications |
| [Search](https://docs.metastreams.io/reference/rest/search) | `GET /v1/search` | Tokens by symbol, name or address, and wallets by name |
| [Discovery boards](https://docs.metastreams.io/reference/rest/discovery) | `POST /v1/discovery` | New, graduating and graduated launchpad tokens, ranked and filtered |
| [Trending](https://docs.metastreams.io/reference/rest/trending) | `POST /v1/trending` | Tokens ranked by trending score |
| [Wallet balances](https://docs.metastreams.io/reference/rest/wallet-balances) | `GET /v1/balances` | Latest balance of each wallet and asset |
| [Positions](https://docs.metastreams.io/reference/rest/positions) | `GET /v1/positions` | Spot positions of wallets, with cost basis and PnL |
| [Portfolio](https://docs.metastreams.io/reference/rest/portfolio) | `GET /v1/portfolio` | Value, balances, positions and stats of up to 100 wallets |
| [Native prices](https://docs.metastreams.io/reference/rest/native-prices) | `GET /v1/native-prices` | USD price of each chain's gas asset |
| [Session tokens](https://docs.metastreams.io/reference/rest/session-tokens) | `POST /v1/session-tokens` | A short-lived credential for a browser user |
| [Live streams](https://docs.metastreams.io/streams/overview) | `GET /v1/stream` | Trades, transfers, candles, tokens, boards, balances, positions and holders over WebSocket |

Perpetuals and prediction markets are in early access and have no endpoints in the API yet.

## Developer resources

- [Docs](https://docs.metastreams.io)
- [Quickstart](https://docs.metastreams.io/get-started/quickstart): First REST request and first stream
- [Authentication](https://docs.metastreams.io/get-started/authentication): API keys and session tokens
- [API reference](https://docs.metastreams.io/reference/rest/token-details): Every REST endpoint
- [WebSocket streams](https://docs.metastreams.io/streams/overview): Connect, subscribe, reconnect
- [OpenAPI spec](https://api.metastreams.io/openapi.json): The REST contract, public, no key needed
- [AsyncAPI spec](https://docs.metastreams.io/specs/asyncapi.yaml): The stream contract
- [Docs for LLMs](https://docs.metastreams.io/llms.txt): Every docs page as Markdown
- [llms.txt](https://metastreams.io/llms.txt): This site, for agents
- [MCP server](https://docs.metastreams.io/get-started/ai-tools): Search the docs from Claude, Cursor or VS Code
- [Get an API key](https://metastreams.io/signup): free, in under a minute
