360 Secure SkillHub
360 安全技能中心

vike-polymarket-tape

通过 Vike Data 的 MCP、CLI 或 REST 获取 Polymarket 单一市场含钱包的成交记录,或最多 100 个结果代币的逐笔成交;支持时间窗口、分页及按成交规模筛选最大下注。

分类:数据
vikeio
vikeio
热度 38.28
最近更新 2026-12-02 10:00:16

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add vikeio/vike-polymarket-tape
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
vike-polymarket-tape
description
Who traded a Polymarket market and when - every fill of one market with the wallet behind it, its side, outcome, shares and price, over any window from 2026-01-01 to a few minutes ago, newest first, to pull the biggest bets, one wallet's moves in that market or the volume of an hour; and the raw trade prints of up to 100 outcome tokens at once over a window of up to 24 hours (no wallets), for a whole family of markets. Use when the user asks "who bought Yes on this Polymarket market today" / "biggest bets on this market" / "trades in this market between 2 and 3pm" / "every trade on the BTC 5-minute markets this hour" / "how much traded on this market yesterday".
allowed-tools
Bash(vike-data:*)

vike-polymarket-tape

Two reads of trading, pick by the question:

Need Command Id Wallets
One market's fills, with who traded polymarket market-trades condition_id (0x + 64 hex) yes
Trade prints of up to 100 outcome tokens, one window of at most 24 h polymarket tape --event-type trade outcome token ids (long decimals) no

Ids: vike-polymarket-find-market. Trades as they happen: vike-stream (pm.trades).

Call it

Use the first of these that is available:

  1. MCP: polymarket_market_trades (condition_id, optional from_ms, to_ms, cursor, limit); polymarket_tape (token_id or token_ids, from_ms, to_ms, event_type: "trade", optional cursor, limit).
  2. CLI:
    CID=0xcfc6e088b78e695e831e094f7aa1197c16b2436e5984b12fb9286361804b8e1b
    vike-data polymarket market-trades $CID --from-ms 1796087347000 --limit 1000 --json        # the last 24 h, newest first
    vike-data polymarket market-trades $CID --from-ms 1796087347000 --cursor "<next_cursor>" --limit 1000 --json
    vike-data polymarket tape --token-ids <token_a>,<token_b> --from-ms 1796160000000 --to-ms 1796173700000 --event-type trade --limit 5000 --json
    
  3. curl: the credential is VIKE_API_KEY, else api_key or anon_token from ~/.vike/config.json (Windows %USERPROFILE%\.vike\config.json); with none, get a free anonymous token with curl -s -X POST https://data.vike.io/v1/anon -H 'Content-Type: application/json' -d '{"source":"skill-curl"}' and save its token there as "anon_token" (see vike-core).
    curl -s "https://data.vike.io/v1/polymarket/markets/$CID/trades?from_ms=1796087347000&limit=1000" -H "X-API-KEY: $TOKEN"
    curl -s "https://data.vike.io/v1/polymarket/events?token_ids=<token_a>,<token_b>&from_ms=1796160000000&to_ms=1796173700000&event_type=trade" -H "X-API-KEY: $TOKEN"
    

--from-ms is inclusive and --to-ms exclusive (epoch ms). market-trades: both optional, --limit default 100 on the CLI and MCP and 1000 on REST, at most 10,000. tape: both required, at most 24 hours apart, --limit default 100 (REST 5000), at most 50,000, --token-ids at most 100. Both page while has_more is true: pass next_cursor back with --cursor, unchanged. Each page is one request, so ask for full pages.

Output

  • market-trades: {trades, has_more, next_cursor}, newest first. Each row: ts (block time, epoch ms), tx_hash, log_index, block_number, proxy_wallet, name, pseudonym (both usually empty), side (BUY / SELL of token_id), role (maker / taker), outcome, outcome_index, token_id, size (shares), price (0 to 1). There is no USD field: dollars = size x price.
  • tape --event-type trade: {events, has_more, next_cursor}, oldest first. Each row: ts (Polymarket's time), local_ts (ours), token_id, price, size (shares), side (buy / sell, as Polymarket's feed reports the print). best_bid, best_ask and bids / asks are empty on trade rows: 0 there means absent.

Reading

  • One market-trades row is one ORDER's fill, not one match. A match is one maker row per resting order hit plus one taker row whose size is theirs added up (checked 2026-12-02: a 400-share taker SELL beside a 400-share maker BUY in the same transaction). Count volume and "big bets" on ONE role, taker for the aggressor; never add both.
  • Biggest bets: keep role == "taker", rank by size x price. A large maker row is a resting order that was filled, worth naming too.
  • One wallet in this market: filter the rows on proxy_wallet; its whole record across markets is vike-polymarket-trader. proxy_wallet is Polymarket's proxy wallet, not necessarily the person's own address.
  • outcome_index 0 is the market's first outcome; read outcome rather than assume Yes or Up.
  • A few percent of fills merge (one wallet, one token, one transaction), so a count can sit slightly under the on-chain total.
  • market-trades reaches back to 2026-01-01; tape covers the markets we recorded live since 2026-07-25 (the most active ones and the up/down series). The two totals can differ a little: one is on-chain fills, the other the venue's prints.
  • The tape window counts OUR receive time (local_ts). For both outcomes of a binary market pass both token ids; up to 100 ids is 50 binary markets, such as a run of btc-updown-5m windows.

Errors

  • condition_id must be 0x followed by 64 hex digits: ... (exit 1): market-trades got a token id. On REST a malformed or unknown id is a 200 with empty trades, not an error.
  • that is a condition_id (0x...); this tool takes an outcome token id, ...: tape got a market id.
  • trades requires to_ms > from_ms; events requires from_ms / to_ms.
  • events window too wide: ...ms requested, max 86400000ms (24h): split into days, or take the daily Parquet files of the trades stream (vike-pm-l2-archive).
  • events: token_ids requests N tokens, exceeding the max 100 tokens per request: split the list.
  • REST: errors are 400 {"error": "..."}, and an unknown parameter is refused (?type=trade gets did you mean 'event_type').
  • Exit code 3: the anonymous token's daily limit; tell the user to run vike-data login, do not retry.

Anti-patterns

  • Don't add size x price over maker and taker rows together: that counts each match twice.
  • Don't call a wallet an insider from its timing in one market.
  • Don't request a tape without --event-type trade for trades: a page is then mostly book changes.

Pairs well with

  • vike-polymarket-trader - the record of a wallet found here
  • vike-polymarket-order-book - the book those trades hit
  • vike-pm-market-diligence - the one-market playbook these reads belong to
  • vike-predictfun-market-detail - fills with wallets of a Predict.fun market