Imandra
Grant Olney Passmore ACL2-2017, Austin
AESTHETIC INTEGRATION DESIGNED WITH CARE BYFormal Verification of Financial Algorithms, Progress and Prospects
Joint work with Denis Ignatovich and our incredible team at AI
Imandra Formal Verification of Financial Algorithms, Progress and - - PowerPoint PPT Presentation
Imandra Formal Verification of Financial Algorithms, Progress and Prospects Grant Olney Passmore ACL2-2017, Austin Joint work with Denis Ignatovich and our incredible team at AI AESTHETIC DESIGNED INTEGRATION WITH CARE BY Video (see
Grant Olney Passmore ACL2-2017, Austin
AESTHETIC INTEGRATION DESIGNED WITH CARE BYFormal Verification of Financial Algorithms, Progress and Prospects
Joint work with Denis Ignatovich and our incredible team at AI
Video (see it on http:/ /imandra.ai)
Problem
Financial markets have become notoriously unstable.
Problem
Financial markets have become notoriously unstable.
Problem
Financial markets have become notoriously unstable.
Lack of Transparency: issues of misrepresentation (e.g., misleading marketing materials or regulatory filings) of trading algorithm behaviour (e.g., BATS/Direct Edge $14M settlement with the SEC)Problem
Financial markets have become notoriously unstable.
Lack of Transparency: issues of misrepresentation (e.g. misleading marketing materials or regulatory filings) of trading algorithm behaviour (e.g., BATS/Direct Edge $14M settlement with the SEC) Glitches: trading system errors in design or implementation,Goals for this talk
7book, order type (market, limit, pegged), matching logic, market microstructure, smart
fairness (Reg ATS-N), best execution (Reg NMS)
Goals for this talk
book, order type (market, limit, pegged), matching logic, market microstructure, smart
analyse basic regulatory properties of a trading venue’s matching logic
Goals for this talk
book, order type (market, limit, pegged), matching logic, market microstructure, smart
fairness (Reg ATS-N), best execution (Reg NMS)
Goals for this talk
The Stack of Financial Algorithms
Venues
The Stack of Financial Algorithms
Venues Smart Order Routers
The Stack of Financial Algorithms
Venues Smart Order Routers Trading Algos
The Stack of Financial Algorithms
Venues Smart Order Routers Trading Algos Algo Containers
The Stack of Financial Algorithms
Venues Smart Order Routers Trading Algos Algo Containers Inventory Management
The Stack of Financial Algorithms
Venues Smart Order Routers Trading Algos Algo Containers Collateral Trading Inventory Management
The Stack of Financial Algorithms
Venues Smart Order Routers Trading Algos Algo Containers Collateral Trading Inventory Management
The Stack of Financial Algorithms
Venues Smart Order Routers Trading Algos Algo Containers Collateral Trading Inventory Management high freq low freq
The Stack of Financial Algorithms
Venues Smart Order Routers Trading Algos Algo Containers Collateral Trading Inventory Management high freq low freq
The Stack of Financial Algorithms
discrete, nonlinear
Venues Smart Order Routers Trading Algos Algo Containers Collateral Trading Inventory Management high freq low freq
The Stack of Financial Algorithms
discrete, nonlinear continuous, nonlinear
What is a venue?
What is a venue?
What is a venue?
LIT LIQUIDITY
DARK LIQUIDITY
What is a venue?
620 companies 52 countries First place winner!
The Logic of Financial RiskT MRunning Example: UBS ATS
First place winner! 620 companies 52 countries We analysed it, found more issues
Running Example: UBS ATS
Running Example: UBS ATS
Running Example: UBS ATS
Let’s examine an actual regulatory disclosure (esp. Sec 4.1)What is Imandra?
Automated Reasoning
+
What is Imandra?
…all according to a (precisely?) defined ‘spec’ …while obeying many complex regulations
What does a venue do?
What is an order book?
What is an order book?
at each discrete time-step, the book is sorted.
What is an order book?
how is it sorted?
What is an order book?
how is it sorted?
VERY COMPLEX ANSWER!What is an order book?
how is it sorted?
INTUITION: Price/Time PriorityWhat is an order book?
how is it sorted?
INTUITION: Price/Time PriorityWhat is an order book?
REALITY: Let’s see!an instruction to
What is an order?
an instruction to
What is an order?
an instruction to
“buy 100 shares of MSFT”What is an order?
“buy 100 shares of MSFT, with price at most $50”What is an order?
What is an order type?
MARKET ORDERWhat is an order type?
MARKET ORDER LIMIT ORDERWhat is an order type?
MARKET ORDER LIMIT ORDER ICEBERG ORDERWhat is an order type?
MARKET ORDER LIMIT ORDER STOP LOSS ORDER ICEBERG ORDERWhat is an order type?
What is an order type?
What is an order type?
Difficult questions:
Is your venue fair?
Formal analysis of trading venues
properties of trading venues (dark pools, exchanges, etc.)
banks
growing order-type proliferation
regulatory space (more soon…!)
Running Example: UBS ATS
Demo: Transitivity of
Example: SIX Swiss Exchange
Pricing Logic: Informal
Pricing Logic: Formal
Pricing Fairness Example
will prove that client ID, although used by the system, does not factor into pricing and matching decisions
fairness principle, and then use Imandra to reason about the model
process: We discover, through a non-trivial counter- example, that our original hypothesis is incorrect. We then update our specification or model accordingly and iterate.
Pricing Fairness Example
products with specific trading parameters
validities, and regulatory reporting requirements
while operating a heavily regulated business
Pricing Fairness Example
Pricing Fairness Example
Pricing Fairness Example
Principal Region Decomposition
Venues Smart Order Routers Trading Algos Algo Containers Collateral Trading Inventory Management high freq low freq
The Stack of Financial Algorithms
Venues Smart Order Routers Trading Algos Algo Containers Collateral Trading Inventory Management high freq low freq
The Stack of Financial Algorithms
we’re here
Venues Smart Order Routers Trading Algos Algo Containers Collateral Trading Inventory Management high freq low freq
The Stack of Financial Algorithms
we’re here how do we get here?
Formalized Financial Mathematics
Assuming every order is a MARKET ORDER is ridiculous. We need new financial mathematics that takes the precise discrete market microstructure into account.
Formalized Financial Mathematics
Assuming every order is a MARKET ORDER is ridiculous. We need new financial mathematics that takes the precise discrete market microstructure into account.
Stochastic Calculus Brownian Motion Wiener Processes Martingales Stochastic ControlConclusion
regulations
market participants
encodings of regulatory directives
precise discrete behaviour of matching logics into account