Skip to content
Edition NigeriaGlobal
Country: Dominica

You are in the Dominica edition. Type your country to switch.

Set up your profile

You are learning in the Dominica edition, with examples in dollars and from Dominica.

Algorithmic trading · Lesson 6 of 8

Execution and microstructure for algorithms: the order book, queues and latency

Algorithms live inside the order book. Where an order sits in the queue, how fast it reaches the exchange and which venue it is sent to all change the price it gets. This lesson links the microstructure course to automated trading: queues, latency, adverse selection and order routing.

Advanced11 min read5 steps

This lesson is complete in writing. A video for it is on its way.

What you will learn

  • By the end you can explain how queue position decides whether a limit order fills, and how tick size affects queues.
  • You can describe latency, co-location and the measures some venues use to slow the fastest traders.
  • You can explain adverse selection and why a resting order is a free option for faster, better-informed traders.
  • You can describe smart order routing, hidden and pegged orders, and the duty of best execution.

Key terms in this lesson

Order book
The list of open buy and sell orders for a security at different prices.
Price-time priority
The usual matching rule in an order book: the best-priced orders trade first, and among orders at the same price, the earliest trades first.
Tick size
The smallest price step a contract or share can move by. The tick value is what one tick is worth in money.
Latency
The delay between a decision or event and an order reaching the market, measured in trading in milliseconds or less.
Co-location
Placing a trading firm's servers in or next to an exchange's data centre to reduce latency, usually for a fee.
Adverse selection
In trading, the tendency for a market maker's trades to come disproportionately from counterparties who know more, so the price tends to move against it afterwards.
Smart order routing
Software that splits and sends an order to the trading venues offering the best available prices and liquidity.

Step 1 of 5

Algorithms live inside the order book

Opening this step…

Step 2 of 5

Queues and tick sizes

This step opens when you finish the one above.

Step 3 of 5

Latency and the race for speed

This step opens when you finish the one above.

Step 4 of 5

Adverse selection: who fills your order

This step opens when you finish the one above.

Step 5 of 5

Venues, routing and order types

This step opens when you finish the one above.

Key takeaways

The key takeaways open when you finish every step.

Lesson quiz

5 questions. You need 85% to pass.

The quiz opens when you finish every step.

Read first

Stockertim Learn is education. It explains how investing works and never recommends buying or selling anything.

Up next

Trading: risk, costs and processRisk controls for algorithms: ki…Read nowRisk controls for algorithms: kill switches and limits, Knight Capital (2012) and the Flash Crash (2010)Trading: risk, costs and process · Advanced · 15 minTrading: risk, costs and processtrading algorithms are regulated…Read nowHow trading algorithms are regulated: MiFID II, the US market-access rule and retail algorithmsTrading: risk, costs and process · Advanced · 15 minTrading: risk, costs and process1987: Black Monday, portfolio in…Read now1987: Black Monday, portfolio insurance and the first global crashTrading: risk, costs and process · Advanced · 15 minTrading: risk, costs and process1997 to 1998: from the Thai baht…Read now1997 to 1998: from the Thai baht to Russia and LTCM, how contagion travelsTrading: risk, costs and process · Advanced · 15 minTrading: risk, costs and processorder books workRead nowHow order books workTrading: risk, costs and process · Advanced · 15 minTrading: risk, costs and processTick sizes and why they matterRead nowTick sizes and why they matterTrading: risk, costs and process · Advanced · 15 minTrading: risk, costs and processDark pools, venues and where ord…Read nowDark pools, venues and where orders goTrading: risk, costs and process · Advanced · 15 minTrading: risk, costs and processWhat algorithms do in markets: e…Read nowWhat algorithms do in markets: execution, market making, trend, arbitrage and high frequencyTrading: risk, costs and process · Advanced · 15 minTrading: risk, costs and processLiquidity risk for tradersRead nowLiquidity risk for tradersTrading: risk, costs and process · Advanced · 15 minTrading: risk, costs and processFast markets, halts and circuit …Read nowFast markets, halts and circuit breakersTrading: risk, costs and process · Advanced · 15 minTrading: risk, costs and processLiquidation: how positions are c…Read nowLiquidation: how positions are closed for youTrading: risk, costs and process · Advanced · 15 minTrading: risk, costs and processMakers, takers and exchange feesRead nowMakers, takers and exchange feesTrading: risk, costs and process · Advanced · 15 min
English