Task execution method, device, electronic device and storage medium

By using the reference information of the quotation middleware to calculate the time-consuming process when the exchange gateway and the exchange matchmaking system do not disclose the log, the time-consuming warning and time-consuming information output problems are solved, and efficient management and exception handling of the quotation process are realized.

CN116204295BActive Publication Date: 2025-08-08CSC FINANCIAL CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310219881.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-07
Publication Date
2025-08-08
Estimated Expiration
2043-03-07

AI Technical Summary

Technical Problem

When the exchange gateway and the exchange matchmaking system do not disclose the log, how to effectively execute the specified processing tasks of the time-consuming process existing in the quotation process, especially the warning of time-consuming abnormalities and the output of time-consuming information.

Method used

By determining the target delegation information and based on the mapping relationship between the preset time-consuming process and the reference information, the reference information generated by the quotation middleware calculates the time-consuming of each time-consuming process, including the time-consuming of the transaction middleware, the quotation middleware, the exchange gateway and the exchange matching system, and then performs designated processing tasks such as early warning analysis and time-consuming output.

Benefits of technology

Without relying on the exchange gateway and exchange matching system log, the time-consuming of each time-consuming process can be accurately calculated, and the time-consuming warning and time-consuming information output can be effectively executed, which improves the management efficiency of the quotation process and the time-consuming processing of exceptions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116204295B_ABST
    Figure CN116204295B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a task execution method, device, electronic device and storage medium, which relate to the field of data processing technology. The specific implementation scheme is: in response to receiving an execution instruction for a designated processing task for at least one designated time-consuming process, determining the target entrustment information as an analysis benchmark; based on the preset mapping relationship between the time-consuming process and the reference information in the quotation process, determining the reference information corresponding to each designated time-consuming process; for each designated time-consuming process, using the reference information corresponding to the designated time-consuming process, according to the time calculation method corresponding to the designated time-consuming process, calculate the time consumption corresponding to the designated time-consuming process; using the time consumption corresponding to each designated time-consuming process, perform the designated processing task. It can be seen that through this scheme, the designated processing task for the time-consuming process existing in the quotation process can be effectively executed without disclosing the logs of the exchange gateway and the exchange matching system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a task execution method, device, electronic device and storage medium. Background Art

[0002] Securities quotation systems are widely used in securities trading systems to implement trading and quotation processes. The trading process involves brokerage firms accepting client orders and returning order results. The quotation process involves sending client orders to the exchange's matching system and receiving a receipt confirming receipt of the order.

[0003] In the process of implementing trading and quotation processes, data transmission of multiple components is usually involved. For example, in a securities quotation system, there are four components: trading middleware, quotation middleware, exchange gateway and exchange matching system. Among them, the trading middleware is used for the trading process, and its function is to receive the customer's entrustment information and convert the entrustment information into a format acceptable to the exchange matching system, such as the FIX (Financial Information Exchange Protocol) format; the quotation middleware, exchange gateway and trading matching system are used for the quotation process; the quotation middleware receives the entrustment information sent by the trading middleware, and sends the entrustment information to the trading matching system through the exchange gateway for processing the entrustment information. When the trading matching system receives the entrustment information, it immediately returns receipt information indicating the receipt of the entrustment information and sends it to the quotation middleware through the exchange gateway. Based on the data transmission of multiple components, the quotation process for any client's entrustment information is usually divided into five time-consuming processes: the first time-consuming process, the second time-consuming process, the third time-consuming process, the fourth time-consuming process and the fifth time-consuming process; among them, the first time-consuming process is the time-consuming process of the transaction middleware sending the first quotation request message carrying the entrustment information to the quotation middleware; the second time-consuming process is the time-consuming process of the quotation middleware processing its own second quotation request message carrying the entrustment information to be forwarded; the third time-consuming process is the time-consuming process of the exchange matching system sending the first receipt message carrying the receipt content corresponding to the entrustment information to the exchange gateway; the fourth time-consuming process is the time-consuming process of the exchange gateway sending the second receipt message carrying the receipt content to the quotation middleware, and the second receipt message is generated based on the receipt content in the first receipt message; the fifth time-consuming process is the time-consuming process of the overall quotation execution process corresponding to the entrustment information.

[0004] For these time-consuming processes, there are typically designated processing tasks that utilize the time taken by each process, such as providing alerts for abnormal time consumption. However, exchange gateways and exchange matching systems typically do not publish logs, which undoubtedly hinders the acquisition of time information related to the exchange gateway and exchange matching system during the quotation process, thereby limiting the execution of designated processing tasks.

[0005] Therefore, given that exchange gateways and exchange matching systems typically do not disclose logs, how to effectively execute designated processing tasks for time-consuming processes in the quotation process is an urgent problem that needs to be solved. Summary of the Invention

[0006] The purpose of the embodiments of this application is to provide a task execution method, apparatus, electronic device, and storage medium to effectively execute designated processing tasks for time-consuming processes in the quotation process without disclosing logs between the exchange gateway and the exchange matching system. The specific technical solution is as follows:

[0007] In a first aspect, an embodiment of the present application provides a task execution method, applied to an electronic device; the method includes:

[0008] In response to receiving an execution instruction for a designated processing task for at least one designated time-consuming process, determining target commission information serving as an analysis basis; wherein the at least one designated time-consuming process is at least one time-consuming process among the time-consuming processes in the offer process; and the target commission is any commission that completes the offer process;

[0009] Based on a preset mapping relationship between time-consuming processes and reference information in a quotation process, reference information corresponding to each specified time-consuming process is determined; wherein, the reference information corresponding to any time-consuming process is information used to calculate the time consumption of the time-consuming process; the reference information corresponding to any time-consuming process includes one or more of first reference information, second reference information, and third reference information; wherein, the first reference information is a target quotation request message generated by the quotation middleware and carrying the target entrustment information, the second reference information is log information recorded by the quotation middleware for the target entrustment information, and the third reference information is a target receipt message sent by the exchange gateway and received by the quotation middleware and carrying receipt content corresponding to the target entrustment information;

[0010] For each designated time-consuming process, the time consumption corresponding to the designated time-consuming process is calculated using the reference information corresponding to the designated time-consuming process and the time consumption calculation method corresponding to the designated time-consuming process; wherein the time consumption calculation method corresponding to any time-consuming process is a method of calculating the time consumption using the time information carried by the reference information corresponding to the time-consuming process;

[0011] Use the time consumed by each designated time-consuming process to perform the designated processing task.

[0012] Optionally, the designated processing tasks include: early warning analysis tasks;

[0013] Use the time corresponding to each specified time-consuming process to perform specified processing tasks, including:

[0014] For each designated time-consuming process, if the time consumption corresponding to the designated time-consuming process exceeds a predetermined time consumption threshold corresponding to the designated time-consuming process, warning information indicating that a time consumption anomaly exists in the designated time-consuming process is output.

[0015] Optionally, the designated processing tasks include: time-consuming output tasks;

[0016] Use the time corresponding to each specified time-consuming process to perform specified processing tasks, including:

[0017] The time consumption corresponding to each designated time-consuming process is sent to a predetermined data receiving end, so that the data receiving end displays the time consumption corresponding to each designated time-consuming process.

[0018] Optionally, the reference information corresponding to the first time-consuming process includes the first reference information and the second reference information; the reference information corresponding to the second time-consuming process includes the first reference information and the second reference information; the reference information corresponding to the third time-consuming process includes the third reference information; the reference information corresponding to the fourth time-consuming process includes: the second reference information and the third reference information; the reference information corresponding to the fifth time-consuming process includes: the second reference information.

[0019] Optionally, the time consumption corresponding to the first time-consuming process is calculated by using the second time carried by the first reference information and subtracting the first time carried by the first reference information to obtain the time consumption of the first time-consuming process;

[0020] The time calculation formula corresponding to the second time-consuming process includes: using the third time recorded in the second reference information, subtracting the second time, to obtain the time corresponding to the second time-consuming process;

[0021] The time consumption corresponding to the third time-consuming process is calculated by: using the fifth time carried in the third reference information, subtracting the fourth time carried in the third reference information to obtain the time consumption corresponding to the third time-consuming process;

[0022] The time consumption corresponding to the fourth time-consuming process is calculated by: using the sixth time recorded by the second reference information, subtracting the fifth time, to obtain the time consumption corresponding to the fourth time-consuming process;

[0023] The time calculation formula corresponding to the fifth time-consuming process includes: using the sixth time, subtracting the third time to obtain the time of the fifth time-consuming process;

[0024] Among them, the first time is the time when the transaction middleware generates a quotation request message carrying the target entrustment information; the second time is the time when the first reference information is generated; the third time is the time when the first reference information is sent; the fourth time is the time when the exchange matching system generates a receipt message carrying the receipt content for sending to the exchange gateway; the fifth time is the time when the exchange gateway generates the target receipt message; and the sixth time is the time when the quotation middleware receives the target receipt message.

[0025] In a second aspect, an embodiment of the present application provides a task execution device, including:

[0026] A first determining module is configured to determine target commission information serving as an analysis basis in response to receiving an execution instruction for a designated processing task for at least one designated time-consuming process; wherein the at least one designated time-consuming process is at least one time-consuming process among the time-consuming processes in the bid process; and the target commission is any commission that completes the bid process;

[0027] a second determination module, configured to determine reference information corresponding to each designated time-consuming process based on a preset mapping relationship between time-consuming processes and reference information in a bidding process; wherein the reference information corresponding to any time-consuming process is information used to calculate the time consumption of the time-consuming process; and the reference information corresponding to any time-consuming process includes one or more of first reference information, second reference information, and third reference information; wherein the first reference information is a target bidding request message generated by the bidding middleware and carrying the target entrustment information, the second reference information is log information recorded by the bidding middleware for the target entrustment information, and the third reference information is a target receipt message received by the bidding middleware and sent by the exchange gateway and carrying receipt content corresponding to the target entrustment information;

[0028] a calculation module configured to calculate, for each designated time-consuming process, the time consumption corresponding to the designated time-consuming process using the reference information corresponding to the designated time-consuming process and in accordance with the time consumption calculation method corresponding to the designated time-consuming process; wherein the time consumption calculation method corresponding to any time-consuming process is a method of calculating the time consumption using the time information carried by the reference information corresponding to the time-consuming process;

[0029] The task processing module is used to perform designated processing tasks using the time consumption corresponding to each designated time-consuming process.

[0030] Optionally, the designated processing tasks include: early warning analysis tasks;

[0031] The task processing module includes:

[0032] The output unit is used to output warning information indicating that a time-consuming abnormality exists in each designated time-consuming process if the time consumed by the designated time-consuming process exceeds a predetermined time-consuming threshold corresponding to the designated time-consuming process.

[0033] Optionally, the designated processing tasks include: time-consuming output tasks;

[0034] The task processing module includes:

[0035] The sending unit is used to send the time consumption corresponding to each designated time-consuming process to a predetermined data receiving end, so that the data receiving end displays the time consumption corresponding to each designated time-consuming process.

[0036] In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;

[0037] Memory for storing computer programs;

[0038] The processor is configured to implement any of the above-mentioned task execution methods when executing a program stored in the memory.

[0039] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements any of the above-mentioned task execution methods.

[0040] Beneficial effects of the embodiments of the present application:

[0041] The embodiments of the present application provide a task execution method, device, electronic device and storage medium. After receiving an execution instruction for a designated processing task for at least one designated time-consuming process, target entrustment information serving as an analysis benchmark is determined. Then, based on a preset mapping relationship between the time-consuming process and the reference information in the quotation process, reference information corresponding to each designated time-consuming process is determined. The time consumption of the designated time-consuming process is calculated using the reference information corresponding to the determined designated time-consuming process, and the time consumption corresponding to each designated time-consuming process is then used to perform the designated processing task.

[0042] As can be seen, this solution can calculate the duration of each designated time-consuming process using only the data obtained by the quotation middleware, and can then use this time to perform specific processing tasks. Therefore, this solution can effectively execute specific processing tasks for time-consuming processes in the quotation process without disclosing logs between the exchange gateway and the exchange matching system.

[0043] Of course, it is not necessary to achieve all the advantages described above at the same time when implementing any product or method of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other embodiments can also be obtained based on these drawings.

[0045] Figure 1 A flowchart of a bidding process provided in an embodiment of the present application;

[0046] Figure 2 A flowchart of a task execution method provided in an embodiment of the present application;

[0047] Figure 3 A schematic diagram of the structure of a task execution device provided in an embodiment of the present application;

[0048] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0050] Below, we first explain the professional terms involved in this application:

[0051] FIX (Financial Information eXchange Protocol) - Each FIX message consists of a series of fields with a "label" = "value". Each label represents a different meaning, such as the type of information, the target business name, and the purchase price of a security.

[0052] In order to better understand the solution of this application, Figure 1 Provide a detailed introduction to the quotation process.

[0053] like Figure 1 As shown in the figure, the order process consists of four components: the trading middleware, the order middleware, the exchange gateway, and the exchange matching system. The trading middleware and the order middleware are brokerage components, deployed on the brokerage side. The exchange gateway and the exchange matching system are exchange components. The exchange matching system is deployed on the exchange side, while the exchange gateway is deployed on the brokerage side, enabling data exchange between brokerage-side and exchange-side components. The trading middleware generates FIX message content, which is the client's target order information converted into the FIX protocol format by the trading middleware. Each FIX message consists of a series of fields with <label> = <value>. The value corresponding to label 60 in the figure indicates the time the FIX message content was generated, and the value corresponding to label 52 indicates the time the FIX message content was generated. The FIX message content generated by the trading middleware contains not only the target order information but also the time when the trading middleware generated the FIX message content.

[0054] The quotation middleware receives the FIX message containing the target entrustment information sent by the transaction middleware, and generates a FIX message carrying the target entrustment information ( Figure 1 The quote FIX information generated by the quote middleware contains the content of the target entrustment information, the time when the transaction middleware generates the FIX message content, and the time when the quote middleware generates the quote FIX information (that is, Figure 1 Therefore, the time when the transaction middleware generates the FIX message content and the time when the quotation middleware generates the quotation FIX information can be obtained only by using the quotation FIX information generated by the quotation middleware.

[0055] The first time-consuming process in the offer process is the time it takes for the trading middleware to send the FIX message content generated by the trading middleware to the offer middleware. It is understood that the first time-consuming process also refers to the time it takes for the offer middleware to receive the FIX message content generated by the trading middleware and generate the offer FIX information. This first time-consuming process is the preparation phase of the offer process.

[0056] After the offer middleware generates the offer FIX information, it needs to send the offer FIX information to the exchange matching system through the exchange gateway. However, since the offer middleware will receive multiple offer FIX messages corresponding to different entrustment information, and for different entrustment information, it needs to send the offer FIX message corresponding to the entrustment information to the corresponding exchange according to the content of the entrustment information. Therefore, after the offer middleware receives the FIX message sent by the transaction middleware and generates the offer FIX information at the same time, it needs to queue up and process each offer FIX message until the offer FIX message is sent. The time when the offer middleware sends the offer FIX information is recorded in the offer middleware log, which is Figure 1 The second time-consuming process is the time consumed by the above-mentioned quotation middleware to process and send the quotation FIX information.

[0057] After receiving the quote FIX information forwarded by the exchange gateway, the exchange matching system immediately returns an execution return information indicating that the target order information has been received, and sends it to the quote middleware through the exchange gateway. The execution return information is transmitted in the FIX protocol format. Figure 1 The FIX message content generation time noted below the exchange matching system is the time when the exchange matching system generated the execution return information. The FIX message generation time noted below the exchange gateway is the time when the exchange gateway generated the FIX message carrying the execution return information corresponding to the target order information. The FIX message generated by the exchange gateway not only carries the execution return information corresponding to the target order information, but also includes the time when the exchange matching system generated the FIX message containing the execution return information and the time when the exchange gateway generated the FIX message carrying the execution return information corresponding to the target order information. Therefore, after the quotation middleware receives the FIX message sent by the exchange gateway, it can obtain the time when the exchange matching system generated the FIX message containing the execution return information and the time when the exchange gateway generated the FIX message carrying the execution return information corresponding to the target order information through the FIX message. The execution return information can also be called a receipt message, which carries the receipt content corresponding to the target order information. The physical meaning of the execution return information in the embodiments described below is the same as that here. In addition, the execution return information corresponding to the target order information generated by the exchange gateway is generated based on the execution return information generated by the exchange matching system. For example, the added information may include information such as the time when the exchange gateway generates the execution return information corresponding to the target order information, wherein the receipt content corresponding to the target order information remains unchanged.

[0058] The third time-consuming step in the order flow is the time it takes for the exchange's matching system to send a FIX message containing the execution report to the exchange's gateway. The fourth time-consuming step is the time it takes for the exchange's gateway to send a FIX message containing the execution report corresponding to the target order information to the order middleware.

[0059] The time when the offer middleware receives a FIX message from the exchange gateway carrying the execution report corresponding to the target order information is recorded in the offer middleware's log information, which is the time recorded in the FIX message receipt log shown in the figure. The fifth time-consuming process of the offer flow is the time taken for the entire offer execution process, starting with the offer middleware sending the FIX message carrying the target order information and ending with the offer middleware receiving the FIX message from the exchange gateway carrying the execution report corresponding to the target order information. The second, third, and fourth time-consuming processes are all part of the fifth time-consuming process.

[0060] In order to effectively execute designated processing tasks for time-consuming processes in the quotation process when the exchange gateway and the exchange matching system usually do not disclose logs, the embodiments of the present application provide a task execution method, device, electronic device and storage medium.

[0061] The following first introduces a task execution method provided in an embodiment of the present application. The task execution method provided in an embodiment of the present application is applied to an electronic device. In a specific application, the electronic device may be a terminal device, a server, etc., and the terminal device may be a tablet computer, a desktop computer, etc.; this application is not limited to this.

[0062] It can be known that the quotation process involves securities companies and exchanges. Therefore, both securities companies and exchanges have the need to use the task execution method described in this application. And since the data used in the present application scheme are generated or received by the quotation middleware, and the log information of the quotation middleware is public, third-party users can also use the task execution method of this application.

[0063] Specifically, the execution subject of the task execution method can be a task execution device. For example, when a securities dealer applies the task execution method provided by this application, the task execution method can be applied to the securities dealer terminal device, and the task execution device can be a task execution client installed in the securities dealer terminal device. Of course, the task execution device can also be deployed in the quotation middleware in the form of a plug-in; the task execution method can also be applied to the securities dealer server. In this case, the task execution device can be a computer program running in the server, and the computer program can be used to perform the task execution method. For example, when an exchange applies the task execution method of this application, the task execution method can be applied to the exchange terminal device, and the task execution device can be a task execution client installed in the exchange terminal device. Of course, the use scenario of the task execution method of this application is not limited to this. There are other scenarios in which third-party users such as regulatory authorities use this method, and this application does not limit this.

[0064] The task execution method provided in the embodiment of the present application may include:

[0065] In response to receiving an execution instruction for a designated processing task for at least one designated time-consuming process, determining target commission information serving as an analysis basis; wherein the at least one designated time-consuming process is at least one time-consuming process among the time-consuming processes in the offer process; and the target commission is any commission that completes the offer process;

[0066] Based on a preset mapping relationship between time-consuming processes and reference information in a quotation process, reference information corresponding to each specified time-consuming process is determined; wherein, the reference information corresponding to any time-consuming process is information used to calculate the time consumption of the time-consuming process; the reference information corresponding to any time-consuming process includes one or more of first reference information, second reference information, and third reference information; wherein, the first reference information is a target quotation request message generated by the quotation middleware and carrying the target entrustment information, the second reference information is log information recorded by the quotation middleware for the target entrustment information, and the third reference information is a target receipt message sent by the exchange gateway and received by the quotation middleware and carrying receipt content corresponding to the target entrustment information;

[0067] For each designated time-consuming process, the time consumption corresponding to the designated time-consuming process is calculated using the reference information corresponding to the designated time-consuming process and the time consumption calculation method corresponding to the designated time-consuming process; wherein the time consumption calculation method corresponding to any time-consuming process is a method of calculating the time consumption using the time information carried by the reference information corresponding to the time-consuming process;

[0068] Use the time consumed by each designated time-consuming process to perform the designated processing task.

[0069] In this scheme, after receiving the execution instruction of the designated processing task for at least one designated time-consuming process, the target entrustment information serving as the analysis benchmark is determined, and then, based on the preset mapping relationship between the time-consuming process and the reference information in the quotation process, the reference information corresponding to each designated time-consuming process is determined, and the time consumption of the designated time-consuming process is calculated using the reference information corresponding to the determined designated time-consuming process, and then the designated processing task is performed using the time consumption corresponding to each designated time-consuming process.

[0070] As can be seen, this solution can calculate the duration of each designated time-consuming process using only the data obtained by the quotation middleware, and can then use this time to perform specific processing tasks. Therefore, this solution can effectively execute specific processing tasks for time-consuming processes in the quotation process without disclosing logs between the exchange gateway and the exchange matching system.

[0071] The following describes a task execution method provided by an embodiment of the present application in conjunction with the accompanying drawings.

[0072] like Figure 2 As shown, the task execution method may include the following steps:

[0073] S201, in response to receiving an execution instruction for a designated processing task for at least one designated time-consuming process, determining target entrustment information serving as an analysis benchmark; wherein, the at least one designated time-consuming process is at least one time-consuming process among the various time-consuming processes in the quotation process; the target entrustment is any entrustment that completes the quotation process.

[0074] Among them, the target entrustment information can specifically be a securities purchase entrustment, a securities sell entrustment or a securities price inquiry entrustment, etc. This application does not limit this. Any entrustment information that can complete the quotation process can be the target entrustment information.

[0075] The execution instruction is used to trigger a specified processing task for at least one specified time-consuming process. For example, a user can issue an execution instruction by clicking a specified button in a human-computer interaction interface; a user can also issue an execution instruction by performing a predetermined gesture operation on the human-computer interaction interface. This application does not limit the method for issuing the execution instruction.

[0076] In this solution, there are multiple time-consuming processes and processing tasks, so the execution instruction triggers at least one specified processing task for a specified time-consuming process, or the execution instruction triggers at least one specified processing task for multiple time-consuming processes.

[0077] Exemplarily, at least one of the designated processing tasks may include: an early warning analysis task and a time consumption output task, wherein the early warning analysis task is used to analyze whether there is an abnormal time consumption, and the time consumption output task is used to output time consumption information. The specific content of the designated processing tasks will be described in detail later and will not be elaborated on here.

[0078] S202: Determine reference information corresponding to each designated time-consuming process based on a preset mapping relationship between time-consuming processes and reference information in a bid process; wherein the reference information corresponding to any time-consuming process is information used to calculate the duration of the time-consuming process; and the reference information corresponding to any time-consuming process includes one or more of first reference information, second reference information, and third reference information; wherein the first reference information is a target bid request message generated by the bid middleware and carrying the target entrustment information, the second reference information is log information recorded by the bid middleware for the target entrustment information, and the third reference information is a target receipt message sent by the exchange gateway and received by the bid middleware and carrying receipt content corresponding to the target entrustment information.

[0079] Among them, the first reference information is generated by the quotation middleware based on the quotation request message generated by the transaction middleware and carrying the target entrustment information. It should be noted that when performing the quotation process, the transaction middleware can generate a quotation request message based on the customer's target entrustment information. The quotation request message format can be FIX format. The FIX information generated by the transaction middleware not only contains the target entrustment information, but also contains the time when the transaction middleware generates the FIX information. The transaction middleware sends the FIX information it generates to the quotation middleware. The quotation middleware generates a FIX information based on the FIX information generated by the transaction middleware. The FIX information generated by the quotation middleware contains the target entrustment information, the time when the transaction middleware generates the FIX information, and the time when the quotation middleware generates the FIX information. The first reference information can be the FIX information generated by the above-mentioned quotation middleware. Each FIX information is composed of a series of fields with <label> = <value>. In the FIX information generated by the transaction middleware, for example, Figure 1 The value corresponding to the label 60 indicates the time when the transaction middleware generates the FIX message content. In the FIX information generated by the quotation middleware, the value corresponding to the label 52 indicates the time when the quotation middleware generates the FIX information. In the present application scheme, when the FIX protocol format is used to transmit information in the quotation process, the corresponding time information can be obtained from the first reference information and the third reference information using the label.

[0080] For example, in Figure 1The quotation FIX information generated by the quotation middleware is the first reference information, and the log information recorded by the quotation middleware is the second reference information; the FIX message generated by the exchange that carries the execution return information corresponding to the target order information is the third reference information.

[0081] In addition, in one implementation, the execution subject of the task execution method of the present application can be a task execution device. When the task execution device is deployed in the quotation middleware, since the first reference information, the second reference information and the third reference information in the scheme of the present application are all generated or received by the quotation middleware, when the quotation middleware generates or receives the first reference information, the second reference information and the third reference information, the task execution device deployed in the quotation middleware can obtain the first reference information, the second reference information and the third reference information to implement the task execution method of the present application. At this time, the task execution method can be performed in real time.

[0082] In one implementation, since the second reference information and the third reference information can be recorded in the log information of the offer middleware, the task execution device deployed on any device can obtain the second reference information and the third reference information from the first reference information to implement the task execution method of the present application. It is understandable that since the log information of the offer middleware is stored in real time, the task execution method can be implemented both in real time and for a certain historical commission information.

[0083] Optionally, in one implementation, the reference information corresponding to the first time-consuming process includes the first reference information; the reference information corresponding to the second time-consuming process includes the first reference information and the second reference information; the reference information corresponding to the third time-consuming process includes the third reference information; the reference information corresponding to the fourth time-consuming process includes: the second reference information and the third reference information; the reference information corresponding to the fifth time-consuming process includes: the second reference information.

[0084] The above reference information corresponding to each time-consuming process is merely an example and should not constitute a limitation to this application.

[0085] S203, for each specified time-consuming process, use the reference information corresponding to the specified time-consuming process and calculate the time consumption corresponding to the specified time-consuming process according to the time consumption calculation method corresponding to the specified time-consuming process; wherein, the time consumption calculation method corresponding to any time-consuming process is a method of using the time information carried by the reference information corresponding to the time-consuming process to calculate the time consumption.

[0086] When the reference information corresponding to each time-consuming process has been determined, the time-consuming calculation method corresponding to each time-consuming process can be pre-set. In this way, since a specified time-consuming process is a time-consuming process among the various time-consuming processes, after determining the reference information corresponding to each specified time-consuming process, the time consumption corresponding to the specified time-consuming process can be calculated using the reference information corresponding to the specified time-consuming process and the time-consuming calculation method corresponding to the specified time-consuming process. Furthermore, since the reference information corresponding to the time-consuming process to be calculated carries time information, the time-consuming calculation method corresponding to any time-consuming process is a method of calculating the time consumption using the time information carried by the reference information corresponding to the time-consuming process.

[0087] In the case of the reference information corresponding to each time-consuming process given above, this application exemplarily provides the time-consuming calculation method corresponding to each time-consuming process:

[0088] The time consumption corresponding to the first time-consuming process is calculated by: using the second time carried by the first reference information, subtracting the first time carried by the first reference information to obtain the time consumption of the first time-consuming process;

[0089] The time calculation formula corresponding to the second time-consuming process includes: using the third time recorded in the second reference information, subtracting the second time, to obtain the time corresponding to the second time-consuming process;

[0090] The time consumption corresponding to the third time-consuming process is calculated by: using the fifth time carried in the third reference information, subtracting the fourth time carried in the third reference information to obtain the time consumption corresponding to the third time-consuming process;

[0091] The time consumption corresponding to the fourth time-consuming process is calculated by: using the sixth time recorded by the second reference information, subtracting the fifth time, to obtain the time consumption corresponding to the fourth time-consuming process;

[0092] The time calculation formula corresponding to the fifth time-consuming process includes: using the sixth time, subtracting the third time to obtain the time of the fifth time-consuming process;

[0093] Among them, the first time is the time when the transaction middleware generates a quotation request message carrying the target entrustment information; the second time is the time when the first reference information is generated; the third time is the time when the first reference information is sent; the fourth time is the time when the exchange matching system generates a receipt message carrying the receipt content for sending to the exchange gateway; the fifth time is the time when the exchange gateway generates the target receipt message; and the sixth time is the time when the quotation middleware receives the target receipt message.

[0094] For example, Figure 1 In the figure, the time when the transaction middleware generates the FIX message content (labeled 60) is the first time, the time when the quotation middleware generates the FIX message (labeled 52) is the second time, the time when the quotation middleware sends the quotation FIX information log is the third time, the time when the exchange matching system generates the FIX message content (labeled 60) is the fourth time, the time when the exchange gateway generates the FIX message (labeled 52) is the fifth time, and the time when the quotation middleware receives the execution report FIX information log is the sixth time.

[0095] According to the time-consuming calculation method provided in the above embodiment, the time-consuming calculation process corresponding to the first time-consuming process can be expressed by the formula: the time consumed by the first time-consuming process = the second time - the first time;

[0096] The time calculation process corresponding to the second time-consuming process can be expressed by the formula: the time corresponding to the second time-consuming process = the third time - the second time;

[0097] The time calculation process corresponding to the third time-consuming process can be expressed by the formula: the time corresponding to the third time-consuming process = the fifth time - the fourth time;

[0098] The time calculation process corresponding to the fourth time-consuming process can be expressed by the formula: the time corresponding to the fourth time-consuming process = the sixth time - the fifth time;

[0099] The time-consuming calculation process corresponding to the fifth time-consuming process can be expressed by the formula: the time-consuming process of the fifth time-consuming process=the sixth time-the third time.

[0100] According to the above Figure 1 The corresponding relationship between the time-consuming process and the time-consuming process of the bidding process in this embodiment is as follows: Figure 1 The time-consuming calculation process of the quotation process can be expressed as follows:

[0101] The time taken for the overall quote execution process = the time taken to record the FIX information log for receiving the execution report - the time taken to record the FIX information log for sending the quote;

[0102] Time consumed by the transaction middleware = time taken by the quotation middleware to generate the FIX message (label 52) - time taken by the transaction middleware to generate the FIX message content (label 60);

[0103] The time consumed by the offer middleware for processing = the time it takes to log the offer FIX information - the time it takes for the offer middleware to generate the FIX message (reference numeral 52);

[0104] Time taken from the exchange matching system to the exchange quotation machine = time taken by the exchange gateway to generate the FIX message (label 52) - time taken by the exchange matching system to generate the FIX message content (label 60);

[0105] The time taken by the exchange quotation machine to process the execution report (that is, the time taken by the above-mentioned exchange gateway to send the FIX message it generates and carries the execution return information corresponding to the target order information to the quotation middleware. When the exchange quotation machine receives the FIX message, it updates the relevant data of the target order information in the brokerage database according to the content of the FIX message. The processing of the execution report refers to the operation of updating the database. The quotation middleware can receive the FIX message and update the database at the same time and complete the operation) = the time taken to record the log of the execution return FIX information - the time taken by the exchange gateway to generate the FIX message (label 52).

[0106] The solution of this embodiment can accurately calculate the overall bid execution process time, trading middleware time, bid middleware processing time, exchange matching system to exchange gateway time, and exchange bid machine processing execution report time. Therefore, this solution can solve the problem of difficult to measure the bid process time in detail. Using a complete trading process as a starting point, it qualitatively and quantitatively analyzes the time-consuming processes in the bid process related to each component in the bid system. Furthermore, this solution, using only the bid middleware log, records the time and FIX protocol details in the log to accurately analyze the time-consuming processes in the bid process related to each component, without having to enable detailed logs for the exchange gateway and the exchange matching gateway. Therefore, this solution is simple to operate, has reliable evaluation results, and is applicable to various bid systems.

[0107] In one implementation, some exchanges require the quotation middleware to obtain order information from the broker's database. In this case, the quotation middleware generates a quotation request message carrying the target order information based on the target order information in the database. Specifically, because exchanges typically use the FIX protocol, the quotation middleware obtains the target order information from the database and generates a quotation request message in FIX format carrying the target order information. In this scenario, there is no trading middleware time consumption, that is, the first time consumption mentioned above does not exist. The calculation method for the other second, third, fourth, and fifth time consumptions mentioned above is the same as in the above embodiment. Therefore, this solution can be applied to the quotation process of different exchanges to calculate the time consumption of each time-consuming process, so as to effectively execute the designated processing tasks related to the time-consuming processes in the quotation process.

[0108] S204: Perform designated processing tasks using the time consumed by each designated time-consuming process.

[0109] Optionally, if the designated processing task includes an early warning analysis task, the designated processing task is performed using the time consumption corresponding to each designated time-consuming process, which may include:

[0110] For each designated time-consuming process, if the time consumption corresponding to the designated time-consuming process exceeds a predetermined time consumption threshold corresponding to the designated time-consuming process, warning information indicating that a time consumption anomaly exists in the designated time-consuming process is output.

[0111] It can be known that the time consumption of each specified time-consuming process is relatively stable under normal circumstances. If it exceeds the predetermined time consumption threshold corresponding to the specified time-consuming process, it means that there is an abnormality in the time-consuming process. Therefore, when the time consumption corresponding to the specified time-consuming process exceeds the predetermined time consumption threshold corresponding to the specified time-consuming process, an early warning information indicating that there is a time consumption abnormality in the specified time-consuming process can be output to the brokerage's terminal equipment such as a display device.

[0112] In one implementation, because the quotation process involves both the brokerage and the exchange, when the brokerage uses the solution of this application, if a time-consuming process involving the exchange has a time-consuming anomaly, such as the third and fourth time-consuming anomalies, it indicates that an anomaly has occurred on the exchange side, and an early warning message indicating that a time-consuming anomaly has occurred in the specified time-consuming process can be sent to the exchange; similarly, when the exchange uses the solution of this application, if a time-consuming process involving the brokerage has a time-consuming anomaly, such as the first and second time-consuming anomalies, it indicates that an anomaly has occurred on the brokerage side, and an early warning message indicating that a time-consuming anomaly has occurred in the specified time-consuming process can be sent to the brokerage. This helps to resolve abnormal problems in the quotation process more quickly.

[0113] Optionally, if the designated processing task includes a time-consuming data display task, performing the designated processing task using the time consumption corresponding to each designated time-consuming process may include:

[0114] The time consumption corresponding to each designated time-consuming process is sent to a predetermined data receiving end, so that the data receiving end displays the time consumption corresponding to each designated time-consuming process.

[0115] The data receiving end receives each time-consuming data and can visually display the time consumption corresponding to each specified time-consuming process, which is conducive to the staff to easily obtain the time consumption information of each time-consuming process.

[0116] Optionally, if the designated processing task includes a component efficiency analysis task, performing the designated processing task using the time consumption corresponding to each designated time-consuming process may include:

[0117] Based on the time consumption of each designated time-consuming process, analyze the work efficiency of the components that implement each designated time-consuming process in the quotation process.

[0118] For example, if the second time-consuming process in the quotation process takes a short time, it means that the quotation middleware that implements the second time-consuming process has high work efficiency. If the second time-consuming process takes a long time but does not exceed the corresponding predetermined time threshold, it means that the quotation middleware that implements the second time-consuming process has low work efficiency. At this time, the task can be assigned to the servers corresponding to other quotation middleware to improve work efficiency.

[0119] In this scheme, after receiving the execution instruction of the designated processing task for at least one designated time-consuming process, the target entrustment information serving as the analysis benchmark is determined, and then, based on the preset mapping relationship between the time-consuming process and the reference information in the quotation process, the reference information corresponding to each designated time-consuming process is determined, and the time consumption of the designated time-consuming process is calculated using the reference information corresponding to the determined designated time-consuming process, and then the designated processing task is performed using the time consumption corresponding to each designated time-consuming process.

[0120] As can be seen, this solution can calculate the duration of each designated time-consuming process using only the data obtained by the quotation middleware, and can then use this time to perform specific processing tasks. Therefore, this solution can effectively execute specific processing tasks for time-consuming processes in the quotation process without disclosing logs between the exchange gateway and the exchange matching system.

[0121] To better understand this solution, the following describes a specific example of how to perform a task:

[0122] Step 1: receiving an execution instruction for a warning analysis task for a second time-consuming process of a quotation flow.

[0123] Step 2: obtaining reference information corresponding to the second time-consuming process;

[0124] It can be seen from the above embodiments that a mapping relationship between the time-consuming process and the reference information in the quotation process is preset. Therefore, based on the mapping relationship, the reference information corresponding to the second time-consuming process can be obtained; and the reference information corresponding to the second time-consuming process of the quotation process includes the first reference information and the second reference information.

[0125] Step three: using the time consumption calculation method corresponding to the second time-consuming process of the quotation process and based on the reference information corresponding to the second time-consuming process, calculate the time consumption corresponding to the second time-consuming process.

[0126] According to the time calculation method corresponding to the second time-consuming process, the time when the quotation middleware generates the FIX message obtained from the first reference information, that is, the generation time of the above-mentioned first reference information (referred to as the second time in the above embodiment), can be used to subtract the time when the quotation middleware sends the FIX message obtained from the second reference information, that is, the sending time of the above-mentioned first reference information (referred to as the third time in the above embodiment). For example, the generation time of the first reference information is numbered 52, and the specific time is 10:23:01. The time when the quotation middleware sends the FIX message obtained from the second reference information is 10:23:04, that is, the sending time of the above-mentioned first reference information is 10:23:04. In this embodiment, the second time calculation method is to subtract the generation time of the first reference information 10:23:01 from the sending time of the first reference information 10:23:04, and obtain a time of 3S, that is, to use the third time described in the above embodiment, subtract the second time, and obtain the time corresponding to the second time-consuming process.

[0127] Step 4: for the second time-consuming process, if the time consumption corresponding to the second time-consuming process exceeds the predetermined time consumption threshold corresponding to the second time-consuming process, outputting warning information for indicating that the second time-consuming process has a time consumption anomaly.

[0128] In this embodiment, the set threshold of the second time-consuming process is 2S, and the calculated actual time consumption is 3S. Therefore, there is an abnormality in the time consumption of the second time-consuming process, and an early warning information indicating that there is an abnormality in the time consumption of the second time-consuming process is sent to the brokerage terminal device.

[0129] In this scheme, an execution instruction of the warning analysis task for the second time-consuming process of the quotation process is received, reference information corresponding to the second time-consuming process is obtained, and the time consumption corresponding to the second time-consuming process of the quotation process is calculated based on the reference information corresponding to the second time-consuming process using the time consumption calculation method corresponding to the second time-consuming process. If the time consumption corresponding to the second time-consuming process exceeds the predetermined time consumption threshold corresponding to the second time-consuming process, warning information is output to characterize the existence of time consumption abnormality in the second time-consuming process.

[0130] Since this solution uses the data obtained by the quotation middleware to calculate the duration of the second time-consuming process and determines whether there is any abnormality in the time-consuming process, and sends an early warning message if there is an abnormality, the solution of this embodiment can monitor the duration of the second time-consuming process, and send an early warning message once an abnormality occurs, which is conducive to promptly resolving abnormal conditions in the second time-consuming process.

[0131] Based on the above-mentioned embodiment of the task execution method, the embodiment of the present disclosure further provides a task execution device. Figure 3 A schematic diagram of the structure of a task execution device provided by an embodiment of the present disclosure is shown in FIG. Figure 3As shown, the task execution device may include:

[0132] The first determining module 301 is configured to determine target commission information serving as an analysis benchmark in response to receiving an execution instruction for a designated processing task for at least one designated time-consuming process; wherein the at least one designated time-consuming process is at least one time-consuming process among the time-consuming processes in the bid process; and the target commission is any commission that completes the bid process;

[0133] The second determination module 302 is configured to determine the reference information corresponding to each designated time-consuming process based on a preset mapping relationship between time-consuming processes and reference information in the bidding process; wherein the reference information corresponding to any time-consuming process is information used to calculate the duration of the time-consuming process; and the reference information corresponding to any time-consuming process includes one or more of first reference information, second reference information, and third reference information; wherein the first reference information is a target bidding request message generated by the bidding middleware and carrying the target entrustment information, the second reference information is log information recorded by the bidding middleware for the target entrustment information, and the third reference information is a target receipt message received by the bidding middleware and sent by the exchange gateway and carrying the receipt content corresponding to the target entrustment information;

[0134] The calculation module 303 is configured to calculate the time consumption corresponding to each designated time-consuming process using the reference information corresponding to the designated time-consuming process and according to the time consumption calculation method corresponding to the designated time-consuming process; wherein the time consumption calculation method corresponding to any time-consuming process is a method of calculating the time consumption using the time information carried by the reference information corresponding to the time-consuming process;

[0135] The task processing module 304 is configured to perform a designated processing task using the time consumption corresponding to each designated time-consuming process.

[0136] In this scheme, after receiving the execution instruction of the designated processing task for at least one designated time-consuming process, the target entrustment information serving as the analysis benchmark is determined, and then, based on the preset mapping relationship between the time-consuming process and the reference information in the quotation process, the reference information corresponding to each designated time-consuming process is determined, and the time consumption of the designated time-consuming process is calculated using the reference information corresponding to the determined designated time-consuming process, and then the designated processing task is performed using the time consumption corresponding to each designated time-consuming process.

[0137] As can be seen, this solution can calculate the duration of each designated time-consuming process using only the data obtained by the quotation middleware, and can then use this time to perform specific processing tasks. Therefore, this solution can effectively execute specific processing tasks for time-consuming processes in the quotation process without disclosing logs between the exchange gateway and the exchange matching system.

[0138] Optionally, the designated processing tasks include: early warning analysis tasks;

[0139] The task processing module includes:

[0140] The output unit is used to output warning information indicating that a time-consuming abnormality exists in each designated time-consuming process if the time consumed by the designated time-consuming process exceeds a predetermined time-consuming threshold corresponding to the designated time-consuming process.

[0141] Optionally, the designated processing tasks include: time-consuming output tasks;

[0142] The task processing module includes:

[0143] The sending unit is used to send the time consumption corresponding to each designated time-consuming process to a predetermined data receiving end, so that the data receiving end displays the time consumption corresponding to each designated time-consuming process.

[0144] Optionally, the reference information corresponding to the first time-consuming process includes the first reference information and the second reference information; the reference information corresponding to the second time-consuming process includes the first reference information and the second reference information; the reference information corresponding to the third time-consuming process includes the third reference information; the reference information corresponding to the fourth time-consuming process includes: the second reference information and the third reference information; the reference information corresponding to the fifth time-consuming process includes: the second reference information.

[0145] Optionally, the time consumption corresponding to the first time-consuming process is calculated by using the second time carried by the first reference information and subtracting the first time carried by the first reference information to obtain the time consumption of the first time-consuming process;

[0146] The time calculation formula corresponding to the second time-consuming process includes: using the third time recorded in the second reference information, subtracting the second time, to obtain the time corresponding to the second time-consuming process;

[0147] The time consumption corresponding to the third time-consuming process is calculated by: using the fifth time carried in the third reference information, subtracting the fourth time carried in the third reference information to obtain the time consumption corresponding to the third time-consuming process;

[0148] The time consumption corresponding to the fourth time-consuming process is calculated by: using the sixth time recorded by the second reference information, subtracting the fifth time, to obtain the time consumption corresponding to the fourth time-consuming process;

[0149] The time calculation formula corresponding to the fifth time-consuming process includes: using the sixth time, subtracting the third time to obtain the time of the fifth time-consuming process;

[0150] Among them, the first time is the time when the transaction middleware generates a quotation request message carrying the target entrustment information; the second time is the time when the first reference information is generated; the third time is the time when the first reference information is sent; the fourth time is the time when the exchange matching system generates a receipt message carrying the receipt content for sending to the exchange gateway; the fifth time is the time when the exchange gateway generates the target receipt message; and the sixth time is the time when the quotation middleware receives the target receipt message.

[0151] The present application also provides an electronic device, such as Figure 4 As shown, it includes a processor 401, a communication interface 402, a memory 403 and a communication bus 404, wherein the processor 401, the communication interface 402, and the memory 403 communicate with each other through the communication bus 404.

[0152] Memory 403, used for storing computer programs;

[0153] The processor 401 is configured to implement the steps of any task execution method in the above embodiments when executing the program stored in the memory 403 .

[0154] The communication bus mentioned in the electronic device mentioned above may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. This communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is used in the figure, but this does not mean that there is only one bus or only one type of bus.

[0155] The communication interface is used for communication between the above electronic device and other devices.

[0156] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage. Alternatively, the memory may be at least one storage device located away from the processor.

[0157] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.

[0158] In another embodiment provided by the present application, a computer-readable storage medium is further provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned task execution methods are implemented.

[0159] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any one of the task execution methods in the above embodiments.

[0160] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).

[0161] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply the existence of any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.

[0162] Each embodiment in this specification is described in a related manner. The same or similar parts between the embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments.

[0163] The above description is only a preferred embodiment of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application are included in the scope of protection of the present application.

Claims

1. A task execution method, characterized in that: Applied to electronic equipment; the method comprises: In response to receiving an execution instruction for a designated processing task for at least one designated time-consuming process, target commission information serving as an analysis benchmark is determined; wherein the at least one designated time-consuming process is at least one time-consuming process among the time-consuming processes in the bid process; the target commission is any commission that completes the bid process; and the bid process includes two components: a bid middleware and an exchange gateway. Based on a preset mapping relationship between time-consuming processes and reference information in a quotation process, reference information corresponding to each specified time-consuming process is determined; wherein, the reference information corresponding to any time-consuming process is information used to calculate the time consumption of the time-consuming process; the reference information corresponding to any time-consuming process includes one or more of first reference information, second reference information, and third reference information; wherein, the first reference information is a target quotation request message generated by the quotation middleware and carrying the target entrustment information, the second reference information is log information recorded by the quotation middleware for the target entrustment information, and the third reference information is a target receipt message sent by the exchange gateway and received by the quotation middleware and carrying receipt content corresponding to the target entrustment information; For each designated time-consuming process, the time consumption corresponding to the designated time-consuming process is calculated using the reference information corresponding to the designated time-consuming process and the time consumption calculation method corresponding to the designated time-consuming process; wherein the time consumption calculation method corresponding to any time-consuming process is a method of calculating the time consumption using the time information carried by the reference information corresponding to the time-consuming process; Use the time consumed by each designated time-consuming process to perform the designated processing task.

2. The method according to claim 1, characterized in that The designated processing tasks include: early warning analysis tasks; Use the time corresponding to each specified time-consuming process to perform specified processing tasks, including: For each designated time-consuming process, if the time consumption corresponding to the designated time-consuming process exceeds a predetermined time consumption threshold corresponding to the designated time-consuming process, warning information indicating that a time consumption anomaly exists in the designated time-consuming process is output.

3. The method according to claim 1, characterized in that The designated processing tasks include: time-consuming output tasks; Use the time corresponding to each specified time-consuming process to perform specified processing tasks, including: The time consumption corresponding to each designated time-consuming process is sent to a predetermined data receiving end, so that the data receiving end displays the time consumption corresponding to each designated time-consuming process.

4. The method according to any one of claims 1 to 3, characterized in that The time-consuming processes include: a first time-consuming process, a second time-consuming process, a third time-consuming process, a fourth time-consuming process and a fifth time-consuming process; the reference information corresponding to the first time-consuming process includes the first reference information and the second reference information; the reference information corresponding to the second time-consuming process includes the first reference information and the second reference information, and the reference information corresponding to the third time-consuming process includes the third reference information; the reference information corresponding to the fourth time-consuming process includes: the second reference information and the third reference information; the reference information corresponding to the fifth time-consuming process includes: the second reference information.

5. The method according to claim 4, characterized in that The quotation process also includes two components: a transaction middleware and an exchange matching system. The time consumption corresponding to the first time-consuming process is calculated by subtracting the first time carried by the first reference information from the second time carried by the first reference information to obtain the time consumption of the first time-consuming process. The time calculation formula corresponding to the second time-consuming process includes: using the third time recorded in the second reference information, subtracting the second time, to obtain the time corresponding to the second time-consuming process; The time consumption corresponding to the third time-consuming process is calculated by: using the fifth time carried in the third reference information, subtracting the fourth time carried in the third reference information to obtain the time consumption corresponding to the third time-consuming process; The time consumption corresponding to the fourth time-consuming process is calculated by: using the sixth time recorded by the second reference information, subtracting the fifth time, to obtain the time consumption corresponding to the fourth time-consuming process; The time calculation formula corresponding to the fifth time-consuming process includes: using the sixth time, subtracting the third time to obtain the time of the fifth time-consuming process; Among them, the first time is the time when the transaction middleware generates a quotation request message carrying the target entrustment information; the second time is the time when the first reference information is generated; the third time is the time when the first reference information is sent; the fourth time is the time when the exchange matching system generates a receipt message carrying the receipt content for sending to the exchange gateway; the fifth time is the time when the exchange gateway generates the target receipt message; and the sixth time is the time when the quotation middleware receives the target receipt message.

6. A task execution device, characterized in that: Applicable to electronic equipment; the device comprises: A first determining module is configured to, in response to receiving an execution instruction for a designated processing task for at least one designated time-consuming process, determine target commission information serving as a benchmark for analysis; wherein the at least one designated time-consuming process is at least one time-consuming process among the various time-consuming processes in a bid process; the target commission is any commission that completes the bid process; and the bid process includes two components: a bid middleware and an exchange gateway. a second determination module, configured to determine reference information corresponding to each designated time-consuming process based on a preset mapping relationship between time-consuming processes and reference information in a bidding process; wherein the reference information corresponding to any time-consuming process is information used to calculate the time consumption of the time-consuming process; and the reference information corresponding to any time-consuming process includes one or more of first reference information, second reference information, and third reference information; wherein the first reference information is a target bidding request message generated by the bidding middleware and carrying the target entrustment information, the second reference information is log information recorded by the bidding middleware for the target entrustment information, and the third reference information is a target receipt message received by the bidding middleware and sent by the exchange gateway and carrying receipt content corresponding to the target entrustment information; a calculation module configured to calculate, for each designated time-consuming process, the time consumption corresponding to the designated time-consuming process using the reference information corresponding to the designated time-consuming process and in accordance with the time consumption calculation method corresponding to the designated time-consuming process; wherein the time consumption calculation method corresponding to any time-consuming process is a method of calculating the time consumption using the time information carried by the reference information corresponding to the time-consuming process; The task processing module is used to perform designated processing tasks using the time consumption corresponding to each designated time-consuming process.

7. The device according to claim 6, characterized in that The designated processing tasks include: early warning analysis tasks; The task processing module includes: The output unit is used to output warning information indicating that a time-consuming abnormality exists in each designated time-consuming process if the time consumed by the designated time-consuming process exceeds a predetermined time-consuming threshold corresponding to the designated time-consuming process.

8. The device according to claim 6, characterized in that The designated processing tasks include: time-consuming output tasks; The task processing module includes: The sending unit is used to send the time consumption corresponding to each designated time-consuming process to a predetermined data receiving end, so that the data receiving end displays the time consumption corresponding to each designated time-consuming process.

9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory for storing computer programs; A processor, configured to implement the method according to any one of claims 1 to 5 when executing a program stored in a memory.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Transaction system and transaction service control method and device thereof

    CN112669158A

  • System and method for processing securities trading instructions and commnicating order status via a messaging interface

    US20060026091A1