SlideShare a Scribd company logo
1 of 19
Reconciliation Testing Aspects of
Trading Systems Software Failures
Anna-Maria Kriger, Kostroma State Technological University
Alyona Pochukalina, Obninsk Institute for Nuclear Power Engineering
Vladislav Isaev, Yuri Gagarin State Technical University of Saratov
Exactpro Systems
ANALYSIS OF IMAGES, SOCIAL NETWORKS, AND TEXTS
April, 10-12th, Yekaterinburg
Introduction
• Our team is performing functional and non functional testing for
electronic trading and post trade platforms
• We are collecting information available about software outages
and problems into our knowledge base to improve our test
coverage and design more efficient ways to do our work
• This paper describes the concept of reconciliation testing
• We studied two major software disasters in financial services
that led to substantial losses – Knight Capital and Facebook IPO
• This paper focuses only on reconciliation controls and testing
procedures relevant to these events
• We plan to proceed with researching data reconciliation tools
applicability in software testing and developing a reference
implementation of a scalable real-time tool for reconciliation
testing based on the proprietary market surveillance platform
Data Reconciliation
Reconciliation is a process of finding discrepancies in
data obtained from different sources.
In accounting, reconciliation refers to the process of
ensuring that two sets of records, usually account
balances, match each other.
In the financial markets, data reconciliation systems help
asset managers to reconcile trades, cash and security
flows, balances and positions between different systems,
e.g. internal data stored by the trading participant vs.
external data received from counterparties, brokers,
clearers, custodians, etc.
Reconciliation Testing
Reconciliation testing is a process of using data
reconciliation tools to validate the system in parallel with
other activities
Data Reconciliation Tools
The main aspects of data reconciliation tools are:
•Passive test tools
•Serve as test oracles
•Can be used with HiVAT methods
•Should be used during negative test cycles
•Require extra resources
Knight Capital Events
• 1 August 2012, USA
• Knight Capital – one of the most successful HFT firms
• Implemented changes related to Retail Liquidity
Program at NYSE
• SMARS – an ultra-fast order router
• Source code responsible for legacy functionality
PowerPeg
• 212 parent orders, millions child orders
• Accumulated loss – $460m or $170k/sec
• Incorrectly configured risk systems
• Deployment on 7 servers instead of 8…
Knight Capital Events
Knight Capital Events
Knight Capital Stock Chart
Regulated Exchange
Facebook IPO on NASDAQ
• 18 May 2012, NASDAQ, One of the largest IPOs in history
• Secondary trading is preceded by a designate Display Only Period
(DOP)
• Multi-component architecture that included Matching Engine, IPO
Cross Application and Execution Application
• At the end of the DOP, NASDAQ’s “IPO Cross Application”
analyzes all of the buy and sell orders to determine the price at
which the largest number of shares will trade; then NASDAQ’s
matching engine matches the buy and sell orders at that price.
Usually takes 1-2 ms
• NASDAQ allowed orders to be cancelled at any time up until the
end of the DOP, including the very brief interval during which the
IPO cross price is calculated. After calculation was completed, the
system performed orders validation check between ME and “IPO
Cross Application”. If any of the orders were cancelled after the
start of the cross, the system would have to repeat the calculation
Facebook IPO on NASDAQ
• Over 496k orders participated in the cross, and its duration
exceeded 20ms
• Order cancellation arrived during this period, and the application
had to repeat the calculation. Two more cancellations arrived
during the second iteration, and four more - during the third one
• IPO Cross Application went into infinite loop at 11:05
• The NASDAQ team switched off validation check on the
secondary system and performed failover 25 minutes after the
start of the loop
• Unknown at that moment, 38k orders submitted between 11:11
and 11:30 were stuck and did not participate in the uncross. It
created another discrepancy, this time with Execution App and
Members who were not able to receive confirmation for orders
executed in the cross until 13:50
Failover Proposal
Failover Proposal
Facebook IPO Stock Chart
Comparison
• Both Knight and NASDAQ had a set of reconciliation controls
• In both cases they were not properly covered by testing:
– Knight – reconciliation check stopped working years ago
– NASDAQ – control was working, but operational procedure
applicable to the case when it fails has not been tested
• In both cases, monitoring systems notified operational team about
a problem, however information provided was not enough to
identify the source of the problem and react appropriately
• In neither case a good balance between automatic and manual
processing existed:
– Some of Knight controls were not automatically connected to
block real-time processing and prevent sending erroneous
orders
– On the opposite, the NASDAQ ones automatically halted
processing, but the option to unblock the control wasn’t tested
Market Surveillance System
Market Surveillance System
It is possible and beneficial to use market surveillance system as a
reconciliation testing tool for the following reasons:
•all required data is collected from the system and available both
real-time and in the database;
•most of surveillance systems are configured as a downstream
component and do not affect the main transactional path;
•rules engine allows creating data reconciliation checks and raise
alerts when they fail;
•order book replay allows studying the exact source of the
discrepancy.
Questions and Answers
Thank you!
We look forward to seeing you there!

More Related Content

What's hot

Integrated Test Facility
Integrated Test FacilityIntegrated Test Facility
Integrated Test Facilitykzoe1996
 
Computer-Assisted Audit Tools and Techniques
Computer-Assisted Audit Tools and TechniquesComputer-Assisted Audit Tools and Techniques
Computer-Assisted Audit Tools and Techniques_supriadi
 
Auditing by CIS . Chapter 6
Auditing by CIS . Chapter 6Auditing by CIS . Chapter 6
Auditing by CIS . Chapter 6Sharah Ayumi
 
Auditing In Computer Environment Presentation
Auditing In Computer Environment PresentationAuditing In Computer Environment Presentation
Auditing In Computer Environment PresentationEMAC Consulting Group
 
14 e b rm mortgage risk toolkit and repository (national credit default datab...
14 e b rm mortgage risk toolkit and repository (national credit default datab...14 e b rm mortgage risk toolkit and repository (national credit default datab...
14 e b rm mortgage risk toolkit and repository (national credit default datab...Mitchell Grooms
 
Extent3 exactpro the_future_of_risk_controls
Extent3 exactpro the_future_of_risk_controlsExtent3 exactpro the_future_of_risk_controls
Extent3 exactpro the_future_of_risk_controlsextentconf Tsoy
 
Using Information Radiators to Communicate IT Status’
Using Information Radiators to Communicate IT Status’Using Information Radiators to Communicate IT Status’
Using Information Radiators to Communicate IT Status’William Moore
 
Data Migration and MDM - DMM5
Data Migration and MDM - DMM5Data Migration and MDM - DMM5
Data Migration and MDM - DMM5Wael Elrifai
 
World's Largest Space Research Organization Implements OpManager Plus
World's Largest Space Research Organization Implements OpManager PlusWorld's Largest Space Research Organization Implements OpManager Plus
World's Largest Space Research Organization Implements OpManager PlusManageEngine, Zoho Corporation
 
The App Sec How-To: Choosing a SAST Tool
The App Sec How-To: Choosing a SAST ToolThe App Sec How-To: Choosing a SAST Tool
The App Sec How-To: Choosing a SAST ToolCheckmarx
 
IT Revision and Auditing
IT Revision and AuditingIT Revision and Auditing
IT Revision and AuditingAmith Reddy
 
COMPUTERIZED ACCOUNTING AND AUDITING TECHNIQUES (CAAT)
COMPUTERIZED ACCOUNTING AND AUDITING TECHNIQUES (CAAT)COMPUTERIZED ACCOUNTING AND AUDITING TECHNIQUES (CAAT)
COMPUTERIZED ACCOUNTING AND AUDITING TECHNIQUES (CAAT)Rikesh Chaurasia
 

What's hot (20)

Integrated Test Facility
Integrated Test FacilityIntegrated Test Facility
Integrated Test Facility
 
Computer-Assisted Audit Tools and Techniques
Computer-Assisted Audit Tools and TechniquesComputer-Assisted Audit Tools and Techniques
Computer-Assisted Audit Tools and Techniques
 
Auditing by CIS . Chapter 6
Auditing by CIS . Chapter 6Auditing by CIS . Chapter 6
Auditing by CIS . Chapter 6
 
Auditing In Computer Environment Presentation
Auditing In Computer Environment PresentationAuditing In Computer Environment Presentation
Auditing In Computer Environment Presentation
 
Real time Audit
Real time AuditReal time Audit
Real time Audit
 
14 e b rm mortgage risk toolkit and repository (national credit default datab...
14 e b rm mortgage risk toolkit and repository (national credit default datab...14 e b rm mortgage risk toolkit and repository (national credit default datab...
14 e b rm mortgage risk toolkit and repository (national credit default datab...
 
Extent3 exactpro the_future_of_risk_controls
Extent3 exactpro the_future_of_risk_controlsExtent3 exactpro the_future_of_risk_controls
Extent3 exactpro the_future_of_risk_controls
 
Using Information Radiators to Communicate IT Status’
Using Information Radiators to Communicate IT Status’Using Information Radiators to Communicate IT Status’
Using Information Radiators to Communicate IT Status’
 
Caa ts
Caa tsCaa ts
Caa ts
 
Isa 4
Isa 4Isa 4
Isa 4
 
IT Operations Management with OpManager
IT Operations Management with OpManagerIT Operations Management with OpManager
IT Operations Management with OpManager
 
5 ways you can benefit from OpManager Plus
5 ways you can benefit from OpManager Plus5 ways you can benefit from OpManager Plus
5 ways you can benefit from OpManager Plus
 
Data Migration and MDM - DMM5
Data Migration and MDM - DMM5Data Migration and MDM - DMM5
Data Migration and MDM - DMM5
 
World's Largest Space Research Organization Implements OpManager Plus
World's Largest Space Research Organization Implements OpManager PlusWorld's Largest Space Research Organization Implements OpManager Plus
World's Largest Space Research Organization Implements OpManager Plus
 
Trak eye intro
Trak eye introTrak eye intro
Trak eye intro
 
The App Sec How-To: Choosing a SAST Tool
The App Sec How-To: Choosing a SAST ToolThe App Sec How-To: Choosing a SAST Tool
The App Sec How-To: Choosing a SAST Tool
 
Why Configuration Management Matters
Why Configuration Management MattersWhy Configuration Management Matters
Why Configuration Management Matters
 
IT Revision and Auditing
IT Revision and AuditingIT Revision and Auditing
IT Revision and Auditing
 
COMPUTERIZED ACCOUNTING AND AUDITING TECHNIQUES (CAAT)
COMPUTERIZED ACCOUNTING AND AUDITING TECHNIQUES (CAAT)COMPUTERIZED ACCOUNTING AND AUDITING TECHNIQUES (CAAT)
COMPUTERIZED ACCOUNTING AND AUDITING TECHNIQUES (CAAT)
 
PMIWCI-Dist
PMIWCI-DistPMIWCI-Dist
PMIWCI-Dist
 

Similar to Reconciliation Testing Aspects of Trading Systems Software Failures

Iosif Itkin - Network models for exchange trade analysis
Iosif Itkin - Network models for exchange trade analysisIosif Itkin - Network models for exchange trade analysis
Iosif Itkin - Network models for exchange trade analysisAIST
 
High Frequency Trading Infrastructure and Quality Assurance
High Frequency Trading Infrastructure and Quality AssuranceHigh Frequency Trading Infrastructure and Quality Assurance
High Frequency Trading Infrastructure and Quality AssuranceIosif Itkin
 
Defects mining in exchanges - medvedev, klimakov, yamkovi
Defects mining in exchanges - medvedev, klimakov, yamkoviDefects mining in exchanges - medvedev, klimakov, yamkovi
Defects mining in exchanges - medvedev, klimakov, yamkoviDataFest Tbilisi
 
Online e-voting
Online e-votingOnline e-voting
Online e-votingaeioou
 
CISA_WK_4.pptx
CISA_WK_4.pptxCISA_WK_4.pptx
CISA_WK_4.pptxdotco
 
Value-added it auditing
Value-added it auditingValue-added it auditing
Value-added it auditingMarc Vael
 
How to improve your system monitoring
How to improve your system monitoringHow to improve your system monitoring
How to improve your system monitoringAndrew White
 
What is Platform Observability? An Overview
What is Platform Observability? An OverviewWhat is Platform Observability? An Overview
What is Platform Observability? An OverviewKumar Kolaganti
 
Run time Verification using formal methods
Run time Verification using formal methodsRun time Verification using formal methods
Run time Verification using formal methodsSulman Ahmed
 
Resume (2) Modify
Resume (2) ModifyResume (2) Modify
Resume (2) Modifyvijay kumar
 
3.42211- CIS Audit.pdf
3.42211- CIS Audit.pdf3.42211- CIS Audit.pdf
3.42211- CIS Audit.pdfNehemiah27
 
computer system validation
computer system validationcomputer system validation
computer system validationGopal Patel
 
Blockchain and Cybersecurity
Blockchain and Cybersecurity Blockchain and Cybersecurity
Blockchain and Cybersecurity gppcpa
 
Лекция в СГТУ: Информационные системы и технологическая инфраструктура биржев...
Лекция в СГТУ: Информационные системы и технологическая инфраструктура биржев...Лекция в СГТУ: Информационные системы и технологическая инфраструктура биржев...
Лекция в СГТУ: Информационные системы и технологическая инфраструктура биржев...Iosif Itkin
 
Computer-Assisted Audit Tools and Techniques
Computer-Assisted Audit Tools and TechniquesComputer-Assisted Audit Tools and Techniques
Computer-Assisted Audit Tools and Techniques_supriadi
 
Alert based monitoring of stock trading system using mail
Alert based monitoring of stock trading system using mailAlert based monitoring of stock trading system using mail
Alert based monitoring of stock trading system using mailkarthikeyan1032
 
Product and sevices management system
Product and sevices management systemProduct and sevices management system
Product and sevices management systemVinod Gurram
 

Similar to Reconciliation Testing Aspects of Trading Systems Software Failures (20)

Iosif Itkin - Network models for exchange trade analysis
Iosif Itkin - Network models for exchange trade analysisIosif Itkin - Network models for exchange trade analysis
Iosif Itkin - Network models for exchange trade analysis
 
High Frequency Trading Infrastructure and Quality Assurance
High Frequency Trading Infrastructure and Quality AssuranceHigh Frequency Trading Infrastructure and Quality Assurance
High Frequency Trading Infrastructure and Quality Assurance
 
Defects mining in exchanges - medvedev, klimakov, yamkovi
Defects mining in exchanges - medvedev, klimakov, yamkoviDefects mining in exchanges - medvedev, klimakov, yamkovi
Defects mining in exchanges - medvedev, klimakov, yamkovi
 
Online e-voting
Online e-votingOnline e-voting
Online e-voting
 
CISA_WK_4.pptx
CISA_WK_4.pptxCISA_WK_4.pptx
CISA_WK_4.pptx
 
Bankauditin it env
Bankauditin it envBankauditin it env
Bankauditin it env
 
Value-added it auditing
Value-added it auditingValue-added it auditing
Value-added it auditing
 
How to improve your system monitoring
How to improve your system monitoringHow to improve your system monitoring
How to improve your system monitoring
 
What is Platform Observability? An Overview
What is Platform Observability? An OverviewWhat is Platform Observability? An Overview
What is Platform Observability? An Overview
 
Run time Verification using formal methods
Run time Verification using formal methodsRun time Verification using formal methods
Run time Verification using formal methods
 
Resume (2) Modify
Resume (2) ModifyResume (2) Modify
Resume (2) Modify
 
3.42211- CIS Audit.pdf
3.42211- CIS Audit.pdf3.42211- CIS Audit.pdf
3.42211- CIS Audit.pdf
 
computer system validation
computer system validationcomputer system validation
computer system validation
 
Audit and Assurance
Audit and AssuranceAudit and Assurance
Audit and Assurance
 
Blockchain and Cybersecurity
Blockchain and Cybersecurity Blockchain and Cybersecurity
Blockchain and Cybersecurity
 
Лекция в СГТУ: Информационные системы и технологическая инфраструктура биржев...
Лекция в СГТУ: Информационные системы и технологическая инфраструктура биржев...Лекция в СГТУ: Информационные системы и технологическая инфраструктура биржев...
Лекция в СГТУ: Информационные системы и технологическая инфраструктура биржев...
 
Computer-Assisted Audit Tools and Techniques
Computer-Assisted Audit Tools and TechniquesComputer-Assisted Audit Tools and Techniques
Computer-Assisted Audit Tools and Techniques
 
Alert based monitoring of stock trading system using mail
Alert based monitoring of stock trading system using mailAlert based monitoring of stock trading system using mail
Alert based monitoring of stock trading system using mail
 
Resume_(2)vijay
Resume_(2)vijayResume_(2)vijay
Resume_(2)vijay
 
Product and sevices management system
Product and sevices management systemProduct and sevices management system
Product and sevices management system
 

Recently uploaded

Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 

Recently uploaded (20)

Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 

Reconciliation Testing Aspects of Trading Systems Software Failures

  • 1. Reconciliation Testing Aspects of Trading Systems Software Failures Anna-Maria Kriger, Kostroma State Technological University Alyona Pochukalina, Obninsk Institute for Nuclear Power Engineering Vladislav Isaev, Yuri Gagarin State Technical University of Saratov Exactpro Systems ANALYSIS OF IMAGES, SOCIAL NETWORKS, AND TEXTS April, 10-12th, Yekaterinburg
  • 2. Introduction • Our team is performing functional and non functional testing for electronic trading and post trade platforms • We are collecting information available about software outages and problems into our knowledge base to improve our test coverage and design more efficient ways to do our work • This paper describes the concept of reconciliation testing • We studied two major software disasters in financial services that led to substantial losses – Knight Capital and Facebook IPO • This paper focuses only on reconciliation controls and testing procedures relevant to these events • We plan to proceed with researching data reconciliation tools applicability in software testing and developing a reference implementation of a scalable real-time tool for reconciliation testing based on the proprietary market surveillance platform
  • 3. Data Reconciliation Reconciliation is a process of finding discrepancies in data obtained from different sources. In accounting, reconciliation refers to the process of ensuring that two sets of records, usually account balances, match each other. In the financial markets, data reconciliation systems help asset managers to reconcile trades, cash and security flows, balances and positions between different systems, e.g. internal data stored by the trading participant vs. external data received from counterparties, brokers, clearers, custodians, etc.
  • 4. Reconciliation Testing Reconciliation testing is a process of using data reconciliation tools to validate the system in parallel with other activities
  • 5. Data Reconciliation Tools The main aspects of data reconciliation tools are: •Passive test tools •Serve as test oracles •Can be used with HiVAT methods •Should be used during negative test cycles •Require extra resources
  • 6. Knight Capital Events • 1 August 2012, USA • Knight Capital – one of the most successful HFT firms • Implemented changes related to Retail Liquidity Program at NYSE • SMARS – an ultra-fast order router • Source code responsible for legacy functionality PowerPeg • 212 parent orders, millions child orders • Accumulated loss – $460m or $170k/sec • Incorrectly configured risk systems • Deployment on 7 servers instead of 8…
  • 11. Facebook IPO on NASDAQ • 18 May 2012, NASDAQ, One of the largest IPOs in history • Secondary trading is preceded by a designate Display Only Period (DOP) • Multi-component architecture that included Matching Engine, IPO Cross Application and Execution Application • At the end of the DOP, NASDAQ’s “IPO Cross Application” analyzes all of the buy and sell orders to determine the price at which the largest number of shares will trade; then NASDAQ’s matching engine matches the buy and sell orders at that price. Usually takes 1-2 ms • NASDAQ allowed orders to be cancelled at any time up until the end of the DOP, including the very brief interval during which the IPO cross price is calculated. After calculation was completed, the system performed orders validation check between ME and “IPO Cross Application”. If any of the orders were cancelled after the start of the cross, the system would have to repeat the calculation
  • 12. Facebook IPO on NASDAQ • Over 496k orders participated in the cross, and its duration exceeded 20ms • Order cancellation arrived during this period, and the application had to repeat the calculation. Two more cancellations arrived during the second iteration, and four more - during the third one • IPO Cross Application went into infinite loop at 11:05 • The NASDAQ team switched off validation check on the secondary system and performed failover 25 minutes after the start of the loop • Unknown at that moment, 38k orders submitted between 11:11 and 11:30 were stuck and did not participate in the uncross. It created another discrepancy, this time with Execution App and Members who were not able to receive confirmation for orders executed in the cross until 13:50
  • 16. Comparison • Both Knight and NASDAQ had a set of reconciliation controls • In both cases they were not properly covered by testing: – Knight – reconciliation check stopped working years ago – NASDAQ – control was working, but operational procedure applicable to the case when it fails has not been tested • In both cases, monitoring systems notified operational team about a problem, however information provided was not enough to identify the source of the problem and react appropriately • In neither case a good balance between automatic and manual processing existed: – Some of Knight controls were not automatically connected to block real-time processing and prevent sending erroneous orders – On the opposite, the NASDAQ ones automatically halted processing, but the option to unblock the control wasn’t tested
  • 18. Market Surveillance System It is possible and beneficial to use market surveillance system as a reconciliation testing tool for the following reasons: •all required data is collected from the system and available both real-time and in the database; •most of surveillance systems are configured as a downstream component and do not affect the main transactional path; •rules engine allows creating data reconciliation checks and raise alerts when they fail; •order book replay allows studying the exact source of the discrepancy.
  • 19. Questions and Answers Thank you! We look forward to seeing you there!