Order management system and method based on combination of software and hardware

By introducing a combination of FPGA hardware modules and software modules in the order management system to process the master orders sent by the trading strategy module, the problems of delay and insufficient throughput in the existing technology are solved, and a more efficient transaction execution and system are achieved. Stability to meet the rapid needs of financial transactions.

CN118608281APending Publication Date: 2024-09-06SHANGHAI TIANYAN PRIVATE EQUITY FUND MANAGEMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410568925.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-09
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing pure software order management systems have latency problems in microsecond-level operations, and the time-consuming transmission of data along the network card-CPU-network card path cannot be avoided, resulting in system throughput and latency that cannot meet the requirements of financial transactions.

Method used

Adopt an order management system based on a combination of software and hardware, introduce FPGA hardware modules for master order processing, and combine the information provided by the software modules for dedicated calculations to improve transaction execution response speed and efficiency, reduce delays, and ensure transactions through a variety of automated risk controls effectiveness and system stability.

Benefits of technology

It significantly improves the response speed and system throughput of transaction execution, reduces delays, improves system stability and transaction efficiency, avoids various transaction restrictions set by the exchange, and ensures that the impact of problematic orders on the system is minimized.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118608281A
    Figure CN118608281A
Patent Text Reader

Abstract

The invention provides an order management system based on combination of software and hardware, which is used for receiving and processing a mother order sent by a strategy module in a transaction system, and comprises a software module and a hardware module which are in communication connection, wherein the hardware module is used for receiving the mother list and processing the mother list according to the information sent by the software module. According to the application, the mother order sent by the strategy module in the automatic transaction is processed, the FPGA hardware module is introduced into the order management system architecture, and special operation is carried out according to various information provided by the software module, so that the response speed and efficiency of transaction execution are remarkably improved, the delay is reduced, only about 60ns is needed from receiving the mother order to finishing the processing, and the cost is reduced. And the overall stability of the system is higher, and the fluctuation is close to 0.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of financial transaction systems, and in particular to an order management system and method based on the combination of software and hardware. Background Art

[0002] With the rapid development of big data and artificial intelligence, it has become a major trend to improve efficiency and customer experience with the help of financial technology. At the same time, with the development of quantitative trading and high-frequency trading, the financial industry's requirements for transaction speed are also increasing. In the process of using the trading system for automated trading, the strategy module in the trading system first receives the market conditions and generates orders or cancellations after processing and calculation. Then the orders or cancellations are sent to the order management system for processing and finally sent to the counter. The counter executes the corresponding orders or cancellations and then reports them to the order management system.

[0003] Most of the current order management systems are pure software systems, which take microseconds to run, and the data needs to go through the path of network card-CPU-network card, which is time-consuming. The software system is also affected by complex factors such as system scheduling, and the delay fluctuates greatly. In extreme cases, it will have a bad impact on the business. Therefore, pure software systems can no longer meet the business requirements for system throughput and delay. Summary of the invention

[0004] To solve the above problems, the first aspect of the present application provides an order management system based on a combination of software and hardware, which is used to receive and process parent orders sent from a strategy module in a trading system. The order management system includes a software module and a hardware module that are communicatively connected; wherein the hardware module is used to receive the parent order and process the parent order according to the information sent by the software module.

[0005] This application processes the parent order sent by the strategy module in automated trading, introduces the FPGA hardware module into the order management system architecture, and performs special operations based on various information provided by the software module, which significantly improves the response speed and efficiency of transaction execution and reduces latency. It only takes about 60ns from receiving the parent order to completing the processing, which improves the system throughput, and the overall stability of the system is higher, with volatility close to 0.

[0006] In some embodiments, the software module includes a first risk control unit, and the hardware module includes a second risk control unit; the second risk control unit receives the risk control conditions sent from the first risk control unit to perform risk control on the parent order, and releases the parent order that meets the risk control conditions, otherwise it will be rejected.

[0007] In some embodiments, the first risk control unit includes a first risk control sub-unit, and the second risk control unit includes a second risk control sub-unit; the second risk control sub-unit receives the trading contract list sent from the first risk control sub-unit and performs contract risk control on the parent order; wherein the second risk control sub-unit determines whether the parent order is in the trading contract list, and releases the parent order in the trading contract list, otherwise it is rejected; and / or, the second risk control sub-unit determines whether the current time is within the trading time of the trading contract list, and releases the parent order if it is within the trading time, otherwise it is rejected.

[0008] In some embodiments, the first risk control unit includes a third risk control sub-unit, and the second risk control unit includes a fourth risk control sub-unit; the fourth risk control sub-unit receives the contract position information sent from the third risk control sub-unit to perform position risk control on the parent order; wherein the fourth risk control sub-unit determines whether the order quantity of the parent order will cause the contract to exceed the maximum position quantity in the contract position information, and if not, the parent order will be released, otherwise it will be rejected.

[0009] In some embodiments, the first risk control unit includes a fifth risk control sub-unit, and the second risk control unit includes a sixth risk control sub-unit; the sixth risk control sub-unit receives the unfinished order information sent from the fifth risk control sub-unit to perform self-trading risk control on the parent order; wherein the unfinished order information includes the maximum buy order price among the unfinished buy orders and the minimum sell order price among the unfinished sell orders; when the parent order is an LMP order, the sixth risk control sub-unit determines the direction of the LMP order. If the LMP order is an LMP buy order, the sixth risk control sub-unit continues to determine whether the buy order price of the LMP buy order is less than the minimum sell order price. If so, the parent order is released, otherwise it is rejected; if the LMP order is an LMP sell order, the sixth risk control sub-unit continues to determine whether the sell order price of the LMP sell order is greater than the maximum buy order price. If so, the parent order is released, otherwise it is rejected.

[0010] This application improves transaction efficiency through a variety of automated risk controls, while effectively avoiding various transaction restrictions set by the exchange, ensuring the effectiveness of transactions and reducing the impact of problematic orders on system stability.

[0011] In some embodiments, the software module also includes a first disassembly unit, and the hardware module also includes a second disassembly unit; the released parent order is split by the second disassembly unit according to the splitting scoring table sent by the first disassembly unit to obtain multiple child orders; the rejected parent order becomes a waste order, and the hardware module notifies the software module.

[0012] In some embodiments, the order splitting scoring table includes multiple pre-split orders, and the pre-split orders are obtained by the first splitting unit by pre-split the contracts under the account according to the contract opening and closing information under multiple accounts; the second splitting unit splits the parent order into multiple child orders according to the pre-split results in the order splitting scoring table and fills them into the pre-split orders.

[0013] In some implementations, the order splitting scoring table sorts the order priorities of accounts and contracts; the second splitting unit searches for appropriate pre-split order execution sub-orders in order according to the sorting to complete the order.

[0014] The software module generates an order splitting scoring table to improve the effectiveness and efficiency of the order splitting calculation. The hardware module executes order splitting and order submission through table lookup, which greatly improves the overall efficiency of order management.

[0015] In some embodiments, the order splitting scoring table includes the remaining number of order cancellations of the contract; when the parent order is an LMP order, the second splitting unit places an order after finding a contract whose remaining number of order cancellations is not less than the number of orders.

[0016] In some embodiments, the order management system is also used to receive and process the cancellation order sent from the strategy module, and execute the cancellation order on the counter; the second disassembly unit builds a mapping between the parent order and its child order, and stores the order system number corresponding to the child order according to the return information sent by the counter; when the order management system receives the cancellation order, the second disassembly unit locates the child order to be cancelled according to the mapping and the order system number. The positioning of the child order by mapping and the order system number ensures the accuracy and efficiency of the execution of the cancellation order.

[0017] In some embodiments, the order management system is also used to send orders to the counter; the software module includes a first packaging unit, and the hardware module includes a second packaging unit; the second packaging unit packages the packaging information sent by the first packaging unit with the order data or the order cancellation data, and sends the packaged data to the counter.

[0018] In some implementations, the software module maintains the parent order based on the feedback information. When the parent order is traded or cancelled, the software module sends the status information of the parent order to the hardware module, and the hardware module deletes the corresponding parent order and its child order data based on the status information. The real-time maintenance of the parent order by the software module guides the hardware module to update the stored data in a timely manner, which helps to ensure the stable and efficient operation of the system.

[0019] A second aspect of the present invention provides an order management method based on the above order management system, comprising the following steps:

[0020] S1: The hardware module receives the parent order sent by the strategy module in the trading system;

[0021] S2: The software module sends information to the hardware module;

[0022] S3: The hardware module processes the master list according to the information sent by the software module. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0024] Figure 1 This is a schematic diagram of an order management system provided by this application for placing an order;

[0025] Figure 2 This is an embodiment of an order management system for contract risk control provided by this application;

[0026] Figure 3 This is an implementation example of an order management system for position risk control provided by this application;

[0027] Figure 4 This is an implementation example of an order management system for self-trading risk control provided by this application;

[0028] Figure 5 This is a schematic diagram of an order management system provided by this application for canceling an order. DETAILED DESCRIPTION

[0029] The following will be combined with the drawings in the embodiments of this specification to clearly and completely describe the technical solutions in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.

[0031] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the drawings, the drawings are not necessarily drawn to scale unless otherwise indicated. The word "exemplary" is used specifically herein to mean "serving as an example, embodiment, or illustrative". Any embodiment described herein as "exemplary" is not necessarily to be construed as being superior or better than other embodiments.

[0032] The term "and / or" herein is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C can represent including any one or more elements selected from the set consisting of A, B, and C.

[0033] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.

[0034] See also Figure 1 , the first aspect of the present application provides an order management system based on the combination of software and hardware, including a software module and a hardware module connected in communication, wherein the hardware module is used to receive a parent order and process the parent order according to the information sent by the software module. The communication method between the software module and the hardware module in the present application can be any method known to those skilled in the art, for example, bidirectional communication between the two modules is realized through the PCIE channel of the host, that is, both the software module and the hardware module can send messages to each other. The hardware module is an FPGA (Field Programmable Gate Array), which is used to receive the parent order sent from the strategy module in the trading system, and perform various processing on the parent order, such as risk control, splitting, etc. The processing of the parent order by the hardware module is based on the information sent by the software module. Depending on the processing matters, the messages sent by the software module are, for example, risk control conditions, splitting scoring tables, etc.

[0035] In order to avoid subsequent orders from hitting various trading restrictions set by the exchange, in some embodiments, the software module includes a first risk control unit, and the hardware module includes a second risk control unit. The second risk control unit receives the risk control conditions sent from the first risk control unit to perform risk control on the parent order, and releases the parent order that meets the risk control conditions, otherwise it will be rejected. The order management system provided in this application can be applied to various financial products, including but not limited to stocks, funds, futures, bonds, foreign exchange, etc., and each type of financial product has corresponding trading rules. It can be understood that by designing corresponding risk control conditions according to the trading rules corresponding to a specific type of financial product, the order management system in this application can be applied to a variety of financial products.

[0036] The following is a further explanation of the order management system in this application using risk control in futures trading as an example.

[0037] In some embodiments, the first risk control unit includes a first risk control sub-unit, and the second risk control unit includes a second risk control sub-unit. The second risk control sub-unit receives a trading contract list sent from the first risk control sub-unit to perform contract risk control on the parent order. The above trading contract list is one of the risk control conditions. Specifically, the first risk control sub-unit is pre-set with multiple accounts that need to be traded and tradable contracts under each account, and generates a trading contract list. The contract in the futures transaction records the tradable subject matter, trading time and other information. The second risk control sub-unit determines whether the parent order is in the trading contract list based on the trading contract list, and releases the parent order in the list and rejects the parent order that is not in the list; and / or, the second risk control sub-unit determines whether the current time is within the trading time based on the trading contract list. If it is within the trading time, the parent order is released, and if it is not within the trading time, the parent order is rejected. See. Figure 2 , Figure 2 An embodiment of contract risk control is shown. It can be understood that if the above two judgments exist at the same time, the second risk control sub-unit can make judgments in sequence, and the order of the two judgments is not limited; or, the second risk control sub-unit can make two judgments at the same time.

[0038] In some embodiments, the first risk control unit includes a third risk control sub-unit, the second risk control unit includes a fourth risk control sub-unit, and the fourth risk control sub-unit receives the contract position information sent from the third risk control sub-unit to perform position risk control on the parent order. The above-mentioned contract position information is another risk control condition, which includes the maximum position and current position of each contract. The fourth risk control sub-unit determines whether the order quantity of the parent order will cause the contract accepting the order to exceed the maximum position in the contract position information. If it does not exceed, the parent order is released, and if it exceeds, the parent order is rejected.

[0039] In an embodiment of implementing position risk control, the contract position information includes the maximum position and the current position of each contract, wherein the maximum position is pre-set in the third risk control sub-unit, and the current position is continuously calculated by the third risk control sub-unit according to the return information sent by the counter. The fourth risk control sub-unit determines whether the sum of the order quantity of the parent order and the current position is less than the maximum position. If it is less, the parent order is released. If it is not less, the order quantity of the parent order is modified to the difference between the maximum position and the current position. The fourth risk control sub-unit continues to determine whether the above difference is greater than zero. If it is greater, the modified parent order is released. If it is equal to zero, the parent order is rejected. For example, according to the maximum position and the current position, the allowed order quantity of the contract is calculated to be 3, and the parent order quantity sent by the strategy module is 5, then the fourth risk control sub-unit modifies the parent order quantity to 3, and the modification information will be sent to the subsequent order splitting step, and a number of 2 scrapped orders will be generated, which will be notified to the software module by the hardware module.

[0040] In another embodiment of implementing position risk control, the contract position information is the difference between the maximum position and the current position of each contract, and the difference is calculated by the third risk control sub-unit according to the preset maximum position and the continuously calculated current position. The fourth risk control sub-unit determines whether the order quantity of the parent order is greater than the above difference, and if so, the parent order is released, and if not, the parent order is rejected.

[0041] The difference between the above two embodiments of implementing position risk control is whether the software module is responsible for the difference calculation between the maximum position and the current position of each contract. Since the difference calculation is not complicated, it is more preferred for the former embodiment to let the difference calculation be performed by the hardware module for the sake of system operation efficiency. In addition, the former embodiment can maximize the execution of the trading strategy from the strategy module and improve trading efficiency by modifying the order quantity of the parent order to release the parent order.

[0042] In some embodiments, the first risk control unit includes a fifth risk control sub-unit, the second risk control unit includes a sixth risk control sub-unit, and the sixth risk control sub-unit receives the unfinished order information sent from the fifth risk control sub-unit to perform self-trading risk control on the parent order. Self-trading in futures trading refers to the commissioned buying and selling behavior under the same account, in which both buying and selling appear under the same account, and the system automatically trades when the price is the same or certain conditions are met. Futures self-trading cannot contribute to the market's price discovery, but may hinder the formation of normal and objective prices in the market, and is therefore not allowed by the market.

[0043] See also Figure 4Specifically, the sixth risk control sub-unit first determines the order type of the parent order. If the parent order is a FAK order, the parent order will be released. If the parent order is an LMP order, the parent order will be further judged. Depending on the transaction instructions, the parent order can be a FAK order or an LMP order, where FAK is a "Fill or Kill" order, which requires that the available trading volume in the market must be greater than or equal to the number of one-time orders so that the order can be completed at one time. If the trading volume in the market cannot meet this requirement, the transaction will not be carried out and the order will be cancelled. The FAK instruction is intended to improve transaction efficiency and therefore enjoys a self-trading exemption; LMP is a limit order instruction, which allows investors to set a specific buy or sell price. The order will only be executed when the market price reaches or exceeds this set price. There is a risk of self-trading when executing this instruction, and there is no exemption.

[0044] The above unfinished order information is another risk control condition, including the maximum buy order price among unfinished buy orders and the minimum sell order price among unfinished sell orders. This information is updated and maintained in real time by the software module based on the feedback information sent by the counter. Figure 4 , the sixth risk control sub-unit determines the direction of the LMP order. If the LMP order is an LMP buy order, the sixth risk control sub-unit determines whether the LMP buy order price is less than the above-mentioned minimum sell order price. If so, the parent order is released; if not, the parent order is rejected. If the LMP order is an LMP sell order, the sixth risk control sub-unit determines whether the LMP sell order price is greater than the above-mentioned maximum buy order price. If so, the parent order is released; if not, the parent order is rejected.

[0045] In some embodiments, the first risk control unit includes a seventh risk control sub-unit, the second risk control unit includes an eighth risk control sub-unit, and the eighth risk control sub-unit receives the abnormal conditions sent from the seventh risk control sub-unit to perform abnormal order risk control on the parent order. Specifically, the abnormal conditions sent by the seventh risk control sub-unit include price, order quantity, order sequence number, etc. The eighth risk control sub-unit determines whether the price, order quantity, order sequence number and other information of the parent order meet the rules according to the abnormal conditions. If the rules are met, the parent order is released, and if the rules are not met, the parent order is rejected. The judgment of abnormal orders can be achieved by setting preset values. For example, the judgment of abnormal prices can be achieved by setting maximum and minimum values. When the price of the parent order is greater than the maximum value or less than the minimum value, the parent order is judged as abnormal and rejected. The judgment of the order quantity can be similar to the price abnormality judgment method. For the abnormal judgment of the order sequence number, it can be achieved by setting the numbering rule of the sequence number, for example, stipulating that the sequence number is composed of 8 digits, or stipulating that a specific position in the sequence number is a letter, etc. When the eighth risk control sub-unit determines that the order sequence number meets the preset numbering rule, the parent order is released.

[0046] It is understandable that each of the above-mentioned risk control sub-units is relatively independent, so that tasks such as contract risk control, position risk control, self-trading risk control, and abnormal order risk control can be performed sequentially or in parallel, and can be flexibly designed based on the system's storage capacity, computing capacity, etc. The parent order released by the risk control sub-unit can be further split, and the parent order rejected by the risk control sub-unit becomes a waste order, and the hardware module notifies the software module.

[0047] In futures trading, it is often necessary to split the parent order for the sake of reducing risks and improving trading flexibility. The following continues to take futures trading as an example, based on the above-mentioned risk control to obtain a parent order that meets the trading conditions, and further explains the order splitting function of the order management system in this application. It can be understood that other types of financial products will also involve asset splitting operations. By designing corresponding order splitting conditions according to corresponding trading rules and trading strategies, the order management system in this application can be applied to a variety of financial products.

[0048] In some embodiments, the software module includes a first disassembly unit, the hardware module includes a second disassembly unit, and the second disassembly unit receives the split order scoring table sent from the first disassembly unit to split the parent order. Specifically, the split order scoring table is generated by the first disassembly unit in the software module, and the information recorded therein includes but is not limited to account information, contract information under each account, the buying and selling direction of the contract, the remaining number of order cancellations, etc.

[0049] The split order scoring table is used to guide the second splitting unit to split the order. The tabulation process of the first splitting unit includes a pre-split order step, that is, at fixed intervals, according to the number of multiple accounts and their contracts that can be closed and opened, multiple pre-split orders are generated for each contract in each buying and selling direction of each account. The number of pre-split orders can be flexibly adjusted according to the trading strategy and system computing power, for example, it can be 2, 3, 4, 5, or even more. Taking the number of pre-split orders as 3 as an example, each contract has 3 pre-split orders in each buying and selling direction of each account. The split order scoring table records the closing quantity / opening quantity of pre-split order 1, the closing quantity / opening quantity of pre-split order 2, and the closing quantity / opening quantity of pre-split order 3. After that, the second splitting unit can split the parent order into multiple child orders according to the results of the above pre-split orders.

[0050] The split-order scoring table is also used to guide the second disassembly unit to place orders. When constructing the split-order scoring table, the first disassembly unit will sort the accounts and contracts according to the order priority, that is, from the two dimensions of accounts and contracts, the accounts that need to place orders first and the contracts that need to place orders first are placed in the priority position in the split-order scoring table, so that the second disassembly module can place orders accurately and efficiently by looking up the table. The order executed by the second disassembly unit is to split the parent order into child orders according to the pre-splitting results in the split-order scoring table and fill them into the pre-splitting orders of one or more contracts. It can be understood that the split-order scoring table can also introduce other dimensions for sorting according to the needs, such as the contract buying and selling direction, trading time, number of order withdrawals, etc. The software module has the function of maintaining information in real time or regularly according to the counter report, and can handle more complex calculations, so it can generate the latest split-order scoring table in time and provide it to the hardware module, so that the transaction requirements of the strategy module can be more efficiently converted into actual transactions and achieve the optimal transaction return rate.

[0051] In actual futures trading, traders may cancel orders due to market fluctuations, strategy adjustments, etc. To ensure trading efficiency and market stability, the exchange will limit the number of order cancellations. When using the system for automated order submission, in order to avoid being unable to cancel orders due to exchange restrictions, in some preferred implementations, the second disassembly unit selects a suitable account to submit the order based on the type of the parent order.

[0052] In one embodiment of order submission, the second disassembling unit determines whether the remaining number of order cancellations of the contract is less than the number of orders. If not, the order is submitted to the account. If so, the order type of the parent order is determined. When the parent order is a FAK order, the order is submitted to the account. When the parent order is an LMP order, the account is skipped and the search continues for an account whose remaining number of order cancellations is not less than the number of orders for submission.

[0053] In another embodiment of order submission, the second disassembling unit determines the order type of the parent order, and directly submits the order to the account when the parent order is a FAK order; when the parent order is an LMP order, it continues to determine whether the remaining number of order cancellations of the account is less than the number of orders, and if so, submits the order to the account; if not, skips the account and continues to search for an account whose remaining number of order cancellations is not less than the number of orders for order submission.

[0054] Based on the automated trading strategy, the hardware module receives not only the parent order sent from the strategy module, but also the cancellation order sent from the strategy module. In order to ensure accurate cancellation of orders, the hardware module needs to store all the sub-order information after the parent order is split. In some embodiments, the second disassembly unit constructs a mapping between the parent order and the sub-order when splitting the order. In one embodiment of constructing the mapping, the second disassembly unit realizes the mapping by assigning associated numbers to the parent order and the sub-order. For example, the relationship between the sub-order number SubRefId and the parent order number RefId is SubRefId=RefId*1e7+SubId, where SubId is the sequential number of the sub-order generated by a parent order, which is unique and increasing between sub-orders, that is, a parent order is split to obtain multiple sub-orders, and the SubIds of the multiple sub-orders are 1, 2, 3... in sequence. It can be understood that the construction of the mapping between the parent order and the sub-order is not limited to the above examples, and can also be implemented in other ways, such as by different numbering rules, or by marking the parent order and its sub-orders.

[0055] The split sub-orders will be further processed and eventually sent to the counter. The cancellation order sent by the strategy module is for the parent order, and all sub-orders under the parent order must be cancelled. Therefore, the hardware module also needs to store the order system number of the sub-order according to the return information sent by the counter. Figure 5 When an order cancellation instruction arrives, the second disassembly unit in the hardware module locates the child order to be cancelled according to the mapping between the parent order and the child order and the order system number to which the child order goes.

[0056] The above-mentioned risk control, order splitting, order submission, order cancellation and other functions are all the processing of internal information by the order management system. After processing, the system also needs to send the order submission results or order cancellation results to the counter. Since different counters use their own counter systems, in order to ensure that the data sent by the order management system can be accurately received by the counter, the internal data structure of the order management system needs to be converted into the data structure specified by the counter, that is, according to the data structure of different transaction protocols adapted by different counters, the order submission and order cancellation are filled into valid field positions. This conversion process is called packaging. The following continues to take futures trading as an example to further explain the packaging function of the order management system in this application. It can be understood that other types of financial products may also involve operations that convert the internal data of the order management system into external data. By designing the corresponding conversion method according to the corresponding data structure requirements, the order management system in this application can be applied to a variety of financial products.

[0057] See also Figure 1 and Figure 5In some embodiments, the software module includes a first packaging unit, and the hardware module includes a second packaging unit. The second packaging unit packages the packaging information sent by the first packaging unit with the order data or the order cancellation data, and sends the packaged data to the counter. Specifically, the packaging information includes the account information required for packaging, the transaction prefix number of the counter, the initial sequence number and other information; the order data is the data processed by the second disassembly unit according to the order splitting scoring table, and the data instructs the counter to execute the order in the designated contract of the designated account according to the order splitting; the order cancellation data includes the sub-order information to be cancelled determined by the second disassembly unit according to the order cancellation sent by the strategy module, and the data instructs the counter to cancel the order from the designated contract of the designated account.

[0058] The order management system in this application communicates with the counter in a two-way manner. After the counter completes the order or cancels the order, it sends a report information to the order management system. The software module maintains the parent order information based on the report information. If the parent order is executed or canceled successfully, the software module sends the parent order status information to the hardware module, and the hardware module deletes the corresponding parent order and its child order data to ensure the storage performance and data processing performance of the hardware module.

[0059] The second aspect of the present application provides an order management method based on the above order management system, comprising the following steps:

[0060] S1: The hardware module receives the parent order sent by the strategy module in the trading system;

[0061] S2: The software module sends information to the hardware module;

[0062] S3: The hardware module processes the master list according to the information sent by the software module.

[0063] In some embodiments, step S3 comprises:

[0064] S31: The hardware module performs risk control on the parent order according to the risk control conditions sent by the software module.

[0065] Further, step S31 includes:

[0066] S311: The hardware module performs contract risk control on the parent order according to the transaction contract list sent by the software module, and specifically includes the following steps:

[0067] S3111: The hardware module receives the transaction contract list sent by the software module;

[0068] S3112: The hardware module determines whether the parent order is in the list according to the trading contract list. If the parent order is in the list, it is released; otherwise, it is rejected.

[0069] And / or, S3113: The hardware module determines whether the current time is within the trading time based on the trading contract list. If so, the parent order is released, otherwise it is rejected.

[0070] It is understandable that in the contract risk control, step S3112 and step S3113 are in an "and / or" relationship, that is, the hardware module can perform contract risk control through at least one of the steps. When only one step is executed for risk control, the judgment in the other step can eliminate the risk through other means. For example, when only step S3112 is executed, the judgment of whether it is within the trading time (step S3113) can be processed by the software module on the trading contract list, so that the contracts in the trading contract list meet the conditions that they can be traded at the current time, and the corresponding operations in the hardware module can be omitted. However, considering that the processing efficiency of the hardware module is higher and the delay can be effectively reduced, it is more preferred for the hardware module to perform the two steps. In addition, although there is a sequence in the description of step S3112 and step S3113 in the above embodiment, in actual application, the two steps can be performed simultaneously, or the order can be exchanged, and the purpose of contract risk control can be achieved.

[0071] In some implementations, step S31 further includes:

[0072] S312: The hardware module performs position risk control on the parent order according to the contract position information sent by the software module. In one embodiment, step S312 specifically includes the following steps:

[0073] S3121: The hardware module receives the contract position information sent by the software module. The contract position information includes the maximum position and current position of each contract.

[0074] S3122: The hardware module determines whether the sum of the order quantity of the parent order and the current position quantity is less than the maximum position quantity. If so, the parent order is released, otherwise, proceed to step S3123;

[0075] S3123: The hardware module modifies the order quantity of the parent order to the difference between the maximum position and the current position;

[0076] S3124: The hardware module determines whether the difference in step S3123 is greater than zero. If so, the modified parent order is released, otherwise it is rejected.

[0077] In another embodiment, step S312 specifically includes the following steps:

[0078] S3125: The hardware module receives the contract position information sent by the software module. The contract position information is the difference between the maximum position and the current position of each contract, and the difference is greater than zero;

[0079] S3126: The hardware module determines whether the order quantity of the parent order is greater than the difference in step S3125. If so, the parent order is released, otherwise, it proceeds to step S3127;

[0080] S3127: The hardware module modifies the order quantity of the parent order to the difference in step S3125 and releases it.

[0081] In some implementations, step S31 further includes:

[0082] S313: The hardware module performs self-trading risk control on the parent order according to the uncompleted order information sent by the software module, and specifically includes the following steps:

[0083] S3131: The hardware module determines the order type of the parent order. If the parent order is a FAK order, the parent order is released. If the parent order is an LMP order, the process continues to step S3132.

[0084] S3132: The hardware module receives the unfinished order information sent by the software module, where the unfinished order information includes the maximum buy order price among the unfinished buy orders and the minimum sell order price among the unfinished sell orders;

[0085] S3133: The hardware module determines the direction of the LMP order. If the LMP order is an LMP buy order, it continues to determine whether the LMP buy order price is less than the minimum sell order price in the unfinished sell orders. If so, the parent order is released, otherwise it is rejected. If the LMP order is an LMP sell order, it continues to determine whether the LMP sell order price is greater than the maximum buy order price in the unfinished buy orders. If so, the parent order is released, otherwise it is rejected.

[0086] In some implementations, step S31 further includes:

[0087] S314: The hardware module performs abnormal order risk control on the parent order according to the abnormal conditions sent by the software module. Specifically, the abnormal conditions include information such as price, order quantity, order number, etc. The hardware module determines whether the price, order quantity, order number, etc. of the parent order meet the rules according to the abnormal conditions. If they meet the rules, the parent order is released, otherwise it is rejected.

[0088] It can be understood that, in actual applications, steps S311-S314 can be performed simultaneously or in a certain order, and both can achieve the purpose of risk control on the parent order.

[0089] In order to prevent the loss of the parent order, the auxiliary software module manages the problem order. In some embodiments, step S31 further includes:

[0090] S315: The parent order that is released in steps S311-S314 continues the processing of step S32, and the parent order that is rejected becomes a waste order, and a notification is sent from the hardware module to the software module.

[0091] After the parent order completes risk control, the order management system needs to split the parent order. In some implementations, step S3 also includes:

[0092] S32: The hardware module splits the parent order according to the split order scoring table sent by the software module, and specifically includes the following steps:

[0093] S321: The software module generates multiple pre-split orders in the split order scoring table, and sorts the order priorities of the accounts and contracts;

[0094] S322: The hardware module splits the parent order into multiple child orders corresponding to the multiple pre-split order quantities according to the order splitting scoring table;

[0095] S323: The hardware module constructs a mapping between the parent order and its child order;

[0096] S324: The hardware module fills the sub-order into the pre-split order of the appropriate contract under the appropriate account by looking up the table.

[0097] In some implementations, step S3 further includes:

[0098] S33: The hardware module packages the package information sent by the software module with the order data or the order cancellation data, and sends the packaged data to the counter;

[0099] S34: The order management system receives the return information sent by the counter. According to the return information, the hardware module stores the order system number to which the sub-order is going, and the software module maintains the parent order information.

[0100] When the parent order is successfully executed or cancelled (i.e. no longer valid), step S3 further includes:

[0101] S35: The software module sends the no longer valid parent order information to the hardware module, and the hardware module deletes the corresponding parent order and its child order data according to the mapping between the parent order and its child order and the order system number to which the child order goes.

[0102] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "illustrative embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present implementation. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials, or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0103] Although examples of the present embodiment have been shown and described, those skilled in the art will appreciate that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present embodiment, and the scope of the present embodiment is defined by the claims and their equivalents.

Claims

1. An order management system based on a combination of software and hardware, used to receive and process parent orders sent from a strategy module in a trading system, characterized in that: The order management system includes a software module and a hardware module that are communicatively connected; wherein the hardware module is used to receive the parent order and process the parent order according to the information sent by the software module.

2. The order management system according to claim 1, characterized in that: The software module includes a first risk control unit, and the hardware module includes a second risk control unit; the second risk control unit receives the risk control conditions sent from the first risk control unit to perform risk control on the parent order, and releases the parent order that meets the risk control conditions, otherwise it will be rejected.

3. The order management system according to claim 2, characterized in that: The first risk control unit includes a first risk control sub-unit, and the second risk control unit includes a second risk control sub-unit; the second risk control sub-unit receives the transaction contract list sent by the first risk control sub-unit to perform contract risk control on the parent order; The second risk control sub-unit determines whether the parent order is in the trading contract list, and releases the parent order if it is in the trading contract list, otherwise it is rejected; And / or, the second risk control sub-unit determines whether the current time is within the trading time of the trading contract list, and if so, releases the parent order, otherwise rejects it.

4. The order management system according to claim 2, characterized in that: The first risk control unit includes a third risk control sub-unit, and the second risk control unit includes a fourth risk control sub-unit; the fourth risk control sub-unit receives the contract position information sent by the third risk control sub-unit to perform position risk control on the parent order; Among them, the fourth risk control sub-unit determines whether the order quantity of the parent order will cause the contract to exceed the maximum position quantity in the contract position information. If not, the parent order will be released, otherwise it will be rejected.

5. The order management system according to claim 2, characterized in that: The first risk control unit includes a fifth risk control sub-unit, and the second risk control unit includes a sixth risk control sub-unit; the sixth risk control sub-unit receives the uncompleted order information sent from the fifth risk control sub-unit and performs self-trading risk control on the parent order; Among them, the unfinished order information includes the maximum buy order price among the unfinished buy orders and the minimum sell order price among the unfinished sell orders; when the parent order is an LMP order, the sixth risk control sub-unit determines the direction of the LMP order. If the LMP order is an LMP buy order, the sixth risk control sub-unit continues to determine whether the buy order price of the LMP buy order is less than the minimum sell order price. If so, the parent order is released, otherwise it is rejected; if the LMP order is an LMP sell order, the sixth risk control sub-unit continues to determine whether the sell order price of the LMP sell order is greater than the maximum buy order price. If so, the parent order is released, otherwise it is rejected.

6. The order management system according to any one of claims 2 to 5, characterized in that: The software module also includes a first disassembling unit, and the hardware module also includes a second disassembling unit; the released parent order is split by the second disassembling unit according to the splitting scoring table sent by the first disassembling unit to obtain multiple child orders; the rejected parent order becomes a waste order, which is notified to the software module by the hardware module.

7. The order management system according to claim 6, characterized in that: The order splitting scoring table includes multiple pre-split orders, and the pre-split orders are obtained by the first splitting unit pre-splitting the contracts under the account according to the contract opening and closing information under multiple accounts; the second splitting unit splits the parent order into the multiple child orders according to the pre-split results in the order splitting scoring table and fills them into the pre-split orders.

8. The order management system according to claim 7, characterized in that: The order splitting scoring table sorts the order priorities of the accounts and the contracts; the second splitting unit searches for the appropriate pre-split orders in turn according to the sorting, executes the filling of the sub-orders, and completes the order.

9. The order management system according to claim 8, characterized in that: The order splitting scoring table includes the remaining number of order cancellations of the contract; when the parent order is the LMP order, the second splitting unit places an order after finding a contract whose remaining number of order cancellations is not less than the number of orders.

10. The order management system according to claim 9, characterized in that: The order management system is also used to receive and process the cancellation order sent from the policy module, and execute the cancellation order on the counter; the second disassembly unit constructs a mapping between the parent order and its child order, and stores the order system number corresponding to the child order according to the return information sent by the counter; when the order management system receives the cancellation order, the second disassembly unit locates the child order to be canceled according to the mapping and the order system number.

11. The order management system according to claim 10, characterized in that: The order management system is also used to send orders to the counter; the software module includes a first packaging unit, and the hardware module includes a second packaging unit; the second packaging unit packages the packaging information sent by the first packaging unit with the order data or the order cancellation data, and sends the packaged data to the counter.

12. The order management system according to claim 11, characterized in that: The software module maintains the parent order according to the return information. When the parent order is executed or cancelled, the software module sends the status information of the parent order to the hardware module, and the hardware module deletes the corresponding parent order and its child order data according to the status information.

13. An order management method based on the order management system according to any one of claims 1 to 12, characterized in that: The following steps are involved: S1: The hardware module receives the parent order sent from the strategy module in the trading system; S2: the software module sends information to the hardware module; S3: The hardware module processes the master list according to the information sent by the software module.