DOI QR코드

DOI QR Code

Development of a Limit Order Book Analysis Tool for Automated Stock Trading Systems

  • Gyu-Sang Cho (Dept. of Computer and Software, Dongyang University)
  • Received : 2024.07.20
  • Accepted : 2024.08.03
  • Published : 2024.08.31

Abstract

In this paper, we develope a LOB(Limit Order Book) analyzing tool for an automated trading system, which features real-time and offline analysis of LOB data in conjunction with execution data. The 10-tier LOB data analyzer developed in this paper, which contains ask/bid prices and the execution data, receivs transaction requests in real-time from the Kiwoom Open API+ server. In the OnReceiveTrData event, the transaction data from the server is received and processed. The real-time data, triggered by the transaction, is received and processed in the OnReceiveRealData event. These two types of data are stored in a database and replayed in the same way as if it were a real-time situation in simulation mode. The LOB data are selectively read and analyzed in a necessary time points. The tool provides various features such as bar chart analysis and pattern analysis of the total shares on the bid side and ask side, which are used to develop a tool to accurately determine the timing of stock trading.

Keywords

Acknowledgement

This study was supported by a grant from Dong Yang University in 2023

References

  1. Kiwoom Open API+ Developer's Guide, https://download.kiwoom.com/web/openapi/kiwoom_openapi_plus_devguide_ver_1.1.pdf
  2. Open API Guide, eBEST INVESTMENT & SECURITIES, https://openapi.ebestsec.co.kr/intro
  3. AiDA Lab, Open API of Securities, https://aidalab.tistory.com/100
  4. B. H. Cho, "Analysis and Design of Stock Item Buy/Sell Recommend System using AI Machine Learning Technology," The Journal of The Institute of Internet, Broadcasting and Communication (IIBC), Vol. 21, No. 4, pp.103-108, 2021. DOI: https://doi.org/10.7236/JIIBC.2021.21.4.103
  5. E. Yi and W. B. Lee, "A Study on Stock Trading Method based on Volatility Breakout Strategy using a Deep Neural Network," The Journal of the Korea Contents Association, '22 Vol. 22 No. 3, 2022. DOI: https://doi.org/10.5392/JKCA.2022.22.03.081
  6. G. S. Cho, "Development of a Stock Auto-Trading System using Condition-Search," IJIBC (International Journal of Internet, Broadcasting and Communication), Vol.15 No.3, pp. 215- 222 , 2023. DOI: http://dx.doi.org/10.7236/IJIBC.2023.15.3.215
  7. E. Ryoo, K. Y. Lee, and Y. D. Chung, "Deep Learning-based Stock Price Prediction Using Limit Order Books and News Headlines," The Journal of Society for e-Business Studies, Vol.27, No.1, February 2022, pp.63-79, DOI: https://doi.org/10.7838/jsebs.2022.27.1.063
  8. H. Hultin, H. Hult, A. Proutiere, S. Samama, and A. Tarighati, "A generative model of a limit order book using recurrent neural networks", Quantitative Finance, Vol. 23, Issue 6, pp.931-958, 2023. DOI: https://doi.org/10.1080/14697688.2023.2205583
  9. K. Jain, N. Firoozye, J. Kochems, and P. Treleaven, "Limit Order Book Simulations: A Review," arXiv:2402.17359 [q-fin.TR] DOI: http://dx.doi.org/10.2139/ssrn.4745587
  10. Information guide on restrictions of transactions(rev.), Kiwoom Open API+, https://www.kiwoom.com/h/common/bbs/VBbsNoticeNWOFZView