This introductory guide describes quantitative trading as building rules from data and statistical analysis to generate systematic entry and exit signals. It explains positive expectancy as a favorable average outcome across repeated trades, while…
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
1,625 documents
This documentation page indexes a sequence of option-use examples for a trading SDK. The topics move from retrieving live option quotes and screening contracts to classifying options as in the money, at the money, or out of the money. Further examples cover…
These notes introduce derivatives as contracts whose value depends on an underlying asset or other variable, then distinguish exchange-traded markets from over-the-counter trading. They outline forwards, options, futures, and swaps, explaining basic contract…
This live-trading dashboard describes a Gate.io spot triangular arbitrage operation using BTC, ETH, and USDC pairs. Trade logs show the bot routing through USDT, executing three-leg hedged trades when quoted prices imply a small spread, and recording…
This market snapshot assesses a period of crypto consolidation by combining price and volume trends with derivatives positioning, institutional flows, order book liquidity, and DeFi lending conditions. It reports a modest Bitcoin recovery alongside weaker…
The method searches for hedge ratios that make a portfolio spread more stationary according to the Augmented Dickey–Fuller (ADF) test statistic. It defines the spread as the target asset’s price series minus a weighted sum of the other price series, then…
The article explains liquidity through price discovery and the bid-ask spread. Wide spreads can make immediate resale costly, discourage trading, and raise costs for users who need a token. It argues that market makers can narrow spreads and support more…
This guide explains spread trading across related instruments, contrasting it with single-instrument trend strategies. It presents several approaches: latency-sensitive arbitrage between equivalent markets, threshold or Bollinger Band mean-reversion trades…
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…
The strategy compares a synthetic futures price, calculated from a call price minus a put price plus the strike, with the traded futures price. It measures the difference and opens a three-leg position when the spread crosses a configurable entry level: one…
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…
This example manages a spread position using configurable entry and exit prices, a maximum position, order pay-up, and an execution interval. On each spread update, it checks whether the current time falls within the configured trading window. Outside that…
This algorithm takes liquidity in the active leg of a multi-leg spread when the quoted spread reaches a configured limit. For a long spread, it checks whether the ask is at or below the target; for a short spread, it checks whether the bid is at or above it.…
This algorithm takes liquidity in the active leg of a multi-leg spread when the quoted spread price reaches a configured limit. For a long spread, it acts when the ask is at or below that limit; for a short spread, it acts when the bid is at or above it. It…
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…
The discussion addresses whether negative interbank rates should be floored at zero when valuing FX forwards or futures. The answer argues that market participants can lend and borrow at negative rates, so valuations must reflect those rates: replacing them…
The document considers an option that pays the difference between two stock prices at maturity only if the first stock stays above the second throughout the option’s life. It presents a model-free replication argument: hold one share of the first stock and…
The document explains how borrowing and financing support ETF market making, creation and redemption, and arbitrage when ETF prices diverge from their underlying holdings. Market makers may finance temporary inventory, borrow securities, use repo, or provide…
The document explains the net basis in a Treasury cash bond and futures trade, addressing why it may be negative even though it is associated with delivery options. A negative reading does not by itself establish an arbitrage opportunity: funding constraints…
The document raises a practical question about applying triangular arbitrage to CFDs. It describes a supposed mispricing across EUR/USD, USD/GBP, and GBP/EUR, then asks how to account for opening three long positions, keeping them open, and closing them into…
The document compares two ways to estimate the price of a European call at a strike and maturity absent from the market: interpolate neighboring option prices directly, or interpolate model inputs such as implied volatility and then reprice with…
The document derives the fair delivery price for a three-year forward on thirty dividend-paying assets using a replication argument. Buy the assets at spot by borrowing their cost, invest the interim dividends, and compare the resulting time-three cash flows…
The document asks what model-free finance means and presents two possible interpretations. One strand studies which derivative prices are consistent with the absence of arbitrage, using current prices of traded options on the same underlying rather than…
The document compares two definitions of arbitrage in a single-period market with a risk-free asset. One requires a zero-cost portfolio whose payoff is nonnegative in every state and positive in at least one. The other states the condition using discounted…