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…
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.
Search the library
13 documents
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…
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…
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…
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…
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…
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…
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…
This Python script launches a Rust grid-trading backtest for each symbol in a ticker configuration. It assembles daily market-data and latency-file paths for a specified date range, passes instrument and strategy settings to the backtest executable, and runs…
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…
The code describes a grid market-making approach that repeatedly places buy and sell limit orders around a forecast mid-price. The forecast is simply the current best bid and ask midpoint, with no alpha adjustment in this implementation. A relative…
This example sets up a historical simulation for a grid trading strategy on the linear 1000SHIBUSDT contract. It loads daily market data and latency files for a date range, initializes market depth from a start-of-day snapshot, and configures the backtest…
This example shows how a live grid trading bot can respond to errors while trading SOLUSDT on a futures venue. Its handler distinguishes interrupted connections, critical connection failures, order errors, and custom error codes. It logs connection and order…