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

610 documents

Quant Q&A

The document considers how to hedge two opposite currency flows occurring on different future dates. Hedging each flow with a separate forward can secure both exchange rates, but leaves the hedger paying for two contracts. Waiting until the first flow occurs…

ForexDerivatives pricingCarryRisk management
Quant Q&A

The discussion explains how to value a five-year arrangement in which an investor pays par, receives LIBOR plus a spread annually, and gets principal back at maturity. It treats the cash flows as a floating-rate note (FRN): a LIBOR-only FRN valued at par…

Fixed incomeDerivatives pricingCarry
Quant Q&A

The discussion separates a forward price from a forecast of the asset’s future spot price. A forward contract sets a price today for an exchange at a later date; financing costs and the value of holding or using the asset can make that price differ from an…

Derivatives pricingArbitrageCarry
Quant Q&A

The document asks about emerging-market currency bonds priced using cross-currency swap rates and about the participants and drivers of fixed-local-currency versus floating-dollar swaps. The response describes these swaps as longer-dated expressions of…

Fixed incomeForexCarryDerivatives pricing
Quant Q&A

This answer outlines two broad influences on exchange rates: current account balances and differences in interest rates and inflation. A current account deficit can imply structural currency supply and depreciation pressure, while a surplus can imply…

ForexCarryStatistics
Quant Q&A

The discussion addresses how to interpret a quoted spread on the shorter leg of a tenor basis swap when that leg’s rate accrues over shorter periods but pays on the longer leg’s schedule. It explains that the term sheet or governing market documentation…

Fixed incomeDerivatives pricingCarry
Quant Q&A

The discussion explains why a known cash dividend can appear to be carried at the net cost-of-carry rate in a discrete-dividend forward formula, even though the dividend itself is reinvested in a cash account at the risk-free rate. A hedge-based derivation…

Derivatives pricingEquitiesCarry
Quant Q&A

The document addresses an apparent carry mismatch between a bond futures price observed on its last trading day and the cheapest-to-deliver bond’s forward price at the last delivery date. It asks whether the bond forward should instead be valued to the…

FuturesFixed incomeCarry
Quant Q&A

The document examines the convention of estimating fixed-income roll-down by moving a bond along today’s spot yield curve. It contrasts that practice with using a forward curve, which might seem more suitable as a predictor of yields at the investment…

Fixed incomeCarryDerivatives pricing
Quant Q&A

The document explains how to adapt a collateralized forward-pricing relationship for an inflation-linked bond with a coupon paid before forward settlement. The nominal bond proceeds method is adjusted by applying an index ratio to the spot value, interim…

Fixed incomeDerivatives pricingCarry
Quant Q&A

The document explains why bond-market discussions use more than one definition of carry. A short-horizon return approximation separates coupon income, pull to par, and the price effect of a yield change. In financed-position analysis, carry is also quoted as…

Fixed incomeCarryRisk management
Quant Q&A

The note examines whether bond carry should include an expected loss for default, often expressed using default probability and loss given default. The answer explains that a performing bond’s market price already reflects market views about rates, default…

Fixed incomeCarryRisk management
Quant Q&A

The discussion compares two ways to describe the one-day profit and loss of a payer in a short-dated zero-coupon interest rate swap. One interpretation defines carry as the predictable accrual component and roll-down as the value change from the curve’s…

Fixed incomeCarry
Quant Q&A

The document distinguishes the market price of a currency forward from the cost of hedging measured relative to spot. Covered interest rate parity links the two: under parity, the forward-to-spot ratio equals the ratio of the two currencies’ gross interest…

ForexDerivatives pricingCarry
Quant Q&A

The discussion explains carry and roll-down using an interest rate swap whose curve slopes upward. Carry comes from the already fixed floating coupon relative to the swap’s fixed rate; roll-down comes from repricing the remaining cash flows as the swap…

Fixed incomeCarryDerivatives pricing
Quant Q&A

The document addresses a practical interest rate swap carry calculation and clarifies the role of a six-month discount factor. It describes calculating upfront carry as the difference between the five-year swap rate and six-month Euribor, multiplied by the…

Fixed incomeCarryDerivatives pricingStatistics
Quant Q&A

The document explains why a currency hedge can have an apparent annual cost even when a forward contract produces no profit or loss if the exchange rate at maturity matches the agreed forward rate. The key point is that the forward rate already reflects the…

ForexFixed incomeCarryDerivatives pricing
Quant Q&A

The document examines whether a market maker should reverse the usual cost-of-carry formula when quoting a bid for a forward. It develops the standard no-arbitrage relationship by considering a short forward position hedged with a purchase of the underlying,…

Derivatives pricingFuturesCarryMarket making
Quant Q&A

The exercise describes a proposed trade using interest rate swaps, short selling a coupon bond, and rolling deposit funding. It bootstraps discount factors from swap rates, then compares the bond’s discounted cash flows with swap-related receipts to claim a…

Fixed incomeArbitrageCarryRisk management
Quant Q&A

The document considers how to value legacy USD LIBOR swaps that fall back to compounded-in-arrears SOFR plus a fixed spread. It distinguishes these fallback cash flows from standard SOFR swaps, whose floating legs compound daily published SOFR. It explains…

Fixed incomeDerivatives pricingCarryRisk management
Quant Q&A

The document clarifies that a forward premium is not an option premium paid for a right to exercise. It describes the annualized forward premium as the continuously compounded rate implied by the ratio of the forward price to the current spot price over the…

FuturesCarryDerivatives pricing
Quant Q&A

The document explains how a currency investor can receive the higher interest rate associated with a foreign currency. After exchanging domestic funds for foreign currency, an investor may hold the balance in a local bank account that pays interest, subject…

ForexCarryRisk management
Quant Q&A

The document derives the foreign-exchange forward pricing relationship using the cost-of-carry framework. It treats the domestic interest rate as the opportunity cost of holding the currency and the foreign interest rate as the benefit earned by investing in…

ForexFuturesCarryDerivatives pricing
Quant Q&A

The document asks whether a premium bond necessarily has negative roll-down return, as several cited explanations claim. It distinguishes that claim from pull-to-par: on an upward-sloping yield curve, a bond that ages into a lower-yield maturity point may…

Fixed incomeCarryStatistics