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
Quantpedia
86 documents
TqSdk
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

26 documents

Stratmill research code

This script builds a universe of Binance futures contracts using 24-hour ticker data and exchange metadata. It joins weighted average price and quote volume with contract onboarding date, price tick size, and order quantity constraints. It then excludes…

CryptoFuturesMarket microstructure
Stratmill research code

This example builds a BTCUSDT futures market-making strategy whose fair price is estimated from a spot reference price plus a smoothed spot–futures basis. It resamples spot and futures book-ticker mid-prices, carries observations forward, and calculates a…

CryptoFuturesMarket makingMean reversion
Stratmill research code

This document describes a parameter sweep for a grid trading backtest. It combines every configured symbol with candidate relative half-spread and grid-count values, then runs the resulting backtests in parallel over a selected date range. The grid interval…

CryptoGrid tradingBacktestingPosition sizing
Stratmill research code

This tutorial compares a high-frequency grid market-making strategy across cryptocurrency exchanges, emphasizing that different order flows can change results even for the same trading pair and parameters. The strategy places layered limit bids and offers…

CryptoFuturesGrid tradingMarket making
Stratmill research code

This tutorial describes a high-frequency grid strategy that places passive limit orders at regular intervals around the mid-price. It maintains a fixed number of buy and sell levels, refreshes orders as the market moves, and limits new orders based on the…

FuturesCryptoGrid tradingMarket making
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 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

This tutorial develops a market-making approach that estimates a futures contract’s fair price from spot-market returns. Its basic arbitrage pricing theory relationship assumes futures and spot returns move one-for-one with no intercept; the strategy uses…

CryptoFuturesSpot marketsMarket making
Stratmill research code

The document outlines safeguards for cryptocurrency futures trading during sharp market moves and delayed updates. It recommends monitoring the gap between a futures contract and its underlying spot price, and between last price and mark price, as signs that…

CryptoFuturesRisk managementMarket 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 document describes a data-conversion workflow for preparing Hyperliquid market feeds for HftBacktest. It reads timestamped stream records, handles trade and level-two book messages, and converts them into typed depth and trade events using configurable…

CryptoMarket microstructureBacktestingExecution
Stratmill research code

The document explains why a single exchange depth stream may not capture every order-book change. It compares Binance Futures incremental Level 2 data with the more frequently updated book-ticker feed, then shows how to combine them into a consolidated feed…

CryptoMarket microstructureBacktestingMarket making
Stratmill research code

This Python utility converts Bybit historical depth and trade files into the event array format used by HftBacktest. It reads order book updates from a zipped JSON stream and trades from a gzip-compressed CSV, creates depth, snapshot, clear, and trade…

CryptoMarket microstructureExecutionBacktesting
Stratmill research code

This example demonstrates a basic workflow for preparing Bybit order book data and running it through a market-making backtest. It shows two conversion paths: a fused conversion for multi-level depth data and a conversion that selects a single depth level.…

CryptoMarket makingBacktestingMarket microstructure
Stratmill research code

This example shows how to combine a spot BTCUSDT mid-price series with US dollar margined futures order book data in an hftbacktest simulation. It parses spot book ticker messages into local timestamps and mid prices, then, at each backtest timestamp,…

CryptoFuturesSpot marketsMean reversion
Stratmill research code

This Rust example configures a live trading bot for the BTCUSDT futures instrument on Bybit and invokes a separate grid-trading routine. It registers instrument precision and market-depth settings, installs an error handler for connection, order, and custom…

CryptoFuturesGrid tradingExecution
Stratmill research code

This notebook excerpt describes evaluating multiple cryptocurrency pairs from grid-trading backtests. It filters for assets listed before May 2024, excluding Bitcoin and Ether, and examines a run made in June 2024 using May data. For each pair, it builds an…

CryptoGrid tradingBacktestingMarket 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 describes processing Bybit’s compressed raw feed files into event data compatible with a high-frequency backtesting system. It handles order book snapshots and updates, as well as public trades, and offers two approaches: combine multiple book…

CryptoMarket microstructureBacktestingExecution
Stratmill research code

This tutorial demonstrates how to inspect market depth and trade flow in an event-driven backtest. It first reads the nearest visible bid and ask levels, then shows a region-of-interest vector representation that limits depth access to a configured price…

Market microstructureBacktestingTechnical indicatorsCrypto
Stratmill research code

This utility converts Binance historical order-book depth, snapshot, and trade files into an event format used by HftBacktest. It reads CSV data, identifies or infers column headers, maps records to depth, snapshot, or trade events, and assigns exchange and…

CryptoMarket microstructureBacktestingExecution
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

These release notes describe Hummingbot 1.14.0, including new centralized and decentralized exchange connectors, documentation changes, and updates to bot orchestration and execution components. The trading-related changes include a KuCoin perpetual…

CryptoPerpetual futuresSpot marketsExecution