curl --request GET \
--url https://api.ironflow.sh/v1/analytics/user-ledger \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ironflow.sh/v1/analytics/user-ledger"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ironflow.sh/v1/analytics/user-ledger', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ironflow.sh/v1/analytics/user-ledger",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ironflow.sh/v1/analytics/user-ledger"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ironflow.sh/v1/analytics/user-ledger")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ironflow.sh/v1/analytics/user-ledger")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"address": "<string>",
"from": 123,
"to": 123,
"data": [
{
"ts": 1779302400000,
"type": "deposit",
"token": "USDC",
"amount": 1000,
"tx_hash": "0x...",
"details": {}
}
]
}{
"error": {
"code": "QUERY_WINDOW_EXCEEDED",
"message": "query time range exceeds maximum 24h0m0s per request for your tier — narrow your from/to window and paginate"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or missing API key"
}
}{
"error": {
"code": "TIER_FORBIDDEN",
"message": "Export requires Builder tier or above"
}
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded. Retry after 60 seconds."
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "An unexpected error occurred"
}
}{
"error": {
"code": "QUERY_TIMEOUT",
"message": "query took too long — narrow your time range, add a market filter, or reduce the limit"
}
}Hyperliquid deposits, withdrawals and ledger events
GET /v1/analytics/user-ledger returns non-fill ledger events for a Hyperliquid address: deposits, withdrawals, vault operations, transfers and staking.
curl --request GET \
--url https://api.ironflow.sh/v1/analytics/user-ledger \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ironflow.sh/v1/analytics/user-ledger"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.ironflow.sh/v1/analytics/user-ledger', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ironflow.sh/v1/analytics/user-ledger",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.ironflow.sh/v1/analytics/user-ledger"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.ironflow.sh/v1/analytics/user-ledger")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ironflow.sh/v1/analytics/user-ledger")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"address": "<string>",
"from": 123,
"to": 123,
"data": [
{
"ts": 1779302400000,
"type": "deposit",
"token": "USDC",
"amount": 1000,
"tx_hash": "0x...",
"details": {}
}
]
}{
"error": {
"code": "QUERY_WINDOW_EXCEEDED",
"message": "query time range exceeds maximum 24h0m0s per request for your tier — narrow your from/to window and paginate"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or missing API key"
}
}{
"error": {
"code": "TIER_FORBIDDEN",
"message": "Export requires Builder tier or above"
}
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded. Retry after 60 seconds."
}
}{
"error": {
"code": "INTERNAL_ERROR",
"message": "An unexpected error occurred"
}
}{
"error": {
"code": "QUERY_TIMEOUT",
"message": "query took too long — narrow your time range, add a market filter, or reduce the limit"
}
}When to use
user-ledger returns the events that move balance into or out of an
address other than fills and funding payments. Use it to reconcile
account-level cash flow alongside /v1/analytics/user-state
(positions) and /v1/analytics/user-funding
(carry).
Conventions
amountis signed: positive = into the account (deposit, vault withdrawal, transfer in, airdrop claim), negative = out (withdrawal, vault deposit, transfer out, stake delegate).typeis a discriminator. Always-supported values from the live tailer:deposit,withdrawal— USDC bridge in / outvault_deposit,vault_withdraw,vault_transfer_in,vault_transfer_out,vault_distribute,vault_commission— vault operationssend— user-to-user transfer (USDC bridge address-to-address)spot_send— user-to-user transfer of a spot tokenaccount_class_transfer— internal perp ↔ spot wallet move (details.to_perpcarries the direction)rewards_claim— HYPE airdrop / staking reward claimdelegate,undelegate— HYPE staking lock / unlock (details.validator)sub_account_transfer— transfer between a main wallet and one of its subaccountsc_deposit,c_withdraw— HL native L1 bridge events
details(when present) is a free-form object with type-specific fields:to_perpforaccount_class_transfer,validator/weifordelegate/undelegate, etc.
Coverage
The endpoint UNIONs four ClickHouse tables:deposits, withdrawals,
vault_operations (USDC + vault flows, archive depth back to the per-
table start dates documented on the pricing footnote), and
ledger_entries (catch-all for the misc-events LedgerUpdate delta
types — send, spot_send, account_class_transfer, rewards_claim,
delegate, undelegate, sub_account_transfer, c_deposit,
c_withdraw). ledger_entries is forward-only from 2026-05-21; an
S3 backfill of the misc-events archive against the existing
hl-recovery orchestrator is planned but not yet executed.
Example
# All ledger events in the last 30 days
curl -H "Authorization: Bearer $IRONFLOW_API_KEY" \
"https://api.ironflow.sh/v1/analytics/user-ledger?address=0x0c684f...&from=$(date -u -v-30d +%s)000&to=$(date -u +%s)000"
# Withdrawals only
curl -H "Authorization: Bearer $IRONFLOW_API_KEY" \
"https://api.ironflow.sh/v1/analytics/user-ledger?address=0x0c684f...&event_types=withdrawal"
Authorizations
Ironflow API key, format if_xxxx. Free keys at https://ironflow.sh/key. Optional on read endpoints.
Query Parameters
Wallet address filter (hex string, e.g. 0xabc123).
"0xabc123def456"
Start time as Unix milliseconds. Defaults to 24 hours ago. Clamped to tier history window. On /v1/trades and /v1/fills, the time range (to - from) is limited per tier (no key 1h, free key 6h, Explorer 24h, Builder 7d, Enterprise unlimited; without market filter 4h for all tiers). Returns QUERY_WINDOW_EXCEEDED (400) if exceeded — paginate with narrower from/to windows.
1718313600000
End time as Unix milliseconds. Defaults to now.
1718400000000
Comma-separated list of types to include. Supported values:
deposit, withdrawal, vault_deposit, vault_withdraw,
vault_transfer_in, vault_transfer_out, vault_distribute,
vault_commission, send, spot_send,
account_class_transfer, rewards_claim, delegate,
undelegate, sub_account_transfer, c_deposit,
c_withdraw.
"deposit,withdrawal,rewards_claim"
Maximum number of results per page. Default 100, max 1000.
x <= 1000100