Skip to content

Knowledge library

Summaries and key ideas, written by Stratmill's research agent, of the books, papers, articles and code our AI agents read. Each page links to its original.

Quant Q&A
20,364 documents
SuperMind
12,226 documents
OKX Learn
8,431 documents
Strategy library
7,910 documents
MQL5 code base
7,090 documents
BigQuant
3,481 documents
Bitget Academy
3,298 documents
MQL5 articles
3,012 documents
TradingView scripts
1,976 documents
ProRealCode
1,507 documents
Deribit Insights
1,232 documents
Machine Learning for Trading
1,124 documents
arXiv papers
1,033 documents
Amberdata research
766 documents
FMZ forum
682 documents
FMZ digest
662 documents
vn.py community
560 documents
QuantInsti blog
511 documents
Galaxy Research
340 documents
QuantStart
246 documents
Stratmill research code
219 documents
Robot Wealth
195 documents
NautilusTrader
191 documents
Hummingbot docs
181 documents
Paradigm research
175 documents
Lumibot
164 documents
Kraken Learn
163 documents
Quant course library
157 documents
OctoBot
152 documents
Cryptohopper blog
144 documents
Systematic trading blog (Rob Carver)
132 documents
Qlib
116 documents
TqSdk
86 documents
Quantpedia
86 documents
Hyperliquid docs
79 documents
Freqtrade
68 documents
Hudson & Thames
62 documents
Awesome Systematic Trading
61 documents
backtrader
54 documents
vn.py
50 documents
Quantopian lectures
45 documents
Binance API docs
45 documents
FMZ guides
38 documents
pysystemtrade
34 documents
Freqtrade docs
32 documents
quant-trading
31 documents
FinRL
28 documents
Zipline
22 documents
FMZ live strategies
21 documents
Jesse
17 documents
pyfolio
16 documents
Alphalens
14 documents
WonderTrader
14 documents
backtesting.py
11 documents
Technical Analysis
9 documents
QTPyLib
8 documents
QuantRocket
7 documents
Lumibot strategies
7 documents
Awesome Quant
1 documents

Search the library

30 documents

Stratmill research code

The example outlines a limit-order market-making loop. It computes a midpoint from the best bid and ask, adjusts a reservation price using a forecast and an inventory-related risk term, then places bid and ask quotes around that price. It rounds quotes to…

Market makingHigh-frequency tradingExecutionMarket microstructure
Stratmill research code

HftBacktest uses Numba-compiled classes and strategy functions, so importing the library and compiling a strategy can add startup time before a backtest begins. The document describes enabling Numba’s cache option on a strategy function so compiled code can…

BacktestingHigh-frequency tradingExecution
Stratmill research code

This document introduces HftBacktest, a Rust framework for developing and running high-frequency trading and market-making strategies. Its backtesting approach replays tick-level market data and aims to model important execution effects, including feed…

High-frequency tradingMarket makingMarket microstructureBacktesting
Stratmill research code

The tutorial describes a faster backtesting approach that precomputes fill conditions across intervals, reducing the need to replay every depth update or estimate queue position. It retains feed and order-entry latency but omits order-response latency.…

BacktestingExecutionMarket microstructureHigh-frequency trading
Stratmill research code

This tutorial applies the Guéant–Lehalle–Fernandez-Tapia market-making model to grid quoting. It derives bid and ask quote depths from a fair price, volatility, trading intensity, and inventory. The resulting quotes combine a half-spread with an…

Market makingGrid tradingHigh-frequency tradingCrypto
Stratmill research code

This code describes a stateful method for comparing consecutive limit-order-book snapshots. It stores bid and ask levels from the current and previous snapshots, then flags each current level as unchanged, changed, or inserted based on price and quantity.…

Market microstructureExecutionHigh-frequency tradingStatistics
Stratmill research code

This guide explains how to prepare tick-by-tick trades and full order-book updates for HftBacktest, noting that this level of historical data is not commonly available for free in the way daily bars are. For Binance Futures, it describes collecting raw feed…

CryptoFuturesHigh-frequency tradingMarket microstructure
Stratmill research code

The document explains why a high-frequency trading backtest should account for delays between exchange activity and a trader’s system. It separates latency into feed latency, order-entry latency, and order-response latency, distinguishing when market data…

High-frequency tradingBacktestingExecutionMarket microstructure
Stratmill research code

This Rust component connects to a Bybit public WebSocket stream and converts incoming order book and public trade messages into internal live feed events. It subscribes to several order book depth levels and public trades for requested symbols, parses bid…

CryptoMarket microstructureExecutionHigh-frequency trading
Stratmill research code

This migration guide explains changes users must account for when moving HftBacktest strategies and data from version 1 to version 2. The key control-flow change is that functions such as the event-advance operation and order submissions now return status…

High-frequency tradingExecutionMarket microstructure
Stratmill research code

The README describes a market replay framework for researching high-frequency trading and market-making strategies. It reconstructs order books from detailed market data and simulates order and feed latency, queue position, and fills. Its tick-by-tick engine…

High-frequency tradingMarket makingBacktestingExecution
Stratmill research code

This roadmap outlines development work for a quantitative trading toolkit spanning Python reporting, Rust backtesting, live trading, exchange connectors, orchestration, and examples. Its backtesting topics include Level 3 order-book simulation, combining…

BacktestingHigh-frequency tradingMarket microstructureExecution
Stratmill research code

This document describes a latency interface for high-frequency trading backtests, separating the delay from submitting an order to exchange processing from the delay between exchange processing and receiving a response. A constant model assigns fixed values…

High-frequency tradingBacktestingExecutionMarket microstructure
Stratmill research code

The document presents a simplified high-frequency grid market-making approach inspired by GLFT. Rather than dynamically estimating order-arrival intensity to set spreads and skew, it uses recent price volatility to determine quote distance. Inventory is…

CryptoHigh-frequency tradingMarket makingGrid trading
Stratmill research code

The document presents an implementation of a limit order book that stores level-two depth in bid and ask vectors over a configured range of price ticks. It maps prices to array indices using the tick size, aggregates quantities at each level, and tracks best…

Market microstructureExecutionHigh-frequency trading
Stratmill research code

This tutorial introduces a workflow for inspecting market data and orders in HftBacktest. It shows how to configure an asset with historical tick data, an optional starting snapshot, contract and tick sizes, latency, queue position, exchange fill behavior,…

BacktestingHigh-frequency tradingMarket microstructureExecution
Stratmill research code

This document describes a Rust framework for developing high-frequency and market-making strategies in backtests and live trading. Its replay approach uses tick-level market data and reconstructed order books, including both market-by-price and…

High-frequency tradingBacktestingMarket makingExecution
Stratmill research code

This document describes preprocessing checks for event data that records both exchange timestamps and local receipt timestamps. One routine detects when the local clock appears ahead of the exchange clock, then shifts local timestamps by the largest observed…

High-frequency tradingMarket microstructureStatistics
Stratmill research code

This tutorial adapts a GLFT-based grid market-making backtest to multiple futures assets. It normalizes order size to a common notional amount, sets inventory limits in units of that order size, estimates trade-arrival intensity and price volatility from…

FuturesMarket makingGrid tradingHigh-frequency trading
Stratmill research code

This utility reconstructs an order book from a supplied sequence of market-data files and returns the market-depth state at the end of that data. It configures a backtest asset with the relevant tick size and lot size, and can optionally seed reconstruction…

Market microstructureHigh-frequency tradingExecutionBacktesting
Stratmill research code

This Rust example shows how to wrap HftBacktest’s local processor to add custom handling around market events and order responses. The wrapper implements the local processor interface by forwarding order submission, modification, cancellation, state, depth,…

BacktestingHigh-frequency tradingExecutionMarket microstructure
Stratmill research code

This example generates order-latency records for a crypto trading backtest from historical feed data. It first keeps events that contain both exchange and local timestamps, then aggregates to one record per second using the last timestamps in each interval.…

CryptoHigh-frequency tradingExecutionMarket microstructure
Stratmill research code

This document develops order book imbalance as an alpha input for a crypto market-making strategy. It defines static and standardized imbalance, then compares related measures: volume-adjusted mid-price (VAMP), weighted-depth order book price, and a hybrid…

CryptoMarket makingMarket microstructureHigh-frequency trading
Stratmill research code

The code excerpt outlines a Rust live-trading bot builder and event-processing loop. A builder registers instruments with connector and symbol details, tick and lot sizes, and market-depth storage; it can also attach error handlers and order-response hooks…

ExecutionMarket microstructureHigh-frequency trading