Hyperliquid wallet history: fills, PnL, funding and positions over time
Hyperliquid's own API returns only the latest 10,000 fills of a wallet and no positions from the past. Ironflow keeps every fill since 25 May 2025 with fees and realized PnL, every funding payment per wallet, and can rebuild any wallet's positions at a past moment. This page shows what exists, the REST calls and SQL queries to read it, and what each plan reaches.
- API
- GET https://api.ironflow.sh/v1/fills?address=0x...&from=<unix ms> no key
- AT
- GET https://api.ironflow.sh/v1/positions?address=0x...&at=<time>
- SQL
- POST https://api.ironflow.sh/v1/query
- MCP
- get_fills, get_positions_at on https://mcp.ironflow.sh/mcp
Free key14 days of history at 60 requests a minute. Without a key, the API reaches 24 hours back.
By requesting a key you agree to the Terms and API terms; see the Privacy Policy. We may email you when your key keeps hitting its limits; you can opt out at any time.
The short version#
- Fills:
GET /v1/fills?address=, every fill since 25 May 2025, with direction, fees and realized PnL. - PnL over time:
GET /v1/analytics/user-pnl-series, or SQL onhl.wallet_daily. - Funding:
GET /v1/analytics/user-funding, or SQL onhl.funding_payments. - Positions: now with
GET /v1/analytics/user-state, at a past time withGET /v1/positions. - Live:
GET /v1/wallets/streamfor the wallets you watch.
1. What data exists#
Everything below covers native perps and HIP-3 perps; fills also cover spot and HIP-4 outcomes. The full exchange state, every wallet's balances, positions and orders about every 12 minutes, comes with a dedicated node.
| Data | From | What each row holds |
|---|---|---|
| Fills | Since 25 May 2025 | Every fill of the wallet: market, side, price, size, fee and fee token, realized PnL, maker or taker, order and trade id. Hyperliquid's direction (Open Long, Close Short, Liquidated Cross Long) from 1 August 2026. |
| Daily totals | Since 29 July 2025 | Per day and market: fills, volume, realized PnL, fees, maker and taker volume, winning and closing fills. |
| Funding payments | Since late September 2025 | Every hourly payment per market, paid or received, with the position size and the rate at settlement. |
| Positions now | Live | Open perp positions with entry, mark, value and unrealized PnL. |
| Positions at a past time | Last 90 days | Exact perp positions at any moment: today's positions minus the fills after that moment. |
| Liquidations | Since 25 May 2025 | Every liquidated fill of the wallet, with price, size and notional. |
2. Over REST#
Fills#
One wallet's fills, newest first, 100 per page by default and up to 1,000 with limit. Pass from in Unix milliseconds: without it the call looks back a short default window. Follow pagination.next_cursor to page back.
curl "https://api.ironflow.sh/v1/fills?address=0xYOUR_ADDRESS&from=1795702268000&limit=1000"Each fill carries the fields below (trimmed; the full list is in the docs):
{
"market": "ZEC-PERP",
"timestamp": 1795746508959,
"side": "sell",
"dir": "Close Long",
"price": "738.16",
"size": "2.88",
"notional": "2125.9008",
"fee": "2.019605",
"fee_token": "USDC",
"realized_pnl": "149.461056",
"oid": 617638331662,
"tid": 1092524753554392,
"hash": "0xf332...42df"
}Free keyWithout a key the API reaches 24 hours back. A free key reaches 14 days at 60 requests a minute. Get one by email.
PnL, summary and funding#
# realized PnL and fees per bucket (bucket_ms in ms)
curl "https://api.ironflow.sh/v1/analytics/user-pnl-series?address=0xYOUR_ADDRESS&bucket_ms=86400000"
# one call: volume, realized PnL, fees, win rate, maker and taker mix, current state
curl "https://api.ironflow.sh/v1/analytics/user-summary?address=0xYOUR_ADDRESS"
# funding paid and received: bucket=1h, 1d or raw
curl "https://api.ironflow.sh/v1/analytics/user-funding?address=0xYOUR_ADDRESS&bucket=1d"Positions now and at a past time#
user-state returns open perp positions with entry, mark and unrealized PnL. positions returns the exact sizes at at (Unix ms, seconds or ISO 8601), up to 90 days back.
curl "https://api.ironflow.sh/v1/analytics/user-state?address=0xYOUR_ADDRESS"
curl "https://api.ironflow.sh/v1/positions?address=0xYOUR_ADDRESS&at=2026-11-20T12:00:00Z" \
-H "Authorization: Bearer $IRONFLOW_API_KEY"{
"at": 1795731068000,
"count": 1,
"positions": [
{"market": "ZEC-PERP", "side": "long", "size": 8.02, "mark_price": 709.17, "notional": 5687.54, "size_now": 0, "fills_since": 4}
]
}3. Over SQL#
Read-only ClickHouse SQL at POST /v1/query with {"sql": "..."}, the same tables the SQL guide lists. Each query below ran on 27 November 2026 against one active wallet. Replace 0xYOUR_ADDRESS with a lowercase address.
curl -X POST "https://api.ironflow.sh/v1/query" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $IRONFLOW_API_KEY" \
-d '{"sql": "SELECT day, round(sum(realized_pnl_usd) - sum(fees_usd), 2) AS net_pnl FROM hl.wallet_daily WHERE address = '\''0xYOUR_ADDRESS'\'' AND day >= today() - 30 GROUP BY day ORDER BY day"}'1. The wallet's last fills, with direction, fees and realized PnL#
hl.wallet_fills is sorted by wallet and holds the last 92 days. Addresses are lowercase.
SELECT ts, market, side, direction, price, size, round(notional) AS usd,
fee, fee_token, realized_pnl, is_taker
FROM hl.wallet_fills
WHERE address = '0xYOUR_ADDRESS' AND ts > now() - INTERVAL 7 DAY
ORDER BY ts DESC
LIMIT 502. Daily realized PnL net of fees, last 30 days#
realized_pnl on Hyperliquid fills is before fees, so subtract them for the net number.
SELECT day, sum(fills) AS fills, round(sum(volume_usd)) AS volume_usd,
round(sum(realized_pnl_usd), 2) AS realized_pnl, round(sum(fees_usd), 2) AS fees,
round(sum(realized_pnl_usd) - sum(fees_usd), 2) AS net_pnl
FROM hl.wallet_daily
WHERE address = '0xYOUR_ADDRESS' AND day >= today() - 30
GROUP BY day
ORDER BY day DESC3. Win rate and net PnL per market, last 90 days#
A winning fill is a closing fill with positive realized PnL.
SELECT market, sum(closing_fills) AS closes, sum(winning_fills) AS wins,
round(sum(winning_fills) / sum(closing_fills), 2) AS win_rate,
round(sum(realized_pnl_usd) - sum(fees_usd)) AS net_pnl_usd
FROM hl.wallet_daily
WHERE address = '0xYOUR_ADDRESS' AND day >= today() - 90
GROUP BY market
HAVING closes > 0
ORDER BY net_pnl_usd4. Funding paid and received per market, last 30 days#
payment is positive when the wallet received funding and negative when it paid.
SELECT market, round(sum(payment), 2) AS net_funding_usdc,
countIf(payment < 0) AS hours_paid, countIf(payment > 0) AS hours_received
FROM hl.funding_payments
WHERE address = '0xYOUR_ADDRESS' AND ts > now() - INTERVAL 30 DAY
GROUP BY market
ORDER BY net_funding_usdc5. Position size every hour in one market, from funding settlements#
Each settlement records the signed position (positive long, negative short), so this is the wallet's position over time, hour by hour, while it held one.
SELECT toStartOfHour(ts) AS hour, position, rate, round(payment, 2) AS payment_usdc
FROM hl.funding_payments
WHERE address = '0xYOUR_ADDRESS' AND market = 'BTC-PERP' AND ts > now() - INTERVAL 14 DAY
ORDER BY hour DESC6. The wallet's liquidations, last 90 days#
A sell closes a long and a buy closes a short. One liquidation can take several fills.
SELECT ts, market, side, price, size, round(notional) AS usd
FROM hl.liquidations
WHERE address = '0xYOUR_ADDRESS' AND ts > now() - INTERVAL 90 DAY
ORDER BY ts DESC
LIMIT 50Fills older than 92 days of one wallet: page GET /v1/fills with from, or read totals from hl.wallet_daily. For trading across many wallets, hl.fills holds every fill since 25 May 2025.
4. Limits per plan#
Your plan sets how far back each call reaches. Older rows are filtered out, so a longer range returns less, not an error. A read costs 1 credit, wallet analytics and positions at a past time 5, a SQL query 10. Free keys and Explorer are for personal projects and research; an app, bot or service for others needs Builder or Pro. All limits are on the rate limits page and plans on the pricing page.
| Plan | REST history | SQL history | Positions at a time | Live wallets |
|---|---|---|---|---|
| No key | 24 hours | 1 day | 24 hours | None |
| Free key | 14 days | 30 days | 14 days | None |
| Explorer $49 | 90 days | 90 days | 90 days | 10 |
| Builder $149 | 1 year | 1 year | 90 days | 200 |
| Pro $499 | Everything since 25 May 2025 | Everything stored | 90 days | 1,000 |
5. Bulk history to keep or train on#
Plan data is licensed while the plan runs. To keep wallet history in bulk without a time limit, or to train models on it, a one-time data licence covers it, delivered as files.
6. From an AI agent#
The MCP server at https://mcp.ironflow.sh/mcp has the same data as tools: get_fills, get_user_pnl_series, get_user_summary, get_user_funding, get_user_state, get_positions_at and run_query for SQL. No key is needed to start. In Claude Code:
claude mcp add --transport http ironflow https://mcp.ironflow.sh/mcpThen ask, for example, “What was 0x... holding at noon UTC on 20 November, and what did it pay in funding this month?”. Setup for other clients is in the AI agents guide.
Questions#
How do I get the full trade history of a Hyperliquid wallet?#
Hyperliquid's info API returns at most the 10,000 most recent fills of a wallet. Ironflow stores every fill since 25 May 2025: GET https://api.ironflow.sh/v1/fills?address=0x...&from=<unix ms> returns them newest first with a cursor, as far back as your plan's history window. Pro reaches every fill since 25 May 2025.
How do I get a Hyperliquid wallet's PnL over time?#
GET /v1/analytics/user-pnl-series returns realized PnL and fees per bucket, and the SQL table hl.wallet_daily has realized PnL, fees and volume per wallet, day and market since 29 July 2025. Fill PnL on Hyperliquid is before fees, so subtract fees for the net figure.
Can I see what positions a wallet held at a past time?#
Yes. GET /v1/positions?address=0x...&at=<time> returns the wallet's exact perp positions at that moment, up to 90 days back within your plan's history window. For position size hour by hour, hl.funding_payments records the signed position at every funding settlement.
How do I get a wallet's funding payments on Hyperliquid?#
GET /v1/analytics/user-funding returns them per hour, per day or one by one, native and HIP-3 perps. For many wallets or longer ranges, query hl.funding_payments with SQL; it holds every hourly payment since late September 2025.
Can I follow a wallet's fills live?#
Yes. GET /v1/wallets/stream sends the fills of the wallets you watch as Server-Sent Events: 10 wallets on Explorer, 200 on Builder and 1,000 on Pro.
Related guides#
- Hyperliquid SQL: query every fill, liquidation and transfer
- Hyperliquid historical data: free download, S3 and API
- Hyperliquid trades and fills data
- Hyperliquid userFills limit: get more than 10,000 fills
- Hyperliquid funding rates: formula, history and API
References#
- Ironflow docs: List fills. Parameters, fields and pagination.
- Ironflow docs: Run SQL. Request body, limits and error codes.
- Ironflow docs: Query schema. Every table and column.
- Ironflow docs: Rate limits. Credits and history per plan.
Watching wallets for an app or a copy bot? A free key takes REST to 14 days and SQL to 30 days; Builder adds commercial use and 200 live wallets.
Free key14 days of history at 60 requests a minute. Without a key, the API reaches 24 hours back.
By requesting a key you agree to the Terms and API terms; see the Privacy Policy. We may email you when your key keeps hitting its limits; you can opt out at any time.