Passer au contenu principal

Référence du schéma

Mis à jour le
2 avril 2026

Aperçu

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.

Identifiant du cluster : 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)

ColumnTypeSort Key
agentFixedString(42)Oui
block_numberUInt64Oui
indexed_atDateTime64(3, 'UTC')Non
nomStringNon
snapshot_timeDateTime64(6, 'UTC')Non
utilisateurFixedString(42)Non
valid_untilStringNon

hyperliquid_asset_transfers

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

ColumnTypeSort Key
montantNullable(Decimal(38, 18))Non
block_numberUInt64Oui
block_timeDateTime64(6, 'UTC')Non
destinationNullable(FixedString(42))Non
fraisNullable(Decimal(38, 18))Non
indexed_atDateTime64(3, 'UTC')Non
NonceNullable(UInt64)Non
HeureDateTime64(6, 'UTC')Non
jetonNullable(String)Non
transfer_typeLowCardinality(String)Non
tx_hashFixedString(66)Oui
usdc_amountNullable(Decimal(38, 18))Non
utilisateurFixedString(42)Oui

hyperliquid_blocks

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

ColumnTypeSort Key
block_numberUInt64Oui
block_timeDateTime64(6, 'UTC')Non
book_diffs_countUInt32Non
fills_countUInt32Non
indexed_atDateTime64(3, 'UTC')Non
misc_events_countUInt32Non
orders_countUInt32Non
twap_statuses_countUInt32Non
writer_actions_countUInt32Non

hyperliquid_bridge

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

ColumnTypeSort Key
amount_weiUInt64Non
block_numberUInt64Oui
bridge_typeLowCardinality(String)Oui
eth_block_numberUInt64Oui
event_timeStringNon
indexed_atDateTime64(3, 'UTC')Non
NonceUInt64Oui
snapshot_timeDateTime64(6, 'UTC')Non
tx_hashStringOui
utilisateurFixedString(42)Oui

hyperliquid_builder_fills

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

ColumnTypeSort Key
block_numberUInt64Non
block_timeDateTime64(6, 'UTC')Non
builder_addressNullable(FixedString(42))Oui
builder_feeNullable(Decimal(38, 18))Non
cloidNullable(String)Non
closed_pnlDecimal(38, 18)Non
pièce de monnaieLowCardinality(String)Non
created_atDateTime64(6, 'UTC')Non
crossedUInt8Non
dirLowCardinality(String)Non
fraisDecimal(38, 18)Non
hachageFixedString(66)Non
indexed_atDateTime64(3, 'UTC')Non
is_liquidationUInt8Non
liquidated_userNullable(FixedString(42))Non
liquidation_mark_priceNullable(Decimal(38, 18))Non
liquidation_methodNullable(String)Non
oidUInt64Non
prixDecimal(38, 18)Non
côtéEnum8('B' = 1, 'A' = 2)Non
TailleDecimal(38, 18)Non
start_positionDecimal(38, 18)Non
tidUInt64Oui
horodatageDateTime64(3, 'UTC')Oui
twap_idNullable(UInt64)Non
updated_atDateTime64(6, 'UTC')Non
utilisateurFixedString(42)Non

hyperliquid_builder_transactions

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

ColumnTypeSort Key
action_typeLowCardinality(String)Non
block_numberUInt64Oui
block_timeDateTime64(6, 'UTC')Non
builderStringNon
builder_feeNullable(Decimal(38, 18))Non
pièce de monnaieNullable(String)Non
hachageStringOui
indexed_atDateTime64(3, 'UTC')Non
is_successUInt8Non
utilisateurStringOui

hyperliquid_clearinghouse_states

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

ColumnTypeSort Key
asset_idxUInt16Oui
block_numberUInt64Oui
clearinghouseUInt8Oui
pièce de monnaieLowCardinality(String)Non
entry_notionalUInt64Non
funding_alltimeInt64Non
funding_since_changeInt64Non
funding_since_openInt64Non
indexed_atDateTime64(3, 'UTC')Non
marginUInt64Non
TailleInt64Non
snapshot_timeDateTime64(6, 'UTC')Non
usdc_balanceInt64Non
utilisateurFixedString(42)Oui

hyperliquid_delegator_rewards

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

ColumnTypeSort Key
block_numberUInt64Oui
cUInt64Non
commission_bpsUInt16Non
delegatorFixedString(42)Oui
eUInt64Non
indexed_atDateTime64(3, 'UTC')Non
mUInt64Non
récompenseDecimal(38, 8)Non
reward_weiUInt64Non
snapshot_timeDateTime64(6, 'UTC')Non
sourceLowCardinality(String)Non
validateurFixedString(42)Oui
validator_total_delegatedUInt64Non

hyperliquid_dex_trades

Sort Keys: ⚡ none | Partition: none

ColumnTypeSort Key
block_numberUInt64Non
block_timeDateTime64(6, 'UTC')Non
buyer_addressFixedString(42)Non
buyer_builder_addressNullable(FixedString(42))Non
buyer_builder_feeNullable(Decimal(38, 18))Non
buyer_closed_pnlDecimal(38, 18)Non
buyer_crossedUInt8Non
buyer_dirLowCardinality(String)Non
buyer_feeDecimal(38, 18)Non
buyer_order_idUInt64Non
buyer_start_positionDecimal(38, 18)Non
buyer_twap_idNullable(UInt64)Non
pièce de monnaieLowCardinality(String)Non
fee_tokenLowCardinality(String)Non
indexed_atDateTime64(3, 'UTC')Non
liquidated_userNullable(FixedString(42))Non
liquidation_mark_priceNullable(Decimal(38, 18))Non
liquidation_methodNullable(String)Non
market_typeStringNon
prixDecimal(38, 18)Non
seller_addressFixedString(42)Non
seller_builder_addressNullable(FixedString(42))Non
seller_builder_feeNullable(Decimal(38, 18))Non
seller_closed_pnlDecimal(38, 18)Non
seller_crossedUInt8Non
seller_dirLowCardinality(String)Non
seller_feeDecimal(38, 18)Non
seller_order_idUInt64Non
seller_start_positionDecimal(38, 18)Non
seller_twap_idNullable(UInt64)Non
côtéEnum8('B' = 1, 'A' = 2)Non
TailleDecimal(38, 18)Non
horodatageDateTime64(3, 'UTC')Non
total_builder_feeNullable(Decimal(38, 18))Non
trade_idUInt64Non
transaction_hashFixedString(66)Non
unique_idStringNon
usd_amountDecimal(38, 18)Non

hyperliquid_display_names

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

ColumnTypeSort Key
block_numberUInt64Oui
display_nameStringNon
indexed_atDateTime64(3, 'UTC')Non
snapshot_timeDateTime64(6, 'UTC')Non
utilisateurFixedString(42)Oui

hyperliquid_fills

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

ColumnTypeSort Key
block_numberUInt64Oui
block_timeDateTime64(6, 'UTC')Non
builderNullable(FixedString(42))Non
builder_feeNullable(Decimal(38, 18))Non
cloidNullable(String)Non
closed_pnlDecimal(38, 18)Non
pièce de monnaieLowCardinality(String)Non
crossedUInt8Non
deployer_feeNullable(Decimal(38, 18))Non
dirLowCardinality(String)Non
fraisDecimal(38, 18)Non
fee_tokenLowCardinality(String)Non
hachageFixedString(66)Non
indexed_atDateTime64(3, 'UTC')Non
is_liquidationUInt8Non
liquidated_userNullable(FixedString(42))Non
liquidation_mark_priceNullable(Decimal(38, 18))Non
liquidation_methodNullable(String)Non
oidUInt64Non
prixDecimal(38, 18)Non
priority_gasNullable(Decimal(38, 18))Non
côtéEnum8('B' = 1, 'A' = 2)Non
TailleDecimal(38, 18)Non
start_positionDecimal(38, 18)Non
tidUInt64Oui
HeureDateTime64(3, 'UTC')Non
twap_idNullable(UInt64)Non
utilisateurFixedString(42)Oui

hyperliquid_funding

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

ColumnTypeSort Key
block_numberUInt64Oui
block_timeDateTime64(6, 'UTC')Non
pièce de monnaieLowCardinality(String)Oui
funding_amountDecimal(38, 18)Non
funding_rateDecimal(38, 18)Non
hachageFixedString(66)Non
indexed_atDateTime64(3, 'UTC')Non
sziDecimal(38, 18)Non
HeureDateTime64(6, 'UTC')Oui
utilisateurFixedString(42)Oui

hyperliquid_funding_summary_hourly

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

ColumnTypeSort Key
avg_funding_rateSimpleAggregateFunction(any, Float64)Non
pièce de monnaieLowCardinality(String)Oui
hourDateTime('UTC')Oui
total_fundingSimpleAggregateFunction(sum, Decimal(38, 18))Non
unique_usersSimpleAggregateFunction(max, UInt64)Non

hyperliquid_ledger_updates

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

ColumnTypeSort Key
account_valueNullable(Decimal(38, 18))Non
montantNullable(Decimal(38, 18))Non
basisNullable(Decimal(38, 18))Non
block_numberUInt64Oui
block_timeDateTime64(6, 'UTC')Non
closing_costNullable(Decimal(38, 18))Non
commissionNullable(Decimal(38, 18))Non
delta_typeLowCardinality(String)Non
destinationNullable(FixedString(42))Non
destination_dexNullable(String)Non
dexNullable(String)Non
fraisNullable(Decimal(38, 18))Non
fee_tokenNullable(String)Non
hachageFixedString(66)Oui
indexed_atDateTime64(3, 'UTC')Non
interest_amountNullable(Decimal(38, 18))Non
is_depositNullable(UInt8)Non
leverage_typeNullable(String)Non
liquidated_ntl_posNullable(Decimal(38, 18))Non
liquidated_positionsNullable(String)Non
native_token_feeNullable(Decimal(38, 18))Non
net_withdrawn_usdNullable(Decimal(38, 18))Non
NonceNullable(UInt64)Non
operationNullable(String)Non
requested_usdNullable(Decimal(38, 18))Non
secondary_userNullable(FixedString(42))Non
source_dexNullable(String)Non
HeureDateTime64(6, 'UTC')Oui
to_perpNullable(UInt8)Non
jetonNullable(String)Non
usdc_amountNullable(Decimal(38, 18))Non
usdc_valueNullable(Decimal(38, 18))Non
utilisateurFixedString(42)Oui
vaultNullable(FixedString(42))Non

hyperliquid_liquidations_hourly

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

ColumnTypeSort Key
pièce de monnaieLowCardinality(String)Oui
hourDateTimeOui
liquidated_volumeSimpleAggregateFunction(sum, Decimal(38, 18))Non
liquidation_countSimpleAggregateFunction(sum, UInt64)Non
unique_liquidated_usersSimpleAggregateFunction(max, UInt64)Non

hyperliquid_market_volume_hourly

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

ColumnTypeSort Key
closeSimpleAggregateFunction(anyLast, Decimal(38, 18))Non
pièce de monnaieLowCardinality(String)Oui
highSimpleAggregateFunction(max, Decimal(38, 18))Non
hourDateTime('UTC')Oui
lowSimpleAggregateFunction(min, Decimal(38, 18))Non
ouvrirSimpleAggregateFunction(any, Decimal(38, 18))Non
trade_countSimpleAggregateFunction(sum, UInt64)Non
volumeSimpleAggregateFunction(sum, Decimal(38, 18))Non

hyperliquid_metrics_dex_overview

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

ColumnTypeSort Key
pièce de monnaieLowCardinality(String)Oui
dayDateOui
fraisSimpleAggregateFunction(sum, Decimal(38, 18))Non
fill_countSimpleAggregateFunction(sum, UInt64)Non
high_priceSimpleAggregateFunction(max, Decimal(38, 18))Non
liquidationsSimpleAggregateFunction(sum, UInt64)Non
low_priceSimpleAggregateFunction(min, Decimal(38, 18))Non
unique_tradersSimpleAggregateFunction(max, UInt64)Non
volume_usdSimpleAggregateFunction(sum, Decimal(38, 18))Non

hyperliquid_metrics_overview

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

ColumnTypeSort Key
active_tradersSimpleAggregateFunction(max, UInt64)Non
builder_fill_countSimpleAggregateFunction(sum, UInt64)Non
coins_tradedSimpleAggregateFunction(max, UInt64)Non
dayDateOui
liquidation_countSimpleAggregateFunction(sum, UInt64)Non
liquidation_volume_usdSimpleAggregateFunction(sum, Decimal(38, 18))Non
total_builder_feesSimpleAggregateFunction(sum, Decimal(38, 18))Non
total_feesSimpleAggregateFunction(sum, Decimal(38, 18))Non
total_fillsSimpleAggregateFunction(sum, UInt64)Non
total_volume_usdSimpleAggregateFunction(sum, Decimal(38, 18))Non

hyperliquid_oracle_prices

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

ColumnTypeSort Key
asset_idxUInt16Oui
block_numberUInt64Oui
clearinghouseUInt8Oui
pièce de monnaieLowCardinality(String)Non
daily_pxStringNon
indexed_atDateTime64(3, 'UTC')Non
mark_pxStringNon
snapshot_timeDateTime64(6, 'UTC')Non

hyperliquid_order_book_diffs

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

ColumnTypeSort Key
block_numberUInt64Oui
block_timeDateTime64(6, 'UTC')Non
pièce de monnaieLowCardinality(String)Oui
diff_typeLowCardinality(String)Non
indexed_atDateTime64(3, 'UTC')Non
new_sizeNullable(Decimal(38, 18))Non
oidUInt64Oui
orig_sizeNullable(Decimal(38, 18))Non
prixDecimal(38, 18)Non
côtéEnum8('B' = 1, 'A' = 2)Oui
TailleNullable(Decimal(38, 18))Non
utilisateurFixedString(42)Non

commandes_hyperliquides

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

ColumnTypeSort Key
block_numberUInt64Oui
block_timeDateTime64(6, 'UTC')Non
builderNullable(String)Non
childrenNullable(String)Non
cloidNullable(String)Non
pièce de monnaieLowCardinality(String)Non
hachageNullable(FixedString(66))Non
indexed_atDateTime64(3, 'UTC')Non
is_position_tpslUInt8Non
is_triggerUInt8Non
limit_priceDecimal(38, 18)Non
oidUInt64Oui
order_timestampDateTime64(3, 'UTC')Non
order_typeLowCardinality(String)Non
orig_sizeDecimal(38, 18)Non
reduce_onlyUInt8Non
côtéEnum8('B' = 1, 'A' = 2)Non
TailleDecimal(38, 18)Non
statutLowCardinality(String)Non
status_timeDateTime64(6, 'UTC')Oui
tifLowCardinality(String)Non
trigger_conditionNullable(String)Non
trigger_priceNullable(Decimal(38, 18))Non
unique_idStringNon
utilisateurFixedString(42)Non

marchés_des_résultats_hyperliquides

Sort Keys: ⚡ none | Partition: none

ColumnTypeSort Key
base_token_idxNullable(UInt64)Non
block_numberUInt64Non
pièce de monnaieNullable(String)Non
descriptionStringNon
expiryStringNon
fee_shareFloat64Non
first_enabled_as_quoteStringNon
indexed_atDateTime64(3, 'UTC')Non
is_liquid_baseUInt8Non
is_liquid_quoteUInt8Non
lockedUInt8Non
nomLowCardinality(String)Non
ndoUInt64Non
nouUInt64Non
nquUInt64Non
outcome_classLowCardinality(String)Non
outcome_idUInt64Non
pair_nameStringNon
periodLowCardinality(String)Non
quote_rawNullable(UInt64)Non
quote_token_idxNullable(UInt64)Non
quote_token_nameNullable(String)Non
quote_token_statusLowCardinality(String)Non
quote_token_usdc_pxDecimal(38, 18)Non
quote_token_usdc_px_rawUInt64Non
raw_side_jsonStringNon
raw_spec_jsonStringNon
side_countUInt16Non
side_indexUInt8Non
side_nameLowCardinality(String)Non
snapshot_timeDateTime64(6, 'UTC')Non
spot_deploy_timeStringNon
spot_indexNullable(UInt64)Non
spot_resolutionLowCardinality(String)Non
target_priceStringNon
token_idxNullable(UInt64)Non
token_nameNullable(String)Non
underlyingLowCardinality(String)Non

hyperliquid_outcome_meta

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

ColumnTypeSort Key
block_numberUInt64Oui
deploy_gas_auction_jsonStringNon
descriptionStringNon
expiryStringNon
fee_shareFloat64Non
indexed_atDateTime64(3, 'UTC')Non
lockedUInt8Non
nomLowCardinality(String)Non
ndoUInt64Non
nouUInt64Non
nquUInt64Non
outcome_classLowCardinality(String)Non
outcome_idUInt64Oui
periodLowCardinality(String)Non
quote_rawNullable(UInt64)Non
raw_spec_jsonStringNon
side_countUInt16Non
snapshot_timeDateTime64(6, 'UTC')Non
target_priceStringNon
underlyingLowCardinality(String)Non

hyperliquid_outcome_question_members

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

ColumnTypeSort Key
block_numberUInt64Oui
indexed_atDateTime64(3, 'UTC')Non
is_fallbackUInt8Non
is_settledUInt8Non
outcome_idUInt64Oui
question_idUInt64Oui
snapshot_timeDateTime64(6, 'UTC')Non
sourceLowCardinality(String)Non

hyperliquid_outcome_questions

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

ColumnTypeSort Key
block_numberUInt64Oui
descriptionStringNon
fallback_outcomeNullable(UInt64)Non
indexed_atDateTime64(3, 'UTC')Non
nomStringNon
named_outcomes_jsonStringNon
question_idUInt64Oui
raw_question_jsonStringNon
settled_named_outcomes_jsonStringNon
snapshot_timeDateTime64(6, 'UTC')Non

hyperliquid_outcome_sides

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

ColumnTypeSort Key
base_token_idxNullable(UInt64)Non
block_numberUInt64Oui
pièce de monnaieNullable(String)Non
indexed_atDateTime64(3, 'UTC')Non
outcome_idUInt64Oui
quote_token_idxNullable(UInt64)Non
quote_token_nameNullable(String)Non
raw_side_jsonStringNon
side_indexUInt8Oui
side_m_rawStringNon
side_m_valueNullable(Int64)Non
side_nameLowCardinality(String)Non
snapshot_timeDateTime64(6, 'UTC')Non
spot_indexNullable(UInt64)Non
spot_indices_jsonStringNon
spot_resolutionLowCardinality(String)Non
token_idxNullable(UInt64)Non
token_nameNullable(String)Non

hyperliquid_perpetual_market_contexts

Sort Keys: ⚡ none | Partition: none

ColumnTypeSort Key
pièce de monnaieLowCardinality(String)Non
day_base_vlmDecimal(38, 18)Non
day_ntl_vlmDecimal(38, 18)Non
fundingDecimal(38, 18)Non
impact_askNullable(Decimal(38, 18))Non
impact_bidNullable(Decimal(38, 18))Non
mark_pxDecimal(38, 18)Non
mid_pxDecimal(38, 18)Non
open_interestDecimal(38, 18)Non
oracle_pxDecimal(38, 18)Non
polled_atDateTime64(6, 'UTC')Non
premiumDecimal(38, 18)Non
prev_day_pxDecimal(38, 18)Non

hyperliquid_perpetual_markets

Sort Keys: ⚡ coin | Partition: none

ColumnTypeSort Key
pièce de monnaieLowCardinality(String)Oui
indexed_atDateTime64(3, 'UTC')Non
margin_table_idNullable(UInt16)Non
market_indexUInt16Non
max_leverageUInt16Non
only_isolatedUInt8Non
sz_decimalsUInt8Non

hyperliquid_perpetual_positions

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

ColumnTypeSort Key
asset_idxUInt16Oui
block_numberUInt64Oui
clearinghouseUInt8Oui
pièce de monnaieStringNon
entry_notionalUInt64Non
funding_alltimeInt64Non
funding_since_changeInt64Non
funding_since_openInt64Non
indexed_atDateTime64(3, 'UTC')Non
marginUInt64Non
TailleInt64Non
snapshot_timeDateTime64(6, 'UTC')Non
usdc_balanceInt64Non
utilisateurStringOui

hyperliquid_quote_token_meta

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

ColumnTypeSort Key
aligned_quote_info_jsonStringNon
block_numberUInt64Oui
first_enabled_as_quoteStringNon
indexed_atDateTime64(3, 'UTC')Non
is_liquid_baseUInt8Non
is_liquid_quoteUInt8Non
snapshot_timeDateTime64(6, 'UTC')Non
statutLowCardinality(String)Non
token_idxUInt64Oui
token_nameLowCardinality(String)Non

hyperliquid_register_referral

Sort Keys: ⚡ referral_code, user | Partition: none

ColumnTypeSort Key
block_timeDateTime64(6, 'UTC')Non
erreurNullable(String)Non
indexed_atDateTime64(3, 'UTC')Non
is_successUInt8Non
referral_codeStringOui
tourUInt64Non
tx_hashStringNon
utilisateurStringOui

hyperliquid_set_referrer

Sort Keys: ⚡ referral_code, user | Partition: none

ColumnTypeSort Key
block_timeDateTime64(6, 'UTC')Non
erreurNullable(String)Non
indexed_atDateTime64(3, 'UTC')Non
is_successUInt8Non
referral_codeStringOui
tourUInt64Non
tx_hashStringNon
utilisateurStringOui

hyperliquid_spot_balances

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

ColumnTypeSort Key
block_numberUInt64Oui
escrowedInt64Non
indexed_atDateTime64(3, 'UTC')Non
snapshot_timeDateTime64(6, 'UTC')Non
jetonStringNon
token_idxUInt16Oui
totalInt64Non
utilisateurStringOui

hyperliquid_spot_clearinghouse_states

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

ColumnTypeSort Key
block_numberUInt64Oui
escrowedInt64Non
indexed_atDateTime64(3, 'UTC')Non
snapshot_timeDateTime64(6, 'UTC')Non
jetonLowCardinality(String)Non
token_idxUInt16Oui
totalInt64Non
utilisateurFixedString(42)Oui

hyperliquid_spot_markets

Sort Keys: ⚡ token_index | Partition: none

ColumnTypeSort Key
deployer_trading_fee_shareNullable(String)Non
evm_contractNullable(String)Non
nom_completNullable(String)Non
indexed_atDateTime64(3, 'UTC')Non
is_canonicalUInt8Non
pair_indexNullable(UInt16)Non
pair_nameNullable(String)Non
sz_decimalsUInt8Non
jetonLowCardinality(String)Non
token_idStringNon
token_indexUInt16Oui
wei_decimalsUInt8Non

hyperliquid_spot_pairs

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

ColumnTypeSort Key
base_token_idxUInt64Non
base_token_nameLowCardinality(String)Non
block_numberUInt64Oui
deploy_timeStringNon
indexed_atDateTime64(3, 'UTC')Non
pair_nameStringNon
quote_token_idxUInt64Non
quote_token_nameLowCardinality(String)Non
raw_spot_info_jsonStringNon
snapshot_timeDateTime64(6, 'UTC')Non
spot_indexUInt64Oui

hyperliquid_staking_events

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

ColumnTypeSort Key
montantDecimal(38, 18)Non
block_numberUInt64Oui
block_timeDateTime64(6, 'UTC')Non
event_typeEnum8('CDeposit' = 1, 'CWithdrawal' = 2, 'Delegation' = 3)Non
hachageFixedString(66)Oui
indexed_atDateTime64(3, 'UTC')Non
is_finalizedNullable(UInt8)Non
is_undelegateNullable(UInt8)Non
HeureDateTime64(6, 'UTC')Non
utilisateurFixedString(42)Non
validateurNullable(FixedString(42))Non

hyperliquid_sub_accounts

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

ColumnTypeSort Key
block_numberUInt64Oui
indexed_atDateTime64(3, 'UTC')Non
master_accountFixedString(42)Non
nomNullable(String)Non
snapshot_timeDateTime64(6, 'UTC')Non
sub_accountFixedString(42)Oui

hyperliquid_summaries

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

ColumnTypeSort Key
cross_maintenance_margin_usedDecimal(38, 18)Non
cross_margin_account_valueDecimal(38, 18)Non
cross_margin_total_margin_usedDecimal(38, 18)Non
cross_margin_total_natl_posDecimal(38, 18)Non
cross_margin_total_raw_usdDecimal(38, 18)Non
indexed_atDateTime64(3, 'UTC')Non
margin_account_valueDecimal(38, 18)Non
margin_total_margin_usedDecimal(38, 18)Non
margin_total_natl_posDecimal(38, 18)Non
margin_total_raw_usdDecimal(38, 18)Non
polled_atDateTime64(3, 'UTC')Oui
utilisateurStringOui
withdrawableDecimal(38, 18)Non

hyperliquid_system_actions

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

ColumnTypeSort Key
actionStringNon
action_typeLowCardinality(String)Non
agent_addressNullable(FixedString(42))Non
agent_nameNullable(String)Non
block_numberUInt64Oui
block_timeDateTime64(6, 'UTC')Non
destinationNullable(FixedString(42))Non
destination_dex_or_spotNullable(UInt8)Non
evm_tx_hashFixedString(66)Oui
from_sub_accountNullable(UInt8)Non
hyperliquid_chainNullable(String)Non
indexed_atDateTime64(3, 'UTC')Non
is_mintNullable(UInt8)Non
is_undelegateNullable(UInt8)Non
NonceUInt64Oui
ntlNullable(Decimal(38, 18))Non
order_groupingNullable(String)Non
signature_chain_idNullable(String)Non
source_dex_or_spotNullable(UInt8)Non
to_perpNullable(UInt8)Non
jetonNullable(UInt16)Non
utilisateurFixedString(42)Non
validateurNullable(FixedString(42))Non
weiNullable(UInt256)Non

hyperliquid_token_usdc_prices

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

ColumnTypeSort Key
approx_usdc_pxDecimal(38, 18)Non
approx_usdc_px_float_1e6Float64Non
approx_usdc_px_rawUInt64Non
block_numberUInt64Oui
indexed_atDateTime64(3, 'UTC')Non
raw_pair_jsonStringNon
snapshot_timeDateTime64(6, 'UTC')Non
token_idxUInt64Oui
token_nameLowCardinality(String)Non

hyperliquid_trades

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

ColumnTypeSort Key
block_numberUInt64Oui
block_timeDateTime64(6, 'UTC')Non
buyer_addressFixedString(42)Non
buyer_builder_addressNullable(FixedString(42))Non
buyer_builder_feeNullable(Decimal(38, 18))Non
buyer_closed_pnlDecimal(38, 18)Non
buyer_crossedUInt8Non
buyer_deployer_feeNullable(Decimal(38, 18))Non
buyer_dirLowCardinality(String)Non
buyer_feeDecimal(38, 18)Non
buyer_order_idUInt64Non
buyer_priority_gasNullable(Decimal(38, 18))Non
buyer_start_positionDecimal(38, 18)Non
buyer_twap_idNullable(UInt64)Non
pièce de monnaieLowCardinality(String)Non
fee_tokenLowCardinality(String)Non
indexed_atDateTime64(3, 'UTC')Non
liquidated_userNullable(FixedString(42))Non
liquidation_mark_priceNullable(Decimal(38, 18))Non
liquidation_methodNullable(String)Non
prixDecimal(38, 18)Non
seller_addressFixedString(42)Non
seller_builder_addressNullable(FixedString(42))Non
seller_builder_feeNullable(Decimal(38, 18))Non
seller_closed_pnlDecimal(38, 18)Non
seller_crossedUInt8Non
seller_deployer_feeNullable(Decimal(38, 18))Non
seller_dirLowCardinality(String)Non
seller_feeDecimal(38, 18)Non
seller_order_idUInt64Non
seller_priority_gasNullable(Decimal(38, 18))Non
seller_start_positionDecimal(38, 18)Non
seller_twap_idNullable(UInt64)Non
côtéEnum8('B' = 1, 'A' = 2)Non
TailleDecimal(38, 18)Non
horodatageDateTime64(3, 'UTC')Non
total_builder_feeNullable(Decimal(38, 18))Non
trade_idUInt64Oui
transaction_hashFixedString(66)Non
unique_idStringNon

hyperliquid_transactions

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

ColumnTypeSort Key
actionJSONNon
action_typeLowCardinality(String)Non
block_timeDateTime64(6, 'UTC')Non
erreurNullable(String)Non
indexed_atDateTime64(3, 'UTC')Non
is_successUInt8Non
NonceUInt64Oui
proposerNullable(String)Non
tourUInt64Oui
tx_hashStringOui
utilisateurNullable(String)Non
vault_addressNullable(String)Non

hyperliquid_twap_statuses

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

ColumnTypeSort Key
block_numberUInt64Oui
block_timeDateTime64(6, 'UTC')Non
pièce de monnaieLowCardinality(String)Non
executed_ntlDecimal(38, 18)Non
executed_sizeDecimal(38, 18)Non
indexed_atDateTime64(3, 'UTC')Non
minutesUInt16Non
randomizeUInt8Non
reduce_onlyUInt8Non
côtéEnum8('B' = 1, 'A' = 2)Non
TailleDecimal(38, 18)Non
statutLowCardinality(String)Non
HeureDateTime64(6, 'UTC')Oui
horodatageDateTime64(3, 'UTC')Non
twap_idUInt64Oui
utilisateurFixedString(42)Non

hyperliquid_validator_rewards

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

ColumnTypeSort Key
block_numberUInt64Oui
block_timeDateTime64(6, 'UTC')Non
hachageFixedString(66)Non
indexed_atDateTime64(3, 'UTC')Non
récompenseDecimal(38, 18)Non
HeureDateTime64(6, 'UTC')Oui
validateurFixedString(42)Oui

hyperliquid_vault_equities

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

ColumnTypeSort Key
block_numberUInt64Oui
depositorFixedString(42)Oui
indexed_atDateTime64(3, 'UTC')Non
leaderFixedString(42)Non
leader_commissionFloat64Non
net_depositsInt64Non
ownership_fractionFloat64Non
snapshot_timeDateTime64(6, 'UTC')Non
vault_addressFixedString(42)Oui
vault_nameStringNon

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"

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

Exemple de réponse :

[
{
"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:

Compétences npx Ajouter quiknode-labs/compétences-blockchain

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]

Nous ❤️ les commentaires !

Si vous avez des commentaires ou des questions concernant cette documentation, faites-le nous savoir. Nous serions ravis de vous entendre !

Partager ce document