• KSII Transactions on Internet and Information Systems
    Monthly Online Journal (eISSN: 1976-7277)

DQN Trading System with limited API calls for Stocks with Large Trading Volume Per Second: Design and Real Market Implementation

Vol. 19, No. 4, April 30, 2025
10.3837/tiis.2025.04.006, Download Paper (Free):

Abstract

This research presents an advanced trading system using Deep Q-Network (DQN) agents to achieve consistent returns in high-volume stock trading within an application programming interface (API) call-limited environment. Major stock markets like South Korea, the United States, and Japan impose API call limits to prevent computational overload and market crashes. Our approach overcomes the limitations of simulation-based backtesting by incorporating real-time API call restrictions specific to each country's stock market. Existing algorithmic backtesting techniques often neglect the finite network resources of actual markets and focus on algorithms trained on a single stock or index, lacking alternatives when strategies fail in real-world conditions. Our work addresses the complexities of modern trading, including API call limitations, intricate tax and fee structures, and varying global regulatory environments. Uniquely applied in real time to the Korean stock market, our system employs DQN agents to effectively execute profitable trades. DQN agents are integrated into a practical trading framework that emphasizes rapid decision-making, from data collection to deployment. Testing of the DQN-based strategy within API call limits on the Korean stock market yielded an average daily return of 1.57% over a seven-week period with randomly selected stocks. During this time, the KOSPI and KOSDAQ indices experienced minimal fluctuations of 0.01% and 0.04%, respectively, demonstrating the system's real-world effectiveness and adaptability to market conditions.


Statistics

Show / Hide Statistics

Statistics (Cumulative Counts from December 1st, 2015)
Multiple requests among the same browser session are counted as one view.
If you mouse over a chart, the values of data points will be shown.


Cite this article

[IEEE Style]
H. Kim and J. H. Ko, "DQN Trading System with limited API calls for Stocks with Large Trading Volume Per Second: Design and Real Market Implementation," KSII Transactions on Internet and Information Systems, vol. 19, no. 4, pp. 1167-1187, 2025. DOI: 10.3837/tiis.2025.04.006.

[ACM Style]
Hyochan Kim and Jong Hwan Ko. 2025. DQN Trading System with limited API calls for Stocks with Large Trading Volume Per Second: Design and Real Market Implementation. KSII Transactions on Internet and Information Systems, 19, 4, (2025), 1167-1187. DOI: 10.3837/tiis.2025.04.006.

[BibTeX Style]
@article{tiis:102446, title="DQN Trading System with limited API calls for Stocks with Large Trading Volume Per Second: Design and Real Market Implementation", author="Hyochan Kim and Jong Hwan Ko and ", journal="KSII Transactions on Internet and Information Systems", DOI={10.3837/tiis.2025.04.006}, volume={19}, number={4}, year="2025", month={April}, pages={1167-1187}}