@vike-io/cli 0.19.0 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.20.0
4
+
5
+ ### Minor Changes
6
+
7
+ - `predictfun wallet-flows <address>`: one Predict.fun wallet's USDT deposits and withdrawals on BNB Chain (MCP tool `predictfun_wallet_flows`), newest first, with whole-history totals and the first funder.
8
+
3
9
  ## 0.19.0
4
10
 
5
11
  ### Minor Changes
package/README.md CHANGED
@@ -147,7 +147,7 @@ Every data command is one `tools/call` to the MCP server. `vike-data <group> --h
147
147
  | `vike-data hl` | `cohort-metrics <symbol>`, `segments`, `wallet <address>`, `wallet-activity <address>`, `wallet-trades <address>`, `leaderboard`, `liquidations`, `market`, `orders`, `twaps`, `ledger`, `leverage-changes`, `stats`, `hype-holders`, `builders`, `vaults`, `vault <vault>`, `archive`; a tool with several views takes `--view` | `hl_cohort_metrics`, `hl_segments`, `hl_wallet`, `hl_wallet_activity`, `hl_wallet_trades`, `hl_leaderboard`, `hl_liquidations`, `hl_market`, `hl_orders`, `hl_twaps`, `hl_ledger`, `hl_leverage_changes`, `hl_stats`, `hl_hype_holders`, `hl_builders`, `hl_vaults`, `hl_vault`, `hl_archive` |
148
148
  | `vike-data candles` | `hl <symbol>` (Hyperliquid perp or spot, from executed fills; `--view export`, or `--view latest` for the newest bar of every symbol), `polymarket <token_id>` (one outcome token); live bars: `stream hl --channel hl.candles` | `hl_ohlcv`, `polymarket_ohlcv` |
149
149
  | `vike-data polymarket` (`pm`) | `markets`, `market <condition_id>`, `wallet <address>`, `smart-money`, `leaderboard`, `market-trades <condition_id>`, `tape`, `orderbook <token_id>`, `market-stats <token_id>`, `settlement <condition_id>`, `settlements`, `chainlink-prices <symbol>` (the Chainlink prices the crypto up/down markets resolve on), `archive` | `polymarket_markets`, `polymarket_market_detail`, `polymarket_wallet`, `polymarket_smart_money`, `polymarket_leaderboard`, `polymarket_market_trades`, `polymarket_tape`, `polymarket_orderbook`, `polymarket_market_stats`, `polymarket_settlement`, `polymarket_settlements_bulk`, `polymarket_chainlink_prices`, `polymarket_archive` |
150
- | `vike-data predictfun` (`pf`) | `overview`, `markets`, `market <market_id>`, `orderbook <market_id>`, `market-trades <market_id>`, `wallet <address>` (positions and P&L), `wallet-trades <address>`, `leaderboard` | `predictfun_overview`, `predictfun_markets`, `predictfun_market_detail`, `predictfun_market_book`, `predictfun_market_trades`, `predictfun_wallet_positions`, `predictfun_wallet_trades`, `predictfun_leaderboard` |
150
+ | `vike-data predictfun` (`pf`) | `overview`, `markets`, `market <market_id>`, `orderbook <market_id>`, `market-trades <market_id>`, `wallet <address>` (positions and P&L), `wallet-trades <address>`, `wallet-flows <address>` (USDT deposits and withdrawals), `leaderboard` | `predictfun_overview`, `predictfun_markets`, `predictfun_market_detail`, `predictfun_market_book`, `predictfun_market_trades`, `predictfun_wallet_positions`, `predictfun_wallet_trades`, `predictfun_leaderboard` |
151
151
  | `vike-data alerts` | `list`, `channels`, `create`, `edit`, `delete`, `events`, `resend`, `register-webhook`, `test-webhook`, `rotate-secret`: transfer alerts (a token or one wallet, on eth, bsc, base, hyperevm) Hyperliquid alerts (`--type hl_wallet`, `hl_cohort_fill`, `hl_liquidation`, `hl_cohort_bias`, `hl_liq_proximity`) and Polymarket alerts (`--type pm_wallet_trade`, `pm_market_trade`, `pm_price_move`, `pm_resolution`), by email or an HTTPS webhook, HMAC-signed; at most 200 active alerts per account | `alerts_*` |
152
152
  | `vike-data stream <path>` | live events from `wss://stream.vike.io/v1/stream/<path>` (`hl`, `hl-cohorts`, `onchain`, `polymarket`) as NDJSON: `--channel` (one or more), `--filter key=value`, `--cursor` | WebSocket, not MCP |
153
153
  | `vike-data stream` | `info`, `check <channel>` (the server's validator), `events <channel>` (stored events, 3 days), `connections` (yours) | `stream_info`, `stream_check_filter`, `stream_events`, `stream_connections` |
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.19.0",
6
+ "version": "0.20.0",
7
7
  "description": "CLI, agent skills and MCP client for the free Vike Data API: a Polymarket full-L2 order-book archive in Parquet, Hyperliquid positions, fills and cohorts, and labelled Ethereum/BNB wallets",
8
8
  "type": "module",
9
9
  "main": "src/index.js",
@@ -7,7 +7,7 @@ description: "Use this skill whenever the user asks any question about on-chain
7
7
 
8
8
  This skill is for anyone who asks an AI agent about crypto data: who is buying a token, what a wallet holds, what Hyperliquid or Polymarket traders are doing right now. It tells the agent which vike tool answers which question and how to read the result, so it does not guess or invent numbers. It reads its data from vike.io and needs a free vike API key.
9
9
 
10
- What the platform has: wallet and token analytics on Ethereum, BSC, Base and HyperEVM (each tool's chain list is under "What each tool really returns"), multi-source wallet labels, CEX perpetual funding and cross-venue spreads, Hyperliquid wallets, cohorts, leaderboards, liquidations, markets, builders, vaults and candles, Polymarket markets, traders, tape, order books, settlements and the Parquet archive, Predict.fun (BNB Chain) markets, order books, on-chain fills, wallet positions and P&L and its leaderboard, transfer, Hyperliquid and Polymarket alerts, and live event streams over WebSocket. 82 tools in one MCP server.
10
+ What the platform has: wallet and token analytics on Ethereum, BSC, Base and HyperEVM (each tool's chain list is under "What each tool really returns"), multi-source wallet labels, CEX perpetual funding and cross-venue spreads, Hyperliquid wallets, cohorts, leaderboards, liquidations, markets, builders, vaults and candles, Polymarket markets, traders, tape, order books, settlements and the Parquet archive, Predict.fun (BNB Chain) markets, order books, on-chain fills, wallet positions and P&L, USDT deposits and withdrawals and its leaderboard, transfer, Hyperliquid and Polymarket alerts, and live event streams over WebSocket. 83 tools in one MCP server.
11
11
 
12
12
  **MCP endpoint for all calls:** `https://data.vike.io/mcp` (JSON-RPC 2.0)
13
13
  **Or use the CLI:** `npm install -g @vike-io/cli` → `vike-data <command>`
@@ -120,7 +120,7 @@ Pick by the question, then read the named skill for the recipe and the traps. If
120
120
  | Many resolutions; the Parquet L2 archive | `vike-data polymarket settlements`, `archive` | `vike-pm-l2-archive` |
121
121
  | Predict.fun at a glance; its markets by 24h volume or newest, by status or a title substring | `vike-data predictfun overview`, `predictfun markets` / `predictfun_overview`, `predictfun_markets` | `vike-predictfun-markets` |
122
122
  | One Predict.fun market: outcomes, stats, order book, fills with wallets | `vike-data predictfun market <market_id>`, `orderbook`, `market-trades` / `predictfun_market_detail`, `predictfun_market_book`, `predictfun_market_trades` | `vike-predictfun-market-detail` |
123
- | One Predict.fun wallet: positions, P&L, fills | `vike-data predictfun wallet <address>`, `wallet-trades` / `predictfun_wallet_positions`, `predictfun_wallet_trades` | `vike-predictfun-trader` |
123
+ | One Predict.fun wallet: positions, P&L, fills, deposits and withdrawals | `vike-data predictfun wallet <address>`, `wallet-trades`, `wallet-flows` / `predictfun_wallet_positions`, `predictfun_wallet_trades`, `predictfun_wallet_flows` | `vike-predictfun-trader` |
124
124
  | Predict.fun wallet leaderboard (realized / unrealized P&L, volume, fills) | `vike-data predictfun leaderboard` / `predictfun_leaderboard` | `vike-predictfun-leaderboard` |
125
125
  | The Chainlink price a crypto up/down market resolves on, at its window start and end (btc, eth, sol, xrp, doge, bnb, hype, zec; since 2026-11-06 09:24 UTC) | `vike-data polymarket chainlink-prices btc --interval <the market's tenor: 5m\|15m\|1h> --from-ms <window start> --to-ms <window end + 1>` / `polymarket_chainlink_prices`: two rows, the price at the start and at the end (`--to-ms` is exclusive). 4h and daily windows follow US Eastern time while buckets are UTC-aligned: ask `--interval 1m --from-ms <start> --to-ms <start + 60000>`, then again with `<end>` and `<end + 60000>` | this skill |
126
126
  | Who funded a wallet; which exchanges it uses | `vike-data wallet first-funder`, `wallet exchange-usage` | `vike-wallet-who-is` |
@@ -165,7 +165,7 @@ Any MCP tool, including one with no command of its own, is one `call` away; it p
165
165
  vike-data call hl_wallet --args '{"address":"0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045","view":"summary"}'
166
166
  ```
167
167
 
168
- **B) Via an MCP connector (recommended when your client has one).** All 82 tools live at `https://data.vike.io/mcp`. Connect the client to that address with the `X-API-KEY` header above, then call a tool by name with its arguments, for example `wallet_summary` with `address` set to a full 0x address.
168
+ **B) Via an MCP connector (recommended when your client has one).** All 83 tools live at `https://data.vike.io/mcp`. Connect the client to that address with the `X-API-KEY` header above, then call a tool by name with its arguments, for example `wallet_summary` with `address` set to a full 0x address.
169
169
 
170
170
  Run `vike-data schema --pretty` (or call MCP `tools/list`) to see the live arg shape for every tool. Always read the schema before constructing arguments — defaults and enum values change.
171
171
 
@@ -249,6 +249,7 @@ Prediction markets on BNB Chain; USD is BSC USDT, prices are probabilities 0 to
249
249
  | `predictfun_market_detail` | one market with Predict.fun's own `details`, `outcomes` (`token_id`, WON/LOST, `last_price`) and `stats` (24h and total volume); an unknown id is an error |
250
250
  | `predictfun_market_book` | the newest recorded book, priced on the first outcome (Yes): `bids`, `asks` as `[price, quantity]`, `pending_*`, `last_settled`; only the ~1,000 most active open markets, none in 30 days is an error |
251
251
  | `predictfun_market_trades`, `predictfun_wallet_trades` | `{trades, next_cursor}`, newest first, with `wallet`, `counterparty`, `role`, `side`, `size`, `price`, `usd`, `fee`. One row is one ORDER's fill: add `usd` over one `role`, never both. No time filter |
252
+ | `predictfun_wallet_flows` | `{flows, totals, next_cursor, as_of_ts}`: USDT in/out with anyone outside Predict.fun's contracts, newest first; `totals` (deposited, withdrawn, net, `first_funder`) cover the whole history. The wallet's WHOLE USDT traffic, so a market maker's totals include its exchange and lending activity. |
252
253
  | `predictfun_wallet_positions` | per outcome token: `net`, `cost`, `proceeds`, `mark`, `value`, `pnl`, `state`; `totals` with `realized_pnl` and `unrealized_pnl`. Exchange fills only: splits, merges, redemptions and transfers are not seen |
253
254
  | `predictfun_leaderboard` | every wallet ranked by realized P&L, volume or fills over `all`/`1d`/`7d`/`30d`, or `unrealized` (window `all` only); each row carries every window. Rebuilt hourly |
254
255
 
@@ -11,6 +11,7 @@ allowed-tools: Bash(vike-data:*)
11
11
  ```bash
12
12
  vike-data predictfun wallet <address> [--json] # positions and P&L, 1 credit
13
13
  vike-data predictfun wallet-trades <address> [--limit N] [--cursor C] [--json] # fills, limit default 100, max 10000; 1 credit
14
+ vike-data predictfun wallet-flows <address> [--limit N] [--cursor C] [--json] # USDT deposits / withdrawals; 1 credit
14
15
  ```
15
16
 
16
17
  `address` is `0x` + 40 hex digits; anything else is an error.
@@ -27,6 +28,7 @@ vike-data pf wallet-trades 0xabcdef1234... --limit 500 --json # `pf` alias
27
28
  - `wallet`: `{positions, totals, as_of_ts}`. One position per outcome token, most recently traded first: `market_id`, `market_title`, `token_id`, `outcome`, `state` (`open`, `won`, `lost`, or `uncatalogued` for a market not in the catalog yet), `net` (shares bought minus sold minus fees taken in shares), `cost` (USD paid), `proceeds` (USD received, net of fees), `mark` (the token's last price) and `mark_ts`, `value` (`net` x 1 won, x 0 lost, x `mark` while open), `pnl` (`proceeds - cost + value`; `null` for an open token with no price yet), `fills`, `first_ts`, `last_ts`.
28
29
  `totals`: `positions`, `open_positions`, `cost`, `proceeds`, `value` (open positions), `pnl`, `realized_pnl` (won and lost positions), `unrealized_pnl` (open ones), `unpriced` (positions with `pnl` `null`). `as_of_ts` is when the positions were last rebuilt.
29
30
  - `wallet-trades`: `{trades, next_cursor}`, newest first, each with `market_id`, `market_title` and `outcome` (`null` for a market the catalog does not hold yet), otherwise the rows of `predictfun market-trades`. An address with no fills is an empty page.
31
+ - `wallet-flows`: `{flows, totals, next_cursor, as_of_ts}`: the wallet's USDT transfers on BNB Chain with anyone outside Predict.fun's own contracts (`direction` in/out, `counterparty` and its label such as `cex/binance`, `amount_usd`), newest first; `totals` over the whole history: deposited, withdrawn, net and `first_funder`. It is the wallet's WHOLE USDT traffic: a market maker that also uses Binance or a lending pool shows that activity too, so don't read `deposited_usd` as money put into Predict.fun for such a wallet. Dust under one cent is left out.
30
32
 
31
33
  ## Reading
32
34
 
@@ -70,6 +70,13 @@ export function registerPredictfun(program) {
70
70
  options: [LIMIT, CURSOR],
71
71
  });
72
72
 
73
+ addTool(cmd, 'wallet-flows <address>', {
74
+ tool: 'predictfun_wallet_flows',
75
+ args: ['address'],
76
+ desc: 'One wallet\'s USDT deposits and withdrawals on BNB Chain, newest first, with whole-history totals and the first funder',
77
+ options: [LIMIT, CURSOR],
78
+ });
79
+
73
80
  addTool(cmd, 'leaderboard', {
74
81
  tool: 'predictfun_leaderboard',
75
82
  desc: 'Every wallet ranked by realized P&L, volume or fills over a window, or by unrealized P&L (rebuilt hourly)',