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

Detecting Toxic Flow

Author

Listed:
  • 'Alvaro Cartea
  • Gerardo Duran-Martin
  • Leandro S'anchez-Betancourt

Abstract

This paper develops a framework to predict toxic trades that a broker receives from her clients. Toxic trades are predicted with a novel online Bayesian method which we call the projection-based unification of last-layer and subspace estimation (PULSE). PULSE is a fast and statistically-efficient online procedure to train a Bayesian neural network sequentially. We employ a proprietary dataset of foreign exchange transactions to test our methodology. PULSE outperforms standard machine learning and statistical methods when predicting if a trade will be toxic; the benchmark methods are logistic regression, random forests, and a recursively-updated maximum-likelihood estimator. We devise a strategy for the broker who uses toxicity predictions to internalise or to externalise each trade received from her clients. Our methodology can be implemented in real-time because it takes less than one millisecond to update parameters and make a prediction. Compared with the benchmarks, PULSE attains the highest PnL and the largest avoided loss for the horizons we consider.

Suggested Citation

  • 'Alvaro Cartea & Gerardo Duran-Martin & Leandro S'anchez-Betancourt, 2023. "Detecting Toxic Flow," Papers 2312.05827, arXiv.org.
  • Handle: RePEc:arx:papers:2312.05827
    as

    Download full text from publisher

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

    References listed on IDEAS

    as
    1. Grossman, Sanford J & Stiglitz, Joseph E, 1980. "On the Impossibility of Informationally Efficient Markets," American Economic Review, American Economic Association, vol. 70(3), pages 393-408, June.
    2. Copeland, Thomas E & Galai, Dan, 1983. "Information Effects on the Bid-Ask Spread," Journal of Finance, American Finance Association, vol. 38(5), pages 1457-1469, December.
    3. Glosten, Lawrence R. & Milgrom, Paul R., 1985. "Bid, ask and transaction prices in a specialist market with heterogeneously informed traders," Journal of Financial Economics, Elsevier, vol. 14(1), pages 71-100, March.
    4. Álvaro Cartea & Leandro Sánchez-Betancourt, 2023. "Optimal execution with stochastic delay," Finance and Stochastics, Springer, vol. 27(1), pages 1-47, January.
    5. Roel Oomen, 2017. "Execution in an aggregator," Quantitative Finance, Taylor & Francis Journals, vol. 17(3), pages 383-404, March.
    6. Alvaro Arroyo & Alvaro Cartea & Fernando Moreno-Pino & Stefan Zohren, 2023. "Deep Attentive Survival Analysis in Limit Order Books: Estimating Fill Probabilities with Convolutional-Transformers," Papers 2306.05479, arXiv.org.
    7. Kyle, Albert S, 1985. "Continuous Auctions and Insider Trading," Econometrica, Econometric Society, vol. 53(6), pages 1315-1335, November.
    8. Amihud, Yakov & Mendelson, Haim, 1980. "Dealership market : Market-making with inventory," Journal of Financial Economics, Elsevier, vol. 8(1), pages 31-53, March.
    9. Albert S. Kyle, 1989. "Informed Speculation with Imperfect Competition," The Review of Economic Studies, Review of Economic Studies Ltd, vol. 56(3), pages 317-355.
    10. M. Butz & R. Oomen, 2019. "Internalisation by electronic FX spot dealers," Quantitative Finance, Taylor & Francis Journals, vol. 19(1), pages 35-56, January.
    11. Easley, David, et al, 1996. "Liquidity, Information, and Infrequently Traded Stocks," Journal of Finance, American Finance Association, vol. 51(4), pages 1405-1436, September.
    Full references (including those not matched with items on IDEAS)

    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. Ledenyov, Dimitri O. & Ledenyov, Viktor O., 2015. "Wave function method to forecast foreign currencies exchange rates at ultra high frequency electronic trading in foreign currencies exchange markets," MPRA Paper 67470, University Library of Munich, Germany.
    2. Vayanos, Dimitri & Wang, Jiang, 2013. "Market Liquidity—Theory and Empirical Evidence ," Handbook of the Economics of Finance, in: G.M. Constantinides & M. Harris & R. M. Stulz (ed.), Handbook of the Economics of Finance, volume 2, chapter 0, pages 1289-1361, Elsevier.
    3. Bruno Biais, 1990. "Formation des prix sur les marchés de contrepartie. Une synthèse de la littérature récente," Revue Économique, Programme National Persée, vol. 41(5), pages 755-788.
    4. Biais, Bruno & Glosten, Larry & Spatt, Chester, 2005. "Market microstructure: A survey of microfoundations, empirical results, and policy implications," Journal of Financial Markets, Elsevier, vol. 8(2), pages 217-264, May.
    5. Corò, Filippo & Dufour, Alfonso & Varotto, Simone, 2013. "Credit and liquidity components of corporate CDS spreads," Journal of Banking & Finance, Elsevier, vol. 37(12), pages 5511-5525.
    6. Lof, Matthijs & van Bommel, Jos, 2023. "Asymmetric information and the distribution of trading volume," Journal of Corporate Finance, Elsevier, vol. 82(C).
    7. Pascual, Roberto & Escribano, Álvaro & Tapia, Mikel, 1999. "How does liquidity behave? A multidimensional analysis of NYSE stocks," DEE - Working Papers. Business Economics. WB 6433, Universidad Carlos III de Madrid. Departamento de Economía de la Empresa.
    8. Mazza, Paolo, 2015. "Price dynamics and market liquidity: An intraday event study on Euronext," The Quarterly Review of Economics and Finance, Elsevier, vol. 56(C), pages 139-153.
    9. Guo, Bin & Zhang, Wei & Chen, Shu-Heng & Zhang, Yongjie, 2015. "The optimal pricing of a market maker in a heterogeneous agent economy," Finance Research Letters, Elsevier, vol. 14(C), pages 178-187.
    10. Jagjeev Dosanjh, 2017. "Exchange Initiatives and Market Efficiency: Evidence from the Australian Securities Exchange," PhD Thesis, Finance Discipline Group, UTS Business School, University of Technology, Sydney, number 1-2017.
    11. Lof, Matthijs & Bommel, Jos van, 2018. "Asymmetric information and the distribution of trading volume," Research Discussion Papers 1, Bank of Finland.
    12. repec:zbw:bofrdp:001 is not listed on IDEAS
    13. repec:uts:finphd:34 is not listed on IDEAS
    14. Lee, Jieun & Ryu, Doojin, 2019. "How does FX liquidity affect the relationship between foreign ownership and stock liquidity?," Emerging Markets Review, Elsevier, vol. 39(C), pages 101-119.
    15. Millicent Chang & Xiaolin Qian & Jing Yu & Yvonne See, 2017. "Does director trading change the information environment?," Australian Journal of Management, Australian School of Business, vol. 42(2), pages 205-229, May.
    16. Murphy Jun Jie Lee, 2013. "The Microstructure of Trading Processes on the Singapore Exchange," PhD Thesis, Finance Discipline Group, UTS Business School, University of Technology, Sydney, number 4, July-Dece.
    17. Thanh Huong Nguyen, 2019. "Information and Noise in Stock Markets: Evidence on the Determinants and Effects Using New Empirical Measures," PhD Thesis, Finance Discipline Group, UTS Business School, University of Technology, Sydney, number 7-2019.
    18. Agrawal, Vipin & Kothare, Meeta & Rao, Ramesh K. S. & Wadhwa, Pavan, 2004. "Bid-ask spreads, informed investors, and the firm's financial condition," The Quarterly Review of Economics and Finance, Elsevier, vol. 44(1), pages 58-76, February.
    19. Kendall, Chad, 2018. "The time cost of information in financial markets," Journal of Economic Theory, Elsevier, vol. 176(C), pages 118-157.
    20. repec:zbw:bofrdp:2018_001 is not listed on IDEAS
    21. Chang, Sanders S. & Wang, F. Albert, 2015. "Adverse selection and the presence of informed trading," Journal of Empirical Finance, Elsevier, vol. 33(C), pages 19-33.
    22. Iraklis Kollias & John Leventides & Vassilios G. Papavassiliou, 2024. "On the solution of games with arbitrary payoffs: An application to an over‐the‐counter financial market," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 29(2), pages 1877-1895, April.
    23. Qin Wang & Hsiao-Fen Yang, 2015. "Earnings announcements, trading volume, and price discovery: evidence from dual class firms," Review of Quantitative Finance and Accounting, Springer, vol. 44(4), pages 669-700, May.

    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:2312.05827. 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.