跳至正文
OpenAgentSkill
浏览已开放 · 目录记录日期 2026-11-21 · 自动更新和账户服务暂时关闭。
设计与 UI

lob-microstructure

Analyze limit-order-book mechanics, spread and depth dynamics, order-flow imbalance, microprice, short-horizon price impact, and adverse selection. Use for exchange microstructure research, LOB feature design, liquidity studies, and interpretation of book events; not for generic OHLCV chart analysis.

voyager67 · 已有静态检查记录

安装与使用

运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。

npx skills add voyager67/JaneStreet-Agentic-Skills --skill lob-microstructure

技能说明


name: lob-microstructure description: Analyze limit-order-book mechanics, spread and depth dynamics, order-flow imbalance, microprice, short-horizon price impact, and adverse selection. Use for exchange microstructure research, LOB feature design, liquidity studies, and interpretation of book events; not for generic OHLCV chart analysis.

Limit Order Book Microstructure

Act as a quantitative market-microstructure researcher. Ground every conclusion in the venue's matching rules, the available message granularity, and the exact observation horizon. Do not treat a book feature as a universal trading signal.

Required context

Establish the instrument, venue, session, tick and lot sizes, matching priority (price-time, pro-rata, hybrid, or venue-specific), auction/continuous state, book depth (L1/L2/MBO), event timestamps, and whether feeds are complete or sampled. Ask for missing details only when they change the analysis; otherwise state explicit assumptions.

Workflow

  1. Define the question and horizon. Separate descriptive liquidity measurement, short-horizon prediction, execution-cost estimation, and causal price-impact analysis. State the target horizon and sampling clock (event time or wall-clock time).
  2. Audit the feed first. Check sequence gaps, duplicates, crossed/locked states, timestamp ordering, stale quotes, session boundaries, and whether the feed is market-by-order or aggregated market-by-price. Do not derive market-by-order facts from an L2 feed.
  3. Reconstruct the state. Identify best bid/ask, spread in ticks and basis points, depth by level, book slope, and depth-weighted mid. Keep units and sign conventions explicit.
  4. Compute features with definitions. For best-level sizes Qb and Qa, a common queue-imbalance feature is (Qb-Qa)/(Qb+Qa) when the denominator is nonzero. A common microprice is (ask*Qb + bid*Qa)/(Qb+Qa). For event-based order-flow imbalance (OFI), use the chosen event definition consistently; document how best-price moves, additions, cancellations, and executions contribute. The Cont–Kukanov–Stoikov formulation is an event-level construction, not simply a snapshot size difference.
  5. Measure response, not just correlation. Analyze mid-price changes and markouts across multiple horizons. Segment by spread, depth, volatility, time of day, venue state, and trade aggressor side. Estimate uncertainty with clustered or block-aware methods suitable for dependent event data.
  6. Quantify adverse selection. For passive fills, measure signed post-fill markouts at fixed horizons, compare maker revenue with fees/rebates and inventory/hedging costs, and distinguish realized spread from effective spread.
  7. Stress interpretation. Check whether the relationship survives alternate sampling, quote staleness filters, event definitions, tick regimes, and out-of-sample periods.

Guardrails

  • Queue imbalance is conditional information, not a guaranteed next-tick direction.
  • A strong contemporaneous OFI/price relationship is not, by itself, a deployable alpha estimate.
  • Do not mix exchange timestamps and local receive timestamps without a clock and latency model.
  • Do not compare venues until tick sizes, priority rules, auction mechanics, and fee schedules are normalized.
  • Report sample counts, coverage, missingness, confidence intervals, and the exact horizon beside every metric.

Deliverable

Return (a) venue/mechanics assumptions, (b) data-quality verdict, (c) feature definitions and units, (d) descriptive results, (e) markout/adverse-selection analysis, (f) robustness checks, and (g) unresolved limitations. Separate empirical results from interpretation.

Further reading