Skip to content
Edition NigeriaGlobal
Country: Maldives

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

Set up your profile

You are learning in the Maldives edition, with examples in rufiyaa and from the Maldives.

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 minBrand & marketingBrand extensions and stretchRead nowBrand extensions and stretchBrand & marketing · Intermediate · 5 minCareers & professional skillsThe map of roles in financial ma…Read nowThe map of roles in financial marketsCareers & professional skills · Intermediate · 15 minTrading: risk, costs and processDrawdown rules and what VaR missesRead nowDrawdown rules and what VaR missesTrading: risk, costs and process · Advanced · 15 minAI at workCopyright, licensing and disclos…Read nowCopyright, licensing and disclosureAI at work · Intermediate · 15 minDerivatives marketsCase study: the Swiss franc de-p…Read nowCase study: the Swiss franc de-peg of January 2015Derivatives markets · Advanced · 15 minDerivatives marketsThe Greeks in plain terms: delta…Read nowThe Greeks in plain terms: delta, gamma, theta, vega and rhoDerivatives markets · Advanced · 15 minFunds & ETFsMutual funds explainedRead nowMutual funds explainedFunds & ETFs · Beginner · 15 minTrading: risk, costs and processorder books workRead nowHow order books workTrading: risk, costs and process · Advanced · 15 min
English