microstructure-hft

Automate microstructure HFT workflows for quantitative research and production controls.

Updated Feb 10, 2026
One-click install
npx skills add https://github.com/GhostOf0days/codex-quant-skills --skill microstructure-hft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: microstructure-hft
Source: https://github.com/GhostOf0days/codex-quant-skills/tree/main/microstructure-hft
Command: npx skills add https://github.com/GhostOf0days/codex-quant-skills --skill microstructure-hft

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the complexities of high-frequency trading (HFT) by providing tools for microstructure analysis, enabling quantitative researchers and developers to build more robust and efficient trading strategies.

Core Features & Use Cases

  • Workflow Automation: Executes microstructure HFT workflows with reproducible research, explicit controls, and deployable outputs.
  • Diagnostic Analysis: Profiles venue liquidity, queue dynamics, and spread behavior, attributing slippage into its core components.
  • Risk Management: Enforces kill-switch conditions and escalation paths for sustained degradation in fill quality.
  • Use Case: When developing a new HFT strategy, use this Skill to analyze the queue dynamics and spread resilience of target venues before deployment, ensuring stable execution quality.

Quick Start

Run the microstructure hft diagnostics script with the input file 'input.csv' and save the output to 'diagnostics.json'.

Frequently Asked Questions about microstructure-hft

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I decompose slippage into its core components for quantitative trading?

Slippage decomposition for quantitative trading is automated by running the microstructure diagnostics script, which attributes execution costs into core components and outputs the results to a JSON file.

What is the best way to profile queue dynamics and spread resilience before HFT deployment?

Profiling queue dynamics and spread resilience requires analyzing venue liquidity behavior using the diagnostic scripts, which evaluate spread stability and queue position to ensure stable execution quality.

How do I set up kill-switch conditions and escalation paths for HFT risk controls?

Kill-switch conditions and escalation paths for HFT risk controls are enforced through the production controls workflow, which triggers automated responses for sustained degradation in fill quality.

Can I use Python scripts to automate microstructure HFT workflows for reproducible research?

You can use the included Python scripts to automate microstructure HFT workflows, enabling deterministic diagnostics for queue dynamics, spread behavior, and reproducible quantitative research.

Why does HFT execution quality degrade and how do I diagnose venue liquidity issues?

Venue liquidity issues and HFT execution degradation are diagnosed by profiling spread behavior and queue dynamics with the diagnostic scripts, identifying specific structural weaknesses in the target venues.

What input data format is needed for microstructure liquidity diagnostics?

Microstructure liquidity diagnostics require an input CSV file containing the relevant execution data, which the diagnostic script processes to generate a structured diagnostics JSON output.