This beginner overview explains the components of automated trading in crypto markets. It distinguishes exchange accounts and their internal wallet, spot, and derivatives balances; exchange APIs and their access keys; trading pairs; and spot markets versus…
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
3,101 documents
The author recounts developing a daily-oriented spot strategy for ETH and proposes a three-timeframe framework: a slower chart sets market direction, a middle timeframe guides trades, and a faster chart signals when a move may be ending. Each timeframe is…
This article examines how the number of price levels in a crypto grid strategy affects trading frequency, per-grid allocation, fee burden, and returns. It describes logarithmically spaced grid levels across a chosen price range, divides starting capital…
This beginner tutorial builds a spot strategy that monitors several USDT crypto pairs, each with its own fast and slow EMA periods and order amount. It buys when the fast EMA crosses above the slow EMA and sells when it crosses below, using completed bars to…
This tutorial presents a multi-pair spot trading example based on two exponential moving averages. A bullish crossover of the faster average above the slower one prompts a buy, while a bearish crossover prompts a sale. Each trading pair can have its own EMA…
The document presents a speculative reversal method based on the signed distance between closing prices and a moving average, summed from the latest price crossing. A large negative area is treated as evidence of an extended decline and can trigger a long…
The document introduces a data science research environment as a way to study hedging concepts in crypto trading. It focuses on spot-futures hedging, where positions in spot and futures are paired to analyze price differences and the process of opening and…
This article expands a single-pair spot grid into a system that can trade several crypto pairs with distinct settings. It explains practical design choices: collecting aggregated market prices and account balances, tracking assets by pair, and encoding…
The document explains how perpetual futures funding payments help keep contract prices near spot prices, then describes a market-neutral carry trade: short a perpetual contract and buy the same asset in spot to collect positive funding. It outlines screening…
This hands-on guide describes connecting FMZ to Vertex, a decentralized exchange with spot and perpetual markets. It explains wallet and subaccount configuration, the use of a wallet or delegated signing key, and the need to account for USDC costs on…
This teaching example describes a spot strategy that aims to keep the account’s balance currency and valuation currency equal in value. It calculates paired buy and sell limit orders around the current account holdings, using a configurable distance from the…
This overview describes FMZ Quant API changes intended to simplify strategies that handle multiple products. It introduces bulk ticker retrieval, explicit-symbol order placement, historical order queries, and position retrieval across a product or contract…
This tutorial shows how to build a multi-asset cryptocurrency strategy framework using exchange-wide ticker endpoints. It compares aggregated market data from Binance futures and Huobi spot, whose response schemas and field names differ, then normalizes…
This tutorial describes how to route live WebSocket market data into an existing trading strategy without editing the strategy’s own code. It uses a reusable template library that runs initialization logic before the strategy, identifies the exchange…
This article presents a simple cryptocurrency spot copy-trading bot that monitors one reference account and mirrors its trades in other accounts. Its detection method compares the reference account’s total base-asset holdings, including frozen balances, with…
This article explains how to expand a single-pair cryptocurrency grid strategy into a multi-asset spot system. It outlines practical design needs: retrieving aggregated market data and account balances, assigning different grid intervals and order sizes to…
The document presents Python examples of buy-side and sell-side iceberg execution. An iceberg order divides a larger target into smaller limit orders, placing them in relation to the current bid or ask and a configured price depth. The scripts track account…
This guide describes a proposed spot crypto trading workflow in which an AI agent gathers price, volume, and news data, forms a buy, sell, or hold decision, and sends a structured signal to a separate execution platform. The execution service listens for…
This guide explains the configurable parameters used when running FMZ MyLanguage strategies across cryptocurrency spot and futures markets. It distinguishes execution on completed candles from execution on live prices, describing the tradeoff between waiting…
This tutorial designs a spot arbitrage strategy that buys on the lower-priced exchange and sells on the higher-priced one. It lays out controls for the minimum and maximum trade size, price and quantity precision, exchange-rate conversion, and a spread…
The article describes a short-term spot market-making idea prompted by repeated, large market sells in STORJ. The author interprets the regular sell flow and temporary price dips followed by recovery as signs of an iceberg execution strategy. The proposed…
The document describes a JavaScript library that connects an FMZ strategy to Uniswap V3. It presents the platform wrapper as a way to register token addresses, query prices and balances, and submit swaps, while noting that related web3 functions could…
The article describes building a spot and delivery-futures spread strategy around the idea that the spread tends to fluctuate near a mean. Its initial signal uses a spread deviation from that mean, while an augmented Dickey-Fuller test screens for…
The document proposes hedging spot and futures exposure with paired limit orders instead of taking existing quotes when a price spread meets a threshold. It compares the futures and spot order books, places orders on opposite sides when the spread is…