price candles (OHLCV)
curl -s https://api.hyperliquid.xyz/info \
-H 'content-type: application/json' \
-d '{"type":"candleSnapshot","req":{"coin":"BTC","interval":"1h","startTime":1795000000000,"endTime":1795400000000}}'
- times are in milliseconds. intervals include 1m, 5m, 15m, 1h, 4h and 1d.
- each candle: t (open time), T (close time), o, h, l, c, v (volume in the coin) and n (number of trades).
- one call returns at most 5,000 candles, the most recent ones: with 1m candles that is about 3.5 days. daily candles reached back about 900 days in our test.
funding rate history
curl -s https://api.hyperliquid.xyz/info \
-H 'content-type: application/json' \
-d '{"type":"fundingHistory","coin":"BTC","startTime":1795000000000}'
- one row per hour: coin, fundingRate, premium and time.
- at most 500 rows per call (about 20 days): to go further, call again with startTime set just after the last row's time.
a trader's trade history (fills)
curl -s https://api.hyperliquid.xyz/info \
-H 'content-type: application/json' \
-d '{"type":"userFillsByTime","user":"0xADDRESS","startTime":1795000000000}'
- each fill: coin, price, size, side, direction, closed pnl, time and the transaction hash.
- at most 2,000 rows per call, oldest first from startTime: page by setting startTime just after the last fill. userFills (without a time range) returns the latest 2,000, newest first.
account value and pnl history
curl -s https://api.hyperliquid.xyz/info \
-H 'content-type: application/json' \
-d '{"type":"portfolio","user":"0xADDRESS"}'
- the account value and pnl over a day, a week, a month and all time, as lists of [time, value] points.
markets now, to start from
curl -s https://api.hyperliquid.xyz/info \
-H 'content-type: application/json' \
-d '{"type":"metaAndAssetCtxs"}'
- every perp market with max leverage, mark price, funding, open interest and 24 h volume: the list of coins to loop over.
ranked traders and market reads through copy.top
for who trades well rather than what the price did, copy.top's hl_get_traders ranks traders over 24 hours, 7 days, 30 days or all time, and hl_get_market_read compares a market's funding and open interest with its own history.
curl -s https://copy.top/mcp \
-H 'content-type: application/json' \
-H 'accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"hl_get_market_read","arguments":{"coin":"BTC"}}}'
how the copy.top API works
- one endpoint: POST https://copy.top/mcp, JSON-RPC 2.0. use copy.top without www.
- the answer is in result.content[0].text, as a JSON string. the body can arrive as an event stream: read the first line that starts with "data: ".
- no key is needed for the public tools. the limit is about 20 calls a minute per address.
- a free key raises the limits. create it at copy.top/account#api and send it as Authorization: Bearer <key>.
- the same tools work as an MCP server in Claude, ChatGPT, Cursor and other agents, and from the terminal with npm i -g copytop.
faq
how do I get Hyperliquid historical data?
with POST requests to https://api.hyperliquid.xyz/info: candleSnapshot for price candles, fundingHistory for funding rates, userFillsByTime for a trader's fills and portfolio for account value history. no key is needed.
how far back do Hyperliquid candles go?
one candleSnapshot call returns at most the 5,000 most recent candles. with daily candles that covered about 900 days in our test on November 24, 2026; with 1-minute candles, about 3.5 days.
how do I download Hyperliquid funding rate history?
call fundingHistory with the coin and a startTime in milliseconds. it returns up to 500 hourly rows; call again from the last row's time to continue.
is Hyperliquid historical data free?
yes. the info endpoint is public and free for reading, and so are copy.top's tools, at about 20 calls a minute without a key.
can I get the historical trades of one wallet?
yes: userFillsByTime with the address and a startTime returns up to 2,000 fills per call, oldest first from startTime. set startTime just after the last fill's time to get the next page.
is copy.top affiliated with Hyperliquid?
no. copy.top is independent.
copy.top