Saved in:
Bibliographic Details
Main Authors: Garg, Mohit, Raja, N., Sarswat, Suneel, Singh, Abhishek Kr
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2410.18751
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916451747627008
author Garg, Mohit
Raja, N.
Sarswat, Suneel
Singh, Abhishek Kr
author_facet Garg, Mohit
Raja, N.
Sarswat, Suneel
Singh, Abhishek Kr
contents Double auctions are widely used in financial markets, such as those for stocks, derivatives, currencies, and commodities, to match demand and supply. Once all buyers and sellers have placed their trade requests, the exchange determines how these requests are to be matched. The two most common objectives for determining the matching are maximizing trade volume at a uniform price and maximizing trade volume through dynamic pricing. Prior research has primarily focused on single-quantity trade requests. In this work, we extend the framework to handle multiple-quantity trade requests and present fully formalized matching algorithms for double auctions, along with their correctness proofs. We establish new uniqueness theorems, enabling automatic detection of violations in exchange systems by comparing their output to that of a verified program. All proofs are formalized in the Coq Proof Assistant, and we extract verified OCaml and Haskell programs that could serve as a resource for exchanges and market regulators. We demonstrate the practical applicability of our work by running the verified program on real market data from an exchange to automatically check for violations in the exchange algorithm.
format Preprint
id arxiv_https___arxiv_org_abs_2410_18751
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Double Auctions: Formalization and Automated Checkers
Garg, Mohit
Raja, N.
Sarswat, Suneel
Singh, Abhishek Kr
Logic in Computer Science
Trading and Market Microstructure
F.3.1; K.4.4
Double auctions are widely used in financial markets, such as those for stocks, derivatives, currencies, and commodities, to match demand and supply. Once all buyers and sellers have placed their trade requests, the exchange determines how these requests are to be matched. The two most common objectives for determining the matching are maximizing trade volume at a uniform price and maximizing trade volume through dynamic pricing. Prior research has primarily focused on single-quantity trade requests. In this work, we extend the framework to handle multiple-quantity trade requests and present fully formalized matching algorithms for double auctions, along with their correctness proofs. We establish new uniqueness theorems, enabling automatic detection of violations in exchange systems by comparing their output to that of a verified program. All proofs are formalized in the Coq Proof Assistant, and we extract verified OCaml and Haskell programs that could serve as a resource for exchanges and market regulators. We demonstrate the practical applicability of our work by running the verified program on real market data from an exchange to automatically check for violations in the exchange algorithm.
title Double Auctions: Formalization and Automated Checkers
topic Logic in Computer Science
Trading and Market Microstructure
F.3.1; K.4.4
url https://arxiv.org/abs/2410.18751