首页 / 市场 / vike-pm-market-diligence

vike-pm-market-diligence

Full due diligence on one Polymarket market - finding it, spread and depth from the order book, recorded activity, large recent prints, who traded and who holds each side, on-chain resolution status and smart-money context, then a live feed of its trades, position changes and price moves. Handles the condition id versus token id split. Use when the user asks "is this Polymarket market liquid" / "who is on each side of this market" / "has this market resolved on-chain" / "check this prediction ma

skill★ 00 dlclawhubMIT-0用寰宇一键安装查看上游源码

说明与配置预览

--- name: vike-pm-market-diligence description: Full due diligence on one Polymarket market - finding it, spread and depth from the order book, recorded activity, large recent prints, who traded and who holds each side, on-chain resolution status and smart-money context, then a live feed of its trades, position changes and price moves. Handles the condition id versus token id split. Use when the user asks "is this Polymarket market liquid" / "who is on each side of this market" / "has this market resolved on-chain" / "check this prediction market before I trade" / "diligence on this Polymarket market". allowed-tools: Bash(vike-data:*)

---

vike-pm-market-diligence

About 18 credits for every step with two outcomes and three holders. Run only the sections the question needs.

Two ids, never interchangeable. A market has one condition_id (0x + 64 hex) and one OUTCOME TOKEN id per outcome (a long decimal number). polymarket market, market-trades and settlement take the condition id; orderbook, market-stats, tape and candles polymarket take a token id and answer nothing useful for a condition id. Token ids come from clob_token_ids in polymarket market (same order as its outcomes) or outcomes[].token_id in polymarket markets. Map outcomes to ids by their label everywhere else: polymarket markets has listed No before Yes and Down before Up.

Chain

vike-data search "fed rate cut december" --json                        # 1  `markets` section; a polymarket.com link works too
vike-data polymarket markets --view search --query fed-rate-cut --json # 1  condition_id, token_ids, neg_risk, active/closed by slug
CID=0xbac62ac581be240787167755692fda4e07b3f42fb24f61a5d73c06731f8ed158
vike-data polymarket market $CID --json                                # 2  detail: outcomes, holders, last 100 trades, stats
vike-data polymarket orderbook <token_id> --depth 5 --json             # 1 per outcome: spread and depth
vike-data polymarket market-stats <token_id> --json                    # 1  what is recorded for this token
vike-data polymarket tape --token-id <token_id> --from-ms <now-1h> --to-ms <now> --event-type trade --limit 1000 --json   # 1  large prints
vike-data polymarket market-trades $CID --from-ms <now-24h> --limit 500 --json   # 1  trades WITH wallets, newest first
vike-data polymarket settlement $CID --json                            # 1  on-chain resolution
vike-data polymarket wallet <proxy_wallet> --json                      # 2 each: the top 3 holders
vike-data polymarket smart-money --mode flows --hours 24 --json        # 2  is this market in the cohort's flows

Reading

Watch it live

vike-data stream polymarket --channel pm.trades pm.positions pm.price_moves pm.resolutions --filter market=$CID

--filter applies to every --channel of the command, and market is the only key all four take: a role filter here is refused (bad_subscription, exit 1). To count each match once, keep the taker rows of pm.trades with jq: ... | jq -c 'select(.type=="event" and .event.source=="pm.trades" and .event.data.role=="taker")'. Don't start a second stream polymarket for it: one key holds one connection per path, and the second replaces the first (4410). pm.trades carries the trader's wallet; pm.positions is each of those trades again as what it did to the wallet's position (data.action open, increase, reduce, close or flip, shares_before, shares, avg_price: who is entering or leaving this market), so drop pm.trades from the list if you only want position changes; pm.price_moves is a move of 0.05 or more within five minutes; pm.resolutions the on-chain resolution. shares count trades only: shares a wallet got from a split, merge or transfer are not on the tape, so a wallet that sells them shows a negative shares.

Answer template

> <question> ends <end_date>; <open | past end, unresolved | resolved on-chain to X at T>. <Yes/Up> mid <m>; spread <s>, depth to 5c <n> shares each side (book as of <as_of_ts>); 24h volume $V, liquidity $L. Largest prints last hour: <size @ price>. Top holders: <n> wallets hold <outcome>, cost basis <c>; <k> have 10+ resolved markets (hit rates <...>). Cohort: <in flows | not in the top list>. Quotes are probabilities, not dollars.

Anti-patterns

Pairs well with