@vike-io/cli 0.17.4 → 0.18.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 +6 -0
- package/README.md +4 -1
- package/package.json +1 -1
- package/skills/vike/SKILL.md +3 -2
- package/src/commands/polymarket.js +14 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.18.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 16ea0dc: `polymarket chainlink-prices <symbol>`: the Chainlink Data Streams prices that Polymarket's crypto up/down markets resolve on (btc, eth, sol, xrp, doge, bnb, hype, zec), since 2026-11-06 09:24 UTC. `--series price|twap60`, `--interval 1s|1m|5m|15m|1h|4h|1d` (above `1s`, one row per bucket: the first tick at or after its start), `--from-ms`, `--to-ms`, `--cursor`, `--limit`. Calls the MCP tool `polymarket_chainlink_prices`.
|
|
8
|
+
|
|
3
9
|
## 0.17.4
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -144,7 +144,7 @@ Every data command is one `tools/call` to the MCP server. `vike-data <group> --h
|
|
|
144
144
|
| `vike-data perp` | `top-traders`, `find-position` (Hyperliquid); `funding`, `spreads` (cross-venue funding rates and perp-vs-perp price gaps) | `hl_perp_top_traders`, `hl_position_match`, `perp_funding`, `perp_spreads` |
|
|
145
145
|
| `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` |
|
|
146
146
|
| `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` |
|
|
147
|
-
| `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`, `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_archive` |
|
|
147
|
+
| `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` |
|
|
148
148
|
| `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_*` |
|
|
149
149
|
| `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 |
|
|
150
150
|
| `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` |
|
|
@@ -158,6 +158,9 @@ exits 1 in every mode:
|
|
|
158
158
|
```bash
|
|
159
159
|
vike-data token search BTC --json | jq '.'
|
|
160
160
|
vike-data call hl_wallet --args '{"address":"0x...","view":"trades_summary","window":"30d"}'
|
|
161
|
+
# BTC's Chainlink price at every 15-minute boundary of 2026-11-10 UTC, midnight to midnight (--to-ms is exclusive,
|
|
162
|
+
# hence +1): 97 rows, the start and end price of each 15-minute BTC up/down market that day
|
|
163
|
+
vike-data polymarket chainlink-prices btc --interval 15m --from-ms 1794268800000 --to-ms 1794355200001 --limit 97 --json
|
|
161
164
|
vike-data stream hl --channel hl.fills --filter coin=BTC --filter min_usd=100000
|
|
162
165
|
```
|
|
163
166
|
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.18.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",
|
package/skills/vike/SKILL.md
CHANGED
|
@@ -25,7 +25,7 @@ Hard rules — agents that violate these produce wrong answers. Read once, apply
|
|
|
25
25
|
1. **Addresses are always full 0x-hex (42 chars).** Never truncate when querying. Never display truncated when the user asks for the address — they'll copy-paste it.
|
|
26
26
|
2. **Perp and Hyperliquid symbols are upper-cased by the server.** Echo back what the user wrote.
|
|
27
27
|
3. **Windows are counted in UTC calendar days, not a rolling 24 hours.** On the token screener `24h` spans yesterday and today; on Hyperliquid `30d` is today plus the previous 30 days.
|
|
28
|
-
4. **Page sizes are small and differ per tool; these have no paging.** Max 20: `wallet_discover` (`size`), `polymarket_smart_money`. Max 30: `polymarket_markets`. Max 50: `token_holders`, `wallet_counterparties`, `wallet_compare`. Max 100: `token_screener`, `hl_perp_top_traders` (`size`), and 100 addresses for `wallet_batch_labels`. Max 500: `wallet_transactions`, `hl_position_match`. `token_transfers` has no limit: it always returns 10 rows. To go deeper, narrow the filter or the window instead of asking for more rows. The `hl` commands, `polymarket market-trades`, `tape`, `settlements` and `alerts events` DO page: pass the answer's next cursor back with `--cursor`.
|
|
28
|
+
4. **Page sizes are small and differ per tool; these have no paging.** Max 20: `wallet_discover` (`size`), `polymarket_smart_money`. Max 30: `polymarket_markets`. Max 50: `token_holders`, `wallet_counterparties`, `wallet_compare`. Max 100: `token_screener`, `hl_perp_top_traders` (`size`), and 100 addresses for `wallet_batch_labels`. Max 500: `wallet_transactions`, `hl_position_match`. `token_transfers` has no limit: it always returns 10 rows. To go deeper, narrow the filter or the window instead of asking for more rows. The `hl` commands, `polymarket market-trades`, `tape`, `settlements`, `chainlink-prices` and `alerts events` DO page: pass the answer's next cursor back with `--cursor`. Page while `has_more` is true, not by page size: a `chainlink-prices` page can be shorter than `--limit` with more to come, and near now an empty page with `has_more` false means caught up: ask again later with `--from-ms` = the last row's `ts_ms` + 1.
|
|
29
29
|
5. **Refresh differs per tool; never promise "minutes".** `wallet_discover` and `wallet_summary` are rebuilt nightly, so a wallet active an hour ago may not show. Transfers are synced block by block. `hl_position_match` only matches positions seen within 15 minutes of the newest snapshot batch. For events as they happen use `vike-data stream` (`vike-stream`).
|
|
30
30
|
6. **USD amounts are floats in dollars.** `--min-usd 10000` = ten thousand dollars, not micro-USD.
|
|
31
31
|
7. **`--json` is always available** on CLI commands and gives stable machine-readable output. The default (human) format may change; `--json` will not.
|
|
@@ -118,6 +118,7 @@ Pick by the question, then read the named skill for the recipe and the traps. If
|
|
|
118
118
|
| Polymarket wallet leaderboard | `vike-data polymarket leaderboard` / `polymarket_leaderboard` | this skill |
|
|
119
119
|
| One market's liquidity, trades with wallets, raw tape, order book, tape stats, on-chain resolution | `vike-data polymarket market-trades`, `tape`, `orderbook`, `market-stats`, `settlement` | `vike-pm-market-diligence` |
|
|
120
120
|
| Many resolutions; the Parquet L2 archive | `vike-data polymarket settlements`, `archive` | `vike-pm-l2-archive` |
|
|
121
|
+
| 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 |
|
|
121
122
|
| Who funded a wallet; which exchanges it uses | `vike-data wallet first-funder`, `wallet exchange-usage` | `vike-wallet-who-is` |
|
|
122
123
|
| A daily brief across perps, Hyperliquid, Polymarket and on-chain | several calls, cheap first | `vike-daily-brief` |
|
|
123
124
|
| Find Polymarket markets by slug, or one by condition_id | `vike-data polymarket markets --view search --query btc-updown` / `--view market --condition-id 0x...` | this skill |
|
|
@@ -253,7 +254,7 @@ A token-wide transfer alert fires on ANY transfer of the token above the USD thr
|
|
|
253
254
|
Credits are an accounting figure only; they never block a call. The one limit is 20,000 requests per rolling hour per key, shared by MCP and REST.
|
|
254
255
|
|
|
255
256
|
- **0 credits:** `token_search`, `alerts_list`, `alerts_list_channels`.
|
|
256
|
-
- **1:** `wallet_ens`, `wallet_label_provenance`, `perp_funding`, `perp_spreads`, `perp_open_interest`, `perp_long_short`, `search`, every `hl` command, `hl_ohlcv`, `polymarket_markets`, `polymarket_ohlcv`, the Polymarket tape, order book, stats, trades, settlement and archive calls.
|
|
257
|
+
- **1:** `wallet_ens`, `wallet_label_provenance`, `perp_funding`, `perp_spreads`, `perp_open_interest`, `perp_long_short`, `search`, every `hl` command, `hl_ohlcv`, `polymarket_markets`, `polymarket_ohlcv`, the Polymarket tape, order book, stats, trades, settlement, Chainlink prices and archive calls.
|
|
257
258
|
- **2:** most others, `wallet_summary` among them.
|
|
258
259
|
- **3:** `token_screener`, `wallet_compare`, `wallet_token_balances`, `alerts_create`.
|
|
259
260
|
- **4:** `wallet_trace`.
|
|
@@ -7,7 +7,7 @@ export function registerPolymarket(program) {
|
|
|
7
7
|
const cmd = program
|
|
8
8
|
.command('polymarket')
|
|
9
9
|
.alias('pm')
|
|
10
|
-
.description('Polymarket prediction-market analytics (markets, traders, smart money, tape, order book, settlements, archive)');
|
|
10
|
+
.description('Polymarket prediction-market analytics (markets, traders, smart money, tape, order book, settlements, Chainlink prices, archive)');
|
|
11
11
|
|
|
12
12
|
cmd
|
|
13
13
|
.command('markets')
|
|
@@ -141,6 +141,19 @@ export function registerPolymarket(program) {
|
|
|
141
141
|
],
|
|
142
142
|
});
|
|
143
143
|
|
|
144
|
+
addTool(cmd, 'chainlink-prices <symbol>', {
|
|
145
|
+
tool: 'polymarket_chainlink_prices',
|
|
146
|
+
args: ['symbol'],
|
|
147
|
+
desc: 'Chainlink Data Streams prices that Polymarket\'s crypto up/down markets resolve on, since 2026-11-06 09:24 UTC; '
|
|
148
|
+
+ '<symbol>: btc | eth | sol | xrp | doge | bnb | hype | zec',
|
|
149
|
+
options: [
|
|
150
|
+
['--series <s>', 'price (default; what the markets resolve on) | twap60 (60-second TWAP)'],
|
|
151
|
+
['--interval <i>', '1s (default) | 1m | 5m | 15m | 1h | 4h | 1d; above 1s one row per bucket: the first tick at or after its start'],
|
|
152
|
+
FROM, TO, CURSOR,
|
|
153
|
+
['--limit <n>', 'Rows per page (default 100); a shorter page can still have has_more true: keep paging'],
|
|
154
|
+
],
|
|
155
|
+
});
|
|
156
|
+
|
|
144
157
|
addTool(cmd, 'archive', {
|
|
145
158
|
tool: 'polymarket_archive',
|
|
146
159
|
desc: 'Index of the Parquet L2 archive, or a 7-day download link for one file (--view url)',
|