Docs
Guides and API
Updated 23 November 2026 · Builder week: your first 30 days of Builder are free
Reading a range
A range answers one question: how unusual is the move we're in? For a window, say 7 days, Stray takes every 7-day stretch in the market's history on Hyperliquid and lines up how far price moved in each.
- The band covers 8 in 10 of those moves: from the 10th to the 90th percentile.
- The middle half, darker, runs from the 25th to the 75th percentile: an ordinary week.
- The amber mark is the move from 7 days ago to now. Its percentile says how many past stretches moved less (lower) than it.
A range describes the past. A mark outside the band means "this is rare for this market", not "this will reverse". Nothing on Stray predicts a price.
Order book depth
Depth is the money resting in the order book close to the price, on each side. "$9.9M bids within ±1%" means buy orders worth $9.9M are waiting between the mid price and 1% below it: that much selling could be absorbed before price falls 1%, if nothing else changed.
- Stray measures three distances: ±0.5%, ±1% and ±2% of the mid price.
- Hyperliquid returns 20 price levels per side. For each band Stray uses the finest of its books that reaches past that band: the full book, then prices grouped to 4 significant figures, then to 3. If none reaches it yet, the band is
nullrather than an undercount. - Depth moves fast and orders can be pulled. Treat it as a snapshot, not a promise.
The record
Since 10 November 2026, 23:08 UTC, Stray saves a snapshot of 8 Hyperliquid perps every minute: BTC ETH HYPE SOL XRP DOGE BNB SUI.
- Each snapshot: both sides of the order book, mark, oracle and mid price, funding, open interest and 24-hour volume.
- Minutes are in UTC. A missed minute stays missing; it isn't filled in. History rows are returned as recorded, so a gap shows up as a jump in
t. - Ranges use Hyperliquid's own daily closes, which go back further than the record.
The Draw
One number for how tense Hyperliquid is right now, measured against its own history. 0 is calm, 100 is fully drawn. It's computed every 10 minutes for each core market and for the whole market, and it's only available through the API: GET /v1/draw and GET /v1/draw/{coin}. It describes the present against the past. It doesn't predict anything.
| Band | Draw |
|---|---|
| Sheathed | 0–20 |
| Resting | 20–40 |
| Hand on hilt | 40–60 |
| Drawing | 60–80 |
| Drawn | 80–100 |
How it's built
Seven components, each scored 0–100. The Draw is their weighted average; if a component can't be measured, the weights of the rest are scaled up and coverage says how much was measured.
| Component | Weight | Score |
|---|---|---|
| vol | 25% | Realised 7-day volatility, ranked against every 7-day window in Hyperliquid's daily closes. BTC and ETH also average in Deribit's implied volatility, ranked since 2021. |
| thin | 10% | Depth within ±1% of mid, ranked against Stray's record (up to 30 days) and inverted: thinner than usual scores higher. |
| crowding | 10% | Open interest in dollars per dollar of depth within ±1%, ranked against the same record. |
| funding | 15% | The size of the current hourly funding rate, either sign, ranked against every settled hour since listing. |
| liquidation | 15% | r = dollars of the largest accounts' positions that liquidate within 5% of the price, divided by depth within ±1%. Score = 100 × r / (1 + r): 0 with nothing nearby, 50 when it equals the book. |
| positioning | 15% | Average of: the largest accounts' net position as a share of their gross, and how extreme Binance's long/short account ratio is against its history. |
| flow | 10% | Last hour on Hyperliquid: |buying − selling| ÷ total, as a percentage. |
The market-wide Draw weights each market by its open interest. Every response includes each component's score and the raw inputs behind it, so a reading can be checked, not just trusted. inputs.record_baseline_days shows how much of Stray's own record the thin and crowding scores compare against; it started on 10 November 2026 and grows to 30 days.
{ "index": "The Draw", "coin": "MARKET", "draw": 27.2, "band": "Resting",
"markets": { "BTC": { "draw": 30.3, "band": "Resting" }, "ETH": { "draw": 21.4, "band": "Resting" }, … },
"weights": { "BTC": 0.447, "ETH": 0.237, "HYPE": 0.23, … },
"history": [[1794434000000, 27.2], …] }
Getting started
Base URL https://stray.fi/v1. Every request needs an API key from the console, sent as a header. Keys are never accepted in the URL.
curl https://stray.fi/v1/ranges/HYPE?window=7 \ -H "Authorization: Bearer stray_…"
A key works while its account has an active plan (pricing). Responses are JSON; times are UTC; fractions are decimals (−0.1379 = −13.79%).
Use Stray with AI
Our MCP server gives Claude, Cursor or any MCP client the record as 18 read-only tools, so you can ask in plain words: "Is BTC's book thinner than usual for this hour?", "Where are the big liquidation levels on ETH?", "Compare HYPE depth on Hyperliquid with Binance, Bybit and OKX." In Claude Code it's one line:
claude mcp add stray -e STRAY_API_KEY=stray_… -- npx -y stray-mcp
Claude Desktop and Cursor take the same server in their MCP config (command npx, args -y stray-mcp, env STRAY_API_KEY). Each tool call is one API call, and the tools trim long series to the newest rows so replies stay small. The server is open source (MIT) in the Stray cookbook, beside quickstarts in curl, Python and TypeScript, four worked examples and an OpenAPI spec.
GET /v1/markets
The markets Stray covers and when recording began. hip3 lists the builder-deployed (HIP-3) markets recorded, the top 8 by 24-hour volume; use their full name, e.g. xyz:NVDA, with /v1/depth and /v1/history.
{ "markets": ["BTC","ETH","HYPE","SOL","XRP","DOGE","BNB","SUI"], "recording_since": "2026-11-10T23:08:00Z" }
GET /v1/ranges/{coin}
| Parameter | Meaning |
|---|---|
| coin | One of the markets, e.g. HYPE. |
| window | Days: 1, 3, 7, 14, 30, 60 or 90. Default 7. 1 and 3 days use 4-hour closes (back to mid-2024); longer windows use daily closes. |
{
"coin": "HYPE", "window_days": 7, "samples": 700,
"latest": -0.1379, "latest_percentile": 10,
"p10": -0.139, "p25": -0.073, "p50": 0.0, "p75": 0.098, "p90": 0.213,
"source": "Hyperliquid daily closes", "note": "Past ranges, not a forecast."
}
samples is how many past stretches the percentiles come from. Updated every 10 minutes.
GET /v1/depth/{coin}
US dollars resting on each side of the live book within ±0.5%, ±1% and ±2% of mid. Updated every 5 seconds. A band that can't be measured is null.
{
"coin": "HYPE", "as_of": "2026-11-11T05:45:02.000Z", "mid": 72.13,
"usd_within": {
"0.5%": { "bids": 5900000, "asks": 4200000 },
"1%": { "bids": 9900000, "asks": 9500000 },
"2%": { "bids": 12200000, "asks": 12000000 }
},
"source": "live"
}
source is live, or record when Hyperliquid's book didn't answer in time and the reply is Stray's newest recorded minute instead (then as_of is that minute and mid is its mark).
GET /v1/history/{coin}
Stray's own minute-by-minute record.
| Parameter | Meaning |
|---|---|
| from, to | Unix time in milliseconds. Default: the last 24 hours. At most 7 days per call; page through longer spans. |
| step | Minutes between rows, 1 to 1440. Default 1. Returns the first snapshot in each step. |
{
"coin": "HYPE", "from": 1794288000000, "to": 1794374400000, "step_min": 60,
"fields": ["t","mark","oracle","funding","oi","bid_0.5","ask_0.5","bid_1","ask_1","bid_2","ask_2"],
"rows": [[1794373201996, 72.038, 72.0345, 0.0000125, 21343732.02, 5407855, 5042762, 9158390, 9687044, 10966128, 11607185]],
"recording_since": "2026-11-10T23:08:00Z"
}
Rows are arrays in the order of fields. funding is the hourly rate; oi is open interest in coins; the bid_x/ask_x columns are US dollars within ±x% (±0.05, 0.1, 0.25, 0.5, 1, 2); impact_bid/impact_ask are Hyperliquid's impact prices, recorded since 11 November 2026.
GET /v1/stream/{coin} PRO
A live feed as Server-Sent Events. Opening a stream counts as one call. A stream stays open for up to an hour (or until your plan period ends), then sends a notice and closes; reconnect to carry on, and the key is checked again. Up to 3 streams per market per account.
curl -N https://stray.fi/v1/stream/BTC \ -H "Authorization: Bearer stray_…"
| Event | When | Data |
|---|---|---|
| top | Best bid or ask changes, at most twice a second | bid, bid_size, ask, ask_size, t |
| depth | Each new book from Hyperliquid, about every 3 seconds | mid, best_bid, best_ask, usd_within (same as /v1/depth) |
| ctx | Mark, funding or open interest changes | mark, oracle, mid, funding, open_interest, volume_24h, t |
| notice | Something about the feed itself, e.g. reconnecting | message |
event: top
data: {"coin":"BTC","t":1794376572147,"bid":73945,"bid_size":19.37,"ask":73946,"ask_size":6.89}
A comment line (: heartbeat) arrives every 15 seconds so you can tell a quiet market from a dropped connection. If the connection drops, reconnect; the latest top, depth and ctx are sent straight away.
GET /v1/funding/{coin}
Hourly funding since the market listed on Hyperliquid (May 2023 for the oldest), and where the latest hour ranks.
| Parameter | Meaning |
|---|---|
| from, to | Milliseconds. Default: the last 30 days. At most 366 days of rows per call; the summary always covers all history. |
| venue | hyperliquid (default, hourly, since 2023), binance (since 2019) or bybit. Binance and Bybit settle every 8 hours: rows are per period, the summary is an hourly equivalent. |
{
"coin": "BTC", "fields": ["t","rate","premium"], "rows": [[1794412800007, 0.0000111593, -0.00041]],
"summary": { "latest_hourly": 0.0000111593, "latest_annualized": 0.0978, "latest_percentile": 46,
"p10": -0.000003, "p50": 0.0000125, "p90": 0.00004, "samples": 30143, "since": "2023-05-12T00:00:00.000Z" }
}
GET /v1/liquidity/{coin}
Ten-minute medians of the top of the book: spread in basis points and US dollars resting in the top 5 and top 20 levels on each side.
- Since 10 November 2026: every 10 minutes, from Stray's own record.
- Before that, back to November 2024: the first day of each month only, from Tardis.dev's free monthly files. Those files carry 5 levels from 17 June 2026, so
top20_*isnullthere.
Same from and to as funding, default the last 30 days. Fields: t, spread_bps, top5_bid_usd, top5_ask_usd, top20_bid_usd, top20_ask_usd, levels, reach_pct, n, source, where source is stray or tardis.
GET /v1/venues/{coin}
The same market on Hyperliquid, Binance, Bybit and OKX, side by side, every minute since 11 November 2026: USD resting within ±0.05%, 0.1%, 0.25%, 0.5%, 1% and 2% of each venue's own mid, spread, funding and open interest, plus the funding Hyperliquid predicts for each venue. hyperliquid_share_of_depth_pct is Hyperliquid's share of the four venues' combined depth in the tightest bands. A band is null when that venue's book doesn't reach it. from/to up to 7 days, default 1; step minutes, default 10.
GET /v1/flow/{coin}
Per step minutes (default 5): Hyperliquid volume by aggressor side in USD, number of buys and sells, largest single trade, and liquidations on Binance and Bybit by side (liq_long_usd = longs closed). Since 11 November 2026. Up to 7 days per call.
GET /v1/positioning/{coin}
Binance's 5-minute series: open interest (coins and USD), share of accounts long, top traders' long share and long/short ratio, and taker buy/sell volume. Binance keeps 30 days; Stray keeps everything from 13 October 2026. Up to 31 days per call, default 7.
GET /v1/crowding/{coin}
Hyperliquid open interest in USD divided by USD resting within ±1% of mid, every 10 minutes: dollars of positions per dollar of book. latest.percentile ranks the latest reading against the window. Up to 7 days, default 7.
GET /v1/profile/{coin}
The typical day: median depth within ±1%, spread and Hyperliquid volume per 10 minutes, for each hour (UTC), over the last days (1–30, default 7). Shows when books thin out.
GET /v1/conditional/{coin}
"When funding was like today, what happened next." Every day since 2023 is put into one of ten equal bands by its average hourly funding on Hyperliquid. The response gives today's band and the spread of moves over the next horizon days (1, 3, 7, 14 or 30) after past days in that band, beside all days. Past, not a forecast.
{ "coin": "BTC", "horizon_days": 7, "decile": 5,
"when_funding_was_like_this": { "samples": 309, "p10": -0.0637, "p50": 0.0063, "p90": 0.0836 },
"all_days": { "samples": 1272, "p10": -0.0591, "p50": 0.0024, "p90": 0.0855 } }
GET /v1/correlation
Correlation of daily returns between the core markets over window days (30, 90 or 180), as a matrix in the order of coins.
GET /v1/whales/{coin}
Open perp positions of the top 1,500 Hyperliquid accounts by account value, totalled per coin every 10 minutes: long, short and net USD, how many accounts on each side, and size-weighted leverage. hlp_net_usd is HLP, Hyperliquid's own vault, across all its child vaults. Totals only: Stray never publishes wallets. step minutes (default 60), up to 31 days per call. Since 11 November 2026.
GET /v1/liqmap/{coin}
Where those positions get liquidated, by distance from the mark: USD of position value in 0.5% bands from −50% to +50%, and grouped into 0–2%, 2–5%, 5–10%, 10–20% and 20–50% below and above. A sample of the largest accounts, not every position on the exchange.
{ "coin": "BTC", "accounts": 1500,
"bands": { "below": [{ "from_pct": -5, "to_pct": -2, "usd": 41500000 }, …],
"above": [{ "from_pct": 10, "to_pct": 20, "usd": 104800000 }, …] } }
GET /v1/implied/{BTC|ETH}
Implied volatility (Deribit's DVOL index, daily since April 2021) beside realised volatility from Hyperliquid's daily closes, and the one-sigma moves each implies over 1, 7 and 30 days. implied_percentile ranks today against every day since 2021.
GET /v1/basis/HYPE
HYPE's perp mark against HYPE/USDC spot on Hyperliquid, in basis points (positive = perp above spot), with funding, circulating supply and spot volume. Every minute since 11 November 2026; step default 10, up to 31 days per call.
Limits and headers
| Plan | Calls a month | Per minute |
|---|---|---|
| Builder | 100,000 | 60 |
| Pro | 2,000,000 | 600 |
Every call that passes the limits counts, including ones that return a 4xx for a bad parameter. Refused calls (401, 402, 429) don't count. Each response says where you stand:
| Header | Meaning |
|---|---|
| X-Plan | builder or pro |
| X-RateLimit-Limit / -Remaining / -Reset | Calls a minute, left this minute, when the minute resets (Unix seconds) |
| X-Quota-Limit / -Remaining / -Reset | Calls this period, left, when the plan renews (Unix seconds) |
| Retry-After | On a 429: seconds to wait |
Errors
Errors are JSON: { "error": "…" }, written to be read by a person.
| Status | Meaning |
|---|---|
| 400 | A parameter is wrong; the message says which. |
| 401 | Missing, malformed, unknown or revoked key. |
| 402 | No active plan. Add credit and choose a plan in the console. |
| 403 | The live stream needs the Pro plan. |
| 404 | Unknown market or endpoint. |
| 429 | Over the per-minute or monthly limit (see Retry-After), or already 3 streams open for that market. |
| 502 | An upstream source (Hyperliquid or the record) didn't answer. Try again shortly. |