This Hummingbot reference page catalogs scripts and strategies that connect Gateway to decentralized exchange markets. The listed examples cover AMM data monitoring, token swaps, liquidity-position management, arbitrage between centralized and decentralized…
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
The article explains calendar spread trading as taking positions on price differences between futures contracts for the same commodity but different delivery months. It groups potential spread drivers into supply conditions, capital flows and position…
This recap describes strategies built by participants in an algorithmic trading program. Examples include spot and perpetual arbitrage that trades price differences and may benefit from funding, cross-sectional momentum that reallocates toward recent…
This retrospective describes an early Bitcoin trading effort that began with cross-exchange price gaps and evolved into a statistical arbitrage strategy. Directly buying on one venue and transferring coins to another exposed traders to transfer delays and…
The article gives a high-level taxonomy of nine quantitative approaches and the market effects each seeks to exploit. Trend following aims to capture persistent moves; mean reversion trades price dislocations around an average. Value and growth models screen…
This primer introduces stablecoin categories, then focuses on fiat-backed tokens and the factors users should weigh when assessing them. It discusses issuer governance and control, reserve transparency, the difference between attestations and independent…
The discussion explains why an exchange-listed arbitrage contract can show a zero best bid or ask. A forum user reports seeing zero prices while collecting top-of-book quotes. A reply says those quotes appear when traders submit orders directly in the…
The article recounts two forms of Shanghai Futures Exchange copper delivery arbitrage. One exchanges warehouse locations by delivering from Ningbo while requesting Shanghai allocation, then seeks to profit if the recipient of the less convenient warehouse…
The introduction presents a machine-learning framework for selecting securities for pairs trading. It frames pair discovery as a search-space problem: limiting candidates to securities in the same sector may exclude useful relationships, while searching…
This report examines whether investors could exploit price gaps when a heavily suspended Chinese stock resumed trading. The proposed approach models how repeated limit-down sessions affect the net asset value of funds holding the stock, then adjusts the…
The document describes an automated strategy that buys more as a contract price falls and sells more as it rises. Despite being labeled arbitrage, the approach trades price moves in exchange contracts without requiring a corresponding commodity price…
The article explains ETF arbitrage through a simplified analogy: an ETF represents a bundle of stocks, and a temporary mismatch between the bundle’s price and the combined prices of its holdings may create an opportunity. In the example, the bundle is priced…
This futures strategy tracks the crush spread formed from soybean, soybean meal, and soybean oil contracts. It weights the three contract prices using an approximate processing ratio, computes the spread as the combined meal and oil value less the soybean…
The document describes a delta-neutral crypto strategy that pairs long spot holdings with an equal-notional short perpetual futures position. The matched positions are intended to offset broad price moves, leaving funding payments as the main source of…
The document describes a way to retain Ether exposure for a possible fork token distribution while reducing exposure to changes in Ether’s market price. The proposed position pairs a spot Ether purchase with a sale of an Ether futures contract. It suggests…
The module implements a finite-horizon dynamic allocation approach for a mean-reverting arbitrage spread, drawing on a published model by Jurek and Yang. It constructs total-return indices from two price series, estimates cointegrating spread weights, and…
The document explains funding payments as a mechanism used by perpetual futures to help keep contract prices anchored to spot when there is no expiry and settlement. It describes the usual payment direction: when funding is positive, longs pay shorts; when…
The article introduces algorithmic trading as a way to automate rule based market analysis and order execution. It describes potential uses including applying technical indicators, high frequency trading, arbitrage between markets, scalping small price…
This article outlines how institutional crypto teams can assess whether their market and on-chain data coverage supports trading, research, compliance, and risk work. It links potential data gaps to symptoms such as missed arbitrage opportunities, difficulty…
The post describes a timing issue in a live spread engine for a two-leg arbitrage. At startup, each leg has zero bid and ask volume, so the engine waits until both have received data. Afterward, however, it may calculate a spread as soon as either leg…
The author argues that strategies depend on market behaviors that are not stable over time. Arbitrage is presented as relying on price differences between venues tending to converge; trend following, grid trading, martingale approaches, and news trading each…
This podcast recap discusses crypto derivatives and volatility, including the Ethereum Dvol index, differences between Ethereum and Bitcoin volatility, volatility spikes, and a Butterfly Index. It also considers how news and regulatory developments may…
This guide describes strategies that seek to collect funding payments in cryptocurrency perpetual futures while reducing exposure to price moves. A common setup pairs a short perpetual position when funding is positive with a spot holding as a hedge. It also…
This recap presents four trading scripts developed by participants in an educational program. The examples include a portfolio that rebalances equally across assets, spot–perpetual arbitrage that opens positions when the price spread exceeds a threshold and…