Describe the queryable tables
curl --request GET \
--url https://api.ironflow.sh/v1/query/schema \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ironflow.sh/v1/query/schema"
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/query/schema', 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/query/schema",
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/query/schema"
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/query/schema")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ironflow.sh/v1/query/schema")
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{
"dialect": "ClickHouse SQL (read-only). Tables live in the hl database: write hl.fills, hl.funding, and so on.",
"tables": [
{
"name": "hl.funding",
"description": "Hourly funding rate per perp market, native and HIP-3.",
"time_column": "ts",
"data_from": "2025-09-27",
"columns": [
{
"name": "ts",
"type": "DateTime64 UTC",
"description": "Event time"
},
{
"name": "rate",
"type": "Float64",
"description": "Funding rate for that hour as a fraction."
}
]
}
],
"tips": [
"Always filter hl.fills on ts, and on market when you can."
],
"examples": [
{
"question": "Which perps pay the most extreme funding right now, annualized?",
"sql": "SELECT market, argMax(rate, ts) AS last_rate FROM hl.funding WHERE ts > now() - INTERVAL 2 HOUR GROUP BY market ORDER BY abs(last_rate) DESC LIMIT 10"
}
],
"limits": {
"history_days": 1,
"max_execution_seconds": 5,
"max_rows": 1000,
"budget_seconds_per_hour": 60
},
"tiers": [
{
"tier": "anon",
"history_days": 1,
"max_execution_seconds": 5,
"max_rows": 1000,
"budget_seconds_per_hour": 60
}
]
}SQL
Hyperliquid SQL tables and columns
GET /v1/query/schema lists the hl.* tables you can query with SQL, their columns, how far back each goes, example queries and your tier’s limits.
GET
/
v1
/
query
/
schema
Describe the queryable tables
curl --request GET \
--url https://api.ironflow.sh/v1/query/schema \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.ironflow.sh/v1/query/schema"
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/query/schema', 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/query/schema",
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/query/schema"
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/query/schema")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ironflow.sh/v1/query/schema")
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{
"dialect": "ClickHouse SQL (read-only). Tables live in the hl database: write hl.fills, hl.funding, and so on.",
"tables": [
{
"name": "hl.funding",
"description": "Hourly funding rate per perp market, native and HIP-3.",
"time_column": "ts",
"data_from": "2025-09-27",
"columns": [
{
"name": "ts",
"type": "DateTime64 UTC",
"description": "Event time"
},
{
"name": "rate",
"type": "Float64",
"description": "Funding rate for that hour as a fraction."
}
]
}
],
"tips": [
"Always filter hl.fills on ts, and on market when you can."
],
"examples": [
{
"question": "Which perps pay the most extreme funding right now, annualized?",
"sql": "SELECT market, argMax(rate, ts) AS last_rate FROM hl.funding WHERE ts > now() - INTERVAL 2 HOUR GROUP BY market ORDER BY abs(last_rate) DESC LIMIT 10"
}
],
"limits": {
"history_days": 1,
"max_execution_seconds": 5,
"max_rows": 1000,
"budget_seconds_per_hour": 60
},
"tiers": [
{
"tier": "anon",
"history_days": 1,
"max_execution_seconds": 5,
"max_rows": 1000,
"budget_seconds_per_hour": 60
}
]
}Authorizations
Ironflow API key, format if_xxxx. Free keys at https://ironflow.sh/key. Optional on read endpoints.