SlideShare a Scribd company logo
1 of 45
Download to read offline
L.G.H.C. Nalinda
2011CS005
11000058
Domain Specific Language to
Specify Operations of a Central
Counterparty
Supervisor: Dr. Chamath Keppetiyagama
Road Map
▷Financial Markets
▷Motivation
▷Haskell Contract Combinator Library (HCCL)
▷Composing Contracts
▷Central Counterparty (CCP)
▷Research Hypothesis
▷Research Literature
▷Architecture
▷Evaluation
▷Progress
Financial Markets
Financial Markets
▷Vital Governing Sector in Global Economy – Economic Wealth is Presented
▷Early days
Cheque clearing
.Deposit/Withdraw
Today  More Complicated Operations
▷Stakeholders & Financial Institutes
Different stakeholder interests
Different Operations
Linked to each other
Stakeholder Interests vs Economic Stability
▷History
Enron
2007 2008 Crisis
Greek Crisis
▷Minimize Risk– Effective Derivative Management
▷Computer Science
Big Data
Data Mining
Real Time Analytics
Neural Networks ++
Financial Markets
Motivation
DSL for Finance Sector
▷ Define Finance Contracts / Finance Derivatives
Each Derivative  Different Definitions (No Unified Approach)
Tedious Task – Uncertainty, Complexity ++
Processing is More Complex
▷DSL for Finance Sector
Unified Mechanism for Defining Contracts
DSL to Embed Properties of Contracts
▷Benefits
Simple Valuation … Complex Back-End Operation Management
Motivation
DSL for Finance Sector[Cntd]
Motivation
Haskell Contract
Combinator Library
Peyton Jones, Marc-Eber, Julian (2000)
▷Fixed, Precisely Specified Set of Combinators (Unified Mechanism)
▷Describe a Contract
▷Process a Contract
▷Find Value of a Contract
▷Compositional Nature – (Can Glue Combinators Together)
Contract Primitives + Observable Primitives
IntroductionHCCL
Primitives for Defining Contracts | HCCL
IntroductionHCCL
Primitives for Defining Observables
IntroductionHCCL
Composing Contracts
Composing ZCB
“Receive £200 on Future Date t1”
C1 = one GBP
C2 = truncate t1 (one GBP)
= truncate t1 (C1)
C3 = scale 200 (truncate t1(one GBP))
= scale 200 (C2)
C4 = get (scale 200 (truncate t1(one GBP)))
get (C3)
IntroductionComposing Contracts
ZCB :: Date -> Double -> Currency -> Contract
Contract Definitions
IntroductionComposing Contracts
▷ZCB :: Date  Double  Currency  Contract
▷EU_OPTION :: Date  Contract  Contract
▷AMERICAN_OPTION :: (Date,Date)  Contract  Contract
Central Counterparty
Absence of CCP
Motivation
With CCP
Motivation
Operations of CCP
▷Rule Book
MX | LCH | CBOT
▷Margin Calculation
Purpose : No Counterparty Default Occur
At the End of Each Business Day
.
▷Possibilities
Dr. Trader Account
Cr. Trader Account
Restate to Initial Margin
Methodology
Rule 9102 – Long Option Position
Margin Requirement
.
Methodology
the period to expiry is greater or equal to 9
months, 50% of the option’s time value, else
100% of the option’s time value
Future Cash Flow
.
Research Hypothesis
If we can use Peyton Jones’s
language to compose FC/FD, we
can use the same language to
compose CCP Rules
Specify Operations of a CCP
Using a Domain Specific
Language approach
Research Literature
Attempts to Define a Language
▷Lee – Language for Electronics Contracts … Common Logic Model
▷Deursen – Define a Formalized DSL
- Highlight the Implications of such DSL
- Tool Bus Architecture (proposed solutions)
- RISLA
Finance Product Can Describe by it’s Cash Flow
IntroductionResearch Literature
▷LexiFi,
▷HiperFit (http://hiperfit.dk/)
Peyton Jones, Marc-Eber, Julian (2000)
▷Fixed, Precisely Specified Set of Combinators
▷Describe a Contract
▷Process a Contract
▷Find Value of a Contract
▷Compositional Nature
Contract Primitives + Observable Primitives
IntroductionResearch Literature
Complex Derivatives
▷Mediratta – Credit Default Swap & Power Reverse Dual Currency Swap
▷Valuation – evalC :: Model  Contract
- evalO :: Model  Contract
More Complex Derivatives Can Compose Using Fixed Set of
Combinators & Observables While
Preserving Uniqueness of the Contract
IntroductionResearch Literature
Software Language Approach
▷Peyton – Justify that FP Approach Can Use to Define and Value Derivatives
- Lacking Highlighting SE Language Concepts
- No Unified Approach 
▷Gaillourdet – HCCL in a SW Language Point of View
- Provided a Formal Definition for the Language (Syntax)
Syntax of Observables
Syntax of Contract
- Denotational Semantics
Observables
Contracts
IntroductionResearch Literature
Environment
▷Facts About Observables and Choices – Symbolic Management of Derivatives
- External to the FC/FD
- Direct impact on the FC/FD
IntroductionResearch Literature
Summery
IntroductionResearch Literature
DSL for Finance Sector Has been a Major Requirement Since Early Days
Payton, Eber, Julian HCCL
Mediratta Complex Derivatives
Gaillourdet Software Language Approach
Bahr, Jost, Elsman Symbolic Management of Finance
Contracts & Symbolic Management of
Multiparty Contracts
CCP Operations Have Not Yet Addressed using DSL Approach
Architecture
Overall Architecture IntroductionArchitecture
Derivative
IntroductionArchitecture
Rule | Design Architecture IntroductionArchitecture
Rule | Hypothesis IntroductionArchitecture
▷Rule_9102 :: DEPENDENT_FACTORS  Contract
▷Factors Identified
- Maturity
- Current Date
- Position
- Options Time Value ++
Seed Contract | Outcome of Hypothesis
IntroductionArchitecture
Seed Contract | Outcome of Hypothesis
IntroductionArchitecture
Operations of CCP
IntroductionArchitecture
Derivative Management
▷Seed -> Grow over “n” Periods
▷Comparison of Contracts
▷Comparison of Periods
▷Symbolic Contract Management
- Speicialization
- Reduction
▷Derive unseen Derivatives
Architecture
Evaluation
The Extent to Which the
Proposed Hypothesis can be
Used to Define Operations of
CCP
Progress
Completed
▷Research Literature
▷Architecture
▷Constructing Core Level Contracts
(https://github.com/CoolCK/Finance_Contracts_Haskell)
▷Partial Contract Implementation
▷Construction of Rule Using HCCL
▷Finalizing Seed Contract
▷Generate All Possible Results
Progress
Work In Progress
THANK YOU 
Q&A

More Related Content

Viewers also liked

Sdal overview sallie keller
Sdal overview  sallie kellerSdal overview  sallie keller
Sdal overview sallie kellerkimlyman
 
Portico&video bubbles
Portico&video bubblesPortico&video bubbles
Portico&video bubbles又瑋 賴
 
Kitchen Cabinet Doors
Kitchen Cabinet DoorsKitchen Cabinet Doors
Kitchen Cabinet Doorsewemily
 
Sdal air health and social development (jan. 27, 2014) final
Sdal air health and social development (jan. 27, 2014) finalSdal air health and social development (jan. 27, 2014) final
Sdal air health and social development (jan. 27, 2014) finalkimlyman
 
MANAGEMENT OF SUBSTANCE RELATED PSYCHIATRIC DISORDER SEDATIVE, HYPNOTIC AND A...
MANAGEMENT OF SUBSTANCE RELATED PSYCHIATRIC DISORDERSEDATIVE, HYPNOTIC AND A...MANAGEMENT OF SUBSTANCE RELATED PSYCHIATRIC DISORDERSEDATIVE, HYPNOTIC AND A...
MANAGEMENT OF SUBSTANCE RELATED PSYCHIATRIC DISORDER SEDATIVE, HYPNOTIC AND A...Dr Slayer
 
Graffiti fur &Thaw
Graffiti fur &ThawGraffiti fur &Thaw
Graffiti fur &Thaw又瑋 賴
 
Hubungan kantor pusat dan cabang
Hubungan kantor pusat dan cabangHubungan kantor pusat dan cabang
Hubungan kantor pusat dan cabangfadhly arsani
 
Presentacion Final.pptx
Presentacion Final.pptxPresentacion Final.pptx
Presentacion Final.pptxUNISON
 
Psychological disorder
Psychological disorder Psychological disorder
Psychological disorder UNISON
 
pembentukan persekutuan
pembentukan persekutuanpembentukan persekutuan
pembentukan persekutuanfadhly arsani
 

Viewers also liked (13)

Sdal overview sallie keller
Sdal overview  sallie kellerSdal overview  sallie keller
Sdal overview sallie keller
 
Masalah khusus
Masalah khususMasalah khusus
Masalah khusus
 
Portico&video bubbles
Portico&video bubblesPortico&video bubbles
Portico&video bubbles
 
Kitchen Cabinet Doors
Kitchen Cabinet DoorsKitchen Cabinet Doors
Kitchen Cabinet Doors
 
Sdal air health and social development (jan. 27, 2014) final
Sdal air health and social development (jan. 27, 2014) finalSdal air health and social development (jan. 27, 2014) final
Sdal air health and social development (jan. 27, 2014) final
 
MANAGEMENT OF SUBSTANCE RELATED PSYCHIATRIC DISORDER SEDATIVE, HYPNOTIC AND A...
MANAGEMENT OF SUBSTANCE RELATED PSYCHIATRIC DISORDERSEDATIVE, HYPNOTIC AND A...MANAGEMENT OF SUBSTANCE RELATED PSYCHIATRIC DISORDERSEDATIVE, HYPNOTIC AND A...
MANAGEMENT OF SUBSTANCE RELATED PSYCHIATRIC DISORDER SEDATIVE, HYPNOTIC AND A...
 
Graffiti fur &Thaw
Graffiti fur &ThawGraffiti fur &Thaw
Graffiti fur &Thaw
 
Hubungan kantor pusat dan cabang
Hubungan kantor pusat dan cabangHubungan kantor pusat dan cabang
Hubungan kantor pusat dan cabang
 
Presentacion Final.pptx
Presentacion Final.pptxPresentacion Final.pptx
Presentacion Final.pptx
 
Graffiti fur
Graffiti furGraffiti fur
Graffiti fur
 
Psychological disorder
Psychological disorder Psychological disorder
Psychological disorder
 
Reclaim the fat
Reclaim the fatReclaim the fat
Reclaim the fat
 
pembentukan persekutuan
pembentukan persekutuanpembentukan persekutuan
pembentukan persekutuan
 

Similar to Domain Specific Language for Specify Operations of a Central Counterparty

Domain Specific Language for Specify Operations of a Central Counterparty(CCP)
Domain Specific Language for Specify Operations of a Central Counterparty(CCP)Domain Specific Language for Specify Operations of a Central Counterparty(CCP)
Domain Specific Language for Specify Operations of a Central Counterparty(CCP)Chamin Nalinda Loku Gam Hewage
 
Domain Specific Language for Specify Operations of a Central Counterparty(CCP)
Domain Specific Language for Specify Operations of a Central Counterparty(CCP)Domain Specific Language for Specify Operations of a Central Counterparty(CCP)
Domain Specific Language for Specify Operations of a Central Counterparty(CCP)Chamin Nalinda Loku Gam Hewage
 
Smart Data Webinar: A semantic solution for financial regulatory compliance
Smart Data Webinar: A semantic solution for financial regulatory complianceSmart Data Webinar: A semantic solution for financial regulatory compliance
Smart Data Webinar: A semantic solution for financial regulatory complianceDATAVERSITY
 
Developing a Fully Integrated Long-Range Plan
Developing a Fully Integrated Long-Range PlanDeveloping a Fully Integrated Long-Range Plan
Developing a Fully Integrated Long-Range PlanAlithya
 
Industry@RuleML2015: Automated Decision Support for Financial Regulatory/Pol...
Industry@RuleML2015:  Automated Decision Support for Financial Regulatory/Pol...Industry@RuleML2015:  Automated Decision Support for Financial Regulatory/Pol...
Industry@RuleML2015: Automated Decision Support for Financial Regulatory/Pol...RuleML
 
Visualizing your event storm in new ways
Visualizing your event storm in new waysVisualizing your event storm in new ways
Visualizing your event storm in new waysJustin Holmes
 
Contracts and fm 11
Contracts and fm 11Contracts and fm 11
Contracts and fm 11barnbyvilla
 
Contracts And Fm 11
Contracts And Fm 11Contracts And Fm 11
Contracts And Fm 11barnbyvilla
 
GRIPS concept mapping workshop Hunter 18.11.22
GRIPS concept mapping workshop Hunter 18.11.22GRIPS concept mapping workshop Hunter 18.11.22
GRIPS concept mapping workshop Hunter 18.11.22Lawrie Hunter
 
IT Planning and Budgeting Crash Course
IT Planning and Budgeting Crash CourseIT Planning and Budgeting Crash Course
IT Planning and Budgeting Crash CourseJason Samuels
 
Pm0012 project finance and budgeting
Pm0012   project finance and budgetingPm0012   project finance and budgeting
Pm0012 project finance and budgetingsmumbahelp
 
Distributed Ledger Technology as Financial Market Infrastructure
Distributed Ledger Technology as Financial Market InfrastructureDistributed Ledger Technology as Financial Market Infrastructure
Distributed Ledger Technology as Financial Market InfrastructureTim Swanson
 
Financial Industry Semantics and Ontologies
Financial Industry Semantics and OntologiesFinancial Industry Semantics and Ontologies
Financial Industry Semantics and OntologiesMike Bennett
 
RDA Work Groups Outputs and Adoption - Early WG Report back session
RDA Work Groups Outputs and Adoption - Early WG Report back sessionRDA Work Groups Outputs and Adoption - Early WG Report back session
RDA Work Groups Outputs and Adoption - Early WG Report back sessionResearch Data Alliance
 
Network of Networks Share Group Spring Update
Network of Networks Share Group Spring UpdateNetwork of Networks Share Group Spring Update
Network of Networks Share Group Spring UpdateLora Cecere
 

Similar to Domain Specific Language for Specify Operations of a Central Counterparty (20)

Domain Specific Language for Specify Operations of a Central Counterparty(CCP)
Domain Specific Language for Specify Operations of a Central Counterparty(CCP)Domain Specific Language for Specify Operations of a Central Counterparty(CCP)
Domain Specific Language for Specify Operations of a Central Counterparty(CCP)
 
Domain Specific Language for Specify Operations of a Central Counterparty(CCP)
Domain Specific Language for Specify Operations of a Central Counterparty(CCP)Domain Specific Language for Specify Operations of a Central Counterparty(CCP)
Domain Specific Language for Specify Operations of a Central Counterparty(CCP)
 
Smart Data Webinar: A semantic solution for financial regulatory compliance
Smart Data Webinar: A semantic solution for financial regulatory complianceSmart Data Webinar: A semantic solution for financial regulatory compliance
Smart Data Webinar: A semantic solution for financial regulatory compliance
 
2019_7816154.pdf
2019_7816154.pdf2019_7816154.pdf
2019_7816154.pdf
 
Agile contracting- APM Contracts and Procurement SIG, July 2016
Agile contracting- APM Contracts and Procurement SIG, July 2016Agile contracting- APM Contracts and Procurement SIG, July 2016
Agile contracting- APM Contracts and Procurement SIG, July 2016
 
Developing a Fully Integrated Long-Range Plan
Developing a Fully Integrated Long-Range PlanDeveloping a Fully Integrated Long-Range Plan
Developing a Fully Integrated Long-Range Plan
 
Industry@RuleML2015: Automated Decision Support for Financial Regulatory/Pol...
Industry@RuleML2015:  Automated Decision Support for Financial Regulatory/Pol...Industry@RuleML2015:  Automated Decision Support for Financial Regulatory/Pol...
Industry@RuleML2015: Automated Decision Support for Financial Regulatory/Pol...
 
Visualizing your event storm in new ways
Visualizing your event storm in new waysVisualizing your event storm in new ways
Visualizing your event storm in new ways
 
Contracts and fm 11
Contracts and fm 11Contracts and fm 11
Contracts and fm 11
 
Contracts And Fm 11
Contracts And Fm 11Contracts And Fm 11
Contracts And Fm 11
 
GRIPS concept mapping workshop Hunter 18.11.22
GRIPS concept mapping workshop Hunter 18.11.22GRIPS concept mapping workshop Hunter 18.11.22
GRIPS concept mapping workshop Hunter 18.11.22
 
IT Planning and Budgeting Crash Course
IT Planning and Budgeting Crash CourseIT Planning and Budgeting Crash Course
IT Planning and Budgeting Crash Course
 
Pm0012 project finance and budgeting
Pm0012   project finance and budgetingPm0012   project finance and budgeting
Pm0012 project finance and budgeting
 
Distributed Ledger Technology as Financial Market Infrastructure
Distributed Ledger Technology as Financial Market InfrastructureDistributed Ledger Technology as Financial Market Infrastructure
Distributed Ledger Technology as Financial Market Infrastructure
 
Helass project overview and lessons v1.0
Helass project overview and lessons v1.0Helass project overview and lessons v1.0
Helass project overview and lessons v1.0
 
Financial Industry Semantics and Ontologies
Financial Industry Semantics and OntologiesFinancial Industry Semantics and Ontologies
Financial Industry Semantics and Ontologies
 
RDA Work Groups Outputs and Adoption - Early WG Report back session
RDA Work Groups Outputs and Adoption - Early WG Report back sessionRDA Work Groups Outputs and Adoption - Early WG Report back session
RDA Work Groups Outputs and Adoption - Early WG Report back session
 
Network of Networks Share Group Spring Update
Network of Networks Share Group Spring UpdateNetwork of Networks Share Group Spring Update
Network of Networks Share Group Spring Update
 
Agile estimation 3_Мел Росс
Agile estimation 3_Мел РоссAgile estimation 3_Мел Росс
Agile estimation 3_Мел Росс
 
Blockchain-Hyperledger-Colombo
Blockchain-Hyperledger-ColomboBlockchain-Hyperledger-Colombo
Blockchain-Hyperledger-Colombo
 

More from Chamin Nalinda Loku Gam Hewage

More from Chamin Nalinda Loku Gam Hewage (6)

Branch And Bound and Beam Search Feature Selection Algorithms
Branch And Bound and Beam Search Feature Selection AlgorithmsBranch And Bound and Beam Search Feature Selection Algorithms
Branch And Bound and Beam Search Feature Selection Algorithms
 
World’s Fastest Supercomputer | Tianhe - 2
World’s Fastest Supercomputer |  Tianhe - 2World’s Fastest Supercomputer |  Tianhe - 2
World’s Fastest Supercomputer | Tianhe - 2
 
Structured Cabling Technologies
Structured Cabling TechnologiesStructured Cabling Technologies
Structured Cabling Technologies
 
IP Multicasting
IP MulticastingIP Multicasting
IP Multicasting
 
Last Mile Access Technologies
Last Mile Access TechnologiesLast Mile Access Technologies
Last Mile Access Technologies
 
Big Data Social Network Analysis
Big Data Social Network AnalysisBig Data Social Network Analysis
Big Data Social Network Analysis
 

Recently uploaded

Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 

Recently uploaded (20)

Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 

Domain Specific Language for Specify Operations of a Central Counterparty

  • 1. L.G.H.C. Nalinda 2011CS005 11000058 Domain Specific Language to Specify Operations of a Central Counterparty Supervisor: Dr. Chamath Keppetiyagama
  • 2. Road Map ▷Financial Markets ▷Motivation ▷Haskell Contract Combinator Library (HCCL) ▷Composing Contracts ▷Central Counterparty (CCP) ▷Research Hypothesis ▷Research Literature ▷Architecture ▷Evaluation ▷Progress
  • 4. Financial Markets ▷Vital Governing Sector in Global Economy – Economic Wealth is Presented ▷Early days Cheque clearing .Deposit/Withdraw Today  More Complicated Operations ▷Stakeholders & Financial Institutes Different stakeholder interests Different Operations Linked to each other
  • 5. Stakeholder Interests vs Economic Stability ▷History Enron 2007 2008 Crisis Greek Crisis ▷Minimize Risk– Effective Derivative Management ▷Computer Science Big Data Data Mining Real Time Analytics Neural Networks ++ Financial Markets
  • 7. DSL for Finance Sector ▷ Define Finance Contracts / Finance Derivatives Each Derivative  Different Definitions (No Unified Approach) Tedious Task – Uncertainty, Complexity ++ Processing is More Complex ▷DSL for Finance Sector Unified Mechanism for Defining Contracts DSL to Embed Properties of Contracts ▷Benefits Simple Valuation … Complex Back-End Operation Management Motivation
  • 8. DSL for Finance Sector[Cntd] Motivation
  • 10. Peyton Jones, Marc-Eber, Julian (2000) ▷Fixed, Precisely Specified Set of Combinators (Unified Mechanism) ▷Describe a Contract ▷Process a Contract ▷Find Value of a Contract ▷Compositional Nature – (Can Glue Combinators Together) Contract Primitives + Observable Primitives IntroductionHCCL
  • 11. Primitives for Defining Contracts | HCCL IntroductionHCCL
  • 12. Primitives for Defining Observables IntroductionHCCL
  • 14. Composing ZCB “Receive £200 on Future Date t1” C1 = one GBP C2 = truncate t1 (one GBP) = truncate t1 (C1) C3 = scale 200 (truncate t1(one GBP)) = scale 200 (C2) C4 = get (scale 200 (truncate t1(one GBP))) get (C3) IntroductionComposing Contracts ZCB :: Date -> Double -> Currency -> Contract
  • 15. Contract Definitions IntroductionComposing Contracts ▷ZCB :: Date  Double  Currency  Contract ▷EU_OPTION :: Date  Contract  Contract ▷AMERICAN_OPTION :: (Date,Date)  Contract  Contract
  • 19. Operations of CCP ▷Rule Book MX | LCH | CBOT ▷Margin Calculation Purpose : No Counterparty Default Occur At the End of Each Business Day . ▷Possibilities Dr. Trader Account Cr. Trader Account Restate to Initial Margin Methodology
  • 20. Rule 9102 – Long Option Position Margin Requirement . Methodology the period to expiry is greater or equal to 9 months, 50% of the option’s time value, else 100% of the option’s time value Future Cash Flow .
  • 22. If we can use Peyton Jones’s language to compose FC/FD, we can use the same language to compose CCP Rules
  • 23. Specify Operations of a CCP Using a Domain Specific Language approach
  • 25. Attempts to Define a Language ▷Lee – Language for Electronics Contracts … Common Logic Model ▷Deursen – Define a Formalized DSL - Highlight the Implications of such DSL - Tool Bus Architecture (proposed solutions) - RISLA Finance Product Can Describe by it’s Cash Flow IntroductionResearch Literature ▷LexiFi, ▷HiperFit (http://hiperfit.dk/)
  • 26. Peyton Jones, Marc-Eber, Julian (2000) ▷Fixed, Precisely Specified Set of Combinators ▷Describe a Contract ▷Process a Contract ▷Find Value of a Contract ▷Compositional Nature Contract Primitives + Observable Primitives IntroductionResearch Literature
  • 27. Complex Derivatives ▷Mediratta – Credit Default Swap & Power Reverse Dual Currency Swap ▷Valuation – evalC :: Model  Contract - evalO :: Model  Contract More Complex Derivatives Can Compose Using Fixed Set of Combinators & Observables While Preserving Uniqueness of the Contract IntroductionResearch Literature
  • 28. Software Language Approach ▷Peyton – Justify that FP Approach Can Use to Define and Value Derivatives - Lacking Highlighting SE Language Concepts - No Unified Approach  ▷Gaillourdet – HCCL in a SW Language Point of View - Provided a Formal Definition for the Language (Syntax) Syntax of Observables Syntax of Contract - Denotational Semantics Observables Contracts IntroductionResearch Literature
  • 29. Environment ▷Facts About Observables and Choices – Symbolic Management of Derivatives - External to the FC/FD - Direct impact on the FC/FD IntroductionResearch Literature
  • 30. Summery IntroductionResearch Literature DSL for Finance Sector Has been a Major Requirement Since Early Days Payton, Eber, Julian HCCL Mediratta Complex Derivatives Gaillourdet Software Language Approach Bahr, Jost, Elsman Symbolic Management of Finance Contracts & Symbolic Management of Multiparty Contracts CCP Operations Have Not Yet Addressed using DSL Approach
  • 34. Rule | Design Architecture IntroductionArchitecture
  • 35. Rule | Hypothesis IntroductionArchitecture ▷Rule_9102 :: DEPENDENT_FACTORS  Contract ▷Factors Identified - Maturity - Current Date - Position - Options Time Value ++
  • 36. Seed Contract | Outcome of Hypothesis IntroductionArchitecture
  • 37. Seed Contract | Outcome of Hypothesis IntroductionArchitecture
  • 39. Derivative Management ▷Seed -> Grow over “n” Periods ▷Comparison of Contracts ▷Comparison of Periods ▷Symbolic Contract Management - Speicialization - Reduction ▷Derive unseen Derivatives Architecture
  • 41. The Extent to Which the Proposed Hypothesis can be Used to Define Operations of CCP
  • 43. Completed ▷Research Literature ▷Architecture ▷Constructing Core Level Contracts (https://github.com/CoolCK/Finance_Contracts_Haskell) ▷Partial Contract Implementation ▷Construction of Rule Using HCCL ▷Finalizing Seed Contract ▷Generate All Possible Results Progress Work In Progress
  • 45. Q&A