@vike-io/cli 0.22.0 → 0.23.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 +2 -2
- package/package.json +1 -1
- package/skills/vike/SKILL.md +2 -2
- package/skills/vike-pm-l2-archive/SKILL.md +6 -5
- package/src/commands/polymarket.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.23.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- c5b5c49: `polymarket archive --category <c>`: the Polymarket archive's third layout, every market by Polymarket category (sports, crypto, weather, elections, finance, ...), the up/down series inside their category (crypto series under crypto; stocks, indices, FX and commodities under finance); `--asset`/`--tenor` work as before. The archive download link is valid for 1 day, not 7.
|
|
8
|
+
|
|
3
9
|
## 0.22.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -52,8 +52,8 @@ The key is read from `VIKE_API_KEY` first, then from `~/.vike/config.json`
|
|
|
52
52
|
|
|
53
53
|
| Dataset | What is in it | Access | Page |
|
|
54
54
|
|---|---|---|---|
|
|
55
|
-
| **Polymarket historical order book** (archive) | `book_events` (full L2: snapshots, `price_change` deltas, trades, tick-size and status markers), `trades` (taker tape), `l1_quotes` (derived top of book). One Parquet file per stream per UTC day since 2026-07-25, every recorded market (crypto up/down, sports, politics). | Manifest + sample: no key. Full days:
|
|
56
|
-
| **Polymarket up/down families** (archive) | The same archive
|
|
55
|
+
| **Polymarket historical order book** (archive) | `book_events` (full L2: snapshots, `price_change` deltas, trades, tick-size and status markers), `trades` (taker tape), `l1_quotes` (derived top of book). One Parquet file per stream per UTC day since 2026-07-25, every recorded market (crypto up/down, sports, politics). | Manifest + sample: no key. Full days: key (2 days a month, each older than 14 days); every day with the Files plan. | [polymarket-historical-data](https://vike.io/data/polymarket-historical-data) |
|
|
56
|
+
| **Polymarket up/down families** (archive) | The same archive by Polymarket category (`category=sports`, `crypto`, `finance`, ...), each up/down series (`asset=btc&tenor=5m` and so on) in its own file inside its category | key (2 days a month, each older than 14 days); every day with the Files plan | [polymarket-updown-markets](https://vike.io/data/polymarket-updown-markets) |
|
|
57
57
|
| **Polymarket API** `/v1/polymarket` | Markets, the raw event and trade tape (about 30 days back), order-book snapshots, candles, on-chain settlements | free key | [polymarket](https://vike.io/data/polymarket) |
|
|
58
58
|
| **Hyperliquid cohorts** `/v1/hyperliquid/coins/{coin}/cohort-metrics` | Long vs short per cohort, hourly, up to 8,760 hours in one request. Axes: `size` (account value, shrimp to 4x whale), `tier` (position notional), `pnl` (realized-PnL percentile), `pnl_abs` (PnL in dollars). `labelBasis=point_in_time` grades each hour with the label it had then (from 2026-04-07). | free key | [hl-cohorts](https://vike.io/data/hl-cohorts) |
|
|
59
59
|
| **Hyperliquid API** `/v1/hyperliquid` | Trader rankings and leaderboards, 5-minute position snapshots kept for a year, wallet fills, funding and ledger, standing orders and the order book (perp and spot), order walls and fake walls, squeeze maps, liquidations (inferred from snapshots), builders, candles since the start of 2026; closed bars also stream live as the `hl.candles` channel of `wss://stream.vike.io/v1/stream/hl` | free key | [hyperliquid](https://vike.io/data/hyperliquid) |
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.23.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
|
@@ -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, USDT deposits and withdrawals and its leaderboard, transfer, Hyperliquid and Polymarket alerts, and live event streams over WebSocket.
|
|
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. 84 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>`
|
|
@@ -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
|
|
168
|
+
**B) Via an MCP connector (recommended when your client has one).** All 84 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
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: vike-pm-l2-archive
|
|
3
|
-
description: Find and fetch the
|
|
3
|
+
description: Find and fetch the Polymarket L2 archive - daily Parquet files of the full order-book events, the trade tape and top-of-book quotes, whole, or by Polymarket category (sports, crypto, finance, ...) with each up/down series such as BTC 5-minute in its own file inside its category - with their sizes, a 1-day download link, and the on-chain outcomes to join them to. Says when the API tape is enough instead. Use when the user asks "get me Polymarket order book history" / "BTC 5m up/down L2 data for last week" / "download the Polymarket trades for a day" / "Polymarket sports order books" / "data to backtest a Polymarket strategy".
|
|
4
4
|
allowed-tools: Bash(vike-data:*)
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -14,15 +14,16 @@ The archive is one Parquet file per UTC day and stream, recorded since 2026-07-2
|
|
|
14
14
|
vike-data polymarket archive --view datasets --asset btc --tenor 5m --stream trades --date-from 2026-10-15 --date-to 2026-10-17 --json
|
|
15
15
|
vike-data polymarket archive --view url --stream trades --date 2026-10-16 --json # multi-asset file, one day
|
|
16
16
|
vike-data polymarket archive --view url --stream trades --asset btc --tenor 5m --date 2026-10-16 --json # family file
|
|
17
|
+
vike-data polymarket archive --view url --stream trades --category sports --date 2026-11-29 --json # category file
|
|
17
18
|
vike-data polymarket settlements --slug-prefix btc-updown-5m- --from-ms <start> --to-ms <end> --limit 1000 --json # how each market resolved
|
|
18
19
|
```
|
|
19
20
|
|
|
20
|
-
Streams: `book_events` (full L2: snapshots, `price_change` deltas, trades, tick-size and status markers), `trades` (taker tape), `l1_quotes` (derived top of book). A row carries `date`, `stream`, `layout` (`flat` = every market
|
|
21
|
+
Streams: `book_events` (full L2: snapshots, `price_change` deltas, trades, tick-size and status markers), `trades` (taker tape), `l1_quotes` (derived top of book). A row carries `date`, `stream`, `layout` (`flat` = every market; `family` = one up/down series, one asset and interval, with its `category`: crypto series under crypto, stocks, indices, FX and commodities under finance; `category` = one Polymarket category's markets outside the up/down series: sports, crypto, weather, elections, politics, finance, ... and `unknown`), `bytes`, `rows`, `url`. `datasets` pages with `--limit` (max 1000) and `--offset` against `total`.
|
|
21
22
|
|
|
22
23
|
## Pick the right file
|
|
23
24
|
|
|
24
|
-
- `--asset`
|
|
25
|
-
- **Check `bytes` first.** Measured 2026-10-19: one day of `trades` about 12 MB; a BTC 5m family `trades` day 3-5 MB; one day of `book_events` **8.5 GB (532 million rows)**. Tell the user before any `book_events` download, and prefer the family file for one asset.
|
|
25
|
+
- `--asset` with `--tenor` for one series (as before), `--category` alone for a category's markets outside the series, or none of them for the whole-day file. In `datasets`, `--category crypto` lists the crypto file and every crypto series; `--asset`/`--tenor` list series only. Without any filter `datasets` mixes the layouts: filter on `layout`, or the same market appears in more than one file.
|
|
26
|
+
- **Check `bytes` first.** Measured 2026-10-19: one day of `trades` about 12 MB; a BTC 5m family `trades` day 3-5 MB; one day of `book_events` **8.5 GB (532 million rows)**. Tell the user before any `book_events` download, and prefer the family or category file for one asset or one kind of market (sports, elections, ...).
|
|
26
27
|
- A few hours or one token: use the API, not a bulk file: `vike-data polymarket tape --token-id <id> --from-ms ... --to-ms ... --event-type trade` (at most 24 h a call, no wallets), `vike-data polymarket market-trades <condition_id>` (with wallets) or `vike-data candles polymarket <token_id>`.
|
|
27
28
|
|
|
28
29
|
## Fetch (outside this skill's tool grant; hand the user the command)
|
|
@@ -31,7 +32,7 @@ Streams: `book_events` (full L2: snapshots, `price_change` deltas, trades, tick-
|
|
|
31
32
|
curl -C - -o trades-2026-10-16.parquet "<url from the row>"
|
|
32
33
|
```
|
|
33
34
|
|
|
34
|
-
The link needs no API key and is valid for
|
|
35
|
+
The link needs no API key and is valid for 1 day (`expires_at`): treat it as a secret, don't paste it anywhere shared. **Download the file whole and read the local copy** with DuckDB, polars or pyarrow: pointing a reader at the URL turns one file into thousands of range requests. The manifest and a small sample need no key at all: `https://data.vike.io/archive/manifest.json`, `https://data.vike.io/archive/samples/`.
|
|
35
36
|
|
|
36
37
|
## Reading the files
|
|
37
38
|
|
|
@@ -156,7 +156,7 @@ export function registerPolymarket(program) {
|
|
|
156
156
|
|
|
157
157
|
addTool(cmd, 'archive', {
|
|
158
158
|
tool: 'polymarket_archive',
|
|
159
|
-
desc: 'Index of the Parquet L2 archive, or a
|
|
159
|
+
desc: 'Index of the Parquet L2 archive, or a 1-day download link for one file (--view url)',
|
|
160
160
|
options: [
|
|
161
161
|
['--view <v>', 'datasets | url (default datasets)'],
|
|
162
162
|
['--stream <s>', 'book_events | trades | l1_quotes (required for url)'],
|
|
@@ -165,6 +165,7 @@ export function registerPolymarket(program) {
|
|
|
165
165
|
['--date-to <d>', 'datasets: last UTC day, inclusive'],
|
|
166
166
|
['--asset <a>', 'Family files only, e.g. btc (with --tenor)'],
|
|
167
167
|
['--tenor <t>', 'Family files only, e.g. 5m (with --asset)'],
|
|
168
|
+
['--category <c>', 'A category folder, e.g. sports, crypto, finance: alone = its markets outside the up/down series; datasets also lists its series'],
|
|
168
169
|
['--limit <n>', 'datasets: files per page (default 50)'],
|
|
169
170
|
['--offset <n>', 'datasets: skip this many files'],
|
|
170
171
|
],
|