liveBook · Manning

Transaction cost

Also called transaction fee

A transaction cost is an expense or charge incurred in carrying out a transaction, including fees and costs arising during execution or processing.

How 4 Manning books explain it

Experimentation for Engineers

Execution cost is the expense incurred when carrying out a trade, including the difference between the intended and obtained transaction price and related charges.

How it is used
Guides exchange-routing decisions by serving as the business metric for an A/B test.
How deep it goes
Works through simulation, replication, randomized measurement, aggregate differences, standard errors, and z-score decisions.
Examples
Uses simulated ASDAQ and BYSE trades, including 12.28 versus 8.14 mips and 100-trade averages.
What you can do after
Operate/configure it by randomizing exchange measurements and rerouting trades when cost differences meet practical and statistical criteria.

Read how Experimentation for Engineers explains transaction cost →

Investing for Programmers

A transaction fee is a charge incurred when buying or selling a financial asset.

How it is used
Adjusts trading-strategy returns so backtests account for the cost of executing each buy or sell.
How deep it goes
Defines the charge and implements fixed per-transaction deductions, without modeling variable fee schedules or market frictions.
Examples
Uses a one-dollar-per-transaction assumption, Python backtests, and ETF-versus-direct-stock-purchase comparisons.
What you can do after
Apply it via a Python backtest to subtract estimated fees and judge whether strategy gains survive trading costs.

Read how Investing for Programmers explains transaction cost →

Build a Robo-Advisor with Python (From Scratch)

A transaction cost is an expense incurred when buying, selling, transferring, or modifying an asset or contract.

How it is used
Frames transaction costs as constraints on trading, rebalancing, tax-loss harvesting, and frequent investment activity.
How deep it goes
Quantifies spreads and commissions in a Python function, while treating taxes as a separate practical consequence of trading.
Examples
Uses frequent trading, portfolio rebalancing, housing upgrades, and a tax-loss-harvesting cost function as examples.
What you can do after
Evaluate/understand trades by comparing tax benefits with spread and commission costs.

Read how Build a Robo-Advisor with Python (From Scratch) explains transaction cost →

Financial AI in Practice

Trading expenses, including fees, slippage, and spreads, that reduce returns.

How it is used
Tests whether apparent market-prediction profits survive real-world trading friction.
How deep it goes
Names fees, slippage, and bid-ask spreads as costs that erode margins, without quantifying them.
Examples
Contrasts academic paper-trading studies that omit trading costs with strategies exposed to real capital losses.
What you can do after
Evaluate market-prediction claims by accounting for trading friction rather than relying on accuracy alone.

Read how Financial AI in Practice explains transaction cost →

What to know first

Related concepts

Questions about transaction cost

What is transaction cost?

A transaction cost is an expense or charge incurred in carrying out a transaction, including fees and costs arising during execution or processing.

Which Manning books explain transaction cost?

Experimentation for Engineers, Investing for Programmers, Build a Robo-Advisor with Python (From Scratch) and Financial AI in Practice.

What should I know before learning transaction cost?

Manning books that teach transaction cost usually introduce bid-ask spread and tax first.

What is transaction cost a kind of?

Transaction cost is a kind of metric. A metric is a quantitative measure that assigns values to a property or outcome so it can be assessed, compared, or monitored.

What is transaction cost part of?

Transaction cost is part of reward signal. A reward signal is a value or feedback indicating the desirability, benefit, or cost associated with an action, outcome, or behavior.

What is transaction cost also called?

Transaction cost is also called transaction fee.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.