Applications of Dataflow Computing to Finance. Florian Widmann

Similar documents
Ultimate Control. Maxeler RiskAnalytics

RISKMETRICS. Dr Philip Symes

Market Risk: FROM VALUE AT RISK TO STRESS TESTING. Agenda. Agenda (Cont.) Traditional Measures of Market Risk

Derivatives Pricing This course can also be presented in-house for your company or via live on-line webinar

INTEREST RATES AND FX MODELS

Risk Management anil Financial Institullons^

Lecture 9: Practicalities in Using Black-Scholes. Sunday, September 23, 12

S4199 Effortless GPU Models for Finance

Advanced Foreign Exchange Derivatives This course can also be presented in-house for your company or via live on-line webinar

AMSTERDAM BOSTON HEIDELBERG LONDON NEW YORK OXFORD PARIS SAN DIEGO SAN FRANCISCO SINGAPORE SYDNEY TOKYO Academic Press is an Imprint of Elsevier

Analytics in 10 Micro-Seconds Using FPGAs. David B. Thomas Imperial College London

Introduction to Bonds The Bond Instrument p. 3 The Time Value of Money p. 4 Basic Features and Definitions p. 5 Present Value and Discounting p.

Market Risk Analysis Volume IV. Value-at-Risk Models

ARM. A commodity risk management system.

Statistical Methods in Financial Risk Management

Accelerated Option Pricing Multiple Scenarios

Oracle Financial Services Market Risk User Guide

Financial Markets & Risk

CHAPTER 9. Solutions. Exercise The payoff diagrams will look as in the figure below.

Model Risk Assessment

Advanced Equity Derivatives This course can also be presented in-house for your company or via live on-line webinar

1 The Hull-White Interest Rate Model

WHITE PAPER THINKING FORWARD ABOUT PRICING AND HEDGING VARIABLE ANNUITIES

Risk Measures Overview

Algorithmic and High-Frequency Trading: Why Now and How?

2 f. f t S 2. Delta measures the sensitivityof the portfolio value to changes in the price of the underlying

Handbook of Financial Risk Management

Valuation of Equity / FX Instruments

ACI Dealing Certificate (008)

Key Features Asset allocation, cash flow analysis, object-oriented portfolio optimization, and risk analysis

GlobalView Software, Inc.

Market risk measurement in practice

REPORTING PACKAGE FOR SS&C ADVENT SOFTWARE CLIENTS

Advanced Equity Derivatives

Building a Zero Coupon Yield Curve

Bloomberg. Portfolio Value-at-Risk. Sridhar Gollamudi & Bryan Weber. September 22, Version 1.0

F1 Acceleration for Montecarlo: financial algorithms on FPGA

IEOR E4602: Quantitative Risk Management

Economic Scenario Generator: Applications in Enterprise Risk Management. Ping Sun Executive Director, Financial Engineering Numerix LLC

Contents. 1. Introduction Workbook Access Copyright and Disclaimer Password Access and Worksheet Protection...

INTEREST RATES AND FX MODELS

FX Barrien Options. A Comprehensive Guide for Industry Quants. Zareer Dadachanji Director, Model Quant Solutions, Bremen, Germany

CAS Exam 8 Notes - Parts F, G, & H. Financial Risk Management Valuation International Securities

RunnING Risk on GPUs. Answering The Computational Challenges of a New Environment. Tim Wood Market Risk Management Trading - ING Bank

Amortizing and Accreting Swap Vaulation Pratical Guide

Barrier Option. 2 of 33 3/13/2014

ANALYSIS OF THE BINOMIAL METHOD

Computational Finance Binomial Trees Analysis

Monte Carlo Methods in Structuring and Derivatives Pricing

Interest Rate Basis Curve Construction and Bootstrapping Guide

Calibrating to Market Data Getting the Model into Shape

Monte Carlo Simulations

The Geometry of Interest Rate Risk

FIN FINANCIAL INSTRUMENTS SPRING 2008

HPC IN THE POST 2008 CRISIS WORLD

Outline. GPU for Finance SciFinance SciFinance CUDA Risk Applications Testing. Conclusions. Monte Carlo PDE

Hull, Options, Futures & Other Derivatives Exotic Options

The RQuantLib Package

Negative Rates: The Challenges from a Quant Perspective

Multi-Curve Pricing of Non-Standard Tenor Vanilla Options in QuantLib. Sebastian Schlenkrich QuantLib User Meeting, Düsseldorf, December 1, 2015

Financial Risk Measurement/Management

Fundamentals of Futures and Options Markets

Amortizing and Accreting Floors Vaulation

Value at Risk Risk Management in Practice. Nikolett Gyori (Morgan Stanley, Internal Audit) September 26, 2017

Han & Li Hybrid Implied Volatility Pricing DECISION SCIENCES INSTITUTE. Henry Han Fordham University

Foreign exchange derivatives Commerzbank AG

Manage Complex Option Portfolios: Simplifying Option Greeks Part II

Expert4x NoWorries EA. November 21, 2017

NINTH EDITION FUNDAMENTALS OF. John C. Hüll

Insights. Variable Annuity Hedging Practices in North America Selected Results From the 2011 Towers Watson Variable Annuity Hedging Survey

An Introduction to Structured Financial Products (Continued)

Amortizing and Accreting Caps Vaulation

Algorithmic Differentiation of a GPU Accelerated Application

Hedging Strategy Simulation and Backtesting with DSLs, GPUs and the Cloud

by Kian Guan Lim Professor of Finance Head, Quantitative Finance Unit Singapore Management University

MFE/3F Questions Answer Key

Risk Management Using Derivatives Securities

Compounding Swap Vaulation Pratical Guide

ORE Applied: Dynamic Initial Margin and MVA

Accelerating Quantitative Financial Computing with CUDA and GPUs

Risk and Management: Goals and Perspective

FUNDAMENTALS OF FUTURES AND OPTIONS MARKETS

A new breed of Monte Carlo to meet FRTB computational challenges

Table of Contents. Chapter 1 General Principles... 1

Market Risk Analysis Volume I

FINCAD s Flexible Valuation Adjustment Solution

ACADEMY CERTIFIED PROGRAMME ON ALGORITHMIC TRADING & COMPUTATIONAL FINANCE USING PYTHON & R

QF 101 Revision. Christopher Ting. Christopher Ting. : : : LKCSB 5036

CONTENTS. Introduction. Acknowledgments. What Is New in the Second Edition? Option Pricing Formulas Overview. Glossary of Notations

INTRODUCTION TO BLACK S MODEL FOR INTEREST RATE DERIVATIVES

Definition Pricing Risk management Second generation barrier options. Barrier Options. Arfima Financial Solutions

Modern Derivatives. Pricing and Credit. Exposure Anatysis. Theory and Practice of CSA and XVA Pricing, Exposure Simulation and Backtest!

How to Implement Market Models Using VBA

Valuation of Equity Derivatives

)WILEY A John Wiley and Sons, Ltd., Publication

ARM. A commodity risk management system.

Overnight Index Rate: Model, calibration and simulation

Oracle Financial Services Pricing Management, Capital Charge Component. User Guide. Release 6.0. March 2012

NUMERICAL AND SIMULATION TECHNIQUES IN FINANCE

Credit Exposure Measurement Fixed Income & FX Derivatives

Transcription:

Applications of Dataflow Computing to Finance Florian Widmann

Overview 1. Requirement Shifts in the Financial World 2. Case 1: Real Time Margin 3. Case 2: FX Option Monitor 4. Conclusions

Market Context - Old Complex stochastic models for exotic derivatives Grid based overnight batch jobs Relatively low emphasis on regulatory capital models Little if any risk analysis for algorithmic and HFT trading End-of-day computation for margin, CVA, VaR, etc. Little if any pre-trade risk analysis Business level silos for risk management

Market Context - New Real time pricing and risk analytics Pre-trade risk and margin computation Risk management for algorithmic and HFT trading Cross trading platform multivariate analysis of live tick data Exchange integrity: anomaly detection (e.g. fat finger), market liquidity metrics, execution risk Enhanced price feed with real time Greeks

Compute Requirements Financial analytics at network speed Scale from HFT to Enterprise Risk on same technology Guaranteed performance Ease of integration into existing IT frameworks and analytics libraries Accessible programming model to support in house development (proprietary models) Software development cycles rather than hardware

Maxeler Dataflow Computing Programming of bitstreams via Java based maxj code using Eclipse based IDE Feels like software development Almost no VHDL knowledge required MPC-X invocation via generated shared libraries Conven tional PC Infiniband Stratix V D8 MPC-X DRAM 48GB x 8

Real Time Margin: Background All Interest Rate Swap trades must be centrally cleared at a Clearing House (novation: A B A CH B) CH will charge A and B margin to protect CH against default Margin computed using hvar: reprice swap over 1,500+ historical market scenarios CH must compute margin on client submitted portfolios of 50,000 swaps in 5 seconds

Real Time Margin: Computation Construct Swap PV Vector Load OIS and LIBOR curves for 1,500+ scenarios Generate swap cash flows from swap specification and LIBOR curve Discount cash flows to spot using OIS curve Repeat for all 1,500+ scenarios Compute hvar Add swap PV vector to account PV vector Compute 95% percentile Possibly allocate hvar to sectors / maturities / currencies

Real Time Margin: Data Flow Solution 1 Maths view: swaps are easy Compute science view: swaps are quite tricky Even vanilla swaps have dozens of attributes, e.g.: Several day-count and business day conventions, etc. Payment and compounding frequencies, etc. DFE cannot handle everything directly Our approach: DFE implements interpreter of domain-specific cash flow language CPU translates swap into sequence of cash flow instructions

Real Time Margin: Data Flow Solution 2 Cash flow instructions contain e.g.: Notional, rate, compounding flags, etc. Discounting curve and currency index, etc. Can handle 3-degree polynomial interpolation and log versions, e.g. linear, cubic spline, monotone cubic (actual coefficients are pre-computed on CPU) Catch: calculating instructions (on CPU) takes almost as long as pricing the swap But: each swap is priced in 1500+ scenarios (SIMD)

Real Time Margin: Data Flow Solution 3 CPU: receives swap portfolio and market data CPU: computes cash flow instructions and scenarios CPU: splits computation into batch jobs so that the DFE s input limits are not breached (mostly FMem) DFE: batch scenario data is loaded into FMem DFE: batch cash flow instructions are streamed in and the resulting PVs are returned to the CPU CPU: stitches together the batch results

Real Time Margin: Performance Complete system on middle end PC with 4 DFEs manages ca. 240,000,000 swap pricings per second. Using our software library, one (real) core can price ca. 110,000 swaps per second That is ca. 1,320,000 swaps per second on the PC

Real Time Margin: Demo Video (if possible, else tell a joke)

FX Options Monitor: Background Vanilla FX options: option on currency pair e.g. USD/GBP Black-Scholes price driven by: Spot FX rate: FX rate as of today (fast update) Volatility: market consensus of expected lognormal volatility from spot to option expiry (slow update) Potential for 30+ live currency pairs Black-Scholes formula for European options, BAW approximation for American options (if feasible) Soon: Monte-Carlo for more complex options

Real Time Margin: Background

FX Options Monitor: Problem Given a portfolio of vanilla FX options (200,000) compute for each spot FX tick and each position: Price Delta (1 st derivative w.r.t. spot) Gamma (2 nd derivative w.r.t. spot) Vega (1 st derivative w.r.t. volatility) Theta (1 st derivative w.r.t. time) Up to 80 further derivatives

FX Options Monitor: Architecture Volatility curves (several per currency pair) and yield curves are stored in DRAM and updated every 5 mins Derivatives are computed via finite difference Spot prices are streamed in from CPU Trade data is streamed in from CPU grouped by currency pairs Currency pair volatility curves etc. are read from DRAM into FMem and used for all corresponding trades

FX Option Monitor: Demo Video (if possible, else look awkward)

Conclusions FPGAs and the Maxeler infrastructure on top meet many of the compute requirements Interest from industry but still some hesitation since it is an unknown (to them) technology In house development feasible but consultation time from experts still necessary Have not said anything about low latency