Analyzing Market Microstructure logo

Analyzing Market Microstructure

Organization
CaseMark
analyzing-market-microstructure

Evaluates market structure dynamics with order book analysis, spread decomposition, and information asymmetry assessment. Use when analyzing market structure, evaluating trading venues, or assessing execution quality.

Overview

PublisherCaseMark
Repositoryskills
Skill nameanalyzing-market-microstructure
Stars
53
Forks
20
Bundled files
Instructions only
LicenseApache-2.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by CaseMark on GitHub. Read the source before you install it.

Installation

Install the Analyzing Market Microstructure AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/CaseMark/skills/tree/main/skills/capital/analyzing-market-microstructure
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/CaseMark/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/capital/analyzing-market-microstructure .claude/skills/analyzing-market-microstructure
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Analyzing Market Microstructure in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Analyzing Market Microstructure on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Analyzing Market Microstructure is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Analyzing Market Microstructure

Evaluates market structure dynamics with order book analysis, spread decomposition, and information asymmetry assessment.

When To Use

  • Assessing execution quality across trading venues (exchanges, ATSs, dark pools)
  • Decomposing bid-ask spreads to identify adverse selection, inventory, and order-processing cost components
  • Evaluating order book depth, resilience, and price impact for a specific instrument or venue
  • Measuring information asymmetry between informed and uninformed flow
  • Benchmarking market maker quoting behavior and fill rates
  • Analyzing venue selection or smart order routing logic

Inputs To Gather

  • Instrument identifiers — ticker, ISIN, asset class, listing venue
  • Time window — date range, intraday granularity (tick, second, minute)
  • Data sources — Level I (NBBO/top-of-book), Level II (full depth), trade-and-quote (TAQ), FIX logs, or proprietary execution management system exports
  • Venue universe — which exchanges, ECNs, ATSs, or dark pools are in scope
  • Benchmark prices — arrival price, VWAP, TWAP, midpoint at order entry, or interval close
  • Contextual parameters — average daily volume (ADV), volatility regime, index membership, event calendar (earnings, dividends, rebalances)

Workflow

  1. Define scope and hypothesis

    • Clarify whether the analysis targets a single instrument, a portfolio basket, or a venue comparison
    • State the question explicitly (e.g., "Is adverse selection cost on Venue X higher than the lit market average?")
  2. Prepare and validate data

    • Align timestamps across sources to a common clock (exchange timestamps vs. SIP vs. direct feed) [VERIFY timestamp source and latency assumptions]
    • Filter for regular trading hours vs. pre/post-market as appropriate
    • Flag stale quotes, crossed/locked markets, and obvious outliers (e.g., clearly erroneous prints)
  3. Compute spread decomposition

    • Quoted spread — best ask minus best bid at each observation point
    • Effective spread — 2 × |trade price − midpoint at time of trade|, signed by aggressor side
    • Realized spread — effective spread minus price impact measured at a fixed horizon (e.g., 5 seconds, 1 minute, 5 minutes) [VERIFY horizon convention used by the desk]
    • Price impact (adverse selection component) — effective spread minus realized spread
    • Report each in absolute terms and in basis points of midpoint
  4. Analyze order book dynamics

    • Depth at best: average displayed size at NBBO across the observation window
    • Depth beyond best: cumulative size within N ticks or basis points of midpoint
    • Book imbalance: (bid size − ask size) / (bid size + ask size) at top of book and deeper levels
    • Resilience: time for the book to replenish after a large trade or sweep
    • Quote-to-trade ratio and cancel-to-fill ratio by venue
  5. Assess information asymmetry

    • Probability of informed trading (PIN) model or volume-synchronized PIN (VPIN) if data supports it [VERIFY whether tick data granularity is sufficient for PIN estimation]
    • Toxicity metrics: adverse selection per share by order flow segment (retail, institutional, algorithmic)
    • Correlation between order flow imbalance and subsequent price moves at multiple horizons
  6. Venue and execution quality comparison

    • Effective-over-quoted spread ratio by venue (values near 1.0 suggest minimal price improvement)
    • Fill rate, time-to-fill, and partial fill frequency
    • Venue-specific price improvement statistics (dark pool midpoint fills vs. lit executions)
    • Segmentation of flow: maker vs. taker, displayed vs. non-displayed
  7. Synthesize findings

    • Rank venues or time periods by cost and toxicity metrics
    • Identify structural drivers (e.g., tick-size regime, maker-taker vs. inverted fee schedule, speed bumps)
    • Note any regime sensitivity (e.g., metrics shift materially around earnings or high-volatility events)

Output

Deliver a structured Market Microstructure Analysis Report containing:

  • Executive summary — one paragraph stating the key finding and its trading/execution implication
  • Spread decomposition table — quoted, effective, realized spreads and adverse selection component by venue and time period
  • Order book profile — depth charts, imbalance time series, resilience statistics
  • Information asymmetry metrics — PIN/VPIN estimates, toxicity breakdown by flow type
  • Venue comparison matrix — side-by-side metrics (spread, fill rate, price improvement, latency)
  • Recommendations — actionable changes to venue selection, order type usage, or timing strategy
  • Appendix — data sources, timestamp conventions, parameter choices, and any [VERIFY] items requiring desk confirmation

Quality Checks

  • Confirm that effective spread is never negative (sanity check on trade-side classification; Lee-Ready or similar algorithm should be documented)
  • Verify that realized spread + adverse selection component = effective spread within rounding tolerance
  • Cross-check volume totals against consolidated tape to ensure no missing prints
  • Ensure venue-level metrics sum or average correctly to the aggregate
  • Flag any period where spread metrics are distorted by halts, circuit breakers, or auction-only sessions [VERIFY halt/auction handling]
  • Validate that PIN/VPIN estimates use sufficient sample size and that confidence intervals are reported
  • Confirm fee schedule assumptions (maker-taker, payment for order flow) are current [VERIFY exchange fee schedules effective date]

Frequently asked questions

What does the Analyzing Market Microstructure AI skill do?

Evaluates market structure dynamics with order book analysis, spread decomposition, and information asymmetry assessment. Use when analyzing market structure, evaluating trading venues, or assessing execution quality.

Why use Analyzing Market Microstructure on TypingMind?

Because you install it once and use it with any model. Analyzing Market Microstructure is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Analyzing Market Microstructure in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/CaseMark/skills/tree/main/skills/capital/analyzing-market-microstructure. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Analyzing Market Microstructure?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Analyzing Market Microstructure?

As many as you like. As long as a model supports skills, you can use Analyzing Market Microstructure with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Analyzing Market Microstructure AI skill free?

Yes. It is published on GitHub by CaseMark under the Apache-2.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇