market-making-hft

Generate deterministic market-making quotes with Avellaneda-Stoikov and basic models.

10|2|Updated Mar 8, 2026
One-click install
npx skills add https://github.com/mahmoud20138/Tradecraft --skill market-making-hft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: market-making-hft
Source: https://github.com/mahmoud20138/Tradecraft/tree/main/plugins/tradecraft/skills/market-making-hft
Command: npx skills add https://github.com/mahmoud20138/Tradecraft --skill market-making-hft

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the complexity of generating real-time market-making quotes, reducing manual effort and latency for trading desks.

Core Features & Use Cases

  • Deterministic quote generation around mid-price using multiple models (Basic MM and Avellaneda-Stoikov) with inventory-aware sizing.
  • Inventory management and PnL tracking (realized and unrealized) with basic risk controls.
  • Depth and order-book analysis utilities (OFI, depth profiling, spoofing detection) and execution metrics (VWAP/TWAP).

Quick Start

Provide a live mid_price and, if available, current volatility and order-book imbalance to generate initial quotes using the market-making engine.

Frequently Asked Questions about market-making-hft

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

FAQPage Schema
How do I generate real-time market-making quotes using the Avellaneda-Stoikov model?

To generate real-time market-making quotes using the Avellaneda-Stoikov model, provide a live mid-price, current volatility, and order-book imbalance to calculate risk-adjusted spreads with inventory-aware sizing.

What is inventory-aware sizing in high-frequency trading?

Inventory-aware sizing in high-frequency trading adjusts order quantities based on your current inventory position, applying risk controls and PnL tracking to manage exposure while generating deterministic quotes around the mid-price.

How do I track realized and unrealized PnL for crypto market making?

You can track realized and unrealized PnL for crypto market making by utilizing the built-in inventory management utilities, which monitor position changes and apply basic risk controls during automated quote generation.

Does this market making engine support order flow imbalance and spoofing detection?

Yes, the market making engine supports order flow imbalance and spoofing detection through its depth and order-book analysis utilities, alongside execution metrics like VWAP and TWAP tracking.

Can I use basic market making models alongside Avellaneda-Stoikov for forex trading?

Yes, you can use basic market making models alongside Avellaneda-Stoikov for forex trading, as the engine supports multiple models for deterministic quote generation and applies to crypto and forex environments requiring latency awareness.

What inputs are required to start automated market making for high-frequency trading?

To start automated market making for high-frequency trading, you must provide a live mid-price input, while also supplying current volatility and order-book imbalance data to generate accurate initial quotes with adaptive spreads.