Font Size: a A A

Design And Implementation Of Stock Trading System Based On Redis

Posted on:2019-02-03Degree:MasterType:Thesis
Country:ChinaCandidate:J J SunFull Text:PDF
GTID:2428330572951621Subject:Engineering
Abstract/Summary:PDF Full Text Request
In recent years,with the popularity of the "Internet+" Internet concept,the combination of the Internet and traditional industries has become a new form of China's economic development.The combination of the financial industry and the Internet has become a general trend.Although stock trading software already exists on the market today,it has been found that there are flaws and deficiencies through research and analysis of software.First of all,as the scale of users continues increasing,the stability of the system will decline.Second,in the tradable time,the stock market shows a slight lag,giving traders a lot of trouble.In addition,the stock information provided by some software is too professional,which is not conducive to the learning of retail investors.The interface design has not fully taken into account the user's operating habits.Therefore,it is very important to develop a stock trading system with complete functions,good performance,and excellent interface.This paper first establishes the stock trading system in combination with hot news,stock details,K-line trends and stock trading.By providing multi-dimensional data,the user can understand as much information as possible,and on this basis,the calculation of similar K-line by using the dynamic time planning algorithm,and the accuracy of the prediction result is improved by the selection of observation samples and the weighted calculation of results;Then,based on the software engineering idea,a set of stocks based on the B/S structure is designed and implemented through demand analysis.Background management platform and mobile trading platform based on C/S architecture,and through the Spring MVC framework to complete the view,control,model three-tier structure of the code.The system uses a distributed system architecture and uses Nginx to control load balancing.It takes into account the increase in the number of users in the later period,and extends the machine nodes horizontally to solve system bottlenecks and efficiency problems.Use the JS script to periodically call the Web Socket interface provided by the third-party data service provider to timely store the market data in Redis to improve the response speed of the interface.In order to enhance the user's trading experience,the entire transaction process is divided into three independent sub processes,which are user entrustment,entrustment and transaction return,and deal with different transaction processes.The Quartz scheduling framework concurrently handles different transaction processes to improve the transaction efficiency of the system.The system includes three parts: market module,transaction module and transaction management module.The transaction module is developed through the similar K-line query analysis function.The user can view the K-line details of the most closely related stock trends to protect the investment.The transaction module includes four functions: asset query,buy and sell mandate,withdrawal mandate,and entrusted record query.This module is the core module of the system.Through the realization of this module,the user can experience the real stock trading process by obtaining the simulated coin after the APP registration is successful.The transaction management module is for system administrators and supports account management,risk management,transaction management,and settlement management.The system administrator uses the transaction management platform to deal with the trading days,transaction rates,user accounts,and account flow involved in the stock trading process.Comprehensive management of information ensures the safe operation of the system.Finally,the system test environment is set up,and the system functions and performance are tested to ensure that the system can still operate normally under the condition that the number of visits increases,and the expected effect of the enterprise can be achieved.The system has undergone complete functional testing and performance testing to meet the initial design requirements.After being put into use online,it shows that the software solves the problems existing in similar software on the market and makes the user's trading experience greatly improved.It has very good practical significance.
Keywords/Search Tags:Internet+, Redis, High Concurrency, Real-time, Stock Trading
PDF Full Text Request
Related items