tradeblocks-mcp 2.2.6 → 3.0.0-beta.1
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/README.md +23 -8
- package/dist/chunk-LYN3NRIP.js +2237 -0
- package/dist/chunk-LYN3NRIP.js.map +1 -0
- package/dist/{chunk-FIKAXL2L.js → chunk-WWRCNL4V.js} +1441 -540
- package/dist/chunk-WWRCNL4V.js.map +1 -0
- package/dist/market-provider-O7ICNZPL.js +10 -0
- package/dist/{sync-2TUYF36I.js → sync-NQXKXNK6.js} +2 -2
- package/dist/test-exports.js +4903 -2477
- package/dist/test-exports.js.map +1 -1
- package/manifest.json +5 -5
- package/package.json +6 -6
- package/server/chunk-OGGHZ3BV.js +2206 -0
- package/server/chunk-OGGHZ3BV.js.map +1 -0
- package/server/{chunk-IBEPOZZK.js → chunk-ZXL7UHYN.js} +1337 -548
- package/server/chunk-ZXL7UHYN.js.map +1 -0
- package/server/index.js +7939 -7038
- package/server/index.js.map +1 -1
- package/server/market-provider-X3CX3JVX.js +11 -0
- package/server/market-provider-X3CX3JVX.js.map +1 -0
- package/server/{sync-37YJXJVW.js → sync-AC4HAGWT.js} +2 -2
- package/server/sync-AC4HAGWT.js.map +1 -0
- package/dist/chunk-FIKAXL2L.js.map +0 -1
- package/server/chunk-IBEPOZZK.js.map +0 -1
- /package/dist/{sync-2TUYF36I.js.map → market-provider-O7ICNZPL.js.map} +0 -0
- /package/{server/sync-37YJXJVW.js.map → dist/sync-NQXKXNK6.js.map} +0 -0
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ Model Context Protocol (MCP) server for options trading analysis. Works with Cla
|
|
|
16
16
|
|
|
17
17
|
### Option 1: MCPB Bundle (Claude Desktop - One Click)
|
|
18
18
|
|
|
19
|
-
Download the latest `.mcpb` file from [Releases](https://
|
|
19
|
+
Download the latest `.mcpb` file from [Releases](https://github.com/davidromeo/tradeblocks/releases) and double-click to install.
|
|
20
20
|
|
|
21
21
|
The installer will prompt you to select your Trading Data Directory.
|
|
22
22
|
|
|
@@ -37,7 +37,7 @@ See [Configuration by Platform](#configuration-by-platform) below for platform-s
|
|
|
37
37
|
### Option 3: From Source
|
|
38
38
|
|
|
39
39
|
```bash
|
|
40
|
-
git clone https://
|
|
40
|
+
git clone https://github.com/davidromeo/tradeblocks
|
|
41
41
|
cd tradeblocks
|
|
42
42
|
npm install
|
|
43
43
|
npm run build -w packages/mcp-server
|
|
@@ -329,6 +329,12 @@ backtests/
|
|
|
329
329
|
|------|-------------|
|
|
330
330
|
| `import_market_csv` | Import market data CSV with column mapping |
|
|
331
331
|
| `import_from_database` | Import from external DuckDB databases |
|
|
332
|
+
| `import_flat_file` | Import a local Parquet or CSV flat file for a ticker/timespan |
|
|
333
|
+
| `fetch_bars` | Fetch daily or intraday OHLCV bars from configured provider |
|
|
334
|
+
| `fetch_quotes` | Fetch option minute quotes from configured provider |
|
|
335
|
+
| `fetch_chain` | Fetch option chain snapshot for an underlying on a given date |
|
|
336
|
+
| `compute_vix_context` | Compute cross-ticker VIX regime fields for a date range |
|
|
337
|
+
| `refresh_market_data` | Composite daily refresh: fetch bars, auto-fire VIX context, return coverage report |
|
|
332
338
|
| `enrich_market_data` | Compute ~40 derived indicators from raw OHLCV |
|
|
333
339
|
| `enrich_trades` | Enrich trades with market context (lookahead-free) |
|
|
334
340
|
| `analyze_regime_performance` | Analyze P&L by market regime |
|
|
@@ -369,18 +375,27 @@ npm run mcpb:pack
|
|
|
369
375
|
|
|
370
376
|
## Market Data (Optional)
|
|
371
377
|
|
|
372
|
-
For market context (VIX regimes, intraday timing, gap analysis), import market data
|
|
378
|
+
For market context (VIX regimes, intraday timing, gap analysis), import market data using MCP tools:
|
|
373
379
|
|
|
380
|
+
**From a data provider (Massive.com default, or ThetaData):**
|
|
381
|
+
1. **Fetch bars** via `fetch_bars { tickers, timespan, from, to }` — writes directly to Parquet
|
|
382
|
+
2. **Fetch VIX context** via `fetch_bars` for VIX/VIX9D/VIX3M then `compute_vix_context`
|
|
383
|
+
3. **Or use** `refresh_market_data` for a combined daily refresh in one call
|
|
384
|
+
|
|
385
|
+
**From TradingView CSV exports:**
|
|
374
386
|
1. **Export** from TradingView (any chart: SPX daily, VIX daily, SPX 5-min, etc.)
|
|
375
|
-
2. **Import** via `import_market_csv` with a column mapping
|
|
387
|
+
2. **Import** via `import_market_csv` with a column mapping or `import_flat_file` for Parquet
|
|
376
388
|
3. **Enrich** via `enrich_market_data` to compute ~40 derived indicators
|
|
377
389
|
|
|
378
390
|
No Pine Scripts needed — TradingView exports raw OHLCV natively.
|
|
379
391
|
|
|
380
|
-
Market data lives in a separate `market.duckdb` (configurable via `MARKET_DB_PATH` or `--market-db`).
|
|
381
|
-
- `market.
|
|
382
|
-
- `market.
|
|
383
|
-
- `market.
|
|
392
|
+
Market data lives in a separate `market.duckdb` (configurable via `MARKET_DB_PATH` or `--market-db`). Canonical v3.0 datasets:
|
|
393
|
+
- `market.spot` — Raw per-minute OHLCV bars, ticker-first layout (keyed by `ticker, date, time`)
|
|
394
|
+
- `market.spot_daily` — RTH-aggregated daily OHLCV view derived from `market.spot` (keyed by `ticker, date`)
|
|
395
|
+
- `market.enriched` — Per-ticker computed enrichment indicators and calendar fields; OHLCV is NOT stored here (join `market.spot_daily` for OHLCV — keyed by `ticker, date`)
|
|
396
|
+
- `market.enriched_context` — Cross-ticker derived regime context (keyed by `date`)
|
|
397
|
+
- `market.option_chain` — Contract universe snapshots by date
|
|
398
|
+
- `market.option_quote_minutes` — Dense option quote cache by minute
|
|
384
399
|
|
|
385
400
|
See the [Market Data Guide](../../docs/market-data.md) for import examples, ticker formats, and column mapping reference.
|
|
386
401
|
|