Live prices (latest trade)
The price of the latest trade of every Hyperliquid market, with the trade time, refreshed every second.
/api/v1/pricesEvery keyDescription
Live prices: the price of the latest trade of every Hyperliquid perpetual market our collectors receive trades of (main dex and builder-deployed markets such as xyz:TSLA), with the time of that trade (ts) and its age in seconds when answered (ageSec). The same value as the live price on the website charts, refreshed once a second; ts is the trade itself, not a sample time. stale is true when the last trade is older than 2 minutes or the live feed has not been refreshed for 20 seconds (meta.warnings then says so). A market without a trade for 10 minutes is left out; GET /markets has the sampled mark price of every market and venue. Sorted by open interest, largest at the top. Every key and keyless; pushed every second on GET /stream?channel=prices (API Pro).
Who can call it
Available with every key and keyless (X-Blockmetric-Access: public). Keys of Free accounts get free-tier data (real-time feeds, 30 days of history, heatmap over time for every coin over the last 30 days, liquidation levels now for every coin, the same as the free web plan); Pro and Desk keys the data of their plan; API Dev / API Pro raise the limits. Paid keys read the plan's history, the same on monthly and yearly billing: GET /me states the days.
- No key
- 24 h
- Free
- 30 days
- Pro
- 1 year
- Desk
- 3 years
- API Dev
- 1 year
- API Pro
- 3 years
History window per plan. Limits: Authentication & limits.
Parameters
| Parameter | Description |
|---|---|
coinstring | One coin or up to 50 separated by commas (BTC,ETH,xyz:TSLA); case-insensitive. Default: every market with a live price. A named coin without a live price is listed in meta.warnings.e.g. BTC,ETH,SOL |
fieldsstring | Comma-separated fields of every item to return, e.g. coin,price,ts (case-insensitive). All other fields are left out, so large lists get much smaller; an unknown name answers 400 with the list of fields. Default: every field.e.g. coin,venue,price |
formatstring | json (default: the { data, meta } envelope) | csv (the rows with a header line; /funding and /funding/predicted one line per coin and venue with the column venue, /long-short and /funding/spreads with nested objects as columns such as hl_longUsd; other nested values as JSON text) | ndjson (one JSON object per row and line). csv and ndjson carry the meta block in headers: Link rel="next" and X-Blockmetric-Next-Cursor (next page), X-Blockmetric-Next-After (forward polling), X-Blockmetric-Updated-At, X-Blockmetric-Warnings, X-Blockmetric-License. Errors stay JSON. csv and ndjson need a plan that downloads files on the website (Pro, Desk, API Dev, API Pro); keyless access and free keys answer 403 plan_required (param format).one of json, csv, ndjson · default json |
Response fields
Every success is { data, meta }; these are the fields of data. meta is the same on every endpoint.
[].coinstringThe market under its Hyperliquid name (BTC, kPEPE); builder-deployed markets as dex:COIN.
[].venue"hyperliquid"Venue of the trade.
[].pricenumberPrice of the latest trade, as the venue reports it.
[].tsstring (ISO 8601)Time of that trade.
[].ageSecintegerSeconds since the trade when answered.
[].stalebooleantrue when the trade is older than 2 minutes or the live feed has not been refreshed for 20 seconds.
Errors
- 400
invalid_paramInvalid parameter - 401
unauthorizedMissing or invalid API key - 401
key_requiredKeyless trial used up: a key is required - 403
plan_requiredPlan does not include this - 403
scope_requiredKey not scoped for this API - 403
ip_not_allowedAddress not on the IP allowlist of the key - 403
origin_not_allowedKey used from a browser origin it does not allow - 403
source_restrictedExchange withheld - 403
linked_accountKey of a linked free account paused - 403
https_requiredhttps required - 429
rate_limitedPer-minute limit reachedretry - 429
daily_limit_exceededDaily limit reachedretry - 429
stream_limitToo many open streamsretry - 500
internal_errorInternal errorretry
Code snippets in these docs are licensed under MIT-0: copy them into your own code without attribution. The SDKs, CLI and MCP server are Apache-2.0; the name Blockmetric is not licensed (forks must be renamed). Data from the API is governed by the API terms; third-party exchange data by the exchange’s terms.