Exchange Simulators for SOR / Algo Testing: Advantages vs. Shortcomings Alexey Zverev, Alyona Bulda Exactpro Systems LLC
SOR & Other Trading Algorithms Introduction Examples Quoting and Market Making Executing substantial orders automatically Smart Order Routing Arbitrage
SOR & Other Trading Algorithms Abstract Scheme
Testing of SOR & Trading Algorithms SOR or Algo Trading systems:   Trade automatically May or may not receive external instructions (parent orders) Connects to one or multiple execution venues (markets, exchanges) Connects to low latency Market Data Source to receive current prices Makes a decision based on market data and statuses of the orders sent to the external markets. 
Testing of SOR & Trading Algorithms System Testing Algo developers need an ability to verify the correctness of algorithm implementation within the trading platform Testing of surrounding infrastructure (module testing) Example order should be delivered correctly between algo and Market Algo Performance Testing / Back testing Analysts need an ability to test the algorithm profitability This is usually done via back testing (applying algo to historical data) or applying algo against some model simulating market behavior or combination of these approaches
Testing of Trading Systems Connected to Electronic Markets All electronic markets provide test environments where clients are able to test their connectivity. These environments are supposed to be identical to production environment. Alternative to testing against such test environment is using a Test Harness. 
Testing of Trading Systems Connected to Electronic Markets Trading system connectivity layer usually has a specific layer isolating other components from the specific Market API implementation Exchange Emulator can either emulate a specific API or an intermediate component. This way we can reduce the amount of API development work for our Test Harness
Exchange Simulators: Their Role & Species Exchange Simulators is something that simulates the market in order to test trading systems   There are two types Exchange Simulators: API Emulators – they emulate exchange connectivity, provide scriptable responses and unsolicited events Market Simulators – they simulate market/ multiple markets responses based on some model   The API emulator is used to emulate external exchange connection in a controlled manner The Market Simulator is for testing algorithms via exchange simulations or historical market data replay (back testing)
SOR & Other Trading   Algorithms vs. Exchange Simulators: Abstract Scheme
The Advantages of Using Exchange Simulators Exchange Simulators: Provide more control over testing Enhance the ability to emulate various events to increase test coverage Provide the ability to test the algo incorporated into the real production software (not in Excel or Matlab)   ... under the real load mimic the real production environments 
The Shortcomings of Using Exchange Simulators, API Emulation An Exchange is a complex proprietary black box system. Its nearly impossible to emulate its API behavior accurately   This black box constantly changes Algo Trading Systems usually have to deal with multiple Exchanges In a High Frequency Trading network, delays and hardware issues matter. This cannot be simulated  The certification by the Exchanges of the Gateways connecting to the Exchanges should happen in Exchange Test Connection, so API emulator development is duplication of effort 
The Shortcomings of Using Exchange Simulators, API Emulation Real life examples:   The other side of the barricade is supporting client certification of a trading venue. The following issues could be discovered only via the certification process: Missing Execution Reports recovery through resend request mechanism XML instrument definition distribution Exotic multi-leg trades  Runtime instrument creation Implied liquidity dissemination
The Shortcomings of Using Exchange Simulators, Market Simulation It is impossible to develop a Market Model, only some localized bits and pieces The Market Model is a valuable intellectual property of buy side players. Information is not available for public research Requires a lot of real trading / HFT experience to be able to come up with it An Exchange Simulator must be really flexible in terms of its model Dark/Hidden Liquidity Markets are impossible to analyze and predict The Development of such a system requires a tremendous effort in terms of development and financial math resources and costs a lot; and anyway is far worse than the real market in terms of the development of real Algos
The Shortcomings of Using Exchange Simulators, Market Simulation Real life example: the Exactpro Exchange Simulator
The Shortcomings of Using Exchange Simulators, Market Simulation Exchange Simulator Design:   Order Book exactly replicating all exchange rules This is already a challenge – real life example Trading Systems connect to the simulator as if they are connecting to the real exchange (both for OE and MD) Need to support adequate load generated by Trading Algos Market Model is implemented in three instances: The system is fed with historical orders recreating historical order books  A bunch of competing strategies representing the real market Counter flow model constantly monitors the liquidity on the book and generates artificial events to simulate market impact of orders generated by the Trading System under test

More Related Content

PPT
Trading Day Logs Replay at TMPA-2014 (Trading Systems Testing)
PDF
algo_Blank
PDF
AlphaTrader Trading Platform Features
PPTX
Algorithmic trading
PDF
Machine Learning and RoboCop Testing
PPTX
BlitzTrader_PPT
PDF
Impact of Algo Trading Platforms on Global Financial Markets.pdf
PPT
chapter-4-objected-oriented analysis and design with UML.ppt
Trading Day Logs Replay at TMPA-2014 (Trading Systems Testing)
algo_Blank
AlphaTrader Trading Platform Features
Algorithmic trading
Machine Learning and RoboCop Testing
BlitzTrader_PPT
Impact of Algo Trading Platforms on Global Financial Markets.pdf
chapter-4-objected-oriented analysis and design with UML.ppt

Similar to Exchange Simulators for SOR / Algo Testing: Advantages vs. Shortcomings (20)

PPT
Presentation Of Mbt Tools
PDF
20 Simple Questions from Exactpro for Your Enjoyment This Holiday Season
PDF
Flink Forward Berlin 2018: Amey Chaugule - "Threading Needles in a Haystack: ...
DOCX
AmiBroker AFL to DLL Conversion
PDF
Automating Copy Orders from MetaTrader to Interactive Brokers.
PDF
Sessionizing Uber Trips in Realtime - Flink Forward '18, Berlin
PDF
Model Execution and System Simulation
PDF
[Capella Day 2019] Model execution and system simulation in Capella
PPTX
ALGO trading and strategy details provided
PPT
Ogf20 Gmb Chris Swan
PPT
Queuing theory for modelling and sumilation.ppt
PPTX
Use of mathematical models for specification and validation in formal methods
PDF
2022CIFEr
PDF
How to Build Solana Trading Bots.pdf | Workybooks
PPTX
Algorithmic trading
PDF
How to Build Solana Trading Bots - SoluaLab
PDF
Evaluating Model Testing and Model Checking for Finding Requirements Violatio...
PDF
Elevate 2017- Innovation Forum: Fly Nava- Integration of ATPCO data as a core...
PPT
Theory of High Frequency Trading Systems Testing
PPTX
Algorithmic Trading: an Overview
Presentation Of Mbt Tools
20 Simple Questions from Exactpro for Your Enjoyment This Holiday Season
Flink Forward Berlin 2018: Amey Chaugule - "Threading Needles in a Haystack: ...
AmiBroker AFL to DLL Conversion
Automating Copy Orders from MetaTrader to Interactive Brokers.
Sessionizing Uber Trips in Realtime - Flink Forward '18, Berlin
Model Execution and System Simulation
[Capella Day 2019] Model execution and system simulation in Capella
ALGO trading and strategy details provided
Ogf20 Gmb Chris Swan
Queuing theory for modelling and sumilation.ppt
Use of mathematical models for specification and validation in formal methods
2022CIFEr
How to Build Solana Trading Bots.pdf | Workybooks
Algorithmic trading
How to Build Solana Trading Bots - SoluaLab
Evaluating Model Testing and Model Checking for Finding Requirements Violatio...
Elevate 2017- Innovation Forum: Fly Nava- Integration of ATPCO data as a core...
Theory of High Frequency Trading Systems Testing
Algorithmic Trading: an Overview
Ad

More from extentconf Tsoy (20)

PPT
Extent 2013 Obninsk Trading Systems: Testing at the Confluence of FT & NFT
PPTX
Extent 2013 Obninsk High Performance Messaging
PPT
Extent 2013 Obninsk How a Great QA Team Can Make a Disproportionate Contribut...
PPTX
Extent 2013 Obninsk LSE - The Focus Beyond Low Latency
PPT
Extent 2013 Obninsk Test Tools for Trading Systems: Evolution Theory
PPT
Extent 2013 Obninsk Managing Uncertain Data at Scale
PPTX
Extent 2013 Obninsk New Trading System: Architecture and Capabilities
PPTX
Extent 2013 Obninsk Cross-Asset Portfolio Margin Risk Calculation for HFT
PPT
Extent april2012-kostroma social-networks-socialmedia-trading
PPT
Extent3 exactpro the_future_of_risk_controls
PPT
Extent3 exactpro testing_of_hft_gui
PDF
Extent3 exactpro four_houses_test_tools_2012 (1)
PPTX
Extent3 exante broker_for_algorithmic_trading_2012
PPTX
Extent3 turquoise equity_trading_2012
PPTX
Extent3 witology prediction_markets_2012
PPT
Extent3 exactpro the_next_step_in_reconciliation_testing
PDF
Extent3 prognoz practical_approach_lppl_model_2012
PPT
Verification of Financial Models
PPT
The Simple Matter of Project Management
PPT
Behavior Driven Development Pros and Cons
Extent 2013 Obninsk Trading Systems: Testing at the Confluence of FT & NFT
Extent 2013 Obninsk High Performance Messaging
Extent 2013 Obninsk How a Great QA Team Can Make a Disproportionate Contribut...
Extent 2013 Obninsk LSE - The Focus Beyond Low Latency
Extent 2013 Obninsk Test Tools for Trading Systems: Evolution Theory
Extent 2013 Obninsk Managing Uncertain Data at Scale
Extent 2013 Obninsk New Trading System: Architecture and Capabilities
Extent 2013 Obninsk Cross-Asset Portfolio Margin Risk Calculation for HFT
Extent april2012-kostroma social-networks-socialmedia-trading
Extent3 exactpro the_future_of_risk_controls
Extent3 exactpro testing_of_hft_gui
Extent3 exactpro four_houses_test_tools_2012 (1)
Extent3 exante broker_for_algorithmic_trading_2012
Extent3 turquoise equity_trading_2012
Extent3 witology prediction_markets_2012
Extent3 exactpro the_next_step_in_reconciliation_testing
Extent3 prognoz practical_approach_lppl_model_2012
Verification of Financial Models
The Simple Matter of Project Management
Behavior Driven Development Pros and Cons
Ad

Recently uploaded (20)

PDF
NEW - FEES STRUCTURES (01-july-2024).pdf
PDF
Keppel_Proposed Divestment of M1 Limited
PPTX
Astra-Investor- business Presentation (1).pptx
PDF
Booking.com The Global AI Sentiment Report 2025
PPTX
operations management : demand supply ch
PPTX
BUSINESS CYCLE_INFLATION AND UNEMPLOYMENT.pptx
PPTX
2 - Self & Personality 587689213yiuedhwejbmansbeakjrk
DOCX
Hand book of Entrepreneurship 4 Chapters.docx
PDF
ICv2 White Paper - Gen Con Trade Day 2025
PDF
Introduction to Generative Engine Optimization (GEO)
PDF
PMB 401-Identification-of-Potential-Biotechnological-Products.pdf
PDF
Kishore Vora - Best CFO in India to watch in 2025.pdf
PPTX
Slide gioi thieu VietinBank Quy 2 - 2025
PPTX
Slide gioi thieu VietinBank Quy 2 - 2025
PDF
Tortilla Mexican Grill 发射点犯得上发射点发生发射点犯得上发生
PPT
Lecture notes on Business Research Methods
PDF
1911 Gold Corporate Presentation Aug 2025.pdf
PPTX
Board-Reporting-Package-by-Umbrex-5-23-23.pptx
PDF
ANALYZING THE OPPORTUNITIES OF DIGITAL MARKETING IN BANGLADESH TO PROVIDE AN ...
PPTX
Project Management_ SMART Projects Class.pptx
NEW - FEES STRUCTURES (01-july-2024).pdf
Keppel_Proposed Divestment of M1 Limited
Astra-Investor- business Presentation (1).pptx
Booking.com The Global AI Sentiment Report 2025
operations management : demand supply ch
BUSINESS CYCLE_INFLATION AND UNEMPLOYMENT.pptx
2 - Self & Personality 587689213yiuedhwejbmansbeakjrk
Hand book of Entrepreneurship 4 Chapters.docx
ICv2 White Paper - Gen Con Trade Day 2025
Introduction to Generative Engine Optimization (GEO)
PMB 401-Identification-of-Potential-Biotechnological-Products.pdf
Kishore Vora - Best CFO in India to watch in 2025.pdf
Slide gioi thieu VietinBank Quy 2 - 2025
Slide gioi thieu VietinBank Quy 2 - 2025
Tortilla Mexican Grill 发射点犯得上发射点发生发射点犯得上发生
Lecture notes on Business Research Methods
1911 Gold Corporate Presentation Aug 2025.pdf
Board-Reporting-Package-by-Umbrex-5-23-23.pptx
ANALYZING THE OPPORTUNITIES OF DIGITAL MARKETING IN BANGLADESH TO PROVIDE AN ...
Project Management_ SMART Projects Class.pptx

Exchange Simulators for SOR / Algo Testing: Advantages vs. Shortcomings

  • 1. Exchange Simulators for SOR / Algo Testing: Advantages vs. Shortcomings Alexey Zverev, Alyona Bulda Exactpro Systems LLC
  • 2. SOR & Other Trading Algorithms Introduction Examples Quoting and Market Making Executing substantial orders automatically Smart Order Routing Arbitrage
  • 3. SOR & Other Trading Algorithms Abstract Scheme
  • 4. Testing of SOR & Trading Algorithms SOR or Algo Trading systems:   Trade automatically May or may not receive external instructions (parent orders) Connects to one or multiple execution venues (markets, exchanges) Connects to low latency Market Data Source to receive current prices Makes a decision based on market data and statuses of the orders sent to the external markets. 
  • 5. Testing of SOR & Trading Algorithms System Testing Algo developers need an ability to verify the correctness of algorithm implementation within the trading platform Testing of surrounding infrastructure (module testing) Example order should be delivered correctly between algo and Market Algo Performance Testing / Back testing Analysts need an ability to test the algorithm profitability This is usually done via back testing (applying algo to historical data) or applying algo against some model simulating market behavior or combination of these approaches
  • 6. Testing of Trading Systems Connected to Electronic Markets All electronic markets provide test environments where clients are able to test their connectivity. These environments are supposed to be identical to production environment. Alternative to testing against such test environment is using a Test Harness. 
  • 7. Testing of Trading Systems Connected to Electronic Markets Trading system connectivity layer usually has a specific layer isolating other components from the specific Market API implementation Exchange Emulator can either emulate a specific API or an intermediate component. This way we can reduce the amount of API development work for our Test Harness
  • 8. Exchange Simulators: Their Role & Species Exchange Simulators is something that simulates the market in order to test trading systems   There are two types Exchange Simulators: API Emulators – they emulate exchange connectivity, provide scriptable responses and unsolicited events Market Simulators – they simulate market/ multiple markets responses based on some model   The API emulator is used to emulate external exchange connection in a controlled manner The Market Simulator is for testing algorithms via exchange simulations or historical market data replay (back testing)
  • 9. SOR & Other Trading Algorithms vs. Exchange Simulators: Abstract Scheme
  • 10. The Advantages of Using Exchange Simulators Exchange Simulators: Provide more control over testing Enhance the ability to emulate various events to increase test coverage Provide the ability to test the algo incorporated into the real production software (not in Excel or Matlab)   ... under the real load mimic the real production environments 
  • 11. The Shortcomings of Using Exchange Simulators, API Emulation An Exchange is a complex proprietary black box system. Its nearly impossible to emulate its API behavior accurately   This black box constantly changes Algo Trading Systems usually have to deal with multiple Exchanges In a High Frequency Trading network, delays and hardware issues matter. This cannot be simulated  The certification by the Exchanges of the Gateways connecting to the Exchanges should happen in Exchange Test Connection, so API emulator development is duplication of effort 
  • 12. The Shortcomings of Using Exchange Simulators, API Emulation Real life examples:   The other side of the barricade is supporting client certification of a trading venue. The following issues could be discovered only via the certification process: Missing Execution Reports recovery through resend request mechanism XML instrument definition distribution Exotic multi-leg trades  Runtime instrument creation Implied liquidity dissemination
  • 13. The Shortcomings of Using Exchange Simulators, Market Simulation It is impossible to develop a Market Model, only some localized bits and pieces The Market Model is a valuable intellectual property of buy side players. Information is not available for public research Requires a lot of real trading / HFT experience to be able to come up with it An Exchange Simulator must be really flexible in terms of its model Dark/Hidden Liquidity Markets are impossible to analyze and predict The Development of such a system requires a tremendous effort in terms of development and financial math resources and costs a lot; and anyway is far worse than the real market in terms of the development of real Algos
  • 14. The Shortcomings of Using Exchange Simulators, Market Simulation Real life example: the Exactpro Exchange Simulator
  • 15. The Shortcomings of Using Exchange Simulators, Market Simulation Exchange Simulator Design:   Order Book exactly replicating all exchange rules This is already a challenge – real life example Trading Systems connect to the simulator as if they are connecting to the real exchange (both for OE and MD) Need to support adequate load generated by Trading Algos Market Model is implemented in three instances: The system is fed with historical orders recreating historical order books  A bunch of competing strategies representing the real market Counter flow model constantly monitors the liquidity on the book and generates artificial events to simulate market impact of orders generated by the Trading System under test