tradeblocks-mcp 2.3.0 → 3.0.0-beta.2

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 CHANGED
@@ -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 from TradingView exports using MCP tools:
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`). Tables:
381
- - `market.daily` — Daily OHLCV + enriched indicators (keyed by `ticker, date`)
382
- - `market.context` — VIX / volatility context (keyed by `date`)
383
- - `market.intraday` — Intraday bars at any resolution (keyed by `ticker, date, time`)
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