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

78 documents

Quant course library

This client code illustrates order handling for coin-margined futures. It configures position mode, margin mode, and leverage, submits buy and sell orders, checks order status, and exposes account, position, contract, depth, and funding-rate queries. Limit…

FuturesExecutionPosition sizingPerpetual futures
Quant course library

The document describes a software framework for executing spread trades across multiple instruments. It tracks each leg’s orders, fills, costs, and positions, then estimates the spread’s completed volume and average fill price. For inverse contracts, it…

Multi-assetExecutionRisk management
Quant course library

This implementation models a spread as a collection of instrument legs, with separate multipliers for calculating its quoted price and translating spread quantities into leg quantities. It combines leg bid and ask prices, reversing which side is used for…

FuturesCryptoPairs tradingBacktesting
Quant course library

This document describes a software interface for spot trading. It provides methods for placing limit and market buy or sell orders, checking balances and order status, canceling orders, and retrieving ticker, candle, and order book data. The order wrapper…

CryptoSpot marketsExecutionMarket microstructure
Quant course library

This introduction explains Python modules as reusable files, distinguishes modules from packages and libraries, and shows how to import whole modules, selected names, or aliases. It also covers installing third-party packages and using the main-module guard…

CryptoMarket makingExecutionMarket microstructure
Quant course library

This document describes an order-routing adapter that connects algorithmic parent orders and exchange-facing child orders through FIX messages. It maps exchanges, order types, directions, and statuses between two systems. A parent order carries the…

ExecutionMarket microstructureEquitiesFutures
Quant course library

This strategy starts by placing buy and sell limit orders around the best bid, then follows whichever side fills. After a fill, it cancels opposing and profit-taking orders and adds another same-direction order at a wider, position-dependent grid interval.…

Grid tradingHigh-frequency tradingPosition sizingRisk management
Quant course library

The material explains how an order-management component adapts close orders to futures position rules. It maintains separate long and short holdings, splitting each into positions opened today and positions carried from earlier sessions. Incoming position…

FuturesExecutionRisk managementMarket microstructure
Quant course library

The strategy compares the current marked value of its position with a stored balance amount on each new bar. When the relative difference reaches a configurable threshold, it trades toward balance: it buys when the stored amount exceeds position value and…

CryptoGrid tradingPosition sizingExecution
Quant course library

This code provides a client wrapper for trading and querying USDT margined perpetual futures. It configures position mode, margin mode, and leverage, then supports buy and sell orders with limit, market, or other order types. After submission, it checks…

Perpetual futuresExecutionMarket microstructureRisk management
Quant course library

The document defines common records used to represent ticks, bars, orders, fills, positions, accounts, contracts, and trading requests. Fields capture instrument identity, exchange, time, prices, volumes, order state, and selected contract properties.…

Grid tradingMarket microstructureExecution
Quant course library

This document describes a live monitoring system in which users define named formulas over instrument prices. The system subscribes to the instruments referenced by each rule, reads their latest available prices when market updates arrive, evaluates the…

Multi-assetTechnical indicatorsExecution
Quant course library

This document implements a directional crossover strategy using fast and slow exponential moving averages on hourly bars. It calculates the averages from closing prices, discards the latest bar if it has not yet closed, and signals a long position when the…

CryptoFuturesTrend followingTechnical indicators
Quant course library

The document outlines an event-driven trading system designed for cryptocurrency strategies, including market making and higher-frequency activity. It describes an asynchronous event loop for processing work and a message queue that connects separate market…

CryptoHigh-frequency tradingMarket makingExecution
Quant course library

This document explains how to build a multi-contract strategy using synchronized bar data, per-leg targets, and order management. Its example computes the spread between two weighted contract prices, updates a rolling window, and uses Bollinger Bands to…

FuturesPairs tradingMean reversionTechnical indicators
Quant course library

The document describes a two-leg spread strategy built around Bollinger Bands. It calculates a weighted price difference between two contracts, samples the spread on a five-minute schedule, and compares it with a rolling mean and standard deviation. A move…

FuturesPairs tradingMean reversionTechnical indicators
Quant course library

This guide explains how to use a Python wrapper around multiple cryptocurrency exchanges through a mostly consistent interface. It shows initialization with an exchange name and credentials, then describes calls for market status, candlesticks, order books,…

CryptoSpot marketsExecution
Quant course library

This document explains a workflow for collecting live market data for selected instruments. After connecting to a market interface and starting the recorder, a user adds tick or bar recording tasks. The recorder subscribes to the required instruments, stores…

Market microstructureExecutionFutures
Quant course library

This guide explains execution algorithms that divide large orders, react to market prices, and adjust positions on a grid or across a spread. It describes time-weighted execution, iceberg orders, a tick-driven sniper approach, conditional orders, and…

ExecutionMarket microstructureGrid tradingPairs trading
Quant course library

This lesson explains how Python functions return values and how that differs from printing output. It covers explicit returns, the implicit None result when no value is returned, how a return ends the current function, and how multiple returned elements are…

CryptoSpot marketsExecution
Quant course library

The document describes an options volatility trading module built around live pricing, portfolio risk tracking, and execution. It outlines three pricing models for different exercise styles and underlyings, with routines to calculate theoretical prices and…

OptionsVolatilityDerivatives pricingRisk management
Quant course library

This document describes a graphical interface for defining and monitoring spread trades. Users can create standard or flexible spreads, specify leg instruments and directions, set a pricing formula, identify an active leg, and enter minimum trade volume. The…

Multi-assetPairs tradingExecutionMarket microstructure
Quant course library

The document explains utilities for turning incoming trades into one-minute OHLCV bars and combining minute bars into larger time windows. It tracks price extremes, closing price, volume changes, and open interest, then sends completed bars through…

Technical indicatorsMarket microstructureStatisticsExecution