Transaction data processing methods, apparatus, computer equipment and storage media

By using shared memory for transmission within the same server, the data transmission latency issue between transaction components is resolved, resulting in more efficient transaction processing.

CN113220475BActive Publication Date: 2026-03-10ARCHFORCE FINANCIAL TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-22
Publication Date
2026-03-10

AI Technical Summary

Technical Problem

In the current transaction request processing, the data transmission latency between core components is relatively long, resulting in a long overall transmission latency.

Method used

By placing the transaction gateway component, transaction engine component, and system order placement service component on the same server and using shared memory for data transmission, network transmission overhead can be avoided.

Benefits of technology

This reduces the transmission latency of system components, avoids network transmission overhead, and improves the efficiency of transaction processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113220475B_ABST
    Figure CN113220475B_ABST
Patent Text Reader

Abstract

This application relates to a transaction data processing method, apparatus, computer equipment, and storage medium. A transaction gateway component, a transaction engine component, and a system order placement service component are located on the same server. The method includes: the transaction gateway component receiving a transaction order request; the transaction gateway component generating a transaction instruction based on the transaction order request; the transaction gateway component sending the transaction instruction to the transaction engine component via the server's shared memory; the transaction engine component sending the transaction instruction to the system order placement service component via the server's shared memory; the system order placement service component generating an order placement request based on the transaction instruction; and the system order placement service component performing order placement processing based on the order placement request. Using the method of this application can reduce data transmission latency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a transaction data processing method, apparatus, computer equipment, and storage medium. Background Technology

[0002] Currently, the processing of transaction requests typically involves several core components. These core components are mostly installed on different machines. Therefore, data transmission between these components takes time, resulting in a relatively long overall transmission latency. Summary of the Invention

[0003] Therefore, it is necessary to provide a transaction data processing method, apparatus, computer equipment, and storage medium to address the aforementioned technical problems.

[0004] A transaction data processing method, wherein a transaction gateway component, a transaction engine component, and a system order placement service component reside on the same server, the method comprising:

[0005] The transaction gateway component receives transaction order requests;

[0006] The transaction gateway component generates a transaction instruction based on the transaction order request;

[0007] The transaction gateway component sends the transaction instructions to the transaction engine component through the shared memory of the server;

[0008] The transaction engine component sends the transaction instruction to the system order placement service component through the shared memory of the server;

[0009] The system's order placement service component generates an order placement request based on the transaction instruction;

[0010] The system's reporting service component processes the reporting request.

[0011] A transaction data processing apparatus, comprising a transaction gateway component module, a transaction engine component module, and a system order placement service component module located on the same server; including:

[0012] The transaction gateway component module is used to receive transaction order requests;

[0013] The transaction gateway component module is also used to generate transaction instructions based on the transaction entrustment request;

[0014] The transaction gateway component module is also used to send the transaction instruction to the transaction engine component module through the shared memory of the server;

[0015] The transaction engine component module is used to send the transaction instruction to the system order placement service component through the shared memory of the server;

[0016] The system order placement service component module is used to generate an order placement request based on the transaction instruction;

[0017] The system reporting service component module is also used to process the reporting request.

[0018] A computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program performing the following steps:

[0019] The transaction gateway component receives transaction order requests;

[0020] The transaction gateway component generates a transaction instruction based on the transaction order request;

[0021] The transaction gateway component sends the transaction instructions to the transaction engine component through the shared memory of the server;

[0022] The transaction engine component sends the transaction instruction to the system order placement service component through the shared memory of the server;

[0023] The system's order placement service component generates an order placement request based on the transaction instruction;

[0024] The system's reporting service component processes the reporting request.

[0025] A computer-readable storage medium having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0026] The transaction gateway component receives transaction order requests;

[0027] The transaction gateway component generates a transaction instruction based on the transaction order request;

[0028] The transaction gateway component sends the transaction instructions to the transaction engine component through the shared memory of the server;

[0029] The transaction engine component sends the transaction instruction to the system order placement service component through the shared memory of the server;

[0030] The system's order placement service component generates an order placement request based on the transaction instruction;

[0031] The system's reporting service component processes the reporting request.

[0032] The aforementioned transaction data processing method, apparatus, computer equipment, and storage medium allow the transaction gateway to generate transaction instructions based on transaction entrustment requests and send these instructions to the transaction engine components via the server's shared memory. The gateway then generates offer requests based on the transaction instructions to complete the offer processing. The transmission between components is lossless, reducing system component transmission latency and avoiding network transmission overhead. Attached Figure Description

[0033] Figure 1 This is an application environment diagram of a transaction data processing method in one embodiment;

[0034] Figure 2 This is a flowchart illustrating a transaction data processing method in one embodiment;

[0035] Figure 3 This is a flowchart illustrating a transaction data processing method in another embodiment;

[0036] Figure 4 This is a structural block diagram of a transaction data processing device in one embodiment;

[0037] Figure 5 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0038] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0039] The transaction data processing method provided in this application can be applied to, for example... Figure 1 The application environment shown. Figure 1The system includes a terminal 110 and a server 120. Terminal 110 and server 120 transmit information via a network. Terminal 110 has a client installed, which can be a client for an order management system. Server 120 can be implemented as a standalone server or a server cluster consisting of multiple servers. Server 120 includes a transaction gateway component 1202, a transaction engine component 1204, and a system order placement service component 1206. Data transmission between each of the transaction gateway component 1202, transaction engine component 1204, and system order placement component 1206 can be achieved through shared memory. Transaction gateway component 1202 receives transaction order requests and generates transaction instructions based on these requests. Transaction gateway component 1202 sends transaction instructions to system order placement service component 1206 via shared memory and transaction engine component 1204. System order placement service component 1206 generates order placement requests based on the transaction instructions and performs order placement processing based on the order placement requests. It is understood that the solutions in the various embodiments of this application may only be applied to server 120.

[0040] In one embodiment, such as Figure 2 As shown, a transaction data processing method is provided, which can be applied to... Figure 1 Taking the server as an example, the server includes a transaction gateway component, a transaction engine component, and a system order book service component, and includes the following steps:

[0041] Step 202: The transaction gateway component receives the transaction order request.

[0042] The transaction order request is an external request initiated by the order management system based on an external protocol. It is used to complete transactions through the server. The content of the transaction order request mainly consists of fields relevant to the order system. The transaction order request includes, but is not limited to, the following data: business type, account number, market number, security code, buy / sell direction, quantity, price, and market price type. The transaction gateway component (GW) is used for information interaction with the client.

[0043] Specifically, the user initiates a transaction delegation request in the order management system and sends the request to the transaction gateway component. The transaction gateway component then receives the transaction delegation request.

[0044] Step 204: The transaction gateway component generates a transaction instruction based on the transaction order request.

[0045] Among them, the transaction instruction is an internal message that the transaction gateway component transforms after receiving the transaction order request. In addition to the content that the transaction order request will contain, it will also contain some fields that are only used by the transaction engine component, such as order number and transaction unit.

[0046] Specifically, the transaction gateway component converts the transaction order request into a transaction order request adapted to the server's message protocol, and adds the fields used by the transaction engine to the transaction order request, thereby obtaining the transaction instruction.

[0047] Step 206: The transaction gateway component sends transaction instructions to the transaction engine component through the server's shared memory.

[0048] Shared memory allows two unrelated processes to access the same logical memory. It is a very efficient way to share and transfer data between two running processes.

[0049] Specifically, the trading gateway component, trading engine component, and system order book service component communicate through the server's shared memory. (How they communicate) The trading gateway component sends trading instructions to the trading engine component through the server's shared memory.

[0050] Step 208: The trading engine component sends trading instructions to the system order book service component through the server's shared memory.

[0051] Specifically, the Order Routing Service (ORS) component is used to interface with the exchange gateway and generate order requests supported by the exchange from internal trading instructions to complete transactions with the exchange. Furthermore, the ORS component also receives data returned by the exchange.

[0052] Step 210: The system order placement service component generates an order placement request based on the transaction instruction.

[0053] The offer request refers to the message received by the exchange gateway, which is generated by the protocol published by the exchange.

[0054] Specifically, the system order placement service component converts the trading instructions generated by the server's internal message protocol into order placement requests supported by the exchange.

[0055] Step 212: The system reporting component processes the reporting request.

[0056] Specifically, the system's order placement service component sends the order placement request to the exchange, enabling the exchange's gateway to execute the transaction based on the order placement request, thereby completing the transaction.

[0057] In this embodiment of the transaction data processing method, the transaction gateway generates a transaction instruction based on the transaction entrustment request and sends the transaction instruction to the transaction engine component through the server's shared memory. The transaction gateway then generates an offer request based on the transaction instruction to complete the offer processing. There is no synchronization loss in the transmission between components, which can reduce the transmission latency of system components and avoid network transmission overhead.

[0058] In one embodiment, the transaction gateway component generates a transaction instruction based on a transaction delegation request, including: the transaction gateway component converting the transaction delegation request into a transaction delegation request adapted to the message protocol of the server; and the transaction gateway component adding management fields required by the transaction engine to the transaction delegation request to obtain the transaction instruction.

[0059] Specifically, the transaction gateway component converts transaction order requests received from the order management system into transaction order requests adapted to the server's message protocol. The transaction gateway component adds management fields required by the transaction engine to the transaction order requests. These management fields may include, for example, the order number and transaction unit.

[0060] In the transaction data processing method of this embodiment, the transaction gateway component converts the transaction entrustment request into a transaction entrustment request adapted to the message protocol of the server, and adds the management fields required by the transaction engine to the transaction entrustment request to obtain the transaction instruction. This enables the transaction engine to record the transaction and makes it easy to manage. When a problem occurs, the corresponding transaction can be found quickly.

[0061] In one embodiment, the system order placement service component generates an order placement request based on a trading instruction, including: the system order placement service component converts the trading instruction into an order placement request according to the order placement protocol format supported by the exchange.

[0062] Specifically, an exchange uses a universal order book protocol set up for various trading systems. Trading instructions, on the other hand, are transmission protocols adapted to that server.

[0063] In this embodiment of the transaction data processing method, the system order service component converts the transaction instruction into an order request according to the order protocol format supported by the exchange, enabling the server to complete the order request and thus complete the transaction process.

[0064] In one embodiment, the trading engine component sends trading instructions to the system order book service component via the server's shared memory, including:

[0065] The trading engine component performs compliance checks and asset checks based on trading orders, and obtains the check results.

[0066] When the inspection result is satisfactory, the transaction engine component sends a transaction instruction to the system order book service component through the server's shared memory.

[0067] The compliance verification process includes, but is not limited to, permission verification, field validity verification, and indicator verification. The order of these three verification methods is not restricted. Permission verification checks the user information carried in the trading instruction to verify permissions. For example, does user A have the permission to create a trading instruction? Field validity verification verifies the legality of the fields entered by the user in the trading instruction. For example, does the trading asset selected by the user exist in the user's account? Indicator verification verifies whether the trading data carried in the trading instruction meets the data control indicators stipulated by the brokerage firm. For example, if a user's trading resources are 1001 units, but the data control indicators only allow trading of 1000 units, then the trading data does not meet the conditions set by the data control indicators. A passing result means passing both the compliance verification and asset verification.

[0068] Specifically, the trading engine component performs compliance checks and asset checks based on trading instructions to obtain the check results; when the check results are satisfactory, the trading engine component sends trading instructions to the system order book service component through the server's shared memory.

[0069] The trading engine component performs compliance checks based on trading instructions, including: the trading engine component verifies the user information carried in the trading instructions for permissions; when it is determined that the user information has the necessary permissions, the trading engine component verifies the validity of the fields in the trading instructions; when the fields in the trading instructions are valid, the trading engine component verifies the indicators based on the trading data in the trading instructions and preset trading indicators; when the indicator verification passes, the trading instructions are determined to comply with trading regulations.

[0070] Asset verification includes, but is not limited to, whether the asset quantity is sufficient. The trading engine component performs asset verification based on trading instructions, including: the trading engine component verifies the transaction data in the trading instruction and the total asset value corresponding to the user account in the trading instruction; when the transaction data is less than or equal to the total asset value, the trading instruction is determined to have passed asset verification.

[0071] In this embodiment of the transaction data processing method, the transaction engine component performs compliance verification and asset verification based on the transaction instructions to obtain the verification results. When the verification results are qualified, the transaction engine component sends the transaction instructions to the system order placement service component through the shared memory of the server, which can improve the success rate of the transaction.

[0072] In one embodiment, the transaction gateway component obtains a transaction delegation request, including:

[0073] The transaction gateway component receives transaction order requests sent by the order management system.

[0074] After the system quotation service component processes the quotation request, the transaction data processing method further includes: the system quotation service component returning the transaction result obtained from the quotation processing to the transaction engine through the server's shared memory; and the transaction engine component returning the transaction result to the order management system through the transaction gateway component.

[0075] The order management system resides on a different server than the transaction gateway component. Furthermore, the order management system can run on a terminal, allowing users to submit transaction requests. The order management system is used for direct interaction with users. Transaction results include successful transaction, failed transaction, successful payment, and failed payment.

[0076] Specifically, the transaction gateway gradually receives transaction order requests from the order management system. After the system order placement service component processes the order based on the request, it returns the transaction result obtained from the order processing to the transaction engine via the server's shared memory. The transaction engine component then sends the transaction result to the transaction gateway component. The transaction gateway component returns the transaction result to the order management system.

[0077] In this embodiment, as Figure 3 The diagram illustrates a flowchart of a transaction data processing method in another embodiment. It includes an order management system applied to a terminal. The transaction gateway component, transaction engine component, and system order placement service component reside on the same server. The exchange and the server containing the transaction gateway component, transaction engine component, and system order placement service component are not the same server.

[0078] 1. The order management system sends a transaction entrustment request to the transaction gateway component.

[0079] 2. The transaction gateway component generates a transaction instruction based on the transaction order request and sends the transaction instruction to the transaction engine component.

[0080] 3. The transaction engine component sends the transaction instruction to the system order placement service component.

[0081] 4. The system order placement service component generates an order placement request based on the trading instruction and sends the order placement request to the exchange to complete the order placement process.

[0082] 5. The exchange returns the transaction results to the system order placement service component.

[0083] 6. The system order placement service component returns the transaction result to the transaction engine component.

[0084] 7. The trading engine component updates the trading data corresponding to the trading instruction based on the trading results, obtains the updated trading data, and sends the updated trading data to the trading gateway component.

[0085] 8. The transaction gateway component sends the updated transaction data to the order management system.

[0086] In this embodiment of the transaction data processing method, since the transaction result contains some transaction data and the transaction gateway component is a component that directly interfaces with the order management system, when the system quotation service component obtains the transaction result, it needs to go through the transaction engine and return the transaction result to the order management system through the transaction gateway component, making the process more complete and the division of labor between the components clear.

[0087] In one embodiment, the transaction engine component returns the transaction result to the order management system through the transaction gateway component, including: the transaction engine component updates the transaction data corresponding to the transaction instruction according to the transaction result to obtain the updated transaction data; the transaction engine component returns the updated transaction data to the order management system through the transaction gateway component.

[0088] The transaction results include asset values, indicator data, etc. The trading engine component is the component that controls the core trading data; all state changes need to be processed here first.

[0089] Specifically, the trading engine component updates the trading data corresponding to the trading order based on the trading result, obtaining the updated trading data. For example, if the exchange rejects the order, frozen assets need to be unfrozen, and accumulated indicator data needs to be deducted; if the exchange executes the order, frozen assets need to be reduced, etc. The trading engine component stores this updated trading data. The trading engine component then returns the updated trading data to the trading gateway component through the trading gateway component.

[0090] In this embodiment of the transaction data processing method, since the transaction engine component is the core component of the transaction system, various data need to be processed through the transaction engine component. The transaction engine component updates the transaction data corresponding to the transaction instruction according to the transaction result, thereby obtaining the updated transaction data. The transaction engine component returns the updated transaction data to the order management system through the transaction gateway component. In this way, the transaction engine component can obtain the various states of the transaction, thereby ensuring the normal operation of the transaction system.

[0091] In one embodiment, the transaction data processing method further includes: the server copying the installation packages of the transaction gateway component, the transaction engine component, and the system quotation component from a designated server; and deploying the installation packages of the transaction gateway component, the transaction engine component, and the system quotation component on the server.

[0092] The server corresponding to the target communication address refers to the server containing the installation packages for the trading gateway component, the trading engine component, and the system order placement component. The target communication address can be an IP (Internet Protocol) address. The target communication address can be configured on this server. Furthermore, the server corresponding to the target communication address can be the same server on which the trading gateway component, trading engine component, and system order placement component are deployed.

[0093] Specifically, the service area copies the installation packages of the transaction gateway component, the transaction engine component, and the system order placement component from the server corresponding to the target communication address, and then deploys these installation packages on its own server.

[0094] In this embodiment, the deployment of different components on the same machine is implemented as follows: the deployment of each component will copy the component's installation package according to the IP of the specified machine. Deploying to the same machine means specifying the same IP to copy, and configuring the copied component installation package to the same IP.

[0095] The transaction data processing method in this embodiment copies the installation packages of the transaction gateway component, the transaction engine component, and the system quotation component from the server corresponding to the target communication address, and deploys the installation packages of the gateway component, the transaction engine component, and the system quotation component on the server. This allows the transaction gateway component, the transaction engine component, and the system quotation service component to be located on the same server. Compared with network transmission, the data transmission efficiency can be improved by using shared memory.

[0096] In one embodiment, before component merging, communication between components, i.e., machine-to-machine communication, is generally network communication, with time overhead limited by network link conditions. After component merging, communication between components can be either network communication or shared memory communication supported by the Huari bus. Merged deployment reduces communication costs between components. For example, network consumption on different hosts versus network consumption on the same host is significantly reduced compared to separate component deployments. Merged deployment reduces message communication paths. Because component communication uses the Huari message bus, in merged deployment, it can be changed from network communication to shared memory communication, greatly reducing communication latency. Based on this, the Huari message bus (i.e., data transmission via shared memory within the same server) is used to reduce communication latency, and efficient algorithms and in-memory computing are used within business components to reduce processing latency.

[0097] It should be understood that, although Figure 2 and 3The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figure 2 and 3 At least some of the steps in the process may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but may be executed at different times. The execution order of these steps or stages is not necessarily sequential, but may be executed in turn or alternately with other steps or at least some of the steps or stages in other steps.

[0098] In one embodiment, such as Figure 4 As shown, a transaction data processing device is provided. This device can be a software module, a hardware module, or a combination of both as part of a computer device. Specifically, the device includes: a transaction gateway component module 402, a transaction engine component module 404, and a system order placement service component module 406. The transaction gateway component module 402, the transaction engine component module 404, and the system order placement service component module 406 are located on the same server, wherein:

[0099] Transaction gateway component module 402 is used to receive transaction order requests;

[0100] The transaction gateway component module 402 is also used to generate transaction instructions based on transaction order requests;

[0101] The transaction gateway component module 402 is also used to send transaction instructions to the transaction engine component module 404 through the server's shared memory;

[0102] The transaction engine component module 404 is used to send transaction instructions to the system order book service component 406 via the server's shared memory;

[0103] The system order placement service component 406 module is used to generate order placement requests based on transaction instructions;

[0104] The system dispatch service component 406 module is also used for dispatch processing based on dispatch requests.

[0105] In this embodiment, the transaction data processing device, the transaction gateway generates a transaction instruction based on the transaction entrustment request, and sends the transaction instruction to the transaction engine component through the server's shared memory. It generates an offer request based on the transaction instruction to complete the offer processing. The transmission between components has no synchronization loss, which can reduce the transmission latency of system components and avoid network transmission overhead.

[0106] In one embodiment, the transaction gateway component module 402 is used to convert a transaction order request into a transaction order request adapted to the message protocol of the server; the transaction gateway component module 402 is also used to add management fields required by the transaction engine to the transaction order request to obtain transaction instructions.

[0107] In this embodiment, the transaction data processing device and the transaction gateway component convert the transaction entrustment request into a transaction entrustment request adapted to the message protocol of the server, and add the management fields required by the transaction engine to the transaction entrustment request to obtain the transaction instruction. This enables the transaction engine to record the transaction and make it easy to manage. In case of problems, the corresponding transaction can be found quickly.

[0108] In one embodiment, the system order placement service component 406 module is used to convert trading instructions into order placement requests in accordance with the order placement protocol format supported by the exchange.

[0109] In this embodiment, the transaction data processing device, the system order service component 406, converts the transaction instruction into an order request according to the order protocol format supported by the exchange, enabling the server to complete the order request and thus complete the transaction process.

[0110] In one embodiment, the transaction engine component module 404 is further configured to: perform compliance verification and asset verification based on the transaction instructions, and obtain the verification results; when the verification results are qualified, the transaction engine component sends the transaction instructions to the system order placement service component 406 through the shared memory of the server.

[0111] In this embodiment, the transaction data processing device includes a transaction engine component that performs compliance checks and asset checks based on transaction instructions to obtain check results. When the check results are satisfactory, the transaction engine component sends transaction instructions to the system order placement service component 406 through the server's shared memory, which can improve the success rate of transactions.

[0112] In one embodiment, the transaction gateway component module 402 is further configured to receive transaction order requests sent by the order management system. The system order placement service component module 406 is further configured to return the transaction results obtained from order placement processing to the transaction engine via the server's shared memory. The transaction engine component module 404 is further configured to return the transaction results to the order management system via the transaction gateway component.

[0113] In this embodiment, the transaction data processing device includes some transaction data in the transaction results, and the transaction gateway component is a component that directly interfaces with the order management system. Therefore, when the system quotation service component 406 obtains the transaction results, it needs to go through the transaction engine and return the transaction results to the order management system through the transaction gateway component, making the process more complete and the division of labor between the components clear.

[0114] In one embodiment, the transaction engine component module 404 is further configured to update the transaction data corresponding to the transaction instruction according to the transaction result, and obtain the updated transaction data; the transaction engine component module 404 is further configured to return the updated transaction data to the order management system through the transaction gateway component.

[0115] In this embodiment, the transaction data processing device uses the transaction engine component, which is the core component of the transaction system. Therefore, various data need to be processed through the transaction engine component. The transaction engine component updates the transaction data corresponding to the transaction instruction according to the transaction result, thereby obtaining the updated transaction data. The transaction engine component returns the updated transaction data to the order management system through the transaction gateway component. Thus, the transaction engine component can obtain the various states of the transaction, thereby ensuring the normal operation of the transaction system.

[0116] In one embodiment, the server is used to copy the installation packages of the trading gateway component, the trading engine component, and the system order placement component from a specified server; the server is also used to deploy the installation packages of the trading gateway component, the trading engine component, and the system order placement component on the server.

[0117] In this embodiment, the transaction data processing device copies the installation packages of the transaction gateway component, the transaction engine component, and the system quotation component from the server corresponding to the target communication address. It then deploys these packages on the server, enabling the transaction gateway component, the transaction engine component, and the system quotation service component 406 to reside on the same server. Compared to network transmission, this shared memory approach improves data transmission efficiency.

[0118] Specific limitations regarding the transaction data processing device can be found in the limitations of the transaction data processing method described above, and will not be repeated here. Each module in the aforementioned transaction data processing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0119] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 5As shown, the computer device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores transaction data. The network interface communicates with external terminals via a network connection. When the computer program is executed by the processor, it implements a transaction data processing method.

[0120] Those skilled in the art will understand that Figure 5 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0121] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.

[0122] In one embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0123] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, causing the computer device to perform the steps in the above-described method embodiments.

[0124] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.

[0125] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0126] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A transaction data processing method characterized by, The method comprises: The server to be traded copies the installation package of the transaction gateway component, the installation package of the transaction engine component and the installation package of the system quotation component from the server corresponding to the target communication address; The server to be traded deploys the installation package of the transaction gateway component, the installation package of the transaction engine component and the installation package of the system quotation component in the server to be traded; the transaction gateway component, the transaction engine component and the system quotation service component communicate through the shared memory of the server to be traded, and the shared memory allows two unrelated processes to access the same logical memory; The transaction gateway component receives a transaction order request sent by an order management system; the order management system and the transaction gateway component are not in the same server; the transaction order request is an external request generated based on an external protocol initiated by the order management system; The transaction gateway component converts the transaction order request into a transaction order request adapted to the message protocol of the server to be traded; The transaction gateway component adds the management field required by the transaction engine component in the transaction order request to obtain a transaction instruction; The transaction gateway component sends the transaction instruction to the transaction engine component through the shared memory of the server to be traded; The transaction engine component performs permission verification on the user information carried in the transaction instruction; when it is determined that the user information has user permission, the transaction engine component performs field legality verification based on the fields in the transaction instruction; when the fields in the transaction instruction are legal, the transaction engine component performs index verification based on the transaction data in the transaction instruction and the preset transaction index; when the index verification passes, it is determined that the transaction instruction meets the transaction regulations; The transaction engine component performs verification based on the transaction data in the transaction instruction and the total asset value corresponding to the user account in the transaction instruction; when the transaction data is less than or equal to the total asset value, it is determined that the transaction instruction passes the asset verification; When the transaction instruction meets the transaction regulations and the transaction instruction passes the asset verification, the transaction engine component sends the transaction instruction to the system quotation service component through the shared memory of the server to be traded; The system quotation service component generates a quotation request according to the transaction instruction; The system quotation service component performs quotation processing based on the quotation request; The system quotation service component returns the transaction result obtained by the quotation processing to the transaction engine through the shared memory of the server to be traded; The transaction engine component updates the transaction data corresponding to the transaction instruction according to the transaction result to obtain updated transaction data; The transaction engine component returns the updated transaction data to the order management system through the transaction gateway component.

2. The method of claim 1, wherein, The system quotation service component generates a quotation request according to the transaction instruction, comprising: The system quotation service component converts the transaction instruction into a quotation request according to the quotation protocol format supported by the exchange.

3. A transaction data processing apparatus characterized by comprising: Comprise: The server to be traded is configured to copy installation packages of a transaction gateway component, an installation package of a transaction engine component, and an installation package of a system bid component from a server corresponding to a target communication address; the server to be traded is further configured to deploy the installation package of the transaction gateway component, the installation package of the transaction engine component, and the installation package of the system bid component in the server to be traded; the transaction gateway component, the transaction engine component, and the system bid service component communicate through a shared memory of the server to be traded, and the shared memory allows two unrelated processes to access the same logical memory; The transaction gateway component module is configured to receive a transaction delegation request sent by an order management system; the order management system and the transaction gateway component are not in the same server; the transaction delegation request is an external request generated based on an external protocol initiated by the order management system; The transaction gateway component module is further configured to convert, by the transaction gateway component, the transaction delegation request into a transaction delegation request in a message protocol adapted to the server to be traded; the transaction gateway component adds management fields required by the transaction engine component in the transaction delegation request to obtain a transaction instruction; The transaction gateway component module is further configured to send, by the server, the transaction instruction to the transaction engine component module through the shared memory; The transaction engine component module is configured to perform, by the transaction engine component, permission verification on user information carried in the transaction instruction; When it is determined that the user information has user permission, the transaction engine component performs field legality verification based on fields in the transaction instruction; when the fields in the transaction instruction are legal, the transaction engine component performs index verification based on transaction data in the transaction instruction and a preset transaction index; when the index verification passes, it is determined that the transaction instruction conforms to transaction regulations; the transaction engine component performs verification based on the transaction data in the transaction instruction and a total asset value corresponding to a user account in the transaction instruction; when the transaction data is less than or equal to the total asset value, it is determined that the transaction instruction passes asset verification; when the transaction instruction conforms to transaction regulations and passes asset verification, the transaction engine component sends the transaction instruction to the system bid service component through the shared memory of the server to be traded; The system bid service component module is configured to generate a bid request according to the transaction instruction; The system bid service component module is further configured to perform bid processing based on the bid request; The system bid service component module is further configured to return, to the transaction engine, a transaction result obtained by bid processing through the shared memory of the server to be traded; The transaction engine component module is further configured to update transaction data corresponding to the transaction instruction according to the transaction result to obtain updated transaction data; The transaction engine component module is further configured to return, to the order management system, the updated transaction data through the transaction gateway component.

4. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method of any one of claims 1 to 2.

5. A computer readable storage medium storing a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method of any one of claims 1 to 2.

Citation Information

Patent Citations

  • Service Monitoring and Risk Early Warning System

    CN109409633A

  • Transaction system and transaction service control method and device thereof

    CN112669158A