跳至主要內容

Schema Reference

更新於
2026年4月2日

概覽

This page provides a complete schema reference for all tables available in SQL Explorer. Each table includes column names, data types, sort keys, and partition strategies.

Hyperliquid (HyperCore)

SQL Explorer provides comprehensive coverage of Hyperliquid HyperCore with billions of rows of indexed data across multiple tables.

Cluster ID: hyperliquid-core-mainnet Use this cluster ID when making API requests to query Hyperliquid data via the REST API.

How to Use This Reference


  • Sort Keys (⚡): Columns marked as sort keys are indexed for fast queries. Include these in WHERE clauses for best performance.
  • Partition Strategy: Tables are partitioned by time (usually toYYYYMM(block_time)). Filter on time ranges to scan fewer partitions.
  • Column Types: Data types are shown exactly as stored (e.g., UInt64, Decimal(38, 18), DateTime64(6, 'UTC')).
▶ Complete Schema for All Tables (Click to expand)

Detailed schema for all Hyperliquid tables including column names, data types, sort keys (⚡), and partition strategies.

hyperliquid_agents

Sort Keys: ⚡ block_number, agent | Partition: toYYYYMM(snapshot_time)

Column類型Sort Key
agentFixedString(42)是的
block_numberUInt64是的
indexed_atDateTime64(3, 'UTC')
名稱String
snapshot_timeDateTime64(6, 'UTC')
userFixedString(42)
valid_untilString

hyperliquid_asset_transfers

Sort Keys: ⚡ block_number, tx_hash, user | Partition: toYYYYMM(block_time)

Column類型Sort Key
金額Nullable(Decimal(38, 18))
block_numberUInt64是的
block_timeDateTime64(6, 'UTC')
destinationNullable(FixedString(42))
feeNullable(Decimal(38, 18))
indexed_atDateTime64(3, 'UTC')
非重複數Nullable(UInt64)
時間DateTime64(6, 'UTC')
代幣Nullable(String)
transfer_typeLowCardinality(String)
tx_hashFixedString(66)是的
usdc_amountNullable(Decimal(38, 18))
userFixedString(42)是的

hyperliquid_blocks

Sort Keys: ⚡ block_number | Partition: toYYYYMM(block_time)

Column類型Sort Key
block_numberUInt64是的
block_timeDateTime64(6, 'UTC')
book_diffs_countUInt32
fills_countUInt32
indexed_atDateTime64(3, 'UTC')
misc_events_countUInt32
orders_countUInt32
twap_statuses_countUInt32
writer_actions_countUInt32

hyperliquid_bridge

Sort Keys: ⚡ block_number, bridge_type, user, nonce, eth_block_number, tx_hash | Partition: toYYYYMM(snapshot_time)

Column類型Sort Key
amount_weiUInt64
block_numberUInt64是的
bridge_typeLowCardinality(String)是的
eth_block_numberUInt64是的
event_timeString
indexed_atDateTime64(3, 'UTC')
非重複數UInt64是的
snapshot_timeDateTime64(6, 'UTC')
tx_hashString是的
userFixedString(42)是的

hyperliquid_builder_fills

Sort Keys: ⚡ builder_address, timestamp, tid | Partition: toYYYYMM(block_time)

Column類型Sort Key
block_numberUInt64
block_timeDateTime64(6, 'UTC')
builder_addressNullable(FixedString(42))是的
builder_feeNullable(Decimal(38, 18))
cloidNullable(String)
closed_pnlDecimal(38, 18)
硬幣LowCardinality(String)
created_atDateTime64(6, 'UTC')
crossedUInt8
dirLowCardinality(String)
feeDecimal(38, 18)
hashFixedString(66)
indexed_atDateTime64(3, 'UTC')
is_liquidationUInt8
liquidated_userNullable(FixedString(42))
liquidation_mark_priceNullable(Decimal(38, 18))
liquidation_methodNullable(String)
oidUInt64
價格Decimal(38, 18)
側面Enum8('B' = 1, 'A' = 2)
大小Decimal(38, 18)
start_positionDecimal(38, 18)
tidUInt64是的
時間戳記DateTime64(3, 'UTC')是的
twap_idNullable(UInt64)
updated_atDateTime64(6, 'UTC')
userFixedString(42)

hyperliquid_builder_transactions

Sort Keys: ⚡ block_number, hash, user | Partition: toYYYYMM(block_time)

Column類型Sort Key
action_typeLowCardinality(String)
block_numberUInt64是的
block_timeDateTime64(6, 'UTC')
builderString
builder_feeNullable(Decimal(38, 18))
硬幣Nullable(String)
hashString是的
indexed_atDateTime64(3, 'UTC')
is_successUInt8
userString是的

hyperliquid_clearinghouse_states

Sort Keys: ⚡ block_number, clearinghouse, user, asset_idx | Partition: toYYYYMM(snapshot_time)

Column類型Sort Key
asset_idxUInt16是的
block_numberUInt64是的
clearinghouseUInt8是的
硬幣LowCardinality(String)
entry_notionalUInt64
funding_alltimeInt64
funding_since_changeInt64
funding_since_openInt64
indexed_atDateTime64(3, 'UTC')
marginUInt64
大小Int64
snapshot_timeDateTime64(6, 'UTC')
usdc_balanceInt64
userFixedString(42)是的

hyperliquid_delegator_rewards

Sort Keys: ⚡ block_number, validator, delegator | Partition: toYYYYMM(snapshot_time)

Column類型Sort Key
block_numberUInt64是的
cUInt64
commission_bpsUInt16
delegatorFixedString(42)是的
eUInt64
indexed_atDateTime64(3, 'UTC')
mUInt64
獎勵Decimal(38, 8)
reward_weiUInt64
snapshot_timeDateTime64(6, 'UTC')
來源LowCardinality(String)
驗證器FixedString(42)是的
validator_total_delegatedUInt64

hyperliquid_dex_trades

Sort Keys: ⚡ none | Partition: none

Column類型Sort Key
block_numberUInt64
block_timeDateTime64(6, 'UTC')
buyer_addressFixedString(42)
buyer_builder_addressNullable(FixedString(42))
buyer_builder_feeNullable(Decimal(38, 18))
buyer_closed_pnlDecimal(38, 18)
buyer_crossedUInt8
buyer_dirLowCardinality(String)
buyer_feeDecimal(38, 18)
buyer_order_idUInt64
buyer_start_positionDecimal(38, 18)
buyer_twap_idNullable(UInt64)
硬幣LowCardinality(String)
fee_tokenLowCardinality(String)
indexed_atDateTime64(3, 'UTC')
liquidated_userNullable(FixedString(42))
liquidation_mark_priceNullable(Decimal(38, 18))
liquidation_methodNullable(String)
market_typeString
價格Decimal(38, 18)
seller_addressFixedString(42)
seller_builder_addressNullable(FixedString(42))
seller_builder_feeNullable(Decimal(38, 18))
seller_closed_pnlDecimal(38, 18)
seller_crossedUInt8
seller_dirLowCardinality(String)
seller_feeDecimal(38, 18)
seller_order_idUInt64
seller_start_positionDecimal(38, 18)
seller_twap_idNullable(UInt64)
側面Enum8('B' = 1, 'A' = 2)
大小Decimal(38, 18)
時間戳記DateTime64(3, 'UTC')
total_builder_feeNullable(Decimal(38, 18))
trade_idUInt64
transaction_hashFixedString(66)
unique_idString
usd_amountDecimal(38, 18)

hyperliquid_display_names

Sort Keys: ⚡ block_number, user | Partition: toYYYYMM(snapshot_time)

Column類型Sort Key
block_numberUInt64是的
display_nameString
indexed_atDateTime64(3, 'UTC')
snapshot_timeDateTime64(6, 'UTC')
userFixedString(42)是的

hyperliquid_fills

Sort Keys: ⚡ block_number, tid, user | Partition: toYYYYMM(block_time)

Column類型Sort Key
block_numberUInt64是的
block_timeDateTime64(6, 'UTC')
builderNullable(FixedString(42))
builder_feeNullable(Decimal(38, 18))
cloidNullable(String)
closed_pnlDecimal(38, 18)
硬幣LowCardinality(String)
crossedUInt8
deployer_feeNullable(Decimal(38, 18))
dirLowCardinality(String)
feeDecimal(38, 18)
fee_tokenLowCardinality(String)
hashFixedString(66)
indexed_atDateTime64(3, 'UTC')
is_liquidationUInt8
liquidated_userNullable(FixedString(42))
liquidation_mark_priceNullable(Decimal(38, 18))
liquidation_methodNullable(String)
oidUInt64
價格Decimal(38, 18)
priority_gasNullable(Decimal(38, 18))
側面Enum8('B' = 1, 'A' = 2)
大小Decimal(38, 18)
start_positionDecimal(38, 18)
tidUInt64是的
時間DateTime64(3, 'UTC')
twap_idNullable(UInt64)
userFixedString(42)是的

hyperliquid_funding

Sort Keys: ⚡ block_number, user, coin, time | Partition: toYYYYMM(block_time)

Column類型Sort Key
block_numberUInt64是的
block_timeDateTime64(6, 'UTC')
硬幣LowCardinality(String)是的
funding_amountDecimal(38, 18)
funding_rateDecimal(38, 18)
hashFixedString(66)
indexed_atDateTime64(3, 'UTC')
sziDecimal(38, 18)
時間DateTime64(6, 'UTC')是的
userFixedString(42)是的

hyperliquid_funding_summary_hourly

Sort Keys: ⚡ coin, hour | Partition: toYYYYMM(hour)

Column類型Sort Key
avg_funding_rateSimpleAggregateFunction(any, Float64)
硬幣LowCardinality(String)是的
hourDateTime('UTC')是的
total_fundingSimpleAggregateFunction(sum, Decimal(38, 18))
unique_usersSimpleAggregateFunction(max, UInt64)

hyperliquid_ledger_updates

Sort Keys: ⚡ block_number, user, time, hash | Partition: toYYYYMM(block_time)

Column類型Sort Key
account_valueNullable(Decimal(38, 18))
金額Nullable(Decimal(38, 18))
basisNullable(Decimal(38, 18))
block_numberUInt64是的
block_timeDateTime64(6, 'UTC')
closing_costNullable(Decimal(38, 18))
commissionNullable(Decimal(38, 18))
delta_typeLowCardinality(String)
destinationNullable(FixedString(42))
destination_dexNullable(String)
dexNullable(String)
feeNullable(Decimal(38, 18))
fee_tokenNullable(String)
hashFixedString(66)是的
indexed_atDateTime64(3, 'UTC')
interest_amountNullable(Decimal(38, 18))
is_depositNullable(UInt8)
leverage_typeNullable(String)
liquidated_ntl_posNullable(Decimal(38, 18))
liquidated_positionsNullable(String)
native_token_feeNullable(Decimal(38, 18))
net_withdrawn_usdNullable(Decimal(38, 18))
非重複數Nullable(UInt64)
operationNullable(String)
requested_usdNullable(Decimal(38, 18))
secondary_userNullable(FixedString(42))
source_dexNullable(String)
時間DateTime64(6, 'UTC')是的
to_perpNullable(UInt8)
代幣Nullable(String)
usdc_amountNullable(Decimal(38, 18))
usdc_valueNullable(Decimal(38, 18))
userFixedString(42)是的
vaultNullable(FixedString(42))

hyperliquid_liquidations_hourly

Sort Keys: ⚡ hour, coin | Partition: toYYYYMM(hour)

Column類型Sort Key
硬幣LowCardinality(String)是的
hourDateTime是的
liquidated_volumeSimpleAggregateFunction(sum, Decimal(38, 18))
liquidation_countSimpleAggregateFunction(sum, UInt64)
unique_liquidated_usersSimpleAggregateFunction(max, UInt64)

hyperliquid_market_volume_hourly

Sort Keys: ⚡ coin, hour | Partition: toYYYYMM(hour)

Column類型Sort Key
closeSimpleAggregateFunction(anyLast, Decimal(38, 18))
硬幣LowCardinality(String)是的
highSimpleAggregateFunction(max, Decimal(38, 18))
hourDateTime('UTC')是的
lowSimpleAggregateFunction(min, Decimal(38, 18))
openSimpleAggregateFunction(any, Decimal(38, 18))
trade_countSimpleAggregateFunction(sum, UInt64)
volumeSimpleAggregateFunction(sum, Decimal(38, 18))

hyperliquid_metrics_dex_overview

Sort Keys: ⚡ day, coin | Partition: toYYYYMM(day)

Column類型Sort Key
硬幣LowCardinality(String)是的
dayDate是的
費用SimpleAggregateFunction(sum, Decimal(38, 18))
fill_countSimpleAggregateFunction(sum, UInt64)
high_priceSimpleAggregateFunction(max, Decimal(38, 18))
liquidationsSimpleAggregateFunction(sum, UInt64)
low_priceSimpleAggregateFunction(min, Decimal(38, 18))
unique_tradersSimpleAggregateFunction(max, UInt64)
volume_usdSimpleAggregateFunction(sum, Decimal(38, 18))

hyperliquid_metrics_overview

Sort Keys: ⚡ day | Partition: toYYYYMM(day)

Column類型Sort Key
active_tradersSimpleAggregateFunction(max, UInt64)
builder_fill_countSimpleAggregateFunction(sum, UInt64)
coins_tradedSimpleAggregateFunction(max, UInt64)
dayDate是的
liquidation_countSimpleAggregateFunction(sum, UInt64)
liquidation_volume_usdSimpleAggregateFunction(sum, Decimal(38, 18))
total_builder_feesSimpleAggregateFunction(sum, Decimal(38, 18))
total_feesSimpleAggregateFunction(sum, Decimal(38, 18))
total_fillsSimpleAggregateFunction(sum, UInt64)
total_volume_usdSimpleAggregateFunction(sum, Decimal(38, 18))

hyperliquid_oracle_prices

Sort Keys: ⚡ block_number, clearinghouse, asset_idx | Partition: toYYYYMM(snapshot_time)

Column類型Sort Key
asset_idxUInt16是的
block_numberUInt64是的
clearinghouseUInt8是的
硬幣LowCardinality(String)
daily_pxString
indexed_atDateTime64(3, 'UTC')
mark_pxString
snapshot_timeDateTime64(6, 'UTC')

hyperliquid_order_book_diffs

Sort Keys: ⚡ coin, side, block_number, oid | Partition: toYYYYMM(block_time)

Column類型Sort Key
block_numberUInt64是的
block_timeDateTime64(6, 'UTC')
硬幣LowCardinality(String)是的
diff_typeLowCardinality(String)
indexed_atDateTime64(3, 'UTC')
new_sizeNullable(Decimal(38, 18))
oidUInt64是的
orig_sizeNullable(Decimal(38, 18))
價格Decimal(38, 18)
側面Enum8('B' = 1, 'A' = 2)是的
大小Nullable(Decimal(38, 18))
userFixedString(42)

超流動_訂單

Sort Keys: ⚡ block_number, oid, status_time | Partition: toYYYYMM(block_time)

Column類型Sort Key
block_numberUInt64是的
block_timeDateTime64(6, 'UTC')
builderNullable(String)
childrenNullable(String)
cloidNullable(String)
硬幣LowCardinality(String)
hashNullable(FixedString(66))
indexed_atDateTime64(3, 'UTC')
is_position_tpslUInt8
is_triggerUInt8
limit_priceDecimal(38, 18)
oidUInt64是的
order_timestampDateTime64(3, 'UTC')
訂單類型LowCardinality(String)
orig_sizeDecimal(38, 18)
reduce_onlyUInt8
側面Enum8('B' = 1, 'A' = 2)
大小Decimal(38, 18)
狀態LowCardinality(String)
status_timeDateTime64(6, 'UTC')是的
tifLowCardinality(String)
trigger_conditionNullable(String)
trigger_priceNullable(Decimal(38, 18))
unique_idString
userFixedString(42)

超流動性_結果_市場

Sort Keys: ⚡ none | Partition: none

Column類型Sort Key
base_token_idxNullable(UInt64)
block_numberUInt64
硬幣Nullable(String)
說明String
expiryString
fee_shareFloat64
first_enabled_as_quoteString
indexed_atDateTime64(3, 'UTC')
is_liquid_baseUInt8
is_liquid_quoteUInt8
lockedUInt8
名稱LowCardinality(String)
ndoUInt64
nouUInt64
nquUInt64
outcome_classLowCardinality(String)
outcome_idUInt64
pair_nameString
periodLowCardinality(String)
quote_rawNullable(UInt64)
quote_token_idxNullable(UInt64)
quote_token_nameNullable(String)
quote_token_statusLowCardinality(String)
quote_token_usdc_pxDecimal(38, 18)
quote_token_usdc_px_rawUInt64
raw_side_jsonString
raw_spec_jsonString
side_countUInt16
side_indexUInt8
side_nameLowCardinality(String)
snapshot_timeDateTime64(6, 'UTC')
spot_deploy_timeString
spot_indexNullable(UInt64)
spot_resolutionLowCardinality(String)
target_priceString
token_idxNullable(UInt64)
token_nameNullable(String)
underlyingLowCardinality(String)

hyperliquid_outcome_meta

Sort Keys: ⚡ block_number, outcome_id | Partition: toYYYYMM(snapshot_time)

Column類型Sort Key
block_numberUInt64是的
deploy_gas_auction_jsonString
說明String
expiryString
fee_shareFloat64
indexed_atDateTime64(3, 'UTC')
lockedUInt8
名稱LowCardinality(String)
ndoUInt64
nouUInt64
nquUInt64
outcome_classLowCardinality(String)
outcome_idUInt64是的
periodLowCardinality(String)
quote_rawNullable(UInt64)
raw_spec_jsonString
side_countUInt16
snapshot_timeDateTime64(6, 'UTC')
target_priceString
underlyingLowCardinality(String)

hyperliquid_outcome_question_members

Sort Keys: ⚡ block_number, question_id, outcome_id | Partition: toYYYYMM(snapshot_time)

Column類型Sort Key
block_numberUInt64是的
indexed_atDateTime64(3, 'UTC')
is_fallbackUInt8
is_settledUInt8
outcome_idUInt64是的
question_idUInt64是的
snapshot_timeDateTime64(6, 'UTC')
來源LowCardinality(String)

hyperliquid_outcome_questions

Sort Keys: ⚡ block_number, question_id | Partition: toYYYYMM(snapshot_time)

Column類型Sort Key
block_numberUInt64是的
說明String
fallback_outcomeNullable(UInt64)
indexed_atDateTime64(3, 'UTC')
名稱String
named_outcomes_jsonString
question_idUInt64是的
raw_question_jsonString
settled_named_outcomes_jsonString
snapshot_timeDateTime64(6, 'UTC')

hyperliquid_outcome_sides

Sort Keys: ⚡ block_number, outcome_id, side_index | Partition: toYYYYMM(snapshot_time)

Column類型Sort Key
base_token_idxNullable(UInt64)
block_numberUInt64是的
硬幣Nullable(String)
indexed_atDateTime64(3, 'UTC')
outcome_idUInt64是的
quote_token_idxNullable(UInt64)
quote_token_nameNullable(String)
raw_side_jsonString
side_indexUInt8是的
side_m_rawString
side_m_valueNullable(Int64)
side_nameLowCardinality(String)
snapshot_timeDateTime64(6, 'UTC')
spot_indexNullable(UInt64)
spot_indices_jsonString
spot_resolutionLowCardinality(String)
token_idxNullable(UInt64)
token_nameNullable(String)

hyperliquid_perpetual_market_contexts

Sort Keys: ⚡ none | Partition: none

Column類型Sort Key
硬幣LowCardinality(String)
day_base_vlmDecimal(38, 18)
day_ntl_vlmDecimal(38, 18)
fundingDecimal(38, 18)
impact_askNullable(Decimal(38, 18))
impact_bidNullable(Decimal(38, 18))
mark_pxDecimal(38, 18)
mid_pxDecimal(38, 18)
open_interestDecimal(38, 18)
oracle_pxDecimal(38, 18)
polled_atDateTime64(6, 'UTC')
premiumDecimal(38, 18)
prev_day_pxDecimal(38, 18)

hyperliquid_perpetual_markets

Sort Keys: ⚡ coin | Partition: none

Column類型Sort Key
硬幣LowCardinality(String)是的
indexed_atDateTime64(3, 'UTC')
margin_table_idNullable(UInt16)
market_indexUInt16
max_leverageUInt16
only_isolatedUInt8
sz_decimalsUInt8

hyperliquid_perpetual_positions

Sort Keys: ⚡ block_number, clearinghouse, user, asset_idx | Partition: toYYYYMM(snapshot_time)

Column類型Sort Key
asset_idxUInt16是的
block_numberUInt64是的
clearinghouseUInt8是的
硬幣String
entry_notionalUInt64
funding_alltimeInt64
funding_since_changeInt64
funding_since_openInt64
indexed_atDateTime64(3, 'UTC')
marginUInt64
大小Int64
snapshot_timeDateTime64(6, 'UTC')
usdc_balanceInt64
userString是的

hyperliquid_quote_token_meta

Sort Keys: ⚡ block_number, token_idx | Partition: toYYYYMM(snapshot_time)

Column類型Sort Key
aligned_quote_info_jsonString
block_numberUInt64是的
first_enabled_as_quoteString
indexed_atDateTime64(3, 'UTC')
is_liquid_baseUInt8
is_liquid_quoteUInt8
snapshot_timeDateTime64(6, 'UTC')
狀態LowCardinality(String)
token_idxUInt64是的
token_nameLowCardinality(String)

hyperliquid_register_referral

Sort Keys: ⚡ referral_code, user | Partition: none

Column類型Sort Key
block_timeDateTime64(6, 'UTC')
錯誤Nullable(String)
indexed_atDateTime64(3, 'UTC')
is_successUInt8
referral_codeString是的
圓形UInt64
tx_hashString
userString是的

hyperliquid_set_referrer

Sort Keys: ⚡ referral_code, user | Partition: none

Column類型Sort Key
block_timeDateTime64(6, 'UTC')
錯誤Nullable(String)
indexed_atDateTime64(3, 'UTC')
is_successUInt8
referral_codeString是的
圓形UInt64
tx_hashString
userString是的

hyperliquid_spot_balances

Sort Keys: ⚡ block_number, user, token_idx | Partition: toYYYYMM(snapshot_time)

Column類型Sort Key
block_numberUInt64是的
escrowedInt64
indexed_atDateTime64(3, 'UTC')
snapshot_timeDateTime64(6, 'UTC')
代幣String
token_idxUInt16是的
總計Int64
userString是的

hyperliquid_spot_clearinghouse_states

Sort Keys: ⚡ block_number, user, token_idx | Partition: toYYYYMM(snapshot_time)

Column類型Sort Key
block_numberUInt64是的
escrowedInt64
indexed_atDateTime64(3, 'UTC')
snapshot_timeDateTime64(6, 'UTC')
代幣LowCardinality(String)
token_idxUInt16是的
總計Int64
userFixedString(42)是的

hyperliquid_spot_markets

Sort Keys: ⚡ token_index | Partition: none

Column類型Sort Key
deployer_trading_fee_shareNullable(String)
evm_contractNullable(String)
full_nameNullable(String)
indexed_atDateTime64(3, 'UTC')
is_canonicalUInt8
pair_indexNullable(UInt16)
pair_nameNullable(String)
sz_decimalsUInt8
代幣LowCardinality(String)
token_idString
token_indexUInt16是的
wei_decimalsUInt8

hyperliquid_spot_pairs

Sort Keys: ⚡ block_number, spot_index | Partition: toYYYYMM(snapshot_time)

Column類型Sort Key
base_token_idxUInt64
base_token_nameLowCardinality(String)
block_numberUInt64是的
deploy_timeString
indexed_atDateTime64(3, 'UTC')
pair_nameString
quote_token_idxUInt64
quote_token_nameLowCardinality(String)
raw_spot_info_jsonString
snapshot_timeDateTime64(6, 'UTC')
spot_indexUInt64是的

hyperliquid_staking_events

Sort Keys: ⚡ block_number, hash | Partition: toYYYYMM(block_time)

Column類型Sort Key
金額Decimal(38, 18)
block_numberUInt64是的
block_timeDateTime64(6, 'UTC')
event_typeEnum8('CDeposit' = 1, 'CWithdrawal' = 2, 'Delegation' = 3)
hashFixedString(66)是的
indexed_atDateTime64(3, 'UTC')
is_finalizedNullable(UInt8)
is_undelegateNullable(UInt8)
時間DateTime64(6, 'UTC')
userFixedString(42)
驗證器Nullable(FixedString(42))

hyperliquid_sub_accounts

Sort Keys: ⚡ block_number, sub_account | Partition: toYYYYMM(snapshot_time)

Column類型Sort Key
block_numberUInt64是的
indexed_atDateTime64(3, 'UTC')
master_accountFixedString(42)
名稱Nullable(String)
snapshot_timeDateTime64(6, 'UTC')
sub_accountFixedString(42)是的

hyperliquid_summaries

Sort Keys: ⚡ user, polled_at | Partition: toYYYYMM(polled_at)

Column類型Sort Key
cross_maintenance_margin_usedDecimal(38, 18)
cross_margin_account_valueDecimal(38, 18)
cross_margin_total_margin_usedDecimal(38, 18)
cross_margin_total_natl_posDecimal(38, 18)
cross_margin_total_raw_usdDecimal(38, 18)
indexed_atDateTime64(3, 'UTC')
margin_account_valueDecimal(38, 18)
margin_total_margin_usedDecimal(38, 18)
margin_total_natl_posDecimal(38, 18)
margin_total_raw_usdDecimal(38, 18)
polled_atDateTime64(3, 'UTC')是的
userString是的
withdrawableDecimal(38, 18)

hyperliquid_system_actions

Sort Keys: ⚡ block_number, evm_tx_hash, nonce | Partition: toYYYYMM(block_time)

Column類型Sort Key
動作String
action_typeLowCardinality(String)
agent_addressNullable(FixedString(42))
agent_nameNullable(String)
block_numberUInt64是的
block_timeDateTime64(6, 'UTC')
destinationNullable(FixedString(42))
destination_dex_or_spotNullable(UInt8)
evm_tx_hashFixedString(66)是的
from_sub_accountNullable(UInt8)
hyperliquid_chainNullable(String)
indexed_atDateTime64(3, 'UTC')
is_mintNullable(UInt8)
is_undelegateNullable(UInt8)
非重複數UInt64是的
ntlNullable(Decimal(38, 18))
order_groupingNullable(String)
signature_chain_idNullable(String)
source_dex_or_spotNullable(UInt8)
to_perpNullable(UInt8)
代幣Nullable(UInt16)
userFixedString(42)
驗證器Nullable(FixedString(42))
weiNullable(UInt256)

hyperliquid_token_usdc_prices

Sort Keys: ⚡ block_number, token_idx | Partition: toYYYYMM(snapshot_time)

Column類型Sort Key
approx_usdc_pxDecimal(38, 18)
approx_usdc_px_float_1e6Float64
approx_usdc_px_rawUInt64
block_numberUInt64是的
indexed_atDateTime64(3, 'UTC')
raw_pair_jsonString
snapshot_timeDateTime64(6, 'UTC')
token_idxUInt64是的
token_nameLowCardinality(String)

hyperliquid_trades

Sort Keys: ⚡ block_number, trade_id | Partition: toYYYYMM(block_time)

Column類型Sort Key
block_numberUInt64是的
block_timeDateTime64(6, 'UTC')
buyer_addressFixedString(42)
buyer_builder_addressNullable(FixedString(42))
buyer_builder_feeNullable(Decimal(38, 18))
buyer_closed_pnlDecimal(38, 18)
buyer_crossedUInt8
buyer_deployer_feeNullable(Decimal(38, 18))
buyer_dirLowCardinality(String)
buyer_feeDecimal(38, 18)
buyer_order_idUInt64
buyer_priority_gasNullable(Decimal(38, 18))
buyer_start_positionDecimal(38, 18)
buyer_twap_idNullable(UInt64)
硬幣LowCardinality(String)
fee_tokenLowCardinality(String)
indexed_atDateTime64(3, 'UTC')
liquidated_userNullable(FixedString(42))
liquidation_mark_priceNullable(Decimal(38, 18))
liquidation_methodNullable(String)
價格Decimal(38, 18)
seller_addressFixedString(42)
seller_builder_addressNullable(FixedString(42))
seller_builder_feeNullable(Decimal(38, 18))
seller_closed_pnlDecimal(38, 18)
seller_crossedUInt8
seller_deployer_feeNullable(Decimal(38, 18))
seller_dirLowCardinality(String)
seller_feeDecimal(38, 18)
seller_order_idUInt64
seller_priority_gasNullable(Decimal(38, 18))
seller_start_positionDecimal(38, 18)
seller_twap_idNullable(UInt64)
側面Enum8('B' = 1, 'A' = 2)
大小Decimal(38, 18)
時間戳記DateTime64(3, 'UTC')
total_builder_feeNullable(Decimal(38, 18))
trade_idUInt64是的
transaction_hashFixedString(66)
unique_idString

hyperliquid_transactions

Sort Keys: ⚡ round, tx_hash, nonce | Partition: toYYYYMM(block_time)

Column類型Sort Key
動作JSON
action_typeLowCardinality(String)
block_timeDateTime64(6, 'UTC')
錯誤Nullable(String)
indexed_atDateTime64(3, 'UTC')
is_successUInt8
非重複數UInt64是的
提案人Nullable(String)
圓形UInt64是的
tx_hashString是的
userNullable(String)
vault_addressNullable(String)

hyperliquid_twap_statuses

Sort Keys: ⚡ block_number, twap_id, time | Partition: toYYYYMM(block_time)

Column類型Sort Key
block_numberUInt64是的
block_timeDateTime64(6, 'UTC')
硬幣LowCardinality(String)
executed_ntlDecimal(38, 18)
executed_sizeDecimal(38, 18)
indexed_atDateTime64(3, 'UTC')
minutesUInt16
randomizeUInt8
reduce_onlyUInt8
側面Enum8('B' = 1, 'A' = 2)
大小Decimal(38, 18)
狀態LowCardinality(String)
時間DateTime64(6, 'UTC')是的
時間戳記DateTime64(3, 'UTC')
twap_idUInt64是的
userFixedString(42)

hyperliquid_validator_rewards

Sort Keys: ⚡ block_number, validator, time | Partition: toYYYYMM(block_time)

Column類型Sort Key
block_numberUInt64是的
block_timeDateTime64(6, 'UTC')
hashFixedString(66)
indexed_atDateTime64(3, 'UTC')
獎勵Decimal(38, 18)
時間DateTime64(6, 'UTC')是的
驗證器FixedString(42)是的

hyperliquid_vault_equities

Sort Keys: ⚡ block_number, vault_address, depositor | Partition: toYYYYMM(snapshot_time)

Column類型Sort Key
block_numberUInt64是的
depositorFixedString(42)是的
indexed_atDateTime64(3, 'UTC')
leaderFixedString(42)
leader_commissionFloat64
net_depositsInt64
ownership_fractionFloat64
snapshot_timeDateTime64(6, 'UTC')
vault_addressFixedString(42)是的
vault_nameString

All tables are optimized with sort keys (marked ⚡ in the schema browser) and partition monthly by toYYYYMM(block_time) for efficient time-bounded queries. Data ingestion is near real-time with queries scanning across billions of rows in seconds.

Accessing the Schema

The schema can be accessed as static downloadable files or via the API endpoint.

Downloadable Files

These files are updated periodically:


Schema API

Fetch the current schema with real-time row counts and latest table structures. See the REST API Overview for API authentication details.

Request (Hyperliquid):

curl https://api.quicknode.com/sql/rest/v1/schema/hyperliquid-core-mainnet \
-H "x-api-key: YOUR_API_KEY"

替換 hyperliquid-core-mainnet with the appropriate cluster ID for other supported chains.

Example Response:

[
{
"chain": "Hyperliquid (HyperCore)",
"clusterId": "hyperliquid-core-mainnet",
"tables": [
{
"name": "hyperliquid_agents",
"engine": "SharedReplacingMergeTree",
"totalRows": 55686595,
"sortingKey": ["block_number", "agent"],
"partitionKey": "toYYYYMM(snapshot_time)",
"columns": [
{
"name": "block_number",
"type": "UInt64"
},
{
"name": "snapshot_time",
"type": "DateTime64(6, 'UTC')"
},
{
"name": "agent",
"type": "FixedString(42)"
}
// ... more columns
]
}
// ... more tables
]
}
]

The response includes table names, engines, column names and data types, sort keys for optimization, partition strategies, and current row counts.

For AI Agents & LLMs

This schema is specifically formatted for programmatic consumption.

Quicknode Skill

For AI agents and LLM applications, install the Quicknode Skill to give your agent full knowledge of SQL Explorer and all Quicknode products:

npx skills add quiknode-labs/blockchain-skills

Using Schema in Your Agent

When building custom AI agents or LLM applications:

  1. Fetch the schema via the API endpoint above or download the plain text schema optimized for LLM context windows
  2. Include it in your prompt context when generating SQL queries
  3. Reference sort keys for optimal query performance
  4. Use partition keys to limit data scans

Example prompts for AI agents:

Example 1: Generate a SQL query to find the top 10 traders by volume in the last 24 hours.
Schema: [include JSON from schema API or plain text schema file]

Example 2: Create a query to analyze funding rate changes for the BTC perpetual market over the past week, grouped by hour.
Schema: [include JSON from schema API or plain text schema file]

Example 3: Write a SQL query to identify liquidation events larger than $100K in the last 30 days, showing the user, asset, and liquidation size.
Schema: [include JSON from schema API or plain text schema file]

我們 ❤️ 您的回饋!

如果您對這份文件有任何意見或疑問,請告訴我們。我們非常樂意聽取您的意見!

分享這份文件