8-k-scanner
Scan SEC 8-K disclosures across a single ticker or a watchlist using Massive's pre-parsed disclosure taxonomy. Groups the underlying rows by filing (one 8-K…
Slippage analysis on an executed-fills CSV. For each fill, pulls the NBBO at the fill timestamp, computes slippage versus the inside quote and session VWAP, and flags fills that crossed the spread, traded off-NBBO, paid through a wide spread, or showed adverse selection in the
$ npx -y skills add rgourley/quant-garage --skill slippage-cost --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/slippage-costContext preview
The summary Claude sees to decide when to auto-load this skill.
Slippage analysis on an executed-fills CSV. For each fill, pulls the NBBO at the fill timestamp, computes slippage versus the inside quote and session VWAP, and flags fills that crossed the spread, traded off-NBBO, paid through a wide spread, or showed adverse selection in the
name: slippage-cost description: Slippage analysis on an executed-fills CSV. For each fill, pulls the NBBO at the fill timestamp, computes slippage versus the inside quote and session VWAP, and flags fills that crossed the spread, traded off-NBBO, paid through a wide spread, or showed adverse selection in the 30 seconds after the print. Compares fill price to NBBO at fill time, NOT to arrival-price benchmark. This is not true Implementation Shortfall. IS would compare fills against the decision-time benchmark; this compares against NBBO at fill time. See `tier_caveats` for the bias direction. Exception-report mode: only flagged fills surface. Use when an execution desk or PM hands over a fill log and asks "how much did we leak vs the inside today."
You hand over a fill log. The skill walks every line against the NBBO at the fill timestamp, computes slippage in basis points, and emits an exception report listing only the fills that deserve scrutiny.
This is not a true best-execution audit and not true Implementation Shortfall. IS compares each fill against the decision-time (arrival) benchmark price; this skill compares against the NBBO at fill time. The input CSV doesn't carry an arrival timestamp, so arrival-price IS isn't computable here. See `tier_caveats` for the bias direction introduced by the Tier B aggregate proxy.
The output answers two questions the regulator asks (off-NBBO prints, wide-spread fills) and two questions the PM asks (VWAP slippage, adverse selection). Same data, different audiences.
this CSV for fill quality"
the inside"
prints
slippage across venues. (Note: this is not arrival-price IS; if you need that, the input CSV needs to carry a decision/arrival timestamp and the methodology changes.)
`timestamp` (ISO-8601 with timezone, Eastern recommended)
(full historical NBBO). Stocks Starter falls back to Tier B (1-second aggregate band as NBBO proxy).
`GET /v3/quotes/{ticker}` returns every NBBO update at microsecond precision. The skill pulls the inside quote at the fill timestamp, flags crossed-spread fills against the exact inside, and detects off-NBBO prints precisely. This is the default path on Developer+ tier keys.
Verified 2026-06-25 on a Stocks Business + Options Business + Benzinga key: the endpoint returns full NBBO ticks. This contrasts with the WebSocket `Q` channel, which returns `not_authorized` on the same key (see portfolio-mark's `references/live-vs-delayed.md`). REST quote history and live quote streaming are entitled separately.
When `/v3/quotes` returns 403, the skill walks `GET /v2/aggs/ticker/{ticker}/range/1/second/{from}/{to}` for a ±2-second window around each fill. The "reference NBBO" at time T becomes `low` of the [T, T+1s] bar as the proxy bid, `high` of the same bar as the proxy ask. Defensible but lossy: a quote that updated mid-second is invisible; a violent intra-second move is squashed into the bar high/low.
See [`references/nbbo-proxy-via-aggregates.md`](./references/nbbo-proxy-via-aggregates.md) for the precision tradeoffs and what gets lost.
Two output layers.
**Layer 1: canonical JSON** matching [`output-schema.json`](./output-schema.json). Per flagged fill: ticker, side, qty, price, timestamp, slippage_bps, spread_bps_at_fill, vwap_slippage_bps, reasons[], adverse_selection_bps, suggested_next_action. Per run: scan_params, fills_checked, tier, quote_source, summary (counts by reason, total implementation shortfall in dollars). UI dashboards and downstream agents consume this.
**Layer 2: rendered exception report**. Header with the run metadata. One BREAK block per flagged fill. Summary block at the bottom. See [`references/rendering.md`](./references/rendering.md) for the full format. Claude Code users read this.
A short example:
TCA: 18 fills checked · 6 BREAKS flagged · run 2026-06-25 15:32 UTC BREAK 1: AAPL BUY 1,000 @ $300.85 · 2026-06-23 10:14:18 ET Slippage: +18.0 bps vs reference ask $300.31 at 10:14:18 Spread: $300.25 × $300.31 (2 bps inside, normal) VWAP slip: +18.4 bps vs session VWAP $296.88 Reasons: crossed_spread, high_vwap_slippage Adverse: +4.2 bps within 30s of fill (mild adverse) Suggest: Investigate venue routing; price improvement opportunity missed
1. **Probe quote-data availability.** Call `/v3/quotes/{ticker}?limit=1` on the first ticker in the CSV. 200 means Tier A; 403 means Tier B. Print the tier in the report header so the operator sees the confidence level. 2. **For each fill**, pull the reference NBBO at the fill timestamp:
wrapping the fill time. Take the most recent quote before the fill timestamp.
the second-bar straddling the fill. Reference bid = bar low, reference ask = bar high. 3. **Compute slippage** per [`references/slippage-methodology.md`](./references/slippage-methodology.md): `bps = (fill_price - reference_price) / reference_price × 10000`. Signed by side: positive on a BUY means paid more than reference (bad); negative on a SELL means sold below reference (bad). 4. **Pull session VWAP** from `/v2/aggs/ticker/{ticker}/range/1/minute/{date}/{date}`, compute weighted average across all minutes up to the fill timestamp. The fill's V
Trade like a pro. Without the terminal. View the full landing page → Quant and equity research tools that run inside Claude, or behind your own UI.
Scan SEC 8-K disclosures across a single ticker or a watchlist using Massive's pre-parsed disclosure taxonomy. Groups the underlying rows by filing (one 8-K…
Track sell-side analyst positioning on a name via Benzinga Analyst Ratings. Pulls every rating event over the lookback window, classifies each as upgrade /…
Build a clean, point-in-time, ready-to-backtest OHLCV dataset for a US equity universe across an arbitrary date window. Emits parquet plus a manifest plus an…
Bayesian Online Change-Point Detection (BOCPD) on a ticker's daily log returns. Detects points in time where the return-generating distribution changed (regime…
Single-commodity macro read. Answers "is this commodity in a winning or losing macro setup right now" and names the macro driver that dominates it. Pulls one…
Reconcile a position file against splits, dividends, and spinoffs to catch breaks before they hit P&L or T+1 settlement. Use when an operator hands over a CSV…