1 Introduction to Stock Index Futures Trading System
The stock index futures and option trading systems mentioned in this Article refer to the futures and option trading systems at the brokerage end. Futures customers connect to the exchange matchmaking platform through the trading system. The system provides customer ordering, market information, fund settlement, risk control, and other functions.
Similar to the stock trading system, the stock index futures trading system provides functions such as online order placement and market query. Compared with the stock trading system, futures and option trading require more complex functions such as risk control and fund settlement. In terms of technical architecture, as the subject of transactions is indexes or options, precious metals, and the global market, market data changes more frequently and is more risky than the stock market. It requires higher real-time and stability of the system.
In modern futures and option trading, a considerable number of investors are engaged in fast and frequent transactions to pursue short-term trading opportunities. The requirements on the brokerage trading system can provide a certain degree of procedural trading functions and flexible trading methods. In the face of fierce business competition, brokers should be able to provide diversified trading methods and quickly launch new trading models to attract more investors. In the overall planning of the financial futures trading system, the following points should be taken into account:
1) The transaction system should provide a unified transaction platform to support multiple product transactions, including financial futures, options, local and global markets.
2) The system should support multiple transaction channels, including downloadable transaction clients, Web transactions, telephone commissions, and client proxies.
3) system planning should separate core information services of enterprises and peripheral application systems to support a wide range of peripheral application systems.
4) in the face of fierce business competition and business changes, the system must support rapid development, deployment, and continuous release of new functions.
2 system business framework
This topic describes the business framework of stock index futures trading and introduces the functions of the Futures Trading System at a high-level level. The entire stock index futures trading system includes the following parts: core service system, internal operation and maintenance system of brokers, transactions and quotations excuse, client transaction terminal system, etc.
◆ Core Service System
Provides core functions of the stock index futures system, including order processing, transaction management, market service, risk management, basic data service, BackOffice Service (position settlement, etc.), and data center (fund settlement, etc) service. These functions provide external application systems as components or services.
◆ Operation and Maintenance System
The operating service system provides all necessary operation support for the transaction system, including the BackOffice operation terminal, risk management/monitoring terminal, datacenter operation terminal, and dealer/customer agent transaction terminal. These systems run in the LAN of brokers and are provided to various users of brokers.
◆ Unified trading and quote service interfaces
The core business services of the futures trading system should be provided to users of WLAN or other channels. A unified trading and quote service interface should be used to provide services (SOA) integration with other external transaction terminals.
◆ Transaction Terminal
The transaction terminal interacts with the core system through a unified transaction and quote service interface. These transaction terminals include downloadable independent clients, web page clients, and telephone clients (converted by language modules. In the technical architecture section, the clients involved are independent clients.
◆ Unified Gateway (transactions and quotations)
Core Services are connected to local exchanges and global markets through a unified trading and quote gateway.
3. Technical solution planning
Based on the nature of the core transaction system, the following factors must be taken into account in the planning of technical solutions-
◆ High Performance Requirements)
Compared with other management information systems, the stock index futures trading system requires higher performance, including real-time refresh of market data and transaction order processing.
◆ Scalability requirements)
The stock index futures trading system usually supports a large number of concurrent users. As the business grows, trading customers continue to grow rapidly, which requires the system to be able to expand easily to cope with the increase of system load.
◆ High stability requirements (availability)
The importance of system stability on the transaction system is self-evident. The system has the ability to prevent single point of failure in the overall architecture, and to have a certain degree of fault recovery (fail-over.
◆ Integration with other systems
With the rapid development of the financial industry and business innovation, the transaction system also requires the ability to integrate multiple external systems, including third-party systems, including the Internal Customer Management System (CRM) of the enterprise ), exchange, bank, etc.
◆ Supports rapid development and business innovation
Market competition is also a time competition, which requires the entire transaction system to be completed in the shortest time from planning, development and deployment. In addition, business innovation in the financial industry is accelerating, and new trading methods and testing are constantly emerging. IT systems must be able to quickly reflect and support such changes. When selecting a technology, you must consider that the technical solution can meet this requirement.
To sum up, the technical solutions used should be able to meet the above requirements. Currently, there are two main types of C/C ++ and Java technologies used in futures and stock trading systems. c/C ++ is widely used in the domestic industry to implement the core transaction system. This article mainly describes the use of Java technology to implement the entire transaction core and client. Compared with C/C ++, Java has the following features when it meets the requirements of the transaction system:
◆ Performance Requirements)
Compared with the C/C ++ technology, the performance of core transaction systems built using Java may be the primary consideration. However, with the development of Java and optimization technology, Java's runtime performance has been significantly improved compared with earlier versions and has been widely used in server programs and real-time applications. On the other hand, performance problems are always associated with specific requirements. Using Java is a feasible option as long as the system performance indicators are met. In the author's project practice, Java is used to build a real-time transaction system. With a reasonable technical architecture, it can fully meet the performance requirements of the system.
◆ Scalability)
Using Java-related technologies and middleware such as WebSphere and WebLogic to build a high-concurrency application system has mature industry practices and fast implementation capabilities.
◆ Stability requirements (availability)
Compared with C technology, using Java middleware software, loadbalance and fail-over for server applications are a very convenient and mature technology.
◆ Integration with other systems
Java/J2EE is an open technical standard with extensive industry and development community support. It can be quickly and easily integrated with other systems.
◆ Supports rapid development and business innovation
Compared with C/C ++, Java's rapid development capabilities are obvious. Due to the emergence of a large number of mature open-source frameworks and basic components, Java Development is much more efficient than C/C ++ in common enterprise system development, it can quickly implement new business functions.
To sum up, the Java technology can fully meet the requirements of the stock index futures trading system. As the middleware technology solves load balance, fail-over and other key issues, developers are more concerned with business implementation, this greatly shortens the development time and labor costs of the entire system. At the same time, the development efficiency of the Java language also enables the rapid implementation of new business innovation on the system. These factors make using Java to build the stock index futures trading system a feasible and good choice.
4. Technical Architecture
This topic describes the technical architecture of stock index futures, including the overall technical framework and physical operating environment.
4.1 Overall technical framework
◆ Client
There are two types of applications on the client. One is swing-based GUI applications, such as downloadable transaction clients and data maintenance terminals. The other is web-based applications, such as web page transaction applications, for GUI applcition, the system design guiframework helps all GUI application development. Similar to Web applciation, you can use the mainstream web MVC framework. It corresponds to the Internet client application and uses WebService technology to interact with the server. The message system is used for corresponding order messages and market quotations.
◆ Server side
The main service of the server is published in WebService mode for the client to call. The market quotation Service accepts the information from the market (messagedrivenbean), parses the information and sends it to the client.
Specific service components can use framework technologies such as spring IOC.
◆ Message Gateway
Use the socket or API call method to receive messages from the market. After processing, it is sent to message-oriented middleware.
◆ Data Storage
Mature data storage frameworks such as Hibernate can be used for data storage.
4.2 physical operating environment
To deploy applications, consider the load balance and fail-over functions of the system, and use the Cluster Features of application server and message middleware to ensure system stability and scalability.
5 Summary
Using Java to develop distributed large-scale application systems, the technology is quite mature. Using services, components and mature open-source frameworks and middleware servers, you can quickly build large-scale stock index futures trading systems, it is easy to expand and maintain.