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
Binance API docs
45 documents
Quantopian lectures
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

1,747 documents

Quant course library

This document compares crypto spot, leveraged spot, and futures trading. It explains that spot positions are not subject to liquidation in the described framework, while borrowed margin positions and futures can be forcibly closed. It outlines long and short…

CryptoFuturesPerpetual futuresDerivatives pricing
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

This document describes a client for futures exchange HTTP endpoints. It covers public market data requests for exchange specifications, order books, candlesticks across several intervals, recent prices, and best bid and ask quotes. It also defines common…

CryptoFuturesPerpetual futuresMarket microstructure
Quant course library

The document surveys several ways to seek returns in cryptocurrency markets: lending assets through deposit products, supplying liquidity to earn fees, collecting perpetual-futures funding, trading price differences between contracts with different…

CryptoArbitrageCarryFutures
Quant course library

This program wires a double exponential moving average strategy to a Bitcoin perpetual futures market. It creates an authenticated HTTP client, subscribes to websocket market data, and passes incoming ticks to the strategy. A background scheduler…

CryptoPerpetual futuresTechnical indicatorsExecution
Quant course library

The document describes a funding-rate trade that pairs a short perpetual futures position with a long spot position of equal size. It proposes opening the hedge when both the funding rate and quoted spread meet configured thresholds, collecting funding…

CryptoArbitragePerpetual futuresSpot markets
Quant course library

This document presents an exchange interface for perpetual futures that combines account and market queries with order placement, cancellation, and status checks. Its buy and sell routines submit orders, inspect their reported state, and can react to…

Perpetual futuresCryptoExecutionMarket microstructure
Quant course library

The document explains a market-neutral approach to perpetual futures funding. When funding is positive, it proposes buying spot and shorting an equal amount of the perpetual contract; when funding is negative, it proposes borrowing and selling spot while…

CryptoArbitragePerpetual futuresSpot markets
Quant course library

This lesson contrasts spot trading, where profit generally depends on prices rising after purchase, with futures contracts, which allow traders to open and close positions and use leverage. It explains that leverage reduces the margin needed for a position…

FuturesPerpetual futuresRisk managementPosition sizing
Quant course library

The document describes a two-sided futures grid strategy that places orders on both sides of the market and includes take-profit and stop-loss controls. It presents the approach as most suitable for range-bound conditions or periods of relatively low, stable…

FuturesGrid tradingVolatilityRisk management
Quant Q&A

The document raises a practical issue in a cryptocurrency perpetual-swap pair-trading strategy: a spread estimated by regression on log returns can produce opposite signals in consecutive observations. The author calculates the spread from rolling historical…

CryptoPairs tradingPerpetual futuresMean reversion
Quant Q&A

The document explains how closing a futures or perpetual futures position changes a trader’s net exposure. A trader closes a long by selling the contract, which opens or increases a long position for whoever buys it. The original short position remains open;…

FuturesPerpetual futuresMarket microstructure
Quant Q&A

The document asks whether a long position in a quarterly bitcoin future and a short position in a perpetual swap can remain market neutral. It explains that perpetual swaps have no expiry and use funding payments to help keep their prices near spot. The…

CryptoFuturesPerpetual futuresCarry
Quant Q&A

The note explains how collateral and funding payments relate to liquidation in perpetual futures. In the answer’s account, a position is liquidated when collateral falls below the maintenance margin. Collateral includes the amount initially posted, realized…

CryptoFuturesPerpetual futuresRisk management
Quant Q&A

The document raises two modeling issues when applying stochastic quanto pricing formulas to crypto futures and perpetual swaps. First, it questions what domestic discount rate to use when the contract is settled in bitcoin, given the absence of a…

CryptoFuturesPerpetual futuresDerivatives pricing
Quant Q&A

The discussion examines how to estimate a cryptocurrency yield curve when perpetual futures are the only obvious derivatives market. One answer emphasizes that a curve describes rates across maturities at a point in time; forecasting future funding rates is…

CryptoPerpetual futuresDerivatives pricingDeFi
Quant Q&A

The discussion asks how to choose the number of historical candles used to estimate a spread z-score in a crypto perpetual swap pairs strategy. The question notes that different pairs appear to perform best with different window lengths in both backtests and…

CryptoPairs tradingPerpetual futuresBacktesting
Quant Q&A

The document explains how leveraged futures positions are closed when a trader’s margin cannot cover the losses, focusing on the difference between broker-backed conventional markets and crypto exchanges with limited-liability accounts. It uses a…

FuturesCryptoPerpetual futuresMarket microstructure
Quant Q&A

The document asks how a market maker might hedge a short position in down-and-in Bitcoin puts. Its answer contrasts these barrier options with vanilla puts and gives two possible risk-management actions: use Bitcoin-dollar perpetual swaps or dated futures to…

CryptoOptionsFuturesPerpetual futures
TradingView scripts

This indicator builds a price-binned footprint over the visible chart range using either traded volume or changes in open interest. Users choose the number of price rows and whether each row displays totals, an up/down split, or net delta. Positive delta…

Market microstructureTechnical indicatorsPerpetual futuresCrypto
TradingView scripts

This long-only strategy for XRP perpetuals arms an entry when the 4-hour RSI(14) falls below 28. It starts with a base order, then adds up to five safety orders at fixed price declines from the base entry. The default order sizes grow at roughly 1.8 times…

CryptoMean reversionTechnical indicatorsPosition sizing
TradingView scripts

This TradingView strategy is described as reversing trades when price reaches extreme levels around VWAP standard deviation bands. The page shows BTCUSDT perpetual chart context and plots multiple bands, but provides no entry thresholds, exit rules, position…

CryptoPerpetual futuresMean reversionTechnical indicators
TradingView scripts

This TradingView strategy divides a fixed BTCUSDT perpetual-futures price range into configurable levels, using either geometric or arithmetic spacing. It allocates the stated total investment evenly across levels. When a bar closes through an unowned level…

CryptoPerpetual futuresGrid tradingPosition sizing
TradingView scripts

This Bitcoin perpetual-futures strategy combines a daily EMA bias and a four-hour RSI confirmation with hourly RSI, MACD, engulfing candles, elevated ATR, and a volume spike for entries. It places pattern-based stops with a maximum distance, sizes positions…

CryptoPerpetual futuresTrend followingRisk management