GET
/v1/markets/by-slug/:slug/orderbookGet 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
slugstringrequiredMarket slug (e.g. sol-updown-5m or sol-updown-5m-1772799300)
Query Parameters
formatstringdefault:jsonResponse encoding. csv and tsv return the rows as a flat file instead of a JSON envelope — the envelope moves to X-* response headers and nulls render as \N. REQUIRES SCALE OR ENTERPRISE (json is available on every tier). Works with includebook=true — the bids/asks ladders come through as compact JSON inside their cell, complete and parseable (pandas: df["bids"].apply(json.loads)).
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": {...}
}
