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.

  • Optimism transfers raw sql

    LAST RESORT — arbitrary READ-ONLY SQL against the Optimism transfers database. The Bitquery MCP specialized optimism_* tools are the PRIORITY; use this ONLY when none of them can answer (e.g. an uncovered table). No query optimizer here — naive SQL full-scans huge tables and JOINs time out. Runs read-only ClickHouse SQL. SQL reference: https://clickhouse.com/docs/reference/home FAST-QUERY RULES: filter on the indexed key tables — `optimism_api.transfers_sender` (by sender / outgoing), `optimism_api.transfers_receiver` (by receiver / incoming), `optimism_api.transfers_tx` (by tx hash); NEVER JOIN big tables — use `WHERE col IN (SELECT …)` (use `GLOBAL IN` when the subquery is referenced inside another subquery, otherwise its result is not available where it is used). A subquery that itself reads a transfers table (`IN (SELECT Transfer_Sender FROM …transfers_… WHERE …)`) is re-run for every shard and rescans that table — run it as its OWN query first, then pass the result back as a literal list (`IN (unhex('a'), unhex('b'))`). To filter transfers by a specific token, read `transfers_currency` (keyed by the token contract + `Block_Time`); `transfers_sender` / `transfers_receiver` are keyed by address, so filtering those by a token contract scans the table. Addresses are RAW BYTES `FixedString(20)` in `Transfer_Sender` / `Transfer_Receiver` (there are NO plain string address columns) → `Transfer_Sender = unhex(substring(lower('0x…'),3))`, output `concat('0x',lower(hex(col)))`. Tx hash is `Transaction_Hash` `FixedString(32)` (same unhex/hex pattern). A SET of hashes or addresses must have the column's exact type: `Transaction_Hash IN (SELECT toFixedString(unhex(h), 32) FROM …)`, `toFixedString(…, 20)` for an address. A plain `unhex(…)` set, or a JOIN on a String key, silently misses every value ending in `00`; `=` and a literal list `IN (unhex('a'), unhex('b'))` are safe. Currency symbol + decimals are INLINE columns (no dictionaries): amount = `toFloat64(Transfer_Amount) / pow(10, Transfer_Currency_Decimals)`; symbol = `Transfer_Currency_Symbol`; token contract = `Transfer_Currency_SmartContract` — itself RAW BYTES in a `String` column (not text), so filter it `= unhex('<40 hex, no 0x>')` and read it back `concat('0x',lower(hex(…)))`; a `'0x…'` text literal matches nothing. Always add `AND Transfer_Success = 1`. `Transfer_Type`: 'token' = a token transfer, 'transaction' = a plain native-coin send, 'call' = native coin moved by a call. A transaction's OWN value transfer is stored either as 'transaction' or as a 'call' with `Call_Index = 0`; only a 'call' with `Call_Index != 0` is an INTERNAL transfer (made by contract code deeper inside the transaction). For top-level transfers filter `(Transfer_Type IN ('token','transaction') OR (Transfer_Type = 'call' AND Call_Index = 0))` - `Transfer_Type IN ('token','transaction')` alone drops a large share of ordinary sends. Time = `Block_Time`. 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). Other `optimism_api.*` tables (calls, transactions, balances) are reachable with an explicit db prefix. Counterparty labels are NOT in this database — use labels_for_addresses. Read-only; always add a LIMIT of at most 10,000 — a larger answer fails with an error, so aggregate (GROUP BY, count) instead. 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). Exact table and column names first: chain_list_tables, chain_describe_table and chain_search_columns with database=optimism_api.

  • Optimism tx events

    ALL EVENT LOGS in one or more Optimism (op, OP, OP Mainnet, L2) transactions, including decoded arguments plus raw topics and data. Use after optimism_find_events identifies a transaction, or whenever a tx receipt's complete event payload is needed. NOT the value moved in a transaction → use optimism_tx_transfers. Accepts up to 50 transaction hashes separated by "|". `Parsed=0` means no ABI matched: Event, Signature and Arguments can then be empty, but Topic0, Topics and Data remain usable. Arguments are named objects with Name, Type, string Value and Indexed; integer values are decimal strings to avoid JSON-number precision loss; use raw Topics/Data for values wider than the decoded numeric fields. Argument names come from one known ABI for the Signature and can be another contract's wording - Topics and Data are the log's own. By default, reverted call-frame logs, removed logs and failed transactions are excluded; set only_successful=0 to inspect them with the returned status fields.

  • Optimism tx transfers

    All token & native transfers inside ONE OR SEVERAL Optimism (op, OP, OP Mainnet, L2) transactions (sender → receiver, currency, amount, invoked method). Entry point for tracing when you have a tx hash — pass several hashes separated by "|" to inspect a batch in one call (rows are grouped per transaction, largest amount first within each). For an address's flow over time use optimism_transfers_out / optimism_transfers_in. To identify the addresses, pass them to labels_for_addresses. NOT the event logs of a transaction → use optimism_tx_events. FRESHNESS: transfers reach this data some minutes after the trade tools see a swap, so a hash that trader_trades or tx_trades already shows can return NO rows here yet - that is lag, not a missing transaction: retry in a few minutes. A transaction's own transfer is TOP-LEVEL, not internal, and is always included. Internal = 1 marks a transfer moved by contract code deeper inside a transaction; those are left out unless you pass include_internal=1.

  • Pair ohlcv

    PRICE HISTORY of a trading PAIR (base/quote) on one chain as OHLC / OHLCV candles, priced in USD or in the quote token — one series per DEX pool of the pair. Use to chart "<BASE>/<QUOTE>" over time or a price-in-quote series. For a single token use token_ohlcv; for a well-known coin with no chain pinned use currency_ohlcv. Use `quote_in` = "usd" (default) for USD-denominated prices, or "quote" for prices expressed in the quote token (e.g. price of PEPE *in WETH*). An empty `quote_address` means the chain's native coin (ETH, BNB, SOL, TRX, …). Backed by Bitquery's DEX index across Ethereum, Arbitrum, Base, Matic, Optimism, Binance Smart Chain, Tron, Solana, Robinhood and Arc — works for rare / long-tail / newly-launched pairs. ROWS: one row per (candle start, pool) — a pair traded in three pools returns three rows per candle, each with its Pool_Address and Dex. Pass `pool_address` for the series of one pool. Re-written copies of an open candle are collapsed to the newest. A candle's High and Low cover EVERY swap in it, however small, and a swap's price is worked out from its own two amounts, so one tiny or unusual swap can stretch them far past anything that could actually be traded at — the closes are the robust series. CANDLE SIZE: `interval_seconds` is one of 1, 3, 5, 10, 30, 60, 300, 900, 1800, 3600 (anything else is rejected). For 4h / 1d candles request 3600 and aggregate. WINDOW: `after_time` / `before_time` (UTC — "2026-09-15 08:00:00", a date, or unix seconds) select an absolute period: rows that start at or after after_time and before before_time. Without after_time the window is the `window_hours` before before_time (or before now); after_time takes precedence. History reaches back about 30 days. Rows are newest first (`order` = oldest for oldest first), at most `limit` rows — to page further back, pass the oldest returned Time as before_time. The per-candle `Market_Cap_Usd` of the BASE token is its OWN valuation (`null` with `Fdv_Usd` when the base stands for a multi-chain or bridged asset — WETH, WBTC, USDC, LINK on each chain; Asset_Market_Cap_Usd / Asset_Fdv_Usd carry the whole asset's figures), circulating-supply based and `null` when no circulating supply is known; `Fdv_Usd` is the total-supply valuation — call it FDV, never market cap. Both are `null` when the supply is unknown or not credible; call `token_price` on the base token to see which reason applies. IF THE USER IS ASKING FOR A USD PRICE CHART OF A WELL-KNOWN CRYPTOCURRENCY (USDC, USDT, WETH, WBTC, BTC, ETH, SOL, DAI, …) AND HAS NOT PINNED A SPECIFIC BLOCKCHAIN OR PAIR, prefer `currency_ohlcv`. Only use `pair_ohlcv` when a specific base/quote pair is required (e.g. candles priced *in* the quote token, or a specific pool on one chain). LATEST TICK: for the price right now pass interval_seconds=1 and window_hours=1 and take the first row(s).

  • Pair price

    Latest price of a specific trading PAIR (base/quote) on one chain — both USD and quote-denominated. Use for "<BASE>/<QUOTE> price", "PEPE in WETH". NOT for a single token (use token_price) and NOT a time series (use pair_ohlcv). Returns ONE row with BOTH the most recent USD price AND the most recent price expressed in the QUOTE token, plus market cap, total / circulating / max supply and FDV of the BASE token. The price is the close of the most recently updated DEX pool that pairs those two tokens on the given blockchain (every pool of the pair is considered). Backed by Bitquery's DEX index across Ethereum, Arbitrum, Base, Matic, Optimism, Binance Smart Chain, Tron, Solana, Robinhood and Arc — works for rare / long-tail / newly-launched pairs. An empty `quote_address` means the chain's native coin (ETH, BNB, SOL, TRX, …) as the quote. MARKET CAP vs FDV — `Market_Cap_Usd` is circulating-supply based and is returned ONLY when a circulating supply is actually known for the base token; otherwise it is `null`. Most long-tail tokens have no circulating-supply figure, so `null` is normal and does NOT mean the token is untraded — read `Fdv_Usd` (the total-supply valuation) instead, and call it FDV, never "market cap". `Fdv_Usd` is itself `null` when even the total supply is unknown — then no valuation at all is available for the base token, and `Total_Supply` / `Circulating_Supply` are `null` too. A supply figure that is not known is always `null` (unknown), never 0. A circulating supply reported above the total supply is capped at the total, and the market cap then equals the FDV. BOTH valuations (token and Asset_* alike) are additionally WITHHELD (`null`, with a non-empty `Valuation_Warning`) when the supply behind them is not credible: a supply far larger than any real token, or a resulting valuation larger than any plausible market. Mint-and-burn tokens report exactly that — supply parked on a burn address (`0x…dead`, `0x0`) still counts in `Total_Supply`, so the raw valuation lands many orders of magnitude above anything real. When `Valuation_Warning` is set, report the valuation as unavailable and say why — do NOT rebuild it yourself from supply x price. To see how much of the supply is burned, call the chain's `<chain>_token_holders` tool (`chain_capabilities` lists the chains that have one). The supply and valuation columns are the BASE token's own figures: `null` when the base stands for a multi-chain or bridged asset (WETH, WBTC, USDC, LINK on each of its chains); Asset_Currency_Id, Asset_Total_Supply, Asset_Circulating_Supply, Asset_Market_Cap_Usd and Asset_Fdv_Usd always hold the whole asset's figures (as in token_price). `Symbol_NonAscii` = 1 flags a `Token_Symbol` that is not plain ASCII. That is normal for CJK / emoji token names, but it is also how a scam token impersonates a major one: Cyrillic or Greek look-alike letters make a fake `USDT` / `SOL` / `BTC` read identically to a human. Never treat such a token as the asset it resembles — say the symbol is a look-alike. Use `find_tokens` / `find_token_by_address` first if you only have names / symbols and need to resolve the correct addresses. Base and quote must be on the same network. IF THE USER IS ASKING ABOUT THE PRICE OF A WELL-KNOWN CRYPTOCURRENCY (USDC, USDT, WETH, WBTC, BTC, ETH, SOL, DAI, …) IN USD AND HAS NOT PINNED A SPECIFIC BLOCKCHAIN OR PAIR, prefer `currency_price` — aggregation across every token of that asset on every indexed chain gives a better price estimate and wider coverage than any single pair. Only use `pair_price` when a specific base/quote pair or chain is required (e.g. "PEPE/WETH on Ethereum"). IF THE USER EXPLICITLY WANTS A REAL-TIME / UP-TO-THE-SECOND QUOTE ("right now", "current price", "latest tick"), this tool reads from the 1-hour bucket and can lag up to 1 hour. Call `pair_ohlcv` with `interval_seconds=1` and `window_hours=1` instead and take the first row — 1 s is the finest granularity Bitquery stores. Names longer than 128 characters and symbols longer than 32 are cut and end in `…` (spam tokens carry names of up to 34,000 characters).

  • Polymarket find markets

    Find PREDICTION MARKETS - Polymarket betting / wagering markets, event contracts, binary yes-no questions - by TITLE TEXT or by CATEGORY (sports, politics, crypto, esports, weather, stocks, mentions, entertainment), and resolve them to a Question_Id. CALL THIS FIRST whenever a request names a prediction market, a bet, a wager or an event outcome in words rather than by id, before any odds / probability / trade / settlement query. One row per market. NOT live odds or implied probability -> use polymarket_market_odds. NOT the individual bets / fills of a market -> use polymarket_market_trades. NOT a volume ranking across many markets -> use polymarket_top_markets. For one market's full detail (outcome / conditional token ids, oracle, collateral, resolution rules) -> polymarket_market_info. Polymarket on Polygon, history from September 2025 onward, down to the second. The title search is case-insensitive AND accent/alphabet-aware, so "munchen", "MUNCHEN" and "Munchen"-with-accent all reach the same titles. Leave `query` empty and pass `category` and/or `after_time` to simply browse a slice of the market list. Narrow with `status` (open = no resolution recorded yet; resolved = the oracle has reported) and with `after_time` / `before_time`, which bound the market's CREATION. `category` is a coarse subject bucket derived from the market's own resolution source and wording - use it for "what sports markets are open", "show me the political / election markets", "crypto price markets". Values: sports, crypto, esports, politics, weather, stocks (equities, commodities, macro), mentions ("will X say Y" / tweet-count markets), entertainment (awards, music, film), other. It is a best-effort classification, not an official Polymarket taxonomy: sports and crypto together are about 75 % of all markets, politics and entertainment are small, and a market whose subject cannot be recognised is reported as `other` (about 7 %). An empty value applies no category filter; an unrecognised non-empty value is rejected. Every returned row carries its Category, so you can always see how a market was classified. Category is NOT a filter on the outcome. Each row returns Question_Id (the id every other polymarket_* tool takes), Title, Status, Category, Created_Time, Resolved_Time and Resolved_Outcome (the winning outcome - empty while the market is open), Outcomes (the outcome labels), Condition_Id, Market_Id, Group_Id + Group_Title (markets belonging to one event share a group) and Resolution_Source (the reference the market settles against). The outcome ASSET IDS - needed to look at a single outcome - are deliberately not in this list; get them from polymarket_market_info. Created_Time is the market's on-chain registration; for markets whose registration is not in the recorded history it falls back to the market's own creation timestamp, capped at its first recorded event. Rows come back newest-created first, with the question id as a stable tie-break - many markets are created in the same second. A category filter costs roughly twice a plain title search, so when you already know the wording prefer a specific `query` (a name, a number, a date) over category plus a large `limit`.

  • Polymarket market disputes

    CONTESTED prediction markets (Polymarket, on Polygon) — the markets whose reported answer was CHALLENGED and sent back for re-resolution, and the markets whose written resolution RULES were amended after launch, newest first, with the wallet that raised the challenge. Use for "which markets were disputed this month", "was this market's outcome challenged", "who is challenging outcomes", "were the rules changed after people had already bet". NOT the ordinary created/resolved lifecycle → use polymarket_market_events. NOT the market's detail card or its current rules text → use polymarket_market_info. NOT trades, odds or payouts → polymarket_market_trades, polymarket_market_odds, polymarket_settlements. Every event here is read directly from the chain. READ THIS BEFORE CONCLUDING A MARKET WAS NOT DISPUTED. Challenge records begin on 2026-03-09, months later than the market history the other polymarket_* tools cover (September 2025 onward). For anything that happened before 2026-03-09 this tool returns nothing, and that silence means "not covered", NOT "not disputed". Say so when you report on an older market; never present an empty result as proof. The two event types: - disputed — someone put up a bond to challenge the answer that had been reported for this market, which cancels that answer and restarts the resolution. Disputer is who challenged, Proposer is whose answer they challenged. A dispute is not a verdict: the market usually still settles afterwards, sometimes to the very same outcome, so check Market_Resolved_Outcome before saying a challenge succeeded. - rules_updated — the market's written resolution criteria were amended after the market was already live, by the wallet in Updated_By. These are more common than disputes and are often clarifications, but an amendment after trading has started is worth flagging on its own. event_type defaults to disputed, because amendments outnumber challenges roughly three to one and would otherwise bury them. Cost here is driven ENTIRELY by the time window, never by limit — the search cannot jump straight to one market, so question_id narrows the answer but not the work. The default window is 30 days. Widening much past 90 days gets slow and may time out; when it does, retry with a smaller window_hours or step back through the history with before_time. Challenges are genuinely rare — of the order of a few hundred across a month against millions of markets — so an empty page over a short window is a normal result, not an error. Title, Market_Status, Market_Resolved_Time and Market_Resolved_Outcome are filled in from the market itself. A small share of challenged markets have no market record at all and come back with an empty Title — the challenge is still real; look the market up by its Question_Id. Feed Disputer / Proposer to labels_for_addresses to identify them, and Question_Id to polymarket_market_events for the full lifecycle. FRESHNESS. Every row carries Last_Indexed_Time - the newest resolution-process event recorded so far - and Data_Lag_Minutes, how far that is behind the clock (usually well under half an hour, occasionally hours). A challenge raised after Last_Indexed_Time is not visible yet, so over a very short recent window an empty page can mean "not recorded yet" rather than "not disputed".

  • Polymarket market events

    LIFECYCLE TIMELINE of prediction markets (Polymarket, on Polygon) — a newest-first stream of market CREATED and market RESOLVED events, across every market in a period or for one market end to end. Use for "which markets were created today", "what resolved in the last hour and to what outcome", "when was this market opened and settled", "which resolver reports these markets". NOT a way to find a market from its wording → use polymarket_find_markets. NOT the detail card of one market (outcome asset ids, collateral, resolution rules) → use polymarket_market_info. NOT prices, fills or payouts → polymarket_market_odds, polymarket_market_trades, polymarket_settlements. Polymarket on Polygon, history from September 2025 onward, down to the second. There are exactly TWO lifecycle events, and this tool streams both: - created — the market was registered on chain and became tradeable. - resolved — the resolver reported the winning outcome. Outcome and Outcome_Asset_Id name it; the payouts to holders are separate records (polymarket_settlements). The steps a resolver takes BEFORE reporting — proposing an answer, a challenge to that answer, the challenge being settled — are not part of these records, so this timeline cannot tell you whether an outcome was contested. Reporting is not always clean. A report transaction can revert and be retried, sometimes for hours (one market took 302 attempts), and a handful of markets carry only failed attempts and are therefore NOT actually settled despite looking it. Status says which is which; reverted attempts are hidden until include_failed=1. Market_Resolutions counts the market's confirmed reports over its whole life — 0 means still open, 1 is normal, more than 1 (also flagged by Resolved_More_Than_Once) is rare — and Market_Failed_Attempts counts the reverted ones, so a troubled resolution is visible without unhiding the rows. Scope it before you page. With question_id (or condition_id) you get that market's complete lifecycle regardless of window_hours, and it is fast. Without one you get a cross-market stream over the time window — 24 hours by default, which is already tens of thousands of events — so narrow with event_type, oracle, after_time / before_time rather than raising limit. Widening window_hours a long way back costs proportionally more and may time out; retry with a smaller window. Page back with cursor: pass the Cursor value of the LAST row of a page to get the next one. It never skips rows sharing a timestamp, and that matters here — one report transaction settles dozens of markets in the same second. When cursor is set, before_time is ignored and the window is measured back from the cursor. FRESHNESS. Every row carries Last_Indexed_Time - the newest created/resolved event recorded so far for ANY market - and Data_Lag_Minutes, how far that is behind the clock (usually well under an hour, occasionally several hours). Events after Last_Indexed_Time are not visible yet, so "nothing resolved in the last hour" is only true if Last_Indexed_Time is recent; a market that resolved minutes ago can still read as open here. Feed Question_Id to polymarket_market_info / polymarket_market_odds / polymarket_market_trades, and Oracle to labels_for_addresses to identify the resolver.

  • Polymarket market info

    Full detail for ONE OR MANY Polymarket prediction markets BY ID — the batch resolver that hands you the OUTCOME ASSET IDS every outcome-level tool needs, plus the oracle, the collateral token, the created/resolved lifecycle with their transaction hashes, the resolution source, the image and the market's written resolution rules. Pass a "|"-separated LIST of ids to resolve a whole batch in ONE call instead of calling once per market, or a group_id to get every market of one event. It also resolves an OUTCOME ASSET ID back to the market that issued it — the way back when an outcome asset id is the only identifier a record left you with. NOT a way to find a market from its wording → run polymarket_find_markets first. NOT current prices or implied probability → use polymarket_market_odds. NOT the fills of a market → use polymarket_market_trades. Polymarket on Polygon, history from September 2025 onward, down to the second. FIVE ways in, every one of them optional and every one of them accepting a "|"-separated batch: question_id (the direct lookup — by far the fastest, use it whenever you have it), condition_id, group_id (every market of one event), market_id and outcome_asset_id. question_id / condition_id / group_id are 0x-hex and case-insensitive, so an upper-case or checksummed id works and the "0x" prefix is optional; market_id is the short numeric id; outcome_asset_id is a long DECIMAL number, never hex. Setting more than one key ANDs them — question_id + group_id keeps only those of your ids that belong to that event. Ids that match nothing are simply absent from the result, with no error, so a batch never fails as a whole. Passing NO key returns nothing. RECOVERING A MARKET FROM AN OUTCOME ASSET ID: many trade records carry an outcome asset id but no market id at all, and this tool is the only way back from one to the other. Pass the ids you are stuck with — batched, not one call each — and read Matched_Outcomes, which names the outcome each of them is. EXPECT FEWER ROWS THAN IDS, for two ordinary reasons, neither of them an error or a bad id: a sizeable minority of outcome asset ids have no market record at all and return nothing (do not read "no market" as "wrong id"), and two ids belonging to the SAME market — the two sides of a binary market, say — collapse into that market's single row, with both listed in its Matched_Outcomes. The same holds for the other keys: any id that matches nothing is simply absent. condition_id, group_id, market_id and outcome_asset_id have to be searched for and take a couple of seconds regardless of how many you pass, so batch them rather than calling once per id — and prefer question_id, which answers almost instantly. Returns one row PER MARKET, newest-created first: Question_Id, Condition_Id, Title, Status, Created_Time / Created_Tx / Created_Onchain, Resolved_Time / Resolved_Tx / Resolved_Outcome (the winning outcome) / Resolved_Outcome_Asset_Id / Resolution_Attempts_Failed, Outcomes (one entry per outcome with its label, asset_id and index), Matched_Outcomes (filled only when you passed outcome_asset_id: the requested outcome(s) this market holds, each with its label and its index, so an asset id maps to a name and a position without a second call), Oracle, Outcome_Token_Contract, Registered_Collateral_Token + Registered_Collateral_Symbol + Registered_Collateral_Decimals (the collateral declared by the market registration), Marketplace, Protocol, Market_Id, Group_Id + Group_Title, Resolution_Source, Image, and Rules — the full written criteria the market resolves on, which is usually the real answer to "how does this market settle?". Notes: a market counts as resolved only once a resolution transaction has actually SUCCEEDED on-chain: attempts that failed are excluded from Status, Resolved_Time, Resolved_Tx and Resolved_Outcome, so a market whose every attempt failed correctly still reads "open" rather than settled. Resolution_Attempts_Failed reports how many failed attempts that market accumulated — it is 0 for almost every market, and a large number means a settlement that was contested or repeatedly retried before it went through. The registered collateral can differ from the token the market's orders actually settle in (for example USDC in registration versus pUSD in trading), so it is named Registered_Collateral_* here and in polymarket_market_odds, while the traded token is Trade_Collateral_* in polymarket_market_odds and polymarket_top_markets; all USD amounts use the trade record's own decimals. Compare token addresses, not symbols: different contracts can share the symbol USDC. Created_Onchain = 0 means the registration itself is not in the recorded history, so Created_Time is the market's own creation timestamp capped at its first recorded event. A small share of markets carry no outcome asset ids at all — those come back with empty asset_id values and cannot be queried at outcome level. Every row carries that market's full rules text, so a large batch is a large answer — ask only for the markets you need. If you pass more ids than `limit`, or query an event with more markets than `limit`, the extra markets are dropped silently (newest kept) — raise `limit` to match.

  • Polymarket market odds

    Odds of ONE prediction market (Polymarket) — the last traded price and implied probability of EACH outcome, plus volume and the last-trade time. A single point in time: NOW by default, or AS OF any past instant with at_time. NOT a time series — use polymarket_market_price_history. NOT the individual fills — use polymarket_market_trades. Identify the market with question_id, condition_id OR outcome_asset_id — at least one is required. Resolve them with polymarket_find_markets (search by question title) or polymarket_market_info. question_id is the direct lookup and is fastest; condition_id and outcome_asset_id have to be looked up through the market's registration first, so they answer a little slower. Precedence when more than one is given: question_id, then condition_id, then outcome_asset_id — the others are ignored. Passing none returns nothing. Reading the numbers: - Price is USD per share, 0..1, and IS the market-implied probability: 0.62 = "the market prices this outcome at 62 %". Implied_Probability_Pct is the same number as a percentage. - One row per outcome TOKEN, identified by Outcome_Asset_Id. The outcome name and index come from the market's own definition, not from the individual fill, so a two-outcome market always answers with exactly two rows. - Across a market's outcomes the prices should add up to about 1. A visible gap normally just means one outcome's last fill is older than the other's — compare Last_Trade per row, and prefer Vwap_Window when a leg is stale or its last fill was a dust trade. - As_Of echoes the instant the answer describes. EVERY column is as of that moment: with at_time set, Price / Last_Trade / Volume_Usd_Total / Trades_Total describe the market as it stood THEN, not today. - Volume_Usd_Window / Trades_Window / Vwap_Window cover the last window_hours counted back from As_Of (default 24), so they are 0 / empty for a market that had already settled by then — read Volume_Usd_Total / Trades_Total for its figures up to that point. - Volume is in the collateral the market's orders settle in: Trade_Collateral_Symbol, Trade_Collateral_Token and Trade_Collateral_Decimals (USD-pegged, taken from the newest fill). Registered_Collateral_Symbol / _Token / _Decimals are the token the market was registered with - the same fields polymarket_market_info returns - and can legitimately be a different wrapper (for example USDC registered, pUSD traded). Compare the token addresses, not the symbols: two different contracts can both be called USDC. - Last_Indexed_Time is the newest fill recorded in ANY market and Data_Lag_Minutes is how far that is behind the clock - usually well under half an hour, occasionally hours. Fills after Last_Indexed_Time are not visible yet, so with at_time empty the answer really describes the market as of Last_Indexed_Time, and the most recent part of the window columns may still be missing. Last_Trade well before Last_Indexed_Time means the market itself went quiet; a large Data_Lag_Minutes means its latest fills simply have not arrived yet. Every match leaves one record per resting order it filled plus one for the order that crossed the book. The two classes do NOT mirror each other one to one - a match can pair orders on opposite outcomes at complementary prices - so "both" is NOT a fixed multiple of "maker" (it is not "double"), and the ratio differs by outcome, market and window. order_side picks which records to count; keep the default "maker" for market-level volume, VWAP and trade counts. Recovered_Trades and Unresolved_Trades break Trades_Total down by how each fill was identified, so a restored figure is never silent. Not every fill records which market it belongs to, and a fill whose market is missing from the registration cannot be named at all. The three tools make that visible instead of guessing: - Recovered = 0: the fill carried its own market identity — nothing was inferred. - Recovered = 1: the fill did not name its market, and it was matched to this one through the market's registered outcome tokens. Price, size, direction, trader and transaction are always the fill's own; only the naming was restored. - Recovered = -1: the fill named neither a market nor an outcome the registration knows. It is reported because it is a real trade, but its labels stay blank. - Outcome_Resolved = 0 marks a row whose outcome name could not be taken from the market's own definition. Treat a blank or surprising Outcome on such a row as UNKNOWN, not as fact — an outcome name stored on the fill itself can describe the other side of the match. An empty label with Outcome_Resolved = 1 really is an unnamed outcome; an empty label with Outcome_Resolved = 0 means nobody recorded the name. Because the outcome token id survives on every fill even when the market identity does not, outcome_asset_id is the key most likely to find such trades.

  • Polymarket market price history

    Price SERIES of ONE prediction market (Polymarket) — Open/High/Low/Close, VWAP and volume per time bucket, for EACH outcome. Use for charts, "probability over time", "how did the odds move", momentum. NOT a single latest price — use polymarket_market_odds. NOT the individual fills — use polymarket_market_trades. Identify the market with question_id, condition_id OR outcome_asset_id — at least one is required. Resolve them with polymarket_find_markets (search by question title) or polymarket_market_info. question_id is the direct lookup and is fastest; condition_id and outcome_asset_id have to be looked up through the market's registration first, so they answer a little slower. Precedence when more than one is given: question_id, then condition_id, then outcome_asset_id — the others are ignored. Passing none returns nothing. Prices are USD per share, 0..1, and ARE the market-implied probability (Close 0.62 = 62 %). On a two-outcome market the two Closes of the same bucket should add up to about 1. - interval accepts 1s, 5s, 10s, 30s, 1m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 12h or 1d; anything else is rejected. Buckets are aligned to whole UTC units. - The default window is the market's WHOLE history, which is cheap here — narrow it with after_time / before_time only when you actually want a slice. - limit is the number of buckets PER OUTCOME, newest first. Reverse the rows client-side to plot a chart left-to-right. - Buckets with no trades are omitted; there is no gap filling, so a sparse market yields sparse rows. - Open / Close are the first / last fill inside the bucket. On a thin bucket (small Trades) they can be a single dust trade — Vwap is the more robust number, and Volume_Usd / Trades tell you how much to trust the bucket. - Shares is the outcome-token quantity traded; Volume_Usd is the collateral value. - Series are keyed by Outcome_Asset_Id, which is what distinguishes the outcomes; Outcome is its display name. Plot one line per Outcome_Asset_Id. Every match leaves one record per resting order it filled plus one for the order that crossed the book. The two classes do NOT mirror each other one to one - a match can pair orders on opposite outcomes at complementary prices - so "both" is NOT a fixed multiple of "maker" (it is not "double"), and the ratio differs by outcome, market and bucket. order_side picks which records to count; keep the default "maker" for a volume and VWAP series. Last_Indexed_Time (on every row) is the newest fill recorded in ANY market and Data_Lag_Minutes how far that is behind the clock - usually well under half an hour, occasionally hours. Buckets after Last_Indexed_Time cannot exist yet and the bucket containing it may be incomplete: a series that stops well before Last_Indexed_Time means the market went quiet, one that stops at it means the newest fills have not arrived yet. Recovered_Trades and Unresolved_Trades break each bucket's Trades down by how its fills were identified, so no bucket is silently short or silently restored. Not every fill records which market it belongs to, and a fill whose market is missing from the registration cannot be named at all. The three tools make that visible instead of guessing: - Recovered = 0: the fill carried its own market identity — nothing was inferred. - Recovered = 1: the fill did not name its market, and it was matched to this one through the market's registered outcome tokens. Price, size, direction, trader and transaction are always the fill's own; only the naming was restored. - Recovered = -1: the fill named neither a market nor an outcome the registration knows. It is reported because it is a real trade, but its labels stay blank. - Outcome_Resolved = 0 marks a row whose outcome name could not be taken from the market's own definition. Treat a blank or surprising Outcome on such a row as UNKNOWN, not as fact — an outcome name stored on the fill itself can describe the other side of the match. An empty label with Outcome_Resolved = 1 really is an unnamed outcome; an empty label with Outcome_Resolved = 0 means nobody recorded the name. Because the outcome token id survives on every fill even when the market identity does not, outcome_asset_id is the key most likely to find such trades.

  • Polymarket market trades

    Individual FILLS of ONE prediction market (Polymarket), newest first — which trader bought or sold which outcome, at what price, against whom. Use for the tape, whale hunting, "who is behind this move", counterparty analysis, and for ONE WALLET's fills inside ONE market via the trader param. NOT an aggregated price — use polymarket_market_odds for the current odds and polymarket_market_price_history for a price series. For a wallet's activity ACROSS markets use polymarket_trader_activity. Identify the market with question_id, condition_id OR outcome_asset_id — at least one is required. Resolve them with polymarket_find_markets (search by question title) or polymarket_market_info. question_id is the direct lookup and is fastest; condition_id and outcome_asset_id have to be looked up through the market's registration first, so they answer a little slower. Precedence when more than one is given: question_id, then condition_id, then outcome_asset_id — the others are ignored. Passing none returns nothing. Each row is ONE ORDER: - Trader is the address that OWNS the order. Counterparty is who it matched against — and on an order that crossed the book (Is_Taker_Order=1) that counterparty is the exchange contract itself rather than another trader, because such an order is matched against several resting orders at once. - Side is the Trader's own direction: "buy" = they bought the outcome token named in Outcome, "sell" = they sold it. Buying "No" is economically the same as selling "Yes" — read Outcome and Side together before calling someone bullish. - Price is USD per share, 0..1 (= implied probability). Usd is the collateral value of the order, Shares the outcome-token quantity: Usd = Price x Shares. - Outcome_Asset_Id identifies the outcome; Outcome is its display name. - Fee_Usd is the fee that order paid, in the same collateral currency as Usd. FEE_USD IS THE FEE THAT ORDER PAID, in the market's collateral currency, and it is charged to the side that takes liquidity. Resting orders that were merely filled almost never pay one, so under the default order_side='maker' this column is close to 0 on nearly every row - that is the real economics, not a gap in the data. Set order_side='taker' or 'both' to see the fills that were actually charged. Fees are a recent feature of these markets, so an older trade shows a real 0. trader returns that wallet's OWN orders in this market — every order it placed, whether it rested on the book or crossed it. Setting trader automatically counts both kinds, because a wallet that only ever crosses the book owns no resting orders and would otherwise come back empty. That address's own direction is in Side, so there is no need to look for it in the Counterparty column; a wallet that appears only as somebody else's Counterparty did not place that order. Narrowing before you page matters: busy markets fill hundreds of orders inside a single second. min_usd drops dust (a large share of rows are sub-dollar), outcome pins one side, after_time / before_time bound the period. Page back through history with cursor: pass the Cursor value of the LAST row of a page to get the next one. Unlike before_time it never skips rows that share a timestamp, and here that matters — one five-minute stretch of a busy market held thousands of fills spread over only a few hundred distinct timestamps. Every row says how it was identified, so the tape is never silently partial. Not every fill records which market it belongs to, and a fill whose market is missing from the registration cannot be named at all. The three tools make that visible instead of guessing: - Recovered = 0: the fill carried its own market identity — nothing was inferred. - Recovered = 1: the fill did not name its market, and it was matched to this one through the market's registered outcome tokens. Price, size, direction, trader and transaction are always the fill's own; only the naming was restored. - Recovered = -1: the fill named neither a market nor an outcome the registration knows. It is reported because it is a real trade, but its labels stay blank. - Outcome_Resolved = 0 marks a row whose outcome name could not be taken from the market's own definition. Treat a blank or surprising Outcome on such a row as UNKNOWN, not as fact — an outcome name stored on the fill itself can describe the other side of the match. An empty label with Outcome_Resolved = 1 really is an unnamed outcome; an empty label with Outcome_Resolved = 0 means nobody recorded the name. Because the outcome token id survives on every fill even when the market identity does not, outcome_asset_id is the key most likely to find such trades. FRESHNESS. Every row carries Last_Indexed_Time - the newest fill recorded so far in ANY market - and Data_Lag_Minutes, how far that is behind the clock (usually well under half an hour, occasionally hours). Fills after Last_Indexed_Time are not visible yet. If the newest Time on the page is close to Last_Indexed_Time the market is active up to the latest recorded data; if it is far earlier, the market itself went quiet. A narrow after_time close to now can come back empty only because the data has not arrived yet. To identify addresses, pass the returned Trader / Counterparty values to labels_for_addresses.

  • Polymarket outcome holders

    CURRENT HOLDERS of ONE Polymarket outcome — who is holding "Yes" (or "No", or any named outcome) in a market right now, largest position first, with each holder's share balance, its % of the outstanding shares, and when they first acquired it. NOT who traded the most → use polymarket_top_traders. NOT the price / implied probability of the outcome → use polymarket_market_odds. NOT one wallet's own trade history → use polymarket_trader_activity. NOT the individual fills of a market → use polymarket_market_trades. Polymarket on Polygon; positions measured from on-chain share movements, history from September 2025 onward. HOW TO CALL IT: pass `question_id` (from polymarket_find_markets, or polymarket_market_info) plus the outcome you care about — either `outcome` as the label shown for that market ("Yes", "No", a team or candidate name; case-insensitive), or `outcome_asset_id`, the exact id polymarket_market_info returns for each outcome. Give neither and the market's FIRST outcome is used; every row names the outcome it actually reports. Balances are rebuilt from every recorded movement of that one outcome share — purchases, sales, shares created when a full set is minted, shares destroyed on redemption, AND plain wallet-to-wallet transfers, which order data alone cannot see and which dominate the very largest positions. WHO THESE ADDRESSES ARE: the holder of record is very often a PROXY CONTRACT operated on a user's behalf, or a market-making wallet — in a typical market several of the biggest holders are two wallets of the same operator passing shares between themselves. Do not present them as individual bettors. Label them with labels_for_addresses first, and use matic_transfers_in / matic_transfers_out to see where a position came from. READ WITH THE ROW: `Supply_Outstanding` is every share of that outcome currently in existence, so `Share_Pct` is a genuine concentration figure. `Holder_Count` is how many addresses hold a positive balance. `Scanned_From` is the point the history was rebuilt from — the market's registration, unless you overrode it. `Negative_Balances` should be 0; a value above 0 means that many addresses show more shares leaving than arriving, so the balances and the total are only approximate for this market — say so instead of quoting exact figures. If it is large, `Supply_Outstanding` and `Share_Pct` can even come back NEGATIVE: that is the unmistakable sign the figures are net flow over a shortened history rather than holdings, and it happens when `after_time` was set past the market's start. AFTER A MARKET RESOLVES the winners redeem, which destroys their shares, so the list shrinks over time and increasingly shows only holders who have not redeemed yet. For a live picture of conviction, ask about an open market. SPEED: the position history is rebuilt from the market's creation, so the call costs more the OLDER the market is — near-instant for a market a few days old, tens of seconds for one that has been open for months, where it may time out (retry, or ask about a younger market). `limit` does not change the cost.

  • Polymarket settlements

    REDEMPTIONS, SPLITS and MERGES on PREDICTION MARKETS (Polymarket, on Polygon) — the collateral side of a position, for ONE market (question_id), ONE wallet (holder), or both. Use for "who cashed out when <market> resolved", "how much did <wallet> redeem", "what did this wallet win and lose", "when did this market pay out". These are NOT buys and sells: for trades use polymarket_market_trades (one market) or polymarket_trader_activity (one wallet); for rankings use polymarket_top_markets / polymarket_top_traders. Every event here is read directly from the chain. LOSING REDEMPTIONS ARE INCLUDED, AND MUST NOT BE DROPPED SILENTLY. One redeem transaction emits one record per market it touched, and a market whose shares turned out worthless pays 0 collateral for 0 shares. Those records are about a THIRD of all redemption records, and they are precisely the markets the holder LOST. They come back with Zero_Payout = 1 and an empty Outcome, so they are easy to see and easy to count. include_empty = 1 (the default) returns them; include_empty = 0 returns only the records that paid something — reasonable when the question really is "what did this wallet collect", but a payouts-only list is NOT the wallet's settlement history and must never be presented as one. Splits and merges are effectively never zero, so the setting only ever changes redemptions. The three event types: - Redemption — the market has RESOLVED and the holder turned outcome shares back into collateral. This is the payout, and it is the only one of the three that implies the market is settled. A redemption that paid nothing means the holder's shares lost. - Split — the holder locked collateral to mint one complete set of outcome shares (one of every outcome). This is how shares are created without buying them, and it moves no money between traders. - Merge — the reverse: a complete set of outcome shares burned back into collateral. This is also how a fully hedged holder exits without selling. Splits and merges are position plumbing, mostly done by market makers. Do NOT add them to trading volume and do NOT read a large Split figure as a large bet. Returns per event: time, event type, holder, question id and title, the outcome the record itself moved, the outcome the market resolved to, collateral USD together with Settlement_Collateral_Symbol + Settlement_Collateral_Token (the collateral token that record moved - settlement records use several USD-pegged tokens and wrappers, which can differ both from the market's registered collateral and from the token its orders trade in), outcome shares, a Zero_Payout flag, the outcome token ids the event touched, and the transaction hash. Feed holders to labels_for_addresses to identify them. FRESHNESS. Every row carries Last_Indexed_Time - the newest settlement record recorded so far for ANY market - and Data_Lag_Minutes, how far that is behind the clock (usually well under an hour, occasionally hours). Redemptions, splits and merges after Last_Indexed_Time are not visible yet, so a short recent window can come back empty because the records have not arrived, not because nobody settled. READING THE OUTCOME COLUMNS. Outcome is the outcome THIS record moved; on a paying redemption that does not name one it is filled in from the market's resolution, and it is deliberately left EMPTY on a zero-payout redemption (the holder did not redeem the winning outcome — that is why nothing was paid) and on a Split or a Merge (which touch every outcome at once). Market_Resolved_Outcome is the market's own resolved outcome and is reported on every row, whatever the record itself did. A redemption's collateral is the payout RECEIVED, not profit — what the holder paid for those shares is not in this record, and a zero payout is not the size of the loss either. Never present a redemption total as a gain. For what was paid, and for the trading fees charged on the way in and out, use polymarket_trader_activity or polymarket_market_trades; settling a position is itself free of charge. The holder recorded on-chain is frequently a proxy or relayer contract acting for a person rather than that person's own wallet, so treat Holder as the settling account and not as a confirmed identity, and say so when reporting who redeemed. You MUST pass question_id or holder (or both); with neither, this returns nothing rather than looking at the whole history. With question_id it is cheap over the market's entire lifetime, so leave window_hours at 0 there. A holder-only lookup has to work through the time window instead, so its cost scales with window_hours, not with limit — keep it near the 7-day default and widen only when needed. May time out on very wide windows — retry with a smaller window_hours.

  • Polymarket top markets

    Leaderboard of PREDICTION MARKETS (Polymarket, on Polygon) by traded USD volume in a recent window — which questions people are actually betting on right now, ranked. Use for "hottest / most traded prediction markets", "biggest Polymarket markets today", "what is Polymarket trading today", and — with query or category — "the biggest BITCOIN markets this week", "most traded election markets today". NOT a wallet ranking (use polymarket_top_traders), NOT the individual trades of one market (use polymarket_market_trades), NOT a market you already know by name (use polymarket_find_markets), and NOT token/DEX trading — trending_tokens and top_traders_by_token cover swaps of ERC-20 tokens, an entirely different market. Every figure here is computed from the market's own settled on-chain orders. READ THE FIRST ROW BEFORE ANYTHING ELSE. Every response starts with one row where Row_Type='scope'; the ranked markets follow as Row_Type='market'. Every row carries Window_Start / Window_End (the period ranked, ending now), Last_Indexed_Time (the time of the newest order recorded so far, across all markets) and Data_Lag_Minutes (how far that is behind the clock), and the scope row's Note spells them out. Orders reach this data some minutes after they happen - usually well under half an hour, occasionally several hours. So a response with ONLY the scope row is not by itself "no trading": if Last_Indexed_Time is earlier than Window_Start, the window's orders have simply not arrived yet - say so and widen window_hours, never report the markets as quiet. If Last_Indexed_Time falls inside the window, nothing matched. On a short window a Data_Lag_Minutes that is a sizable share of the window also means its totals are understated. Each market row returns: the question id (the key every other polymarket_* tool takes), its title, order count, USD volume, outcome shares traded, volume-weighted average price, distinct trading wallets, number of outcomes, the trading fees charged on the market in the window, Trade_Collateral_Symbol + Trade_Collateral_Token (the collateral token the market's orders settle in), and the first/last trade time in the window. The collateral a market was REGISTERED with (Registered_Collateral_* in polymarket_market_info / polymarket_market_odds) can be a different token; compare the token addresses, not just the symbols - two different contracts can both be called USDC. PRICE IS A PROBABILITY. Every outcome trades between 0 and 1 and is the market's implied chance of that outcome. Avg_Price here is blended across ALL outcomes of the market, so on a two-outcome market it sits near 0.5 by construction — it is a volume-weighted average cost, NOT the market's odds. For the odds of each outcome use polymarket_market_odds. VOLUME IS NOT PROFIT. These are gross USD amounts that changed hands; no profit, loss or open position is computed anywhere in this tool. A matched trade leaves order records for the resting orders it filled and one for the order that took the liquidity. The two classes do NOT mirror each other one to one - a match can pair orders on opposite outcomes at complementary prices - so counting both is NOT a fixed multiple of the resting-order figure: it is not "double", and the ratio moves from market to market and window to window. By default only the resting-order side is counted - order_side='maker' - and that is the basis to use for market volume. Use order_side='taker' to rank by the liquidity-taking side instead, or 'both' only if you deliberately want every order record. All three are real orders; this is a choice of which side to measure, not a filter for bad data. FEES_USD DOES NOT MOVE WITH order_side. The trading fee is charged to the side that takes liquidity, in the market's collateral currency, and the resting orders it matched are not charged for the same fill — so unlike volume, a fee is never counted twice and never needs a side chosen for it. It is the market's whole fee for the window EXCEPT for the identity-less orders described below, which are excluded from this ranking and therefore from this total as well. Fees are a recent feature of these markets: a market that traded before they existed shows 0, and that is a real 0, not missing data. Fees_Usd is revenue taken by the venue, not a cost that has been subtracted from Volume_Usd. RANK A SUBJECT WITH query AND/OR category. query matches the market title as a substring; category picks one of sports / crypto / esports / politics / weather / stocks / mentions / entertainment / other. Setting both applies both conditions. "Top bitcoin markets over 7 days" is then a single call — do NOT pull a large limit and filter the titles yourself. polymarket_find_markets is the tool for BROWSING a subject (it orders by creation time and knows about open vs resolved); this tool is the one that orders by money. A filter narrows the RESULT, not the work: query is free, but category has to consult market registrations as well, which makes it several times slower than the same call without it. Keep the window small when you set a category. ORDERS WITH NO MARKET IDENTITY ARE EXCLUDED, AND THE LOSS IS NOT ALWAYS SMALL. Some order records carry no question id; they all share the empty one, so ranking them would produce a single nameless entry aggregating unrelated markets, which on a window reaching into mid-2026 would outrank every real market. They are dropped instead. On recent windows that costs almost nothing, but the further back the window reaches into 2026 the larger the share of such orders becomes, and on some individual markets it was most of their volume — so a market can be ranked well below its true size or pushed off the list entirely. Prefer recent windows for ranking, and read a specific market's real total with polymarket_market_odds, which counts those orders through the outcome asset id. COST SCALES WITH THE WINDOW, NOT WITH limit — this ranking has to look at every market, so a 7-day window is several times the work of the 24-hour default however small a limit you ask for. Keep window_hours as small as the question allows, and expect a window that ends far in the past to cost more than a recent one of the same length. May time out on very wide windows — retry with a smaller window_hours.

  • Polymarket top traders

    Leaderboard of WALLETS by traded USD volume on PREDICTION MARKETS (Polymarket, on Polygon) -- either across every market in a recent window, or inside ONE market when you pass question_id. Use for "biggest prediction-market traders", "who are the whales in <market>", "top Polymarket wallets". NOT a ranking of markets (use polymarket_top_markets), NOT one wallet's own breakdown (use polymarket_trader_activity), and NOT token/DEX traders -- top_traders_by_token, top_traders_by_network and top_traders_by_pair rank wallets by ERC-20 swap volume, an entirely different market. Every figure here is computed from settled on-chain orders. RANKED BY VOLUME, NOT BY PROFIT. "Top" here means most USD traded. This tool computes no profit, loss, win rate or open position, and a wallet at the top of it may well be a market maker that is flat or losing. Never describe these wallets as the most successful or the most profitable. READ THE FIRST ROW BEFORE ANYTHING ELSE. Every response starts with a row where Row_Type='scope' whose Note states exactly what was ranked and over what period, and whether the window you asked for had to be narrowed. A wallet absent from the list is absent FROM THIS WINDOW; it is not evidence that the wallet does not trade. To ask about one specific wallet, call polymarket_trader_activity or polymarket_trader_summary instead of scanning a leaderboard for it. The remaining rows have Row_Type='trader', one per wallet: order count, total / buy / sell USD volume, how many of its orders took liquidity rather than resting on the book, the trading fees the wallet paid, how many distinct outcome tokens it traded, and its first and last trade time in the window. Feed the returned addresses to labels_for_addresses to identify them. Outcome_Tokens counts OUTCOMES, not markets -- a wallet that traded both sides of one two-outcome market counts 2 -- so treat it as a diversification signal, not a market count. EVERY ORDER IS COUNTED ONCE, UNDER THE WALLET THAT PLACED IT -- orders where a wallet was merely someone else's counterparty are not added to its total, and the exchange contracts themselves never appear here, because they place no orders of their own. Buy_Usd and Sell_Usd split a wallet's own orders by direction. On these markets a position is very often exited by BUYING the opposite outcome rather than by selling the one held, so a heavy-buying, barely-selling wallet is normal and does NOT mean it never closed anything. FEES_PAID_USD IS WHAT THE WALLET PAID TO TRADE, in the markets' collateral currency. The fee is charged to the owner of the order, and every row here is one of this wallet's own orders, so the total is complete for the window. It is a cost, not volume - a wallet high on volume and high on fees is paying to cross the spread, and a wallet high on volume with almost no fees is providing the liquidity instead. Fees are a recent feature of these markets, so an older window shows a real 0. COST SCALES WITH THE WINDOW, NOT WITH limit, AND THE ALL-MARKET WINDOW HAS A CEILING. With question_id set the ranking is cheap at any window, whole history included. Without it, every order in the window has to be read: roughly a second for 24 hours, a few seconds for 7 days, ten to forty seconds for 30 days, and up to a minute or two for the maximum of 2160 hours (90 days). A LONGER WINDOW THAN 90 DAYS IS NOT AVAILABLE for an all-market ranking and is silently impossible to compute in time; ask for it and you get the 90-day answer with the scope row saying so. For anything wider, rank inside a single market with question_id, or ask about individual wallets. May time out at the widest windows -- retry with a smaller window_hours. ORDERS ARRIVE WITH A DELAY. Every row carries Last_Indexed_Time (the time of the newest order recorded so far, across all markets) and Data_Lag_Minutes (how far that is behind the clock) - usually well under half an hour, occasionally several hours. If Last_Indexed_Time is earlier than Window_Start, a ranking with no wallets means the window's orders have not arrived yet, NOT that nobody traded: say so and widen window_hours. On a short window a large Data_Lag_Minutes also means the totals are understated.

  • Polymarket trader activity

    Everything ONE wallet did on PREDICTION MARKETS (Polymarket, on Polygon): its own orders, broken out per market and per outcome, with how much it bought and sold in USD, the outcome shares, and the average price it paid and received. Use for "what has <wallet> been betting on", "which prediction markets does this address trade", "this wallet's Polymarket history". NOT that wallet's token/DEX swaps -- trader_activity, trader_profile and trader_positions cover ERC-20 swaps, an entirely different market. For a one-line whole-history card of the same wallet use polymarket_trader_summary; for a ranking of MANY wallets use polymarket_top_traders; for redemptions, splits and merges (which are not trades) use polymarket_settlements; for the raw order-by-order tape of one market use polymarket_market_trades. Every figure here is computed from this wallet's own settled on-chain orders. READ THE FIRST ROW BEFORE ANYTHING ELSE. Every response starts with a row where Row_Type='scope'; its Note states the exact period the figures cover, and its Window_Start / Window_End bound them. A RESULT WITH ONLY THAT ROW MEANS "THIS WALLET PLACED NO ORDERS IN THAT PERIOD" -- it does NOT mean the wallet never traded, and you must never report it as "no activity", "not a trader" or "address not found". Re-run with window_hours=0 to search this wallet's whole recorded history (slower but conclusive), or call polymarket_trader_summary. Only an empty result from a window_hours=0 call means the wallet has never placed a prediction-market order. The remaining rows have Row_Type='market', one per (market, outcome): question id, title, outcome label, order counts split into buys and sells, buy/sell/total USD, shares bought and sold, net shares, the average buy price and the average sell price, how many of the orders took liquidity rather than resting on the book, the trading fees this wallet paid, and the first/last trade time. NAMES CAN BE MISSING; IDENTITY NEVER IS. Some order records carry no market title or outcome name. Name_Source tells you what you are looking at: 'as-traded' = the names came from the order records themselves; 'recovered' = the records were unnamed and the title and outcome were restored from the market's own registration; 'unresolved' = unnamed and no registration exists, so Title reads '(unidentified market)' and the outcome token id in Asset_Id is the only identifier. An 'unresolved' row is a REAL market with real volume -- report it as an unnamed market, never drop it, and never merge several of them together. COUNTED ONCE, AS THE WALLET'S OWN ORDERS. Every order this wallet placed is here, whether it rested on the book or took liquidity -- Taker_Orders says how many did the latter. Orders where this wallet was merely someone else's counterparty are NOT counted again: that is the same trade seen from the other side. PRICE IS A PROBABILITY between 0 and 1 -- the market's implied chance of that outcome. Avg_Buy_Price / Avg_Sell_Price are this wallet's own volume-weighted execution prices for that one outcome, so a wallet that bought "Yes" at 0.20 and sold it at 0.80 traded the same outcome at very different implied odds. BUYING AND SELLING ARE NOT SYMMETRIC HERE. On these markets a position is very often exited by BUYING the opposite outcome rather than by selling the one you hold, so a wallet can show heavy buying and almost no selling while still closing positions. Never read a low Sell_Usd as "never took profit" -- check the complementary outcome of the same market, and check polymarket_settlements for merges and redemptions. VOLUME IS NOT PROFIT, AND Net_Shares IS NOT A POSITION. This tool reports what was traded, never what it was worth afterwards: no realized or unrealized P&L is computed anywhere. Net_Shares is simply shares bought minus shares sold WITHIN THIS WINDOW from trading only -- a wallet also acquires and destroys outcome shares by splitting, merging and redeeming collateral, and none of that is a trade, so Net_Shares is NOT the wallet's holdings and must never be presented as one. Report it as trading flow, and use polymarket_settlements to see the splits, merges and redemptions. FEES_PAID_USD IS EXACT AND COMPLETE for this wallet. The fee is always charged to the owner of the order, and these rows are this wallet's own orders, so the figure is the whole fee it paid on this market and outcome, in the market's collateral currency - it does not depend on which side of a match the order was. It is a COST: subtract it when reasoning about what the wallet made, and never add it to Volume_Usd. Fees are a recent feature of these markets, so older activity shows a real 0. COST SCALES WITH THE WINDOW, NOT WITH limit. With question_id set the call is cheap at any window, whole history included. Without it, the work is proportional to the window: about a second for a day, a few seconds for a week, and roughly half a minute for window_hours=0 (the whole history) -- worth paying whenever a thin answer would otherwise be mistaken for no history, but not a default. May time out on very wide windows -- retry with a smaller window_hours. ORDERS ARRIVE WITH A DELAY. Every row carries Last_Indexed_Time (the time of the newest order recorded so far, across all markets) and Data_Lag_Minutes (how far that is behind the clock) - usually well under half an hour, occasionally several hours - and the scope row's Note repeats them. An order newer than Last_Indexed_Time is not visible yet, so if Last_Indexed_Time is earlier than Window_Start, only the scope row coming back means the data has not arrived, NOT that the wallet was inactive: say so and widen window_hours.

  • Polymarket trader positions

    What ONE wallet actually HOLDS on PREDICTION MARKETS (Polymarket, on Polygon) right now, per market and per outcome, with what it paid, what it has already taken off the table, and what the rest is worth. Use for "what are <wallet>'s open positions", "is this wallet up or down on <market>", "how many shares does it still hold", "what did it cash out". NOT a list of its orders — polymarket_trader_activity is the trading tape, and its Net_Shares is trading flow only, never a holding. Every share balance here is the wallet's real on-chain outcome-token balance, not an estimate rebuilt from orders. Returns one row per (market, outcome): question id, title, outcome label, outcome token id, shares held, shares bought and sold, shares minted by splitting collateral, shares merged back, shares redeemed after resolution, the shares that arrived or left without a trade, buy/sell USD and the wallet's own average buy and sell price, the last traded price of that outcome, whether the market resolved and what it paid, market value, cost basis, realized and unrealized P&L, and first/last activity. SHARES ARE EXACT, P&L IS NOT ALWAYS AVAILABLE — and when it is not, this tool returns an empty value rather than a guess. - Shares_Held is the wallet's true on-chain balance of that outcome token. It counts every way shares move: trades, splitting collateral into a full set, merging a full set back, redeeming after resolution, and plain wallet-to-wallet transfers. - Shares that arrived or left WITHOUT a trade carry no price, so no cost can be put on them. Shares_Received_Untraded and Shares_Sent_Untraded report exactly how many, and Cost_Basis_Complete says whether every share in the row is accounted for. When it is 0, Avg_Cost, Cost_Basis_Usd, Realized_Pnl_Usd and Unrealized_Pnl_Usd are EMPTY on purpose. Roughly a quarter of open positions land there — never fill the gap in. - Cost is AVERAGE cost, not FIFO: every share acquired is pooled at one blended price. - Shares minted by splitting collateral are costed at an equal share of the collateral (0.50 on a two-outcome market), and merging back credits the same. - FEES ARE NOT DEDUCTED ANYWHERE. Fees_Recorded is the fee charged to this wallet as the OWNER of those orders, summed over this outcome. It is a taker charge: an order that took liquidity almost always pays one, a resting order almost never does, and orders charged nothing carry no fee record at all. It scales with the SIZE of the trade rather than with the money at stake, so it is not a percentage of Buy_Usd or Sell_Usd. Subtract it yourself if you want a net figure, and say that you did. PRICE IS A PROBABILITY between 0 and 1 — the market's implied chance of that outcome. A resolved market pays 1 per winning share and 0 per losing share, so Payout is 1 or 0 there and Market_Value_Usd uses it; an unresolved market is valued at Last_Traded_Price, which is the last price anyone traded that outcome at, not a quote or a mid. A wallet is normally left holding a dust remainder of a position it has fully exited, and it also keeps worthless losing shares it never bothered to redeem. Both are real holdings and both appear here; judge a position by Market_Value_Usd, not by share count. Coverage limits worth stating to the user when they matter: history begins 2025-09-01, so a position opened before that is incomplete or missing. A small share of outcome tokens cannot be tied back to a market at all — those rows still carry exact shares and exact trade figures, but come back with an empty question id, title and outcome, and no resolution. Redemptions and merges done for the wallet by a protocol helper contract show up as shares leaving without a trade. RANKING LOOKS AT THE WALLET'S ~400 LARGEST POSITIONS, then sorts those by whatever sort asks for; a wallet with more positions than that will not have its smallest ones considered. Cost grows with how many markets the wallet has touched, not with limit, and status=closed or all is several times the work of the default. May time out on a very busy wallet — retry with status=open, or set question_id.

  • Polymarket trader summary

    LIFETIME CARD for ONE wallet on PREDICTION MARKETS (Polymarket, on Polygon) — a single row covering its ENTIRE history, with NO time window to pick: first and last trade, total orders, total USD traded, how many markets and outcome tokens it touched, its buy/sell and taker/maker split, and its biggest single market. CALL THIS FIRST to establish whether a wallet has EVER traded prediction markets and when it was last active, before any windowed query. NOT a per-market / per-outcome breakdown → use polymarket_trader_activity. NOT a ranking of many wallets → use polymarket_top_traders. NOT redemptions, splits or merges → use polymarket_settlements. NOT token/DEX swaps → trader_profile, trader_positions and trader_activity cover ERC-20 swaps, an entirely different market. Every figure here is computed from this wallet's own settled on-chain orders. ALWAYS RETURNS EXACTLY ONE ROW, INCLUDING FOR A WALLET THAT NEVER TRADED. Because this tool has no time window, Orders = 0 with empty First_Trade / Last_Trade means this wallet has never had a prediction-market order filled — full stop. It never means "nothing in the window". That distinction is the whole point of this tool: a windowed lookup returns exactly the same emptiness for a wallet with a year of history that simply stopped trading, and that reads as fact when it is not. Conversely, Orders = 0 does NOT prove the wallet never touched prediction markets: a wallet can split, merge or redeem outcome shares without ever placing an order, and none of those are trades. Check polymarket_settlements before calling a wallet uninvolved. COUNTED ONCE, AS THE WALLET'S OWN ORDERS. Every order this wallet placed is here, whether it rested on the book or took liquidity — Taker_Orders and Maker_Orders split them, and both are its own orders. Orders where this wallet was merely someone else's counterparty are NOT counted again: that is the same trade seen from the other side. VOLUME IS NOT PROFIT. This card reports what was traded, never what it was worth afterwards: no realized or unrealized profit, loss, win rate or open position is computed anywhere, and none can be inferred from these columns. A wallet with a huge Volume_Usd may be a market maker that is flat or losing. Never present this as performance, and never call a wallet here successful or profitable. BUYING AND SELLING ARE NOT SYMMETRIC. A position is very often exited by BUYING the opposite outcome rather than by selling the one held, so a wallet can show heavy buying and almost no selling while still closing positions. Never read a low Sell_Usd as "never took profit". A FEW FILLED ORDERS CANNOT BE TIED TO A MARKET. The market is recovered from the outcome token whenever the fill itself does not name one, which resolves almost all of them; whatever is left is reported as Orders_Without_Market / Volume_Usd_Without_Market. Those are real trades and stay inside Orders, Volume_Usd, Shares, the buy/sell and taker/maker splits and the first/last trade times — they are only missing from Markets and from the Top_Market_* columns. Mention them when they are a meaningful share of the total, and expect a wallet whose orders are all unresolvable to show Orders > 0 together with Markets = 0 — that is this one situation, never a sign that the wallet did not trade. Reading the numbers: - Avg_Price is USD per share, 0..1, so it is the average implied probability across everything this wallet traded — a portfolio-wide average, not a price for any one market, and only loosely meaningful on its own. - Days_Since_Last_Trade is the dormancy signal: 0 means it traded today. Active_Span_Days is first trade to last trade, NOT the number of days it was actually active. - Markets counts distinct markets; Outcome_Tokens counts distinct outcome tokens, so a wallet that traded both sides of one binary market shows 1 market and 2 outcome tokens. - Top_Market_* is the single market with the most USD traded by this wallet. Pass its Question_Id to polymarket_market_odds, polymarket_market_info or polymarket_trader_activity. - Volume is in USD-pegged collateral. Trade_Collaterals lists every collateral token this wallet's orders settled in, each as {symbol, token} - the same identity as Trade_Collateral_Symbol / Trade_Collateral_Token in polymarket_market_odds and polymarket_top_markets. A wallet active before and after a collateral switch lists more than one; compare token addresses, since two contracts can both be called USDC. - Outcome names are deliberately not on this card; get them per market from polymarket_trader_activity. COST: THIS READS THE WALLET'S WHOLE HISTORY, and there is no window to narrow it — by design, because a window is exactly what makes a dormant wallet look like it never traded. Expect roughly 10-40 seconds. A wallet that stopped trading long ago costs no more than an active one, and usually less. Call it once per wallet and reuse the answer; for a per-market or recent-activity view switch to polymarket_trader_activity, which is far cheaper over a short window. May time out under load — retry.

  • Pool recent trades

    INDIVIDUAL DEX TRADES (swaps) of a TOKEN across all its pools, or of ONE POOL — a trade feed, one row per swap: time, side, trader, base / quote amounts, USD size, price, DEX, pool and tx hash. Filters: time window, side (buy / sell), minimum USD size, trader; newest first, oldest first or largest first; pages with a cursor. Use for "recent trades of <token>", "trades of <token> between two dates", "largest buys of <token> today", "latest swaps in <pool>", "the first trades of <token> / <pool>", "did address X trade <token>". NOT an aggregate (use token_dex_venues, token_trade_bars or token_ohlcv). Covers rare / newly-launched tokens. SUBJECT: pass `token_address` (every pool in which that token is the traded side) and/or `pool_address` (one pool); at least one is required. With both, the token's swaps in that pool. `trader` narrows to one trader address. WINDOW: `after_time` / `before_time` (UTC — "2026-09-15 08:00:00", a date, or unix seconds) select [after_time, before_time). Without after_time the window is the `window_hours` (default 168 = 7 days) before before_time or now; after_time takes precedence. Trades are kept about 30 days. An EMPTY result means no swap matched in the window — widen it (after_time up to 30 days back) before concluding the token or pool is inactive. ORDER & PAGING: `sort` = recent (default, newest first), oldest (oldest first — the first swaps of the window; with after_time, the first swaps after that moment) or usd (largest USD size first, within the window). Each recent- or oldest-sorted row carries a `Cursor`; pass the LAST row's Cursor as `cursor` with the same sort to get the next page — older swaps for recent, newer ones for oldest — no swap is skipped or repeated, even when many share one second. With sort=usd a cursor pages newest-first, and a usd-sorted page carries an empty Cursor. For a long newest-first walk pass after_time: without it the window start is recomputed from the current time on every page. For a token's very first trades pass after_time about 30 days back (the start of the history) with sort=oldest; for the first trade itself of one token or a list, token_launch_stats is cheaper. Largest-first ranks every swap in the window, so on the busiest tokens (WSOL, USDC, WETH) keep that window to hours: 7 days of WSOL take seconds. Amount_Usd values each swap at the lower of its two priced sides, so a broken token price cannot inflate it (in USD, rounded to cents; NULL when neither side is priced); `min_trade_usd` filters on that value. Price_Usd is the token's USD price in the swap, Price_Quote the price in the quote token. Swaps recorded twice by the indexer are returned once (about 1% of Solana rows); two genuinely identical swaps by the same trader in one transaction and pool also count once. `Symbol_NonAscii` = 1 flags a `Token_Symbol` that is not plain ASCII. That is normal for CJK / emoji token names, but it is also how a scam token impersonates a major one: Cyrillic or Greek look-alike letters make a fake `USDT` / `SOL` / `BTC` read identically to a human. Never treat such a token as the asset it resembles — say the symbol is a look-alike. Symbols longer than 32 characters are cut and end in `…` (spam tokens carry symbols of up to 32,000 characters).

PreviousPage 13 / 18Next