[go: up one dir, main page]

IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2102.10925.html
   My bibliography  Save this paper

CoinTossX: An open-source low-latency high-throughput matching engine

Author

Listed:
  • Ivan Jericevich
  • Dharmesh Sing
  • Tim Gebbie
Abstract
We deploy and demonstrate the CoinTossX low-latency, high-throughput, open-source matching engine with orders sent using the Julia and Python languages. We show how this can be deployed for small-scale local desk-top testing and discuss a larger scale, but local hosting, with multiple traded instruments managed concurrently and managed by multiple clients. We then demonstrate a cloud based deployment using Microsoft Azure, with large-scale industrial and simulation research use cases in mind. The system is exposed and interacted with via sockets using UDP SBE message protocols and can be monitored using a simple web browser interface using HTTP. We give examples showing how orders can be be sent to the system and market data feeds monitored using the Julia and Python languages. The system is developed in Java with orders submitted as binary encodings (SBE) via UDP protocols using the Aeron Media Driver as the low-latency, high throughput message transport. The system separates the order-generation and simulation environments e.g. agent-based model simulation, from the matching of orders, data-feeds and various modularised components of the order-book system. This ensures a more natural and realistic asynchronicity between events generating orders, and the events associated with order-book dynamics and market data-feeds. We promote the use of Julia as the preferred order submission and simulation environment.

Suggested Citation

  • Ivan Jericevich & Dharmesh Sing & Tim Gebbie, 2021. "CoinTossX: An open-source low-latency high-throughput matching engine," Papers 2102.10925, arXiv.org.
  • Handle: RePEc:arx:papers:2102.10925
    as

    Download full text from publisher

    File URL: http://arxiv.org/pdf/2102.10925
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Platt, Donovan & Gebbie, Tim, 2018. "Can agent-based models probe market microstructure?," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 503(C), pages 1092-1106.
    2. Ivan Jericevich & Patrick Chang & Tim Gebbie, 2020. "Comparing the market microstructure between two South African exchanges," Papers 2011.04367, arXiv.org.
    3. J. Lussange & A. Belianin & S. Bourgeois-Gironde & B. Gutkin, 2018. "A bright future for financial agent-based models," Papers 1801.08222, arXiv.org.
    4. P. A. W Lewis & G. S. Shedler, 1979. "Simulation of nonhomogeneous poisson processes by thinning," Naval Research Logistics Quarterly, John Wiley & Sons, vol. 26(3), pages 403-413, September.
    5. Patrick Chang & Etienne Pienaar & Tim Gebbie, 2020. "The Epps effect under alternative sampling schemes," Papers 2011.11281, arXiv.org, revised Aug 2021.
    6. Diane Wilcox & Tim Gebbie, 2014. "Hierarchical causality in financial economics," Papers 1408.5585, arXiv.org, revised Sep 2014.
    7. LeBaron, Blake, 2006. "Agent-based Computational Finance," Handbook of Computational Economics, in: Leigh Tesfatsion & Kenneth L. Judd (ed.), Handbook of Computational Economics, edition 1, volume 2, chapter 24, pages 1187-1233, Elsevier.
    8. Large, Jeremy, 2007. "Measuring the resiliency of an electronic limit order book," Journal of Financial Markets, Elsevier, vol. 10(1), pages 1-25, February.
    9. Platt, Donovan, 2020. "A comparison of economic agent-based model calibration methods," Journal of Economic Dynamics and Control, Elsevier, vol. 113(C).
    10. Emmanuel Bacry & Jean-Fran�ois Muzy, 2014. "Hawkes model for price and trades high-frequency dynamics," Quantitative Finance, Taylor & Francis Journals, vol. 14(7), pages 1147-1166, July.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Ivan Jericevich & Patrick Chang & Tim Gebbie, 2021. "Simulation and estimation of a point-process market-model with a matching engine," Papers 2105.02211, arXiv.org, revised Aug 2021.
    2. Ivan Jericevich & Patrick Chang & Tim Gebbie, 2021. "Simulation and estimation of an agent-based market-model with a matching engine," Papers 2108.07806, arXiv.org, revised Aug 2021.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Ivan Jericevich & Patrick Chang & Tim Gebbie, 2021. "Simulation and estimation of an agent-based market-model with a matching engine," Papers 2108.07806, arXiv.org, revised Aug 2021.
    2. Dicks, Matthew & Paskaramoorthy, Andrew & Gebbie, Tim, 2024. "A simple learning agent interacting with an agent-based market model," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 633(C).
    3. Ivan Jericevich & Murray McKechnie & Tim Gebbie, 2021. "Calibrating an adaptive Farmer-Joshi agent-based model for financial markets," Papers 2104.09863, arXiv.org.
    4. Kyungsub Lee, 2023. "Multi-kernel property in high-frequency price dynamics under Hawkes model," Papers 2302.11822, arXiv.org.
    5. Kyungsub Lee, 2022. "Application of Hawkes volatility in the observation of filtered high-frequency price process in tick structures," Papers 2207.05939, arXiv.org, revised Sep 2024.
    6. Massil Achab & Emmanuel Bacry & Jean-Franc{c}ois Muzy & Marcello Rambaldi, 2017. "Analysis of order book flows using a nonparametric estimation of the branching ratio matrix," Papers 1706.03411, arXiv.org.
    7. Donovan Platt, 2022. "Bayesian Estimation of Economic Simulation Models Using Neural Networks," Computational Economics, Springer;Society for Computational Economics, vol. 59(2), pages 599-650, February.
    8. Lee, Kyungsub & Seo, Byoung Ki, 2017. "Marked Hawkes process modeling of price dynamics and volatility estimation," Journal of Empirical Finance, Elsevier, vol. 40(C), pages 174-200.
    9. Patrick Chang & Roger Bukuru & Tim Gebbie, 2019. "Revisiting the Epps effect using volume time averaging: An exercise in R," Papers 1912.02416, arXiv.org, revised Feb 2020.
    10. Tubbenhauer, Tobias & Fieberg, Christian & Poddig, Thorsten, 2021. "Multi-agent-based VaR forecasting," Journal of Economic Dynamics and Control, Elsevier, vol. 131(C).
    11. Lee, Kyungsub & Seo, Byoung Ki, 2017. "Modeling microstructure price dynamics with symmetric Hawkes and diffusion model using ultra-high-frequency stock data," Journal of Economic Dynamics and Control, Elsevier, vol. 79(C), pages 154-183.
    12. Roger Martins & Dieter Hendricks, 2016. "The statistical significance of multivariate Hawkes processes fitted to limit order book data," Papers 1604.01824, arXiv.org, revised Apr 2016.
    13. Hai-Chuan Xu & Wei-Xing Zhou, 2020. "Modeling aggressive market order placements with Hawkes factor models," PLOS ONE, Public Library of Science, vol. 15(1), pages 1-12, January.
    14. Platt, Donovan, 2020. "A comparison of economic agent-based model calibration methods," Journal of Economic Dynamics and Control, Elsevier, vol. 113(C).
    15. Emmanuel Bacry & Thibault Jaisson & Jean-Francois Muzy, 2014. "Estimation of slowly decreasing Hawkes kernels: Application to high frequency order book modelling," Papers 1412.7096, arXiv.org.
    16. Choi, So Eun & Jang, Hyun Jin & Lee, Kyungsub & Zheng, Harry, 2021. "Optimal market-Making strategies under synchronised order arrivals with deep neural networks," Journal of Economic Dynamics and Control, Elsevier, vol. 125(C).
    17. Dieter Hendricks & Tim Gebbie & Diane Wilcox, 2015. "Detecting intraday financial market states using temporal clustering," Papers 1508.04900, arXiv.org, revised Feb 2017.
    18. Mathieu, Philippe & Morvan, Rémi, 2019. "A deterministic behaviour for realistic price dynamics," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 525(C), pages 33-49.
    19. Thibault Jaisson, 2015. "Market impact as anticipation of the order flow imbalance," Quantitative Finance, Taylor & Francis Journals, vol. 15(7), pages 1123-1135, July.
    20. Donovan Platt, 2019. "A Comparison of Economic Agent-Based Model Calibration Methods," Papers 1902.05938, arXiv.org.

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:arx:papers:2102.10925. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: arXiv administrators (email available below). General contact details of provider: http://arxiv.org/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.