DOI QR코드

DOI QR Code

Development of a Stock Auto-Trading System using Condition-Search

  • Gyu-Sang Cho (Dept. of Computer and Software, Dongyang University)
  • Received : 2023.07.16
  • Accepted : 2023.07.26
  • Published : 2023.08.31

Abstract

In this paper, we develope a stock trading system that automatically buy and sell stocks in Kiwoom Securities' HTS system. The system is made by using Kiwoom Open API+ with the Python programming language. A trading strategy is based on an enhanced system query method called a Condition-Search. The Condition-Search script is edited in Kiwoom Hero 4 HTS and the script is stored in the Kiwoom server. The Condition-Search script has the advantage of being easy to change the trading strategy because it can be modified and changed as needed. In the HTS system, up to ten Condition-Search scripts are supported, so it is possible to apply various trading methods. But there are some restrictions on transactions and Condition-Search in Kiwoom Open API+. To avoid one problem that has transaction number and frequency are restricted, a method of adjusting the time interval between transactions is applied and the other problem that do not support a threading technique is solved by an IPC(Inter-Process Communication) with multiple login IDs.

Keywords

Acknowledgement

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

References

  1. H. Cho and H. J. Shin, "Trading Strategies Using Reinforcement Learning", Journal of the Korea Academia-Industrial Cooperation Society, Vol. 22, No. 1 pp. 123-130, 2021. DOI:https://doi.org/10.5762/KAIS.2021.22.1.12
  2. 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
  3. 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
  4. S. W. Kim and H. S. Choi, "Estimation of GARCH Models and Performance Analysis of Volatility Trading System using Support Vector Regression", Journal of Intelligence and Information Systems, Vol. 23, Issue 2, pp.107-122. 2017 DOI: https://doi.org/10.13088/jiis.2017.23.107
  5. Kiwoom Open API+ Developer's Guide, https://download.kiwoom.com/web/openapi/kiwoom_openapi_plus_devguide_ver_1.1.pdf
  6. CYBOS Plus, Daishin Securities, https://money2.daishin.com/E5/WTS/Customer/GuideTrading/DW_CybosPlus_Page.aspx?p=8812&v=8632&m=9508
  7. Open API Guide, eBEST INVESTMENT & SECURITIES, https://openapi.ebestsec.co.kr/intro
  8. AiDA Lab, Open API of Securities, https://aidalab.tistory.com/100
  9. Information guide on restrictions of transactions(rev.), Kiwoom Open API+ https://www.kiwoom.com/h/common/bbs/VBbsNoticeNWOFZView
  10. Python Documentation, "multiprocessing - Process-based parallelism", https://docs.python.org/3/library/multiprocessing.html