GET/v1/markets/by-slug/:slug/orderbook

Get Orderbook By Slug

Returns the live orderbook for a market matched by slug. Supports exact slugs, partial slugs (e.g. btc-updown-5m), and slugs with different timestamps. Only works for active markets.

Path Parameters

slugstringrequired
Market slug (e.g. sol-updown-5m or sol-updown-5m-1772799300)

Response

200401403404500

Successful Response

Code Snippet
curl -X GET "https://api.resolvedmarkets.com/v1/markets/by-slug/:slug/orderbook" \
  -H "X-API-Key: YOUR_API_KEY"
200
{
  "market_id": "0x778be094...",
  "crypto": "BTC",
  "timeframe": "5m",
  "slug": "btc-updown-5m-...",
  "crypto_price": 67420.50,
  "up": {
    "bestBid": 0.52,
    "bestAsk": 0.53,
    "midPrice": 0.525,
    "bids": [...],
    "asks": [...]
  },
  "down": {...}
}
Get Orderbook By Slug — API Docs | Resolved Markets