Developer Tools · Data & Analytics

Bitquery MCP

Bitquery MCP lets agents query on-chain blockchain data across EVM chains, Solana, Tron, Cardano, Hyperliquid and Polymarket, including token transfers, trades, holders, prices and address activity.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Find tokens

    Token search by NAME or SYMBOL: find tokens matching words / a ticker and resolve one → Token_Id + Token_Address + Token_Network (+ window USD volume to pick between same-symbol tokens). CALL THIS FIRST whenever the user names a token in words, before any price / OHLC / trade query. NOT for Hyperliquid perpetuals / spot / HIP-3 markets — resolve those with hyperliquid_markets. NOT for addresses: when the user gives a contract / mint address (0x… hex or base58), call find_token_by_address instead — it needs no chain and checks every chain in one call. Covers rare / long-tail / newly-launched tokens (Ethereum, Arbitrum, Base, Matic, Optimism, Binance Smart Chain, Tron, Solana, Robinhood, Arc — down to the second). Discover tokens by name or symbol (case-insensitive, Unicode-aware), optionally restricted to a single blockchain. The query supports OR over several alternatives — separate them with `|` (e.g. `pepe|doge|shib`) — and, with mode=like, SQL wildcard patterns on the name / symbol (`%` = any run, `_` = one char), e.g. mode=like query=`pepe%` or `%inu` or `pepe%|%inu`. So you do NOT need execute_sql for multi-term or wildcard name/symbol search. Returns the canonical Token_Id plus Token_Address, Token_Network, Token_Name, Token_Symbol and a window USD volume so callers can pick the right token when several share a symbol (e.g. "PEPE" exists on many chains). Resolve it to a Token_Id / Token_Address before running price, OHLC, or trade queries. Pass blockchain='' to search across all chains. Results are ordered by window USD volume DESC (highest first) — no need for execute_sql to sort — except that look-alikes, and tokens with an implausible supply or valuation that are not a recognised asset (below), come after all other rows. Volume alone does not prove a market — two wallets swapping a token back and forth print any volume they like. To check a candidate, pass its address (or up to 50 addresses in one call) to token_dex_venues with group_by=token: Trade_Count and Distinct_Traders show how many swaps and traders are behind the volume. SEARCH WINDOW — only tokens that traded inside the searched slice are found. The slice is `window_days` long (default 7, max 30) and ends `offset_days` days ago (default 0 = now). Search history reaches back 30 days. Volume_Usd_Window and Last_Price_Usd describe that slice; use token_price for the current price. For a fixed period pass after_time / before_time instead (UTC, "YYYY-MM-DD" or "YYYY-MM-DD HH:MM"): they replace window_days / offset_days, edges round outward to whole hours, and a period with no hour inside the last 30 days is an error. Window_Start / Window_End (UTC, end exclusive) report the slice actually searched. IF NOTHING (OR NOT THE RIGHT TOKEN) IS FOUND, the token may simply not have traded recently — do NOT conclude that it does not exist. Search the next older slice: call again with the same query and offset_days increased by window_days (with the default window: offset_days 0 → 7 → 14 → 21 → 28), and stop once offset_days reaches 30. One call with window_days=30 also covers the whole history, but costs about as much as four 7-day slices, so step through the slices when the token is likely to have traded recently. VALUATION PRICE — `Market_Cap_Usd` and `Fdv_Usd` are `Valuation_Price_Usd` x the supply, so every valuation in a row can be recomputed from a price in the same row. `Valuation_Price_Usd` is the average price of the newest hour in which real volume changed hands, NOT the latest single swap: one odd or tiny swap prints a price nobody could trade at, and an hour can close with no real volume behind it at all, which was putting valuations out by a factor of thousands. `Last_Price_Usd` is still that latest swap, so it can sit far from `Valuation_Price_Usd` — when it does, the token last really traded at the valuation price and the latest print is an outlier or an hour with no real volume. Quote `Valuation_Price_Usd` whenever you quote a market cap or an FDV, and say so when the latest price differs from it. The same basis is used by `token_price`, `token_supply`, `currency_price`, `currency_supply`, `find_tokens`, `find_token_by_address`, `trending_tokens`, `new_tokens` and `launch_cohort`, so a valuation does not change from one of them to the next. Which hour counts as real volume is judged against the volume of the period a tool reads, so a tool that looks further back can pick an older hour than one reading only the last few hours; for something whose recent trading is thin the two valuations can differ, and the wider one is the better-supported figure. `Market_Cap_Usd` is circulating-supply based and is `null` when no circulating supply is known for the token — normal for most long-tail tokens, and not a sign the token is untraded. `Fdv_Usd` (the total-supply valuation) is returned alongside it; label that number FDV, never "market cap", and treat a huge one with suspicion — supply that was minted and then parked on a burn address (`0x…dead`, `0x0`) still counts in the total supply behind it. `Fdv_Usd` is itself `null` when even the total supply is unknown, i.e. no valuation at all is available. Both, and the Asset_* figures below, are also WITHHELD (`null`, with a non-empty `Valuation_Warning`) when the supply or valuation behind them is implausible — report the valuation as unavailable. TOKEN vs ASSET — Market_Cap_Usd and Fdv_Usd are THIS token's own valuation. They are `null` for a token that stands for a multi-chain or bridged asset (WETH, WBTC, USDC, LINK on each of its chains, ETH on a layer-2): the data holds only the whole asset's supply for it. Asset_Currency_Id, Asset_Market_Cap_Usd and Asset_Fdv_Usd always hold the whole asset's figures (equal to the token's own when the token is its own asset) — say they are the asset's. When the asset exists on one chain only (e.g. PUMP), Asset_Fdv_Usd is effectively this token's FDV. A bridged copy listed under its own id but carrying the asset's supply also gets a Valuation_Warning. LOOK-ALIKES: `Symbol_Lookalike` = 1 means the token carries the symbol of an established asset on the same chain (look-alike letters such as a Cyrillic `О` count as the same) but is a DIFFERENT token from the one that symbol denotes there — never present it as that asset or use it for its price. `Symbol_NonAscii` = 1 flags a symbol that is not plain ASCII (normal for CJK / emoji names). IF THE USER ASKS ABOUT A WELL-KNOWN CRYPTOCURRENCY (USDC, USDT, WETH, WBTC, BTC, ETH, SOL, DAI, …) AND HAS NOT NAMED A SPECIFIC BLOCKCHAIN OR CONTRACT, prefer `find_currencies` + `currency_*` instead — currency-level aggregation spans every token of that asset across every indexed chain and yields a better price estimate and wider coverage than any single `token_*` row. LONG NAMES: a name longer than 256 characters or a symbol longer than 64 is not searched (spam tokens that glue hundreds of asset names together) — look such a token up with find_token_by_address. Returned names are cut at 128 characters and symbols at 32, ending in `…`; Name_Truncated / Symbol_Truncated = 1 marks a cut value.

  • Flow graph

    MONEYFLOW GRAPH / follow the money OUT of one or more addresses across up to 3 hops and return the whole graph at once: the seed(s), every address the money reached, and the USD-valued edges between them. The walk follows OUTGOING transfers at each node, values each edge in US dollars at the time of each transfer, attaches the on-chain LABELS of every address, and STOPS expanding a branch when it reaches an exchange, mixer or bridge (so the trail ends where funds leave into a custodian) or a hub that pays very many counterparties. Use it to see where an address's funds end up, spot an off-ramp into an exchange or mixer, or draw a flow / Sankey diagram. The result is the whole graph as structured data - one entry per node (its role: seed / hop / stop / unexpanded; its primary label and every label type it carries; its total USD in and out) and one per edge (from, to, token, amount, Amount_Usd, the share of the amount that could be priced, transfer count, first and last seen) - plus a short text summary with the top edges as CSV. Amount_Usd is the value at each transfer's own time and is empty - never zero - for a token the price gate does not cover; a hub or the row budget can cut a branch short, and the graph is then marked partial. Ranking is led by USD, so an unpriced token ranks last. This is a neighbourhood graph, not a strict fund-trace: a node's hop edges are ALL of its outgoing transfers in the window, not only those funded by money that arrived, and transfer times are not ordered across hops; a node is flagged a hub only when the walk expands it, so a last-hop leaf is never marked one. Start with one address or a set of up to 10 (addresses); chain is ethereum or tron. hops is 1 to 3 (default 2). Narrow a heavy walk with a shorter window (after_time / before_time), a single token, or a higher min_usd. NOT the single-hop totals per counterparty, or a set on more chains -> use counterparties; NOT the direct outgoing edges of ONE address -> use eth_flow_edges / tron_flow_edges; NOT a risk score -> use address_risk_report; NOT the labels of one address -> use labels_for_addresses.

  • Hyperliquid action rejections

    ACTIONS the exchange REJECTED — leverage changes, margin top-ups, transfers, referral and scheduled-cancel settings, agent approvals — with the exchange's own reason text. These never reach any trade or order feed: a rejected updateLeverage or updateIsolatedMargin simply vanishes elsewhere. Use for "why can't this account change leverage", bot diagnostics beyond order placement, abuse patterns (referral self-referrals, scheduled-cancel limits). NOT rejected ORDERS — those are hyperliquid_order_flow (status codes like iocCancelRejected, badAloPxRejected). On-chain source — reconstructed from the signed actions in the blocks. trader set: one row per rejected action of that account, newest first — Time, Action_Type, Reason, Signer (the API wallet that signed, if different), Tx. trader empty: totals per Action_Type — Rejections, Accounts, Top_Reasons. Order placements and cancellations are excluded here on purpose (they are order rejections). Kept for about 7 days — hours up to 168 (default 24).

  • Hyperliquid book makers

    WHO PROVIDES THE LIQUIDITY on ONE Hyperliquid market — the accounts behind the resting orders of the book, ranked by the USD they posted, with how many orders they placed and pulled. The public order book is anonymous; this is the named version. Use for market-maker discovery, "who is quoting X", spoofing suspicion (posted ≈ pulled with few fills), liquidity concentration. NOT executed trades (hyperliquid_recent_trades), NOT order rejections (hyperliquid_order_flow). One row per account: Orders_Posted, Orders_Pulled, Orders_Updated, Distinct_Orders, Posted_Usd (sum of price x size of the orders it placed), Buy_Orders / Sell_Orders, Fills (how many of its orders traded in the window, from the trade tape). Book events are kept for about 7 days and are the densest stream on the exchange — hours up to 24 (default 1); a busy market for 24 hours is a long query.

  • Hyperliquid book walls

    The LARGEST RESTING ORDERS ("walls") in the order book of ONE Hyperliquid market WITH THEIR OWNERS and their place in the queue — "who is behind the big bid at 75k", "biggest walls near the price", "is that wall one account". The public book shows sizes only. NOT pending stop-loss / take-profit orders → use hyperliquid_stop_map. NOT who posted and pulled orders over a time window → use hyperliquid_book_makers. Read from the newest complete snapshot of the exchange state (taken about every 12 minutes). group_by = order (default): one row per resting limit order — Top_Owner is its owner, Price_Level its limit price, Queue_Position its place in the queue at that price (1 = first to fill), with Order_Type, Tif (Gtc / Alo / Ioc), Reduce_Only, Placed_Time, Oid and Signer (the API wallet that placed it, when not the account itself). group_by = level: one row per price level and side (bucket_pct 0 = exact prices; above 0 = buckets of about that percent of the mid, Bucket_Width wide, rounded to 1, 2 or 5 x a power of ten) — Orders, Owners, and the account with the most Usd there (Top_Owner, Top_Owner_Usd, Top_Owner_Share_Pct). Size is in base units, Usd = Size x price, Distance_Pct from Mid_Price (the middle of the best bid and ask). Only orders within range_pct of Mid_Price are counted (default 5 %); side buy / sell narrows it; min_usd drops small rows. Returns up to limit rows (default 50, at most 500), largest Usd first. Each row: Snapshot_Time, Market, Mid_Price, Price_Level, Bucket_Width, Distance_Pct, Side, Orders, Size, Usd, Owners, Top_Owner, Top_Owner_Usd, Top_Owner_Share_Pct, Queue_Position, Order_Type, Tif, Reduce_Only, Placed_Time, Oid, Signer.

  • Hyperliquid builders

    REVENUE and flow of the ECOSYSTEM around Hyperliquid — the BUILDERS (front-ends, bots and apps that route orders and take a builder fee) and the HIP-3 DEPLOYERS (the third-party venues that list their own perpetual markets, prefixed like xyz:NFLX, and take a deployer fee). Use for "which apps drive Hyperliquid volume", "how much does builder X earn", "biggest HIP-3 venues", ecosystem and competitive analysis. NOT trader rankings (hyperliquid_top_traders), NOT markets (hyperliquid_markets). group_by = builder (default): one row per builder address — Fills, Traders, Volume_Usd, Builder_Fee_Usd, Markets. group_by = deployer: one row per HIP-3 venue (Deployer = the market-id prefix) — Markets, Fills, Traders, Volume_Usd, Deployer_Fee_Usd. Volume counts each fill once (taker side). Fees are what the builder / deployer received, in USDC. window_hours up to 720.

  • Hyperliquid candles

    OHLCV candle SERIES for ONE Hyperliquid market — for charts, volatility, "how did X move today". NOT a single current price (hyperliquid_price). Bars of 1, 5, 15 or 60 minutes, built from every fill on the exchange (taker side, so volume is not doubled). Volume is in base units of the market (BTC for BTC); Volume_Usd = sum of bar volume x close, an approximation. market is the exact market id from hyperliquid_markets (BTC, xyz:NFLX, @107, #<n>). interval = 1m | 5m | 15m | 1h. Bars are returned newest first, up to limit, ending at before_time (empty = now) — pass the oldest Time of a page as before_time to page back. History reaches back about three weeks; a bar with no fills is simply absent (no zero-fill).

  • Hyperliquid funding rates

    HOURLY funding-rate and open-interest HISTORY of ONE Hyperliquid perpetual — for "how has BTC funding moved this week", cost-of-carry, crowding over time. NOT the cross-market snapshot (hyperliquid_open_interest), NOT a price series (hyperliquid_candles). One row per hourly settlement: Funding_Rate (per hour, signed: positive = longs pay), Funding_Apr_Pct, Open_Interest (one side, base units), Long_Positions / Short_Positions, Long_Accounts_Pct (share of accounts that are long), Funding_Paid_Usd (gross paid by the paying side; zero-sum across accounts), Payers / Receivers, Implied_Price. Newest first. Spot and outcome markets have no funding.

  • Hyperliquid largest positions

    The LARGEST OPEN POSITIONS on a Hyperliquid perpetual (or across the exchange) with entry price, leverage, margin mode, unrealized PnL and funding since open — "who holds the biggest BTC shorts", "whales under water", "largest leveraged longs". NOT the long / short totals → use hyperliquid_market_positioning. NOT one account's whole book → use hyperliquid_trader_portfolio. Read from the newest complete snapshot of the exchange state (taken about every 12 minutes), so every account's position is there, not only the ones that traded. One row per position: Trader, Market, Side, Size (signed: negative = short), Entry_Price, Mark_Price, Value_Usd (at the mark), Unrealized_Pnl_Usd, Return_On_Margin_Pct (= Unrealized_Pnl_Usd / Margin_Used_Usd), Leverage, Is_Cross (1 cross margin, 0 isolated), Margin_Used_Usd, Funding_Since_Open_Usd and Funding_All_Time_Usd (signed: + received, - paid), Is_Vault with Vault_Name when the account is a vault. market empty = every perpetual of the exchange; side long / short narrows it; min_usd drops small positions. Returns up to limit positions (default 50, at most 500), largest Value_Usd first. Each row: Snapshot_Time, Trader, Market, Side, Size, Entry_Price, Mark_Price, Value_Usd, Unrealized_Pnl_Usd, Return_On_Margin_Pct, Leverage, Is_Cross, Margin_Used_Usd, Funding_Since_Open_Usd, Funding_All_Time_Usd, Is_Vault, Vault_Name.

  • Hyperliquid linked accounts

    ACCOUNTS CONTROLLED BY THE SAME OPERATOR as a given Hyperliquid account — linked through the API wallets (agents) that sign for them, transitively: two accounts that share a signer, or are connected through a chain of shared signers, belong to one cluster. Use for sybil / farm detection, wash-trading suspicion, "does this whale have other wallets", and to expand a wallet before summing its PnL. NOT labels from the address directory (labels_for_addresses). On-chain source — recovered from the signatures of the account's own actions. Returns the account's cluster, one row per member account. Trader is the account you asked about and Is_Self = 1 marks its own row, listed first; Signers are the API wallets observed signing for the member Account. Linked_Via_Signers lists accounts that share one of this account's API wallets today, taken from the live signer graph; it can be ahead of the cluster above, so a Cluster_Size of 1 with a non-empty Linked_Via_Signers means the account IS linked to others but is not clustered yet. Compare it as a set — the order is not stable. Linked_Via_Signers_Truncated = 1 when a very active shared wallet was left out of it, or the list hit its cap. Returns up to limit rows (default 100, at most 500); Cluster_Size always counts the whole cluster. A cluster of size 1 means no other account is clustered with it (Linked_Via_Signers may still list some). The graph accumulates from live activity, so an account that has not acted recently may not be clustered yet. Each row: Trader, Cluster_Id, Cluster_Size, Account, Is_Self, Signers, Linked_Via_Signers, Linked_Via_Signers_Truncated.

  • Hyperliquid liquidations

    FORCED LIQUIDATIONS on Hyperliquid perpetuals — who was liquidated, on which market, how much, at what mark price, and whether the exchange's backstop absorbed the position. Use for liquidation cascades, "biggest liquidations today", a wallet's liquidation history, market-stress screening. NOT ordinary trades (hyperliquid_recent_trades / hyperliquid_trader_fills). group_by = '' (default) lists individual liquidations newest first: Time, Market, Liquidated_Trader, Position_Side (Long / Short that was closed), Price (execution), Mark_Price (the mark at that moment), Size, Usd, Realized_Pnl of the closed part, Leverage, Method (market = closed on the book; backstop = taken over by the exchange's backstop liquidator, a sign of market stress). group_by = market or trader returns totals: Liquidations, Usd, Long_Liquidations / Short_Liquidations, Backstop_Count. market / trader filter; min_usd drops dust; hours up to 720.

  • Hyperliquid market positioning

    LONGS versus SHORTS of ONE Hyperliquid perpetual from the full position snapshots — how many accounts are on each side, their size, USD value, unrealized PnL, leverage and margin mode, and the CROWD against the WHALES, now and as a history over the last days. For "is the crowd long", "are whales short", "who is under water", "how did positioning change this week". NOT the funding rate or the cross-market table → use hyperliquid_open_interest. NOT the individual positions → use hyperliquid_largest_positions. Every ~12 minutes the exchange's whole state is captured; one row per complete snapshot, newest first. hours = 0 (default) returns the newest snapshot only, hours up to 168 the history (kept 7 days, from 2026-10-27). Per side: Accounts, Size (base units, both sides equal on a perpetual — every long is matched by a short), Value_Usd at the mark price, Unrealized_Pnl_Usd, Avg_Leverage (mean over accounts), Cross_Pct (share of accounts on cross margin). Long_Accounts_Pct is the crowd's lean. Whales are positions worth at least whale_usd (default 1,000,000): Whale_Long_Value_Pct is the share of whale value that is long, Crowd_Long_Accounts_Pct the share of the other accounts that are long — the two diverge when the whales and the crowd disagree. market is the exact perpetual id (BTC, xyz:NFLX), case-insensitive. Returns up to limit snapshots (default 100, at most 1000), newest first. Each row: Snapshot_Time, Block_Number, Market, Long_Accounts, Short_Accounts, Long_Accounts_Pct, Long_Size, Short_Size, Long_Value_Usd, Short_Value_Usd, Long_Unrealized_Pnl_Usd, Short_Unrealized_Pnl_Usd, Long_Avg_Leverage, Short_Avg_Leverage, Long_Cross_Pct, Short_Cross_Pct, Whale_Long_Accounts, Whale_Short_Accounts, Whale_Long_Value_Usd, Whale_Short_Value_Usd, Whale_Long_Value_Pct, Crowd_Long_Accounts_Pct.

  • Hyperliquid markets

    LIST and RANK Hyperliquid markets (perps, HIP-3 perps, spot pairs, outcome markets) by traded volume over a window — the entry point for "what is trading on Hyperliquid", "most active markets", "find the market for ticker X", and to resolve a symbol into the exact market id (Market) that every other hyperliquid_* tool takes. NOT a price series (hyperliquid_candles), NOT the current price with its source (hyperliquid_price), NOT open interest / funding (hyperliquid_open_interest). One row per market: Market is the exact id to pass on (BTC; xyz:NFLX for a HIP-3 market; @107 for a spot pair; #<n> for an outcome market), Symbol the ticker, Kind one of perp / hip3 / spot / outcome. A ticker is NOT unique across kinds (BTC on the native perp and on a deployer's market) — always pin the market by Market, never by Symbol. Volume_Usd counts each fill once (taker side). Trades_Count, Traders, Last_Price (the last 1-minute bar close inside the window; every market is quoted in USDC, so outcome markets read 0..1) and Price_Change_Pct over the window. An outcome (prediction) market also carries its name: Headline (the market), Outcome (the answer) and Outcome_Side (the side's name — Yes / No, Over / Under, team codes), taken from its own trades in the window, which carry names from 2026-10-30 08:24 UTC on (NULL for a market with no named trade in the window); for its odds and answers use hyperliquid_prediction_market. PURR/USDC is a SPOT pair (no funding, no leverage). Rows the data source has not re-filed yet still read Kind perp, so there kind=spot does not list it and kind=perp does - treat its rows as spot either way. Its Market id is the name itself, PURR/USDC. query matches the ticker, the market id or an outcome market's Headline, case-insensitive substring (NFLX finds xyz:NFLX and every other deployer's NFLX). kind narrows to one market kind. sort = volume (default), trades, traders, change (best gainers first) or change_asc (worst first). window_hours up to 720 (30 days of data). Terms used across the hyperliquid_* tools: perp = perpetual future; HIP-3 = a perpetual listed by a third-party deployer on its own venue (market id prefixed, e.g. xyz:NFLX); spot = a spot pair (@index, or PURR/USDC); outcome = a prediction market (#id, priced 0..1); funding = the hourly payment between longs and shorts; TWAP = an order executed in time slices; builder = the app that routed an order and takes a fee; agent / API wallet = a key that signs on an account's behalf; backstop liquidation = the exchange's liquidator vault absorbed the position. For a TOKEN on Ethereum, Solana or another chain use find_tokens / token_price instead — those tools do not see Hyperliquid.

  • Hyperliquid open interest

    OPEN INTEREST, long/short skew and the current FUNDING RATE of every Hyperliquid perpetual — for "where is the leverage", "which markets are crowded long", "funding APR", basis-trade screening. NOT one market's funding history (hyperliquid_funding_rates), NOT volume ranking (hyperliquid_markets), NOT one market's longs against shorts in detail or over time (hyperliquid_market_positioning). Open interest and the long / short counts come from the newest complete snapshot of the exchange state (taken about every 12 minutes); the funding figures from the newest hourly funding settlement. Per market: Open_Interest (one side of the book — every long is matched by a short — in base units), Open_Interest_Usd (at Mark_Price, the exchange's mark), Long_Positions / Short_Positions (number of accounts), Long_Accounts_Pct (share of accounts that are long: size is always 50/50 on a perpetual, the account count is where the crowd shows), Funding_Rate (per hour, signed: positive = longs pay shorts), Funding_Apr_Pct (rate x 24 x 365), Funding_Paid_Usd — the gross amount the paying side handed over in that hour (funding is zero-sum, so the net across all accounts is ~0), Implied_Price (implied by that settlement), Funding_Time, Snapshot_Time. Markets with nothing open are left out; spot and outcome markets pay no funding and do not appear. query matches the ticker or market id, case-insensitive substring. sort = oi (default), funding (highest rate first), funding_asc, long_share. Returns up to limit markets (default 50, at most 500), by sort. Each row: Market, Symbol, Kind, Snapshot_Time, Open_Interest, Open_Interest_Usd, Mark_Price, Long_Positions, Short_Positions, Long_Accounts_Pct, Funding_Rate, Funding_Apr_Pct, Funding_Paid_Usd, Implied_Price, Funding_Time.

  • Hyperliquid order flow

    ORDER activity and REJECTIONS on Hyperliquid — how many orders an account or a market placed, filled, cancelled and had REJECTED by the exchange, and why. Rejections never appear in fills or on public tapes; this is the place for bot diagnostics ("why are my orders failing"), spam / rejection-rate screening, and order-type mix. NOT fills (hyperliquid_trader_fills), NOT the book itself. Rows are totals per group_by: trader (default — accounts ranked by rejected orders), market, or status (the exchange's own status codes: open, filled, canceled, iocCancelRejected, badAloPxRejected, perpMarginRejected, minTradeNtlRejected, reduceOnlyRejected, insufficientSpotBalanceRejected, selfTradeCanceled, triggered, …). Columns: Orders, Rejected, Reject_Rate_Pct, Filled, Canceled, Open, Top_Reject_Reason, Reduce_Only_Share_Pct. With group_by = market a live outcome (prediction) market also carries Headline, Outcome and Outcome_Side (its names, from the newest state snapshot; NULL otherwise). Filters: trader, market. Counts come from 10-minute roll-ups, kept for about 30 days — hours up to 720 (default 24).

  • Hyperliquid prediction holders

    HOLDERS of ONE SIDE of a Hyperliquid prediction market (HIP-4) with their average entry price — "who is betting on Yes", "the biggest bettors on this team", "at what price did they buy". NOT the odds of the market → use hyperliquid_prediction_market. NOT a ranking of markets → use hyperliquid_prediction_markets. Read from the newest complete snapshot of the exchange state (taken about every 12 minutes). One row per account holding the side: Contracts held (each pays 1 USDC if the side wins), On_Orders (part of it locked in open sell orders), Entry_Cost_Usd and Avg_Entry_Price (= Entry_Cost_Usd / Contracts, 0..1), Price (mid of the best quotes, else the last trade) with Value_Usd = Contracts x Price and Unrealized_Pnl_Usd = Value_Usd - Entry_Cost_Usd, Share_Pct of all contracts held. Holders and Total_Contracts repeat the side's totals on every row. The issuer's own system address (which carries the supply as a negative balance) is not a holder and is left out. market is one side id (#<n>) from hyperliquid_prediction_market — the other side of the same answer is a different market. Returns up to limit holders (default 50, at most 500), largest Contracts first. Each row: Snapshot_Time, Market, Headline, Outcome, Side_Title, Trader, Contracts, On_Orders, Entry_Cost_Usd, Avg_Entry_Price, Price, Value_Usd, Unrealized_Pnl_Usd, Share_Pct, Holders, Total_Contracts.

  • Hyperliquid prediction market

    ANSWERS, SIDES and current ODDS of ONE Hyperliquid prediction market (HIP-4) — "what are the odds that X", "who is the favourite", the order book of each answer. NOT a ranking of markets → use hyperliquid_prediction_markets. NOT who holds a side → use hyperliquid_prediction_holders. Read from the newest complete snapshot of the exchange state (taken about every 12 minutes). One row per side: a single market has one answer with two sides; a question has several answers (Outcome), each with two sides, plus a fallback answer (Is_Fallback = 1, usually "Other") that resolves when no listed answer does. Market is the side's own id (#<n>), Side 0 or 1, Side_Title its name — Yes / No, Over / Under or team codes, never assume Yes / No. Prices are 0..1 and read as a probability: Best_Bid, Best_Ask, Mid_Price (both quotes present), Last_Price, and Probability_Pct = Mid_Price, else Last_Price, x 100. A side that has never traded can show a Last_Price of 0.5 with no orders — check Book_Orders and Volume_24h_Usd before reading it as odds. Holders and Contracts (outstanding contracts of the side) come from the same snapshot; Volume_24h_Usd counts each trade once (taker side), leaving out the turning of USDC into a pair of sides and back and the settlement payout. market is one side id from hyperliquid_prediction_markets (#<n>; any side of any answer expands to the whole question) or a name substring (every market whose Headline contains it). Returns up to limit sides (default 100, at most 500), by Headline, answer and Side. Each row: Snapshot_Time, Headline, Question_Id, Is_Settled, Outcome_Id, Outcome, Is_Fallback, Market, Side, Side_Title, Best_Bid, Best_Ask, Mid_Price, Last_Price, Probability_Pct, Book_Orders, Holders, Contracts, Volume_24h_Usd.

  • Hyperliquid prediction markets

    TOP Hyperliquid PREDICTION MARKETS (HIP-4 outcome markets) by traded volume over a window — "what are people betting on", "most active prediction markets", "find the market about X". NOT the answers and odds of one market → use hyperliquid_prediction_market. NOT who holds a side → use hyperliquid_prediction_holders. One row per market by its name (Headline). Market_Type is single (one yes/no market, Question_Id 0) or question (several answers, each a yes/no market of its own, Question_Id above 0). Market is an id to pass to hyperliquid_prediction_market: a single market's first side, or for a question the first side of its most traded answer. Volume_Usd and Fills count each fill once (taker side) and only trades between accounts: turning USDC into a pair of sides and back, and the payout at settlement, are not trades and are left out. Traders counts both sides; Outcomes_Traded is how many answers traded. Names are recorded on trades from 2026-10-30 08:24 UTC only: earlier trades are left out, so a window reaching before that time counts only the named part. query matches the Headline, case-insensitive substring. hours up to 720 (default 24). Returns up to limit markets (default 30, at most 200), largest Volume_Usd first (or by sort). Each row: Headline, Market_Type, Question_Id, Market, Outcomes_Traded, Volume_Usd, Fills, Traders, Last_Trade_Time.

  • Hyperliquid price

    CURRENT price of ONE Hyperliquid market with the SOURCE it came from — the number to use for "what is X trading at", USD valuation of a position, or a sanity check of a quoted price. NOT a series (hyperliquid_candles), NOT a market list (hyperliquid_markets). Hyperliquid publishes no single price feed for every market, so the tool reads up to three and returns the FRESHEST as Price, with Price_Source and Price_Time (when that source was observed; within the same minute mark wins over funding, funding over last_trade): - mark — the exchange's mark price. Available for deployer (HIP-3) markets only, and republished even for a market nobody trades any more — check Stale. - funding — implied from the last hourly funding settlement (|amount| / (|position| x rate)). Available for every perpetual that had funding; within a fraction of a percent of the mark on liquid markets, at most one hour old, so it wins only when the market has not traded since. - last_trade — the close of the newest 1-minute bar. Available wherever the market traded; the only source for spot and outcome markets. Outcome markets read 0..1. Every row also carries Mark_Price, Funding_Implied_Price and Last_Trade_Price for a cross-check, Last_Trade_Time and Last_Trade_Age_Hours. Stale = 1 when the market has not traded for more than 24 hours: its price (often a deployer's frozen mark) can be far from where the asset trades on its live markets — use a row with Stale = 0 instead. An outcome (prediction) market also carries Headline (the market's name), Outcome (the answer) and Outcome_Side (the side's name), read from the newest state snapshot; NULL for every other market. Its answers and odds: hyperliquid_prediction_market. market is the exact market id from hyperliquid_markets (BTC, xyz:NFLX, @107, #<n>) or a ticker — a ticker that names several markets returns one row per market: markets that traded in the last 24 hours first, then native perpetual, spot, outcome, HIP-3. For a token on Ethereum, Solana or another chain use token_price / currency_price — this tool prices Hyperliquid markets only.

  • Hyperliquid raw sql

    ESCAPE HATCH — arbitrary read-only SQL over the Hyperliquid data, ONLY for questions none of the hyperliquid_* tools answers. PREFER THE SPECIALIZED TOOLS: they carry the indexed filters and the data rules below already; ad-hoc SQL that misses them reads billions of rows and times out. Every table below is in database hyperliquid_rt — qualify names as hyperliquid_rt.<table>. Queries are limited to 60 seconds and 4 GB. 64-bit integers come back as JSON numbers, exact only up to 2^53: return a hash such as cityHash64(...) or any other 64-bit id as toString(x). Date-time values come back as ISO-8601 UTC, e.g. 2026-09-21T15:04:18Z (toString() of a date-time gives 2026-09-21 15:04:18). Runs read-only ClickHouse SQL. SQL reference: https://clickhouse.com/docs/reference/home Data rules (each one silently breaks a naive query): - Every amount is a DECIMAL STRING (Trade_Execution_Price, _Size, Trade_Fees_Fee, Trade_Position_RealizedPnl, Funding_Amount, …): wrap in toFloat64OrZero() or use the *_Decimal alias columns. Block_Time is epoch NANOSECONDS (Int64) — filter as Block_Time >= toInt64(toUnixTimestamp(now() - INTERVAL 1 DAY)) * 1000000000, never compare it to now64() directly (decimal overflow). Trade_Execution_EventTime is ms. - ONE FILL = TWO ROWS in trades (maker + taker), joined by (Block_Number, Trade_Market_CoinRaw, Trade_Execution_Tid). Market volume: Trade_Execution_IsAggressor = 1 only. An account's own activity: filter Trade_Trader_Address (one row per fill). - Tid is an identifier, not an order. Fills of one block run in Trade_Execution_Index / Liquidation_Execution_Index order (from 1, one sequence across trades and liquidations; 0 on older rows): order by (Block_Number, *_Execution_Index, *_Execution_Tid). - Liquidation fills live ONLY in perp_liquidations (Liquidation_* columns, same shape). - Market kinds share every table: Trade_Market_Kind in perp | hip3 | spot | outcome; Trade_Market_IsPerp = 1 for perp + hip3. Identity is Trade_Market_CoinRaw (BTC, xyz:NFLX, @107, #<n>); Trade_Market_Symbol is NOT unique. The SPOT pair with the id PURR/USDC is Kind spot, but rows not re-filed yet still read Kind perp with IsPerp = 1 - leave it out by id when a figure must cover perpetuals only, and include it by id (once) in a spot figure. - Empty string means UNKNOWN, not zero: Position_EntryPrice and Position_Size (size after the fill) on rows with Execution_Index = 0. Position_Leverage, Position_IsCross, Market_MaxLeverage and Trader_SignedAt are NULL when not known (0 on rows written before the processor kept them Nullable). - Trade_Fees_FeeToken is USDC on ~96% of rows; sum fees only where IN ('USDC',''). - Raw tables are ReplacingMergeTree: add FINAL. AggregatingMergeTree tables need the -Merge combinators (argMaxMerge(Position_Size), argMaxMerge(Mark), …); ohlc is read with min/max/sum, Open/Close as tupleElement(min(Ohlc_Open), 3) / tupleElement(max(Ohlc_Close), 3). - Addresses are lowercase 0x strings everywhere except signed_actions (User, Signer: raw bytes — concat('0x', lower(hex(User)))). - Price: latest_mark / price_updates cover ONLY HIP-3 markets. A native perp's mark = |Funding_Amount| / (|Funding_Size| x Funding_Rate) on the latest funding block; otherwise the last candle close. - Outcome (prediction) markets #<n>: the trade, funding and liquidation rows carry *_Market_Outcome_{Headline,Title,SideTitle,Side,OutcomeId,Question_QuestionId, Question_IsFallback,Question_IsSettled} (from 2026-10-30 08:24 UTC; empty before). The directions Split Outcome / Merge Outcome / Negate Outcome / Merge Question / Settlement are not trades between accounts (a split or merge is one row at a fixed 0.5): leave them out of volumes and prices. A holding of side #<n> is the spot balance of token +<n>. Tables (key columns first; retention): - trades (Trade_Market_CoinRaw, Trade_Trader_Address, Block_Number) ~11 M rows/day, 30 days. Trade_Trader_{Address,Signer,Vault}, Trade_Market_{Symbol,Kind,Protocol, CoinRaw,IsPerp}, Trade_Execution_{Side,Direction,IsAggressor,Price,Size,Oid,Tid,Hash, EventTime,Index}, Trade_Fees_{Fee,FeeToken,BuilderFee,DeployerFee}, Trade_Position_{Side, Size,SizeBefore,RealizedPnl,Leverage,IsCross}, Trade_Builder, Trade_IsTwap, Trade_TwapId; aliases Trade_Execution_NotionalUSD, Trade_Trader_IsAgent, Trade_Position_IsClosing, Trade_Position_IsWin, Trade_Position_NetPnl. - trades_5m_aggr — 5-minute roll-up per market x trader x (IsAggressor, Side, FeeToken, IsTwap, Builder, IsAgent, IsClosing, IsWin): Trade_Count, Trade_Execution_NotionalUSD, Trade_Execution_Size, Trade_Position_RealizedPnl, Trade_Fees_Fee, Trade_Position_NetPnl (sums, plain columns — GROUP BY and sum()), *_Max/_Min. USE THIS for counts, volumes, leaderboards. - perp_liquidations (Liquidation_Market_CoinRaw, Block_Number), 30 days: same shape as trades plus Liquidation_MarkPx, Liquidation_Method (market|backstop), Liquidation_LiquidatedUser. - perp_fundings (Funding_Trader_Address, Block_Number), 30 days, one row per open perp position per hour: Funding_Market_CoinRaw, Funding_Amount (signed, + received), Funding_Rate (hourly), Funding_Size (signed position). Sum |Funding_Size| on the latest block per market = open interest. - order_updates (Order_Market_CoinRaw, Order_Trader_Address, Block_Number), 7 DAYS, ~11 B rows: Order_{Side,Status,IsReject,OrderType,Tif,ReduceOnly,LimitPx,Size,OrigSz, TriggerPx,TriggerCondition,IsTrigger,Oid,Cloid,PlacedTime,EventTime,Index}. Statuses of one order in a block share EventTime; Order_Index (from 1; 0 on older rows) orders them. Never read without market + trader + a short window. order_updates_10m_aggr = roll-up per market x trader x (Status, Tif, IsReject, OrderType, Side, ReduceOnly) with Order_Count. - book_updates (BookUpdate_Market_CoinRaw, Block_Number), 7 days, ~8 B rows, per-order book deltas with the OWNER (BookUpdate_Trader_Address, Oid, Side, Px, Kind new|update| remove, Size, SizeBefore, Index). Same warning. - twaps (Twap_Market_CoinRaw, Block_Number), 30 days: Twap_TwapId, Twap_Trader_Address, Twap_Order_{Side,Size,ReduceOnly,Randomize}, Twap_Interval_{StartTime(ms), DurationMinutes}, Twap_State_{Status,StatusError,ExecutedSize,ExecutedNotional}. - price_updates (PriceUpdate_Market_CoinRaw, Block_Number), 30 days, HIP-3 only: PriceUpdate_{Price,Kind(mark|oracle|extPerp|markInput|spotInput|extPerpInput), UpdateClass,DailyPx,UpdateTime}. latest_mark = argMaxMerge(Mark) per Market_CoinRaw. - ohlc (Market_Symbol, Interval_Time_Duration 60|300|900|3600, Interval_Time_Start, Market_CoinRaw): Ohlc_Open / Ohlc_Close are (Block, Index, Price) of the first / last fill — tupleElement(min(Ohlc_Open), 3), tupleElement(max(Ohlc_Close), 3); Ohlc_High (max), Ohlc_Low (min), Ohlc_Volume (sum, taker side). - current_positions (Trader_Address, Market_CoinRaw): argMaxMerge(Position_Size) (string, signed), argMaxMerge(Position_Leverage) and argMaxMerge(Position_IsCross) (one-element tuples, (20) / (1), (NULL) when not known; a plain number on a host not migrated yet), sum(Position_RealizedPnl), sum(Position_Funding), max(LastTime) (any event, funding included), max(LastTradeTime) (the last fill; 0 = none). Size includes the hourly funding restatement (none in an hour of zero rate), so a perp size is exact even for a position older than the data. - trader_leverage_updates (LeverageUpdate_Trader_Address, Block_Number): accepted leverage changes — LeverageUpdate_Market_CoinRaw, LeverageUpdate_Leverage, LeverageUpdate_IsCross. - signed_actions (Block_Number, Bundle_Index, Bundle_ActionIndex), 7 days: what accounts ASKED the exchange, incl. REJECTED actions (Status = 'err', reason in Response) and the recovered Signer; only rejects and non-order action types are kept (User, ActionType, Status, Action, Response raw JSON, Nonce, VaultAddress, Bundle_Hash). - cluster_labels (node, label) / cluster_edges (src, dst) — the account—agent graph behind hyperliquid_linked_accounts; operator_clusters view = (ClusterId, Account). - State snapshots, 7 days, one about every 12 minutes: the whole state of every account. Read ONLY complete ones, the height from the view in the SAME statement — WITH (SELECT max(Block_Number) FROM hyperliquid_rt.snapshots WHERE IsComplete) AS h — and always FINAL with Block_Number = h (or IN the complete heights). Tables by key: snapshot_markets (Market_CoinRaw, Block_Number): OpenInterest (longs + shorts in coins, twice one side), Prices_MarkPx, Book_BestBid / BestAsk / LastTradePx, Positions, Market_Outcome_* (never the old Outcome_* columns); snapshot_positions (Market_CoinRaw, Block_Number, Trader_Address) and snapshot_positions_by_trader: Position_Size (negative = short), Position_EntryPrice, Position_Leverage, Position_IsCross, Valuation_PositionValue / UnrealizedPnl, CumFunding_SinceOpen (positive = paid); snapshot_orders (Market_CoinRaw, Block_Number, Oid) and _by_trader: resting orders (IsTrigger = 0, QueuePosition) and pending stops (IsTrigger = 1, TriggerPx; IsPositionTpsl = 1 has Size 0); snapshot_balances (Token, Block_Number, Trader_Address) and _by_trader: Total, Hold, EntryNotional; snapshot_accounts (Trader_Address, Protocol, Block_Number); snapshot_vaults, snapshot_vault_followers (Vault, …) and _by_trader; snapshot_leverage_settings (Trader_Address, Market_CoinRaw, …) — read it by trader; snapshot_earn_reserves / snapshot_earn_positions. ~2.5 M balances, ~640 K orders and ~410 K positions per snapshot against a 100,000-row result cap: aggregate or LIMIT. Block_Time there is epoch ns too. Always add a Block_Time bound and a LIMIT.

PreviousPage 9 / 18Next