Transaction control method and device, electronic equipment and readable medium

By obtaining and querying policy operation information and conducting health checks to ensure the healthy state of the strategy of the virtual resource trading platform, the problem that the virtual resource trading platform cannot fully perceive and control transaction risks, and improves management and risk control capabilities.

CN118941383APending Publication Date: 2024-11-12TENPAY PAID TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410914297.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

During the automated trading process, existing virtual resource trading platforms cannot fully perceive and judge the operating status of trading services, resulting in insufficient management capabilities and difficulty in effectively controlling trading risks.

Method used

By obtaining policy operation information, querying policy health indicators, and conducting policy health checks. If the health indicators are not met, stop generating virtual resource transactions to ensure the healthy status of the transaction control strategy.

Benefits of technology

It improves the management capabilities and risk control capabilities of the trading platform for automated trading processes, ensures the stability of virtual resource trading, and fills the management gap at the logical level of trading business.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118941383A_ABST
    Figure CN118941383A_ABST
Patent Text Reader

Abstract

The invention provides a transaction control method and device, electronic equipment and a readable medium. The method comprises the steps that strategy operation information is acquired, the strategy operation information comprises execution state information of a transaction control strategy of a specified virtual resource, and the transaction control strategy is used for generating a virtual resource transaction; according to the strategy operation information, strategy health indexes corresponding to the transaction control strategy are inquired, and the strategy health indexes comprise indexes used for indicating the operation health state of the transaction control strategy; according to the policy health index, performing policy health check on the policy operation information; and if the strategy operation information does not meet the strategy health index, stopping generating the virtual resource transaction according to the transaction control strategy. According to the method, the risk control capability of the automatic transaction process of the virtual resources can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a transaction control method, device, electronic device and readable medium. Background Art

[0002] The virtual resource trading platform will provide users with automated trading services for virtual resources. The trading platform can set corresponding trading control policies for virtual resources as needed, and the virtual resource trading platform will automatically trigger virtual resource transactions according to the trading control policies. How to monitor the status of automated trading services has become a focus of attention for users and platforms.

[0003] In related technologies, during the process of automated trading, the trading platform will collect error information from the operation of various services, calls, instructions, interfaces, and other systems on the trading platform, and summarize the error information, thereby determining the operating status of the trading platform based on the summarized information and controlling the automated trading process.

[0004] However, in such solutions, since the error information comes from the platform system operation process, the trading platform can only judge the server and network status based on the error information. The perception and judgment of the operation status of the automated trading service is not comprehensive enough, resulting in insufficient management capabilities of the trading platform for the automated trading process, which is not conducive to risk control of the automated trading process of virtual resources. Summary of the invention

[0005] Based on the above technical problems, the present application provides a transaction control method, device, electronic device and readable medium to improve the risk control capability of the automated transaction process of virtual resources.

[0006] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0007] According to one aspect of an embodiment of the present application, a transaction control method is provided, including:

[0008] Acquiring strategy operation information, wherein the strategy operation information includes execution status information of a transaction control strategy for a specified virtual resource, wherein the transaction control strategy is used to generate a virtual resource transaction;

[0009] According to the strategy operation information, query the strategy health indicator corresponding to the transaction control strategy, wherein the strategy health indicator includes an indicator for indicating the operation health status of the transaction control strategy;

[0010] Performing a policy health check on the policy operation information according to the policy health indicator;

[0011] If the policy operation information does not satisfy the policy health indicator, the generation of virtual resource transactions according to the transaction control policy is stopped.

[0012] According to one aspect of an embodiment of the present application, there is provided a transaction control device, including:

[0013] An information acquisition module configured to acquire strategy operation information, wherein the strategy operation information includes execution status information of a transaction control strategy for a specified virtual resource, wherein the transaction control strategy is used to generate a virtual resource transaction;

[0014] An indicator query module, configured to query a policy health indicator corresponding to the transaction control policy according to the policy operation information, wherein the policy health indicator includes an indicator for indicating a healthy state of operation of the transaction control policy;

[0015] A health check module, configured to perform a policy health check on the policy operation information according to the policy health indicator;

[0016] The transaction stopping module is configured to stop generating virtual resource transactions according to the transaction control policy if the policy operation information does not meet the policy health index.

[0017] In some embodiments of the present application, based on the above technical solution, the health check module is specifically configured to: update the operation statistics of the transaction control strategy according to the strategy operation information of the transaction control strategy; query the total number of operations of all transaction control strategies within the first strategy period according to the strategy health indicator and the operation statistics, wherein the strategy health indicator includes a first number interval set for all transaction control strategies; if the total number of operations is not within the first number interval, it is determined that the strategy operation information does not meet the strategy health indicator.

[0018] In some embodiments of the present application, based on the above technical solution, the health check module is specifically configured as follows: if the total number of operations is within the first number interval, then according to the strategy health indicator, the number of strategy operations of the transaction control strategy within the second strategy period is queried from the operation statistics data, wherein the strategy health indicator includes a second number interval set for the transaction control strategy; if the strategy operation number is not within the second number interval, it is determined that the strategy operation information does not meet the strategy health indicator.

[0019] In some embodiments of the present application, based on the above technical solution, the health check module is further configured to: obtain transaction instruction information, the transaction instruction information includes execution status information of the virtual resource transaction generated according to the transaction control policy; query the transaction health indicator corresponding to the virtual resource transaction according to the transaction instruction information, the transaction health indicator includes an indicator for indicating the health status of the virtual resource transaction; perform a transaction health check on the transaction instruction information according to the transaction health indicator; if the transaction instruction information does not meet the transaction health indicator, stop generating the virtual resource transaction according to the transaction control policy.

[0020] In some embodiments of the present application, based on the above technical solution, the health check module is specifically configured to: update the transaction statistics of the specified virtual resource according to the transaction volume of the specified virtual resource in the transaction instruction information; query the total transaction volume of all virtual resources in the first transaction period and the transaction volume of the specified virtual resource in the second transaction period according to the transaction health index and the transaction statistics, wherein the transaction health index includes a first transaction volume interval set for all virtual resources and a second transaction volume interval set for the specified virtual resource; if the total transaction volume is not within the first transaction volume interval or the transaction volume is not within the second transaction volume interval, it is determined that the transaction instruction information does not meet the transaction health index.

[0021] In some embodiments of the present application, based on the above technical solution, the health check module is specifically configured as follows: if the total transaction volume is within the first transaction volume interval and the transaction volume is within the second transaction volume interval, then according to the transaction health indicator and the transaction statistics data, the total number of transactions for all virtual resources within the first specified time period is queried; according to the transaction health indicator, the number of transactions generated for virtual resource transactions generated according to the transaction control policy within the second specified time period is queried from the transaction statistics data, wherein the transaction health indicator includes a first number interval set for all virtual resources and a second number interval set for the transaction control policy; if the total number of transactions is not within the first number interval or the number of transactions generated is not within the second number interval, it is determined that the transaction instruction information does not meet the transaction health indicator.

[0022] In some embodiments of the present application, based on the above technical solution, the health check module is also configured to: determine the third transaction volume interval of the virtual resource transaction from the transaction health indicator according to the policy identifier of the transaction control policy in the policy operation information; if the transaction volume of the specified virtual resource in the transaction instruction information is not within the third transaction volume interval, it is determined that the transaction instruction information does not meet the transaction health indicator.

[0023] In some embodiments of the present application, based on the above technical solution, the health check module is also configured to: receive the transaction result of the virtual resource transaction generated according to the transaction control policy; if the transaction result indicates that the virtual resource transaction has failed, delete the transaction data of the virtual resource in the transaction instruction information from the transaction statistics.

[0024] In some embodiments of the present application, based on the above technical solution, the policy health indicator also includes the indicator effective time of the policy health indicator; the health check module is specifically configured to: determine the currently effective policy health indicator based on the current time and the indicator effective time of the policy health indicator; and perform a policy health check on the policy operation information based on the currently effective policy health indicator.

[0025] In some embodiments of the present application, based on the above technical solution, the transaction stop module is also configured to: if the strategy operation information is not received within the specified time, query the strategy health indicator corresponding to the transaction control strategy; and perform a strategy health check on the historical strategy operation information of the transaction control strategy according to the strategy health indicator.

[0026] In some embodiments of the present application, based on the above technical solution, the health check module is also configured to: receive an indicator generation request, the indicator generation request including specified duration information, policy identification information and policy threshold information; determine the target control policy corresponding to the policy identification information and the target virtual resource transaction generated by the target control policy according to the policy identification information in the indicator generation request; generate a policy health indicator corresponding to the target control policy and all transaction control policies and a transaction health indicator corresponding to the target virtual resource transaction and all virtual resources according to the specified duration information and policy threshold information in the indicator generation request.

[0027] In some embodiments of the present application, based on the above technical solution, the information acquisition module is specifically configured as follows: when the policy execution module executes the target transaction control policy, the policy execution result is obtained and uploaded to the guardian module; when the transaction execution module executes the virtual resource transaction generated by the target transaction control policy, the transaction execution result is obtained and uploaded to the guardian module; through the guardian module, the policy execution information is determined according to the policy execution result, and the transaction instruction information is determined according to the transaction execution result.

[0028] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute a transaction control method as in the above technical solution by executing the executable instructions.

[0029] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the transaction control method in the above technical solution is implemented.

[0030] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are 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, so that the computer device executes the transaction control method provided in the above-mentioned various optional implementations.

[0031] In an embodiment of the present application, the trading platform obtains strategy operation information, wherein the strategy operation information includes the execution status information of the transaction control strategy of the specified virtual resource, the transaction control strategy is used to generate the virtual resource transaction, and then according to the strategy operation information, the strategy health index corresponding to the transaction control strategy is queried, the strategy health index includes an index for indicating the operation health status of the transaction control strategy, and then the trading platform performs a strategy health check on the strategy operation information according to the strategy health index; finally, if the strategy operation information does not meet the strategy health index, the virtual resource transaction is stopped from being generated according to the transaction control strategy. Through the above-mentioned method, the trading platform can determine the health status of the automated transaction at the business level based on the operation status of the control rules of the automated transaction and the operation status of the generated virtual resource transaction, and stop the automated transaction when there is a problem with the health status at the business level, so as to more comprehensively perceive and judge the operation status of the automated transaction service, improve the management ability of the trading platform for the automated transaction process, and the risk control ability of the automated transaction process of virtual resources, and further improve the management dimension of the automated transaction of virtual resources by the trading platform, fill the management gap of the transaction business logic level of the trading platform, and help to ensure the stability of virtual resource transactions.

[0032] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0034] Figure 1The system architecture applied to the transaction control solution according to the embodiment of the present application.

[0035] Figure 2 The present invention is a flowchart of a transaction control method according to an embodiment of the present application.

[0036] Figure 3 This is a schematic flowchart of setting policy health indicators in an embodiment of the present application.

[0037] Figure 4 A schematic flowchart of setting transaction health indicators in an embodiment of the present application.

[0038] Figure 5 The present invention is a flowchart of a transaction control method according to an embodiment of the present application.

[0039] Figure 6 This is a schematic flowchart of determining the health of a transaction status in an embodiment of the present application.

[0040] Figure 7 This is a schematic flowchart of the policy health check in the embodiment of the present application.

[0041] Figure 8 This is a schematic flowchart of the transaction health check in the embodiment of the present application.

[0042] Fig. 9 The block diagram schematically shows the composition of the transaction control device in the embodiment of the present application.

[0043] Fig.10 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION

[0044] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.

[0045] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0046] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.

[0047] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0048] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0049] It should be understood that the scheme of the present application is applied in a virtual resource trading platform or conversion platform that provides a variety of virtual resources for mutual conversion, and is specifically applied in the transaction control process of the automated trading service in the trading platform. The automated trading service provided by the trading platform allows the platform to set the automated trading rules according to its needs to conduct virtual resource transactions. In the present application, the virtual resource transaction conducted by the trading platform generally refers to the virtual resource transaction conducted by the trading platform with a third party, and the third party can be, for example, the manager of the virtual resource. The trading platform will obtain the settlement resources required by the trading platform from the virtual resources obtained in the process of providing virtual resource transactions or conversion services with the third party. Usually, this process can also be the process of the trading platform closing a position. During the closing operation, the conversion platform will initiate a request to the third-party platform to convert the virtual resources to be closed into the specified settlement virtual resources. Depending on whether the holding amount of the virtual resources to be closed is a positive number or a negative number, the conversion platform will obtain the virtual resources to be settled from the third-party platform or pay the settlement virtual resources to the third-party platform to obtain the virtual resources to be closed to make up for the amount of resources previously paid to the user terminal. In the present application, prescribed transaction control rules will be set for various virtual resources. An important part of the transaction control rules is how to manage the closing operation of the remaining virtual resources in the trading platform.

[0050] The virtual resource trading platform will provide users with automated trading services for virtual resources. The trading platform can set corresponding trading control policies for virtual resources as needed, and the virtual resource trading platform will automatically trigger virtual resource transactions according to the trading control policies. How to monitor the status of automated trading services has become a focus of attention for users and platforms.

[0051] In related technologies, the trading platform will collect error information during the operation of various services, calls, instructions and interfaces during the automated trading process, such as transaction failure, missing rule parameters, failed call interface return, command execution timeout, etc. The trading platform will summarize the error information and determine the operating status of the trading platform based on the summarized information, so as to control the automated trading process, such as checking whether the system is in good condition and whether it is necessary to disable automation and switch to manual operation.

[0052] However, in such solutions, since the error information comes from the operation process of the platform system, and the error information is usually technical information provided by the physical equipment of the trading platform. The trading platform can only judge the server and network status based on the error information, such as whether the process is healthy, whether the network status is good, whether the downstream system accepts instructions normally, etc. The perception and judgment of the operation status of the automated trading service is not comprehensive, resulting in insufficient management capabilities of the trading platform for the automated trading process, which is not conducive to risk control of the automated trading process of virtual resources. For example, in the absence of technical errors, due to abnormal trading control rules, the automated trading module of the trading platform quickly buys and sells the same amount of virtual resources in a short period of time, or in a certain period of time, the automated trading module generates a transaction volume far exceeding the normal situation, or the automated trading module is completely stagnant and does not conduct any virtual resource transactions. The above-mentioned various abnormal situations are difficult to be observed and identified based on the error information of the technical level of the trading platform, which may cause virtual resources to be accumulated in the trading platform and the risk of greater loss of virtual resources.

[0053] Based on this, the technical solution of the embodiment of the present application proposes a transaction processing solution for virtual resources. Based on the technical layer information, the solution further detects and judges the health status of virtual resource transactions based on the information at the business rules or transaction strategy level, thereby being more conducive to ensuring the healthy operation of automated transactions. Specifically, Figure 1As shown, the system architecture 100 applied to the transaction control solution according to the embodiment of the present application may include a transaction control system 110 and a guard module 120. Among them, the transaction control system 110 is used to control and execute the process of automated transactions. The transaction control system 110 includes an automated transaction subsystem 111 and a transaction execution subsystem 112. The automated transaction subsystem 111 is responsible for the pre-defined transaction control strategy, and when it meets the transaction control strategy, it issues a transaction instruction to the transaction execution subsystem 112. The transaction execution subsystem 112 is responsible for generating a resource transaction request according to the transaction instruction and sending it to the third-party platform, and completing the information interaction with the third-party platform. The two subsystems will report the preset information to the guard module 120. The guard module 120 contains a pre-set health indicator. The guard module 120 will receive the information reported by the two subsystems, summarize the received information separately, compare it with the corresponding health indicator after summarizing, and decide whether to stop the automated transaction after obtaining the health status.

[0054] The implementation details of the technical solution of the embodiment of the present application are described in detail below: Figure 2 A flow chart of a transaction control method according to an embodiment of the present application is shown. The transaction control method is applied to a transaction platform for virtual resources and can be specifically executed by a device with a computing and processing function, such as a server or terminal device where the transaction platform is located. Figure 2 As shown, the transaction control method at least includes steps S210 to S240, which are described in detail as follows:

[0055] Step S210, obtaining policy operation information, wherein the policy operation information includes execution status information of a transaction control policy of a specified virtual resource, wherein the transaction control policy is used to generate a virtual resource transaction.

[0056] Strategy operation information is the information obtained when the trading platform runs the trading control strategy according to the conditions set in the trading control strategy. Strategy operation information usually contains the execution status information of the trading control strategy for the specified virtual resources, such as the strategy name, running time, the type of virtual resources targeted, and the results of the strategy operation. The trading control strategy is used to generate virtual resource transactions, that is, when the status of the trading platform meets the running conditions of the trading control strategy, the trading platform will generate virtual resource transactions according to the trading strategy set in the trading control strategy. The virtual resource transaction is usually a transaction to close the virtual resource position, such as buying virtual resources or selling virtual resources to return the amount of virtual resources held by the trading platform to zero.

[0057] Step S220: querying a policy health indicator corresponding to the transaction control policy according to the policy operation information, wherein the policy health indicator includes an indicator for indicating a healthy state of operation of the transaction control policy.

[0058] The trading platform will pre-store policy health indicators for various virtual resource trading control policies. The policy health indicators include indicators for indicating the health status of the trading control policy, such as the range of trigger times and the range of generated transactions per unit time. Based on the policy name of the virtual resource type in the policy operation information, the trading platform can query the policy health indicator corresponding to the trading control policy.

[0059] Step S230: performing a policy health check on the policy operation information according to the policy health indicator.

[0060] The trading platform performs a strategy health check on the strategy operation information based on the strategy health index. Specifically, the trading platform will determine the various statistical data required in the collection of the strategy health index based on the strategy operation information, and then check whether the determined statistical data meets the health data range specified in the strategy health index. For example, the strategy health index contains the triggering number range of the transaction control strategy within a unit time, then the trading platform will count the number of triggers within a unit time based on the current strategy operation information and the historical strategy operation information within a unit time, and compare whether the number of triggers is within the triggering number range in the strategy health index, so as to determine whether the strategy operation information does not meet the strategy health index. It can be understood that the strategy health index may include one or more specific indicator ranges or data requirements. Depending on the specific implementation, the trading platform can check whether all indicator ranges or data requirements are met or select a part of them for inspection, and determine that the strategy health index is not met when any indicator range or data is not met.

[0061] Step S240: If the policy operation information does not meet the policy health indicator, stop generating virtual resource transactions according to the transaction control policy.

[0062] If the strategy operation information does not meet the strategy health index, it means that the operation state of the transaction control strategy in the current automated transaction is unhealthy, and the trading platform will stop generating virtual resource transactions according to the transaction control strategy. That is, if the automated transaction is unhealthy, the trading platform will stop the automated transaction and switch to manually triggered transactions. Specifically, the trading platform can stop generating transactions for a specific transaction control strategy. For example, when the strategy operation information does not meet the strategy health index, the trading platform stops generating transactions according to the transaction control strategy triggered in the strategy operation information, but still performs automated transactions according to other transaction control strategies. Alternatively, when the strategy operation information of any transaction control strategy does not meet the strategy health index, the trading platform will stop generating transactions according to all transaction control strategies. Specifically, the trading platform can determine according to the specific strategy health index that is not met, that is, when the unsatisfied strategy health index is set for all transaction control strategies, it stops performing automated transactions according to all transaction control strategies. For example, the strategy health index requires that the transaction control strategy triggered in the trading platform does not exceed 50 times within a certain period of time. If the strategy health index is not met, the trading platform can completely stop automated transactions. If the unsatisfied strategy health indicator is set for a specific transaction control strategy, the trading platform stops performing automated transactions according to the specific transaction control strategy. For example, if the triggering frequency of a transaction control strategy exceeds the requirement of the strategy health indicator, the transaction control strategy is stopped. In some embodiments, the trading platform may not stop trading directly, but first warn of abnormal health status, and then stop automated trading after continuously determining abnormal health status for a certain number of times. For example, in the strategy health indicator, it is required to determine that the strategy health indicator is not met for three consecutive times before stopping trading, and the management of the trading platform is warned for the first two times.

[0063] In an embodiment of the present application, the trading platform obtains strategy operation information, wherein the strategy operation information includes the execution status information of the transaction control strategy of the specified virtual resource, the transaction control strategy is used to generate the virtual resource transaction, and then according to the strategy operation information, the strategy health index corresponding to the transaction control strategy is queried, the strategy health index includes an index for indicating the operation health status of the transaction control strategy, and then the trading platform performs a strategy health check on the strategy operation information according to the strategy health index; finally, if the strategy operation information does not meet the strategy health index, the virtual resource transaction is stopped from being generated according to the transaction control strategy. Through the above-mentioned method, the trading platform can determine the health status of the automated transaction at the business level based on the operation status of the control rules of the automated transaction and the operation status of the generated virtual resource transaction, and stop the automated transaction when there is a problem with the health status at the business level, so as to more comprehensively perceive and judge the operation status of the automated transaction service, improve the management ability of the trading platform to the automated transaction process, improve the risk control ability of the automated transaction process of virtual resources, and further enhance the management dimension of the automated transaction of virtual resources by the trading platform, fill the management gap of the transaction business logic level of the trading platform, and help to ensure the stability of virtual resource transactions.

[0064] In some optional embodiments, based on the technical solution of the present application, in the process of performing a strategy health check on the strategy operation information according to the strategy health indicator, the trading platform will update the operation statistics of the trading control strategy according to the strategy operation information of the trading control strategy, and then query the total number of operations of all trading control strategies in the first strategy period according to the strategy health indicator and the operation statistics, wherein the strategy health indicator contains a first number interval set for all trading control strategies. If the total number of operations is not within the first number interval, the trading platform determines that the strategy operation information does not meet the strategy health indicator. In this embodiment, the trading platform will first update the operation statistics of the trading control strategy according to the strategy operation information. Specifically, the trading platform will maintain the corresponding operation statistics according to the requirements of the strategy health indicator. For example, if the strategy health indicator requires the number of strategy operations in the last 5 minutes, the trading platform will maintain a corresponding data of the number of strategy operations in 5 minutes. When new strategy operation information arrives, the trading platform will update the operation statistics according to the strategy operation information, for example, determine the strategy operation information arriving within 5 minutes according to the current time, so as to count the number of strategy operations. After updating the data, the trading platform will query the total number of operations of all trading control strategies in the first strategy period according to the strategy health index and operation statistics. In this embodiment, the strategy health index includes a first number interval set for all trading control strategies. For example, for all trading control strategies, the lower limit of the number of operations within 1 minute can be 5 times, and the upper limit of the number of operations is 50 times. If the total number of operations is not within the first number interval, it is determined that the strategy operation information does not meet the strategy health index. In this embodiment, by setting indicators for all trading control strategies in the trading platform and checking the overall number of operations, the trading platform can decide whether to stop automated trading based on the overall operating status of the trading control strategy, which is conducive to improving the trading platform's control over automated trading, preventing the trading control strategy from over-operating and causing unexpected overload operation on the trading platform, and improving the stability of the trading platform operation.

[0065] In some optional embodiments, based on the technical solution of the present application, if the total number of operations is within the first number interval, the trading platform will query the number of strategy operations of the trading control strategy in the second strategy period from the operation statistics data according to the strategy health index, wherein the strategy health index includes the second number interval set for the trading control strategy. If the number of strategy operations is not within the second number interval, the trading platform determines that the strategy operation information does not meet the strategy health index. In this embodiment, if the total number of operations is within the first number interval, that is, the overall operation state of the trading control strategy is in a healthy state, the trading platform further checks the health state of the trading control strategy triggered this time. Specifically, the strategy health index also sets a corresponding number range for a single trading control strategy, and the trading platform will query the number of strategy operations of the trading control strategy in the second strategy period from the operation statistics data according to the strategy health index. For example, the strategy health index is that the lower limit of the number of triggers of a single trading control strategy within 5 minutes is 1 time, and the upper limit is 10 times. The operation statistics data correspondingly maintain the triggering times of the transaction control strategy in the last 5 minutes. The trading platform can query the data and compare it with the specified interval. If the strategy operation times are not within the second time interval, the trading platform determines that the strategy operation information does not meet the strategy health index. In this embodiment, by setting an index for a single transaction control strategy in the trading platform and checking the operation times of a single transaction control strategy, the trading platform can decide whether to stop the automated transaction according to the specific operation status of the single transaction control strategy, thereby more finely detecting the health status of the transaction control strategy and improving the management granularity of transaction control.

[0066] In some optional embodiments, based on the technical solution of the present application, the health indicator also includes the indicator effective time of the strategy health indicator. In the process of performing a strategy health check on the strategy operation information according to the strategy health indicator, the trading platform will determine the currently effective strategy health indicator according to the current time and the indicator effective time of the strategy health indicator, and then perform a strategy health check on the strategy operation information according to the currently effective strategy health indicator. In this embodiment, the trading platform will set the indicator effective time for the strategy health indicator. For example, one strategy health indicator takes effect on weekdays, while another strategy health indicator takes effect on weekends, or one or more specific time periods of a day take effect, while other time periods do not take effect. It is understandable that the same strategy health indicator can correspond to different specific indicator ranges at different indicator effective times, such as requiring the number of triggers to be between 1 and 10 times on weekdays, and requiring the number of triggers to be between 0 and 2 times on weekends, etc. It is understandable that the indicator effective time can also be set similarly for the trading health indicator. In the process of transaction health monitoring, the trading platform will also determine the currently effective transaction health indicator according to the current time and the indicator effective time of the transaction health indicator, and perform a transaction health check on the transaction instruction information according to the currently effective transaction health indicator. In this embodiment, by setting the indicator effective time for the health indicator, the trading platform can adapt different health indicators according to time, thereby improving the flexibility and adaptability of the transaction control process.

[0067] In some optional embodiments, based on the technical solution of the present application, if the strategy operation information does not meet the strategy health index, before stopping the generation of virtual resource transactions according to the transaction control policy, the trading platform will count the time when the strategy operation information is not received. If the strategy operation information is not received within the specified time, the trading platform will query the strategy health index corresponding to the transaction control policy, and perform a strategy health check on the historical strategy operation information of the transaction control policy based on the strategy health index. In this embodiment, the trading platform will perform strategy health checks regularly. If the trading platform does not find new strategy operation information in combination within the specified time, it will trigger the trading platform to check the health status of the transaction control policy, avoiding missing the health status check due to long-term failure to receive strategy operation information, which is conducive to timely discovering abnormal status of automated trading services and improving the stability of automated trading service operation in the trading platform.

[0068] In some optional embodiments, based on the technical solution of the present application, the trading platform will also receive an indicator generation request, and the indicator generation request includes specified duration information, policy identification information and policy threshold information. According to the policy identification information in the indicator generation request, the trading platform can determine the target control policy corresponding to the policy identification information and the target virtual resource transaction generated by the target control policy, and generate the policy health indicator corresponding to the target control policy and all transaction control policies and the transaction health indicator corresponding to the target virtual resource transaction and all virtual resources according to the specified duration information and policy threshold information in the indicator generation request. In this embodiment, the transaction voucher will generate corresponding policy health indicators and transaction health indicators for the transaction control policy and virtual resource transaction respectively according to the indicator generation request. Specifically, the indicator generation request includes specified duration information, policy identification information and policy threshold information. The specified duration information includes the time span of the statistical data of the policy health indicator and the transaction health indicator, such as the policy running within 1 minute or the transaction executed within 5 minutes. The policy identification information is used to indicate the transaction control policy targeted by the policy health indicator or the transaction control policy generating the transaction in the transaction health indicator, and the policy threshold information is the specific health range of the health indicator. Specifically, the generation of strategy health indicators and trading health indicators can be performed independently of each other. Figure 3 , Figure 3 FIG. 1 is a schematic flow chart of setting a policy health indicator in an embodiment of the present application. Figure 3 As shown, the trading platform first needs to set the health indicator range of the trading control strategy for automated trading, and then set the upper and lower limits of the overall strategy operation, as well as the upper and lower limits of the single strategy operation. Figure 4 This is a schematic flow chart of setting transaction health indicators in an embodiment of the present application. Figure 4 As shown, similarly, for the transaction health index, the trading platform first needs to set the health index range of the virtual resource transaction, and then set the upper and lower limits of the transaction volume of the transaction execution, as well as the upper and lower limits of the number of transaction instructions executed by the transaction. In this embodiment, the trading platform sets the overall health index and the health index for a single transaction for the transaction control strategy, and generates the health index for all virtual resource types and the health index for the virtual resource transaction generated by a single transaction control strategy for the virtual resource transaction, so that the precision of the health index can be set, which is conducive to improving the flexibility of setting the health index.

[0069] In some optional embodiments, based on the technical solution of the present application, after the strategy operation module executes the target transaction control strategy, the trading platform will obtain the strategy operation result and upload it to the guardian module. After the transaction execution module executes the virtual resource transaction generated by the target transaction control strategy, the trading platform will obtain the transaction execution result and upload it to the guardian module. Finally, the trading platform will determine the strategy operation information according to the strategy operation result through the guardian module, and determine the transaction instruction information according to the transaction execution result. In this embodiment, the trading platform includes a separate guardian module to perform the health check process. Specifically, the strategy operation subsystem in the trading platform executes the transaction control strategy, generates the transaction instruction of the virtual resource transaction, obtains the strategy operation result, and uploads the result to the guardian module. Similarly, the transaction execution subsystem executes the generated transaction instruction, initiates the virtual resource transaction, obtains the transaction execution result and uploads the transaction execution result to the guardian module. The guardian module will receive and save the received strategy operation result and transaction execution result, and perform data aggregation according to the received result, such as extracting the corresponding data and counting the number of operations, transaction volume, and number of transactions as strategy operation information and transaction instruction information. By setting up a separate guard module, the modification of the original strategy operation system and transaction execution system is reduced, thereby reducing the difficulty and cost of deploying the solution to the trading platform and improving the deployment efficiency of the solution.

[0070] In the embodiments of the present application, it is also proposed to Figure 2 Other embodiments that refine the technical solution of the embodiment shown in the figure are as follows Figure 5 As shown, the health indicator includes a policy health indicator and a transaction health indicator. In a transaction processing method for virtual resources in an embodiment of the present application, the following steps may be included:

[0071] Step S510, obtaining policy operation information, wherein the policy operation information includes execution status information of a transaction control policy of a specified virtual resource, and the transaction control policy is used to generate a virtual resource transaction.

[0072] Optionally, the implementation details of step S510 are the same as Figure 2 The step S210 shown in FIG. 1 is consistent with the step S210 shown in FIG. 1 and will not be described in detail.

[0073] Step S520 queries a policy health indicator corresponding to the transaction control policy according to the policy operation information, wherein the policy health indicator includes an indicator for indicating a healthy state of operation of the transaction control policy.

[0074] Optionally, the implementation details of step S520 are the same as Figure 2 The step S220 shown in FIG. 1 is consistent with the step S220 shown in FIG. 1 and will not be

[0075] Step S530, performing a policy health check on the policy operation information according to the policy health indicator;

[0076] Optionally, the implementation details of step S530 are the same as Figure 2 The step S230 shown in FIG. 1 is consistent with the step S230 shown in FIG. 1 and will not be

[0077] Step S540: If the policy operation information does not meet the policy health indicator, stop generating virtual resource transactions according to the transaction control policy.

[0078] Optionally, the implementation details of step S540 are the same as Figure 2 The step S240 shown in FIG. 1 is consistent with the step S240 shown in FIG. 1 and will not be described in detail.

[0079] Step S550, acquiring transaction instruction information, wherein the transaction instruction information includes execution status information of the virtual resource transaction generated according to the transaction control strategy;

[0080] Step S560, querying a transaction health indicator corresponding to the virtual resource transaction according to the transaction instruction information, wherein the transaction health indicator includes an indicator for indicating a health status of the virtual resource transaction;

[0081] Step S570, performing a transaction health check on the transaction instruction information according to the transaction health indicator;

[0082] Step S580: If the transaction instruction information does not meet the transaction health indicator, stop generating virtual resource transactions according to the transaction control policy.

[0083] In this embodiment, the trading platform will also detect the health status of the automated transaction according to the execution status of the virtual resource transaction generated in the automated trading service. Specifically, the trading platform will obtain the transaction instruction information. The transaction instruction information includes the execution status information of the virtual resource transaction generated according to the transaction control strategy. One execution of the transaction control strategy can generate one or more virtual resource transactions. The transaction instruction information can be generated according to the execution result of one virtual resource transaction, or it can be generated according to the execution results of multiple virtual resource transactions generated by one execution of the transaction control strategy. The execution status information of the virtual resource transaction usually includes the purchase transaction volume, the type of virtual resource purchased, the sale transaction volume, the type of virtual resource sold, the transaction time, and the name of the transaction control strategy that generates the transaction instruction. The trading platform includes transaction health indicators set for different types of virtual resources. According to the type of virtual resource traded in the transaction instruction information, the corresponding transaction health indicator can be queried. The indicators indicating the health status of the virtual resource transaction in the transaction health indicator, such as the transaction volume range and the number of transactions range within a specified time period. The trading platform checks whether it meets the transaction health indicator based on the data in the transaction instruction information. If the transaction instruction information does not meet the transaction health index, the virtual resource transaction generated according to the transaction control strategy is stopped. Similarly, the trading platform can only stop the automated transaction of the relevant virtual resources in the transaction instruction information, or directly stop the automated transaction of all virtual resources. In addition, the trading platform may not directly stop the relevant automated transaction, but first alarm the virtual resource, and stop the automated transaction after continuously determining the abnormal health status for a certain number of times. For example, in the transaction health index, it is required to determine that the transaction health index is not met for three consecutive times before stopping the transaction, and the management of the trading platform is alarmed for the first two times. In this embodiment, by further checking the transaction health status of the virtual resource transaction executed by the trading platform, the overall process of the virtual resource automated transaction can be completely monitored for the health status, thereby ensuring the correct execution of the virtual resource automated transaction and improving the reliability of the automated transaction service.

[0084] In an embodiment of the present application, through the above-mentioned method, the trading platform can determine the health status of the automated transaction at the business level based on the operation of the control rules of the automated transaction and the operation of the generated virtual resource transaction, and stop the automated transaction when there is a problem with the health status at the business level, thereby being able to more comprehensively perceive and judge the operating status of the automated transaction service, improve the trading platform's management ability of the automated transaction process, improve the risk control ability of the virtual resource automated transaction process, and further enhance the trading platform's management dimension of the virtual resource automated transaction, fill the management gap of the trading platform at the transaction business logic level, and help ensure the stability of virtual resource transactions.

[0085] In some optional embodiments, based on the technical solution of the present application, in the process of performing a transaction health check on the transaction instruction information according to the transaction health indicator, the trading platform will update the transaction statistics of the specified virtual resource according to the transaction volume of the specified virtual resource in the transaction instruction information, and query the total transaction volume of all virtual resources in the first transaction period and the transaction volume of the specified virtual resource in the second transaction period according to the transaction health indicator and the transaction statistics, wherein the transaction health indicator includes a first transaction volume interval set for all virtual resources and a second transaction volume interval set for the specified virtual resource. If the total transaction volume is not within the first transaction volume interval or the transaction volume is not within the second transaction volume interval, the trading platform determines that the transaction instruction information does not meet the transaction health indicator. In this embodiment, the trading platform determines the transaction health status of the automated transaction by the total transaction volume of virtual resource transactions and the transaction volume of virtual resources of a specified type. Specifically, the trading platform will update the transaction statistics of the specified virtual resource according to the transaction volume of the specified virtual resource in the transaction instruction information. Transaction statistics information is data that is counted and recorded according to the data required in the transaction health indicator. For example, if the transaction health index requires the transaction volume of all virtual resources within 1 minute, the corresponding statistical data will be included in the transaction statistics information, and the trading platform will update the data according to the transaction volume of the specified virtual resources. Subsequently, the trading platform queries the total transaction volume of all virtual resources in the first trading period and the transaction volume of the specified virtual resources in the second trading period. In this embodiment, the trading platform needs to determine that the total transaction volume and the separate transaction volume of the specified virtual resources are within the corresponding transaction volume range before determining that the transaction instruction information meets the transaction health index related to the transaction volume. In this embodiment, the transaction health status is judged by the total transaction volume of virtual resources and the transaction volume by category, so as to ensure that the business execution process of the automated transaction of virtual resources is within a preset reasonable range, prevent the loss of virtual resources caused by excessive or low transaction volume, and help improve the security of virtual resources in the trading platform.

[0086] In some optional embodiments, based on the technical solution of the present application, if the total transaction volume is within the first transaction volume interval and the transaction volume is within the second transaction volume interval, the trading platform will query the total number of transactions of all virtual resources in the first specified period according to the transaction health index and the transaction statistics data, and query the number of transactions generated for virtual resource transactions generated according to the transaction control policy in the second specified period according to the transaction health index from the transaction statistics data, wherein the transaction health index includes the first number interval set for all virtual resources and the second number interval set for the transaction control policy. If the total number of transactions is not within the first number interval or the number of transactions generated is not within the second number interval, the trading platform determines that the transaction instruction information does not meet the transaction health index. In this embodiment, the trading platform will further determine the transaction health status according to the number of transactions of virtual resources. Specifically, the transaction health index includes the total number of transactions set for all virtual resources and the number of transactions generated for each transaction control policy. The total number of transactions corresponding to all virtual resources and the number of transactions generated for virtual resource transactions generated by the transaction control policy will be maintained in the transaction statistics data. For example, the trading platform can query the number of all automated transactions executed by the trading platform within 1 minute, and the number of virtual resource transactions generated by the specified transaction control strategy within 5 minutes. If either of the two number intervals is met, the trading platform determines that the transaction instruction information does not meet the transaction health indicator. In this embodiment, the trading platform also judges the transaction health status by the transaction volume and the number of transactions, which is conducive to improving the precision of the health status check, thereby improving the abnormality detection capability of the trading platform and ensuring the normal operation of automated transactions.

[0087] In some optional embodiments, based on the technical solution of the present application, the trading platform will also determine the third transaction volume interval of the virtual resource transaction from the transaction health index according to the policy identifier of the transaction control policy in the policy operation information. If the transaction volume of the specified virtual resource in the transaction instruction information is not within the third transaction volume interval, the trading platform determines that the transaction instruction information does not meet the transaction health index. In this embodiment, the trading platform also checks the transaction volume of a single virtual resource transaction. If the transaction volume of a single virtual resource transaction is not within the corresponding third transaction volume interval, the trading platform will also determine that the transaction instruction information does not meet the transaction health index. By limiting the transaction volume of a single transaction, the impact of a single transaction anomaly on the overall virtual resource transaction process can be reduced, thereby reducing the degree of damage to the security of the trading platform and virtual resources caused by a single transaction failure, and improving the security of virtual resource transactions.

[0088] In some optional embodiments, based on the technical solution of the present application, the trading platform will also receive the transaction result of the virtual resource transaction generated according to the transaction control strategy. If the transaction result indicates that the virtual resource transaction fails, the trading platform deletes the transaction data of the virtual resource in the transaction instruction information from the transaction statistics. In this embodiment, if the virtual resource transaction fails to execute, the trading platform will roll back the transaction statistics recorded according to the virtual resource transaction. For example, the transaction volume of a virtual resource transaction is 1 million, and the total transaction volume recorded in the transaction statistics will be accumulated to 1 million of this transaction. Once the transaction fails to execute, the trading platform will delete the 1 million transaction volume of this transaction from the total transaction volume. By rolling back the data when the transaction fails to execute, it is possible to ensure the accurate match between the transaction statistics and the actual transaction data of the trading platform, avoid data errors and lead to wrong judgments on the health status of the transaction, and help improve the stability of the solution.

[0089] In some optional embodiments, based on the technical solution of the present application, the health indicator also includes the indicator effective time of the strategy health indicator. In the process of performing a strategy health check on the strategy operation information according to the strategy health indicator, the trading platform will determine the currently effective strategy health indicator according to the current time and the indicator effective time of the strategy health indicator, and then perform a strategy health check on the strategy operation information according to the currently effective strategy health indicator. In this embodiment, the trading platform will set the indicator effective time for the strategy health indicator. For example, one strategy health indicator takes effect on weekdays, while another strategy health indicator takes effect on weekends, or one or more specific time periods of a day take effect, while other time periods do not take effect. It is understandable that the same strategy health indicator can correspond to different specific indicator ranges at different indicator effective times, such as requiring the number of triggers to be between 1 and 10 times on weekdays, and requiring the number of triggers to be between 0 and 2 times on weekends, etc. It is understandable that the indicator effective time can also be set similarly for the trading health indicator. In the process of transaction health monitoring, the trading platform will also determine the currently effective transaction health indicator according to the current time and the indicator effective time of the transaction health indicator, and perform a transaction health check on the transaction instruction information according to the currently effective transaction health indicator. In this embodiment, by setting the indicator effective time for the health indicator, the trading platform can adapt different health indicators according to time, thereby improving the flexibility and adaptability of the transaction control process.

[0090] In some optional embodiments, based on the technical solution of the present application, if the strategy operation information does not meet the strategy health index, before stopping the generation of virtual resource transactions according to the transaction control policy, the trading platform will count the time when the strategy operation information is not received. If the strategy operation information is not received within the specified time, the trading platform will query the strategy health index corresponding to the transaction control policy, and perform a strategy health check on the historical strategy operation information of the transaction control policy based on the strategy health index. In this embodiment, the trading platform will perform strategy health checks regularly. If the trading platform does not find new strategy operation information in combination within the specified time, it will trigger the trading platform to check the health status of the transaction control policy, avoiding missing the health status check due to long-term failure to receive strategy operation information, which is conducive to timely discovering abnormal status of automated trading services and improving the stability of automated trading service operation in the trading platform.

[0091] In some optional embodiments, based on the technical solution of the present application, the trading platform will also receive an indicator generation request, and the indicator generation request includes specified duration information, policy identification information and policy threshold information. According to the policy identification information in the indicator generation request, the trading platform can determine the target control policy corresponding to the policy identification information and the target virtual resource transaction generated by the target control policy, and generate the policy health indicator corresponding to the target control policy and all transaction control policies and the transaction health indicator corresponding to the target virtual resource transaction and all virtual resources according to the specified duration information and policy threshold information in the indicator generation request. In this embodiment, the transaction voucher will generate corresponding policy health indicators and transaction health indicators for the transaction control policy and virtual resource transaction respectively according to the indicator generation request. Specifically, the indicator generation request includes specified duration information, policy identification information and policy threshold information. The specified duration information includes the time span of the statistical data of the policy health indicator and the transaction health indicator, such as the policy running within 1 minute or the transaction executed within 5 minutes. The policy identification information is used to indicate the transaction control policy targeted by the policy health indicator or the transaction control policy generating the transaction in the transaction health indicator, and the policy threshold information is the specific health range of the health indicator. Specifically, the generation of strategy health indicators and trading health indicators can be performed independently of each other. Figure 3 , Figure 3 FIG. 1 is a schematic flow chart of setting a policy health indicator in an embodiment of the present application. Figure 3 As shown, the trading platform first needs to set the health indicator range of the trading control strategy for automated trading, and then set the upper and lower limits of the overall strategy operation, as well as the upper and lower limits of the single strategy operation. Figure 4 This is a schematic flow chart of setting transaction health indicators in an embodiment of the present application. Figure 4As shown, similarly, for the transaction health index, the trading platform first needs to set the health index range of the virtual resource transaction, and then set the upper and lower limits of the transaction volume of the transaction execution, as well as the upper and lower limits of the number of transaction instructions executed by the transaction. In this embodiment, the trading platform sets the overall health index and the health index for a single item for the transaction control strategy, and generates the health index for all virtual resource types and the health index for a single type for the virtual resource transaction, so that the precision of the health index can be set, which is conducive to improving the flexibility of setting the health index.

[0092] In some optional embodiments, based on the technical solution of the present application, after the strategy operation module executes the target transaction control strategy, the trading platform will obtain the strategy operation result and upload it to the guardian module. After the transaction execution module executes the virtual resource transaction generated by the target transaction control strategy, the trading platform will obtain the transaction execution result and upload it to the guardian module. Finally, the trading platform will determine the strategy operation information according to the strategy operation result through the guardian module, and determine the transaction instruction information according to the transaction execution result. In this embodiment, the trading platform includes a separate guardian module to perform the health check process. Specifically, the strategy operation subsystem in the trading platform executes the transaction control strategy, generates the transaction instruction of the virtual resource transaction, obtains the strategy operation result, and uploads the result to the guardian module. Similarly, the transaction execution subsystem executes the generated transaction instruction, initiates the virtual resource transaction, obtains the transaction execution result and uploads the transaction execution result to the guardian module. The guardian module will receive and save the received strategy operation result and transaction execution result, and perform data aggregation according to the received result, such as extracting the corresponding data and counting the number of operations, transaction volume, and number of transactions as strategy operation information and transaction instruction information. By setting up a separate guard module, the modification of the original strategy operation system and transaction execution system is reduced, thereby reducing the difficulty and cost of deploying the solution to the trading platform and improving the deployment efficiency of the solution.

[0093] The following is an example of the implementation details of the technical solution of the embodiment of the present application: Figure 6 , Figure 6 FIG. 1 is a schematic flow chart of determining the health of a transaction status in an embodiment of the present application. Figure 6As shown in the figure, the automated trading subsystem and the transaction execution subsystem will report the strategy operation information and transaction instruction information to the guardian module respectively during operation. Among them, the strategy operation information includes, for example, the strategy name, the start time of operation, the end time, the type of strategy operation resources, and whether to generate a transaction instruction, etc. The transaction instruction information includes, for example, the instruction purchase quantity, the type of purchase resource, the sell quantity, the type of sell resource, the transaction time, and the strategy name for generating the instruction, etc. The guardian module is divided into two independent logical functions, which are responsible for receiving the above two types of information reports and querying their respective health indicator information respectively. If the guardian module recognizes that the current automated transaction is not running healthily, that is, any indicator is not within the healthy range, the guardian module will notify the transaction management system to stop running the automated transaction.

[0094] The following is a schematic process of policy health check. Specifically, it is assumed that the policy health indicators are set as follows:

[0095] Strategy (overall / single) Time Range Minimum number of times Maximum number of times overall 1 minute 5 50 Single 5 minutes 1 10

[0096] The first row of indicators means "the number of times the strategy is run is greater than 5 times and less than 50 times within 1 minute", and the second row of indicators means "the number of times any rule with the same name is run is greater than 1 and less than 10 times within 5 minutes". Based on this strategy health indicator, please refer to Figure 7 , Figure 7 FIG. 1 is a schematic flow chart of a policy health check in an embodiment of the present application. Figure 7 As shown, after the automated trading subsystem completes the operation of any strategy, it reports the strategy operation result to the guardian module. After receiving the strategy operation information, the guardian module uses the internal strategy operation summary submodule to accumulate and store the total number of times the strategy is run within 1 minute according to the strategy name. Subsequently, the guardian module retrieves the pre-set "strategy operation health index" data, the "overall" health index - "the number of strategy runs is greater than 5 times and less than 50 times within 1 minute", and queries the number of runs of all stored strategies in the last minute and summarizes them. If the summary value is not within the range of 5 to 50, the guardian module sends an instruction to the trading management system to stop automated trading. If the summary value is within the range of 5 to 50, the guardian module retrieves the pre-set "strategy operation health index" data, the "single" health index - "the number of any strategy runs is greater than 1 and less than 10 times within 5 minutes", and queries the number of runs of the strategy stored in the last 5 minutes and summarizes them. Similarly, if the summary value is not in the range of 1 to 10, the guardian module sends an instruction to the transaction management system to stop automated trading, and if the summary value is in the range of 1 to 10, the current operation is terminated and the next report from the automated trading subsystem is awaited.

[0097] The following is a schematic process of transaction health check. Specifically, it is assumed that the transaction health indicators are set as follows:

[0098] Amount / Number of Transactions Time Range Lower limit Upper limit Constraints Trading Volume 1 minute none 1 billion none Trading Volume 5 minutes none 100 million Specified virtual resource transactions Number of entries 1 minute none 10 times none Number of entries 5 minutes none 5 Same name strategy generation

[0099] The first row of indicators means "the transaction volume within 1 minute is less than 1 billion"; the second row of indicators means "the transaction volume of the specified virtual resource is less than 100 million within 5 minutes"; the third row of indicators means "the number of transaction instructions within 1 minute is less than 10 times"; the fourth row of indicators means "the transaction instructions generated by any strategy name are less than 5 times within 5 minutes". Based on this transaction health indicator, please refer to Figure 8 , Figure 8 FIG. 1 is a schematic flow chart of a transaction health check in an embodiment of the present application. Figure 8 As shown, after the transaction execution subsystem completes the execution of any liquidation instruction once, it reports the instruction execution result to the guardian module. After receiving the instruction execution information, the guardian module uses the internal transaction instruction summary submodule to accumulate and store the total transaction volume executed by the virtual resource within 1 minute, and accumulate and store the total number of liquidations generated by the same-name strategy within 1 minute. Subsequently, the guardian module retrieves the health indicators of "transaction volume" in the pre-set "transaction instruction health indicator" data, "transaction volume within 1 minute is less than 1 billion", "transaction volume of designated virtual resources within 5 minutes is less than 100 million", and queries and summarizes all virtual resource transaction volumes stored in the last 1 minute of all stored liquidation instructions, and queries and summarizes all transaction volumes stored in the designated virtual resource within 5 minutes. If the summary value of all virtual resource transaction volumes in 1 minute is greater than 1 billion or the summary value of the transaction volume of the designated virtual resource within 5 minutes is greater than 100 million, the guardian module sends an instruction to the transaction management system to stop automated trading. If both of the above conditions are met, the guardian module will retrieve the health indicators of "number of transactions" in the pre-set "trading instruction health indicator" data - "the total number of transactions within 1 minute is less than 10", "the number of transactions generated by the unified strategy within 5 minutes is less than 5", and query and summarize the number of transactions stored in the last minute of all stored strategies, and query and summarize the number of transactions stored in the same strategy within five minutes. If the total value of the number of transactions generated by all strategies in the last minute is greater than 10 or the total value of the number of transactions generated by the same strategy within 5 minutes is greater than 5, the guardian module will send a command to the transaction management system to stop automated trading. If both of the above conditions are met, the current operation will end and wait for the next report from the transaction execution subsystem.

[0100] It should be noted that although the steps of the method in the present application are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0101] The following introduces the device implementation of the present application, which can be used to execute the transaction control method in the above embodiments of the present application. Fig. 9 The block diagram of the transaction control device in the embodiment of the present application is schematically shown. Fig. 9 As shown, the transaction control device 900 may mainly include:

[0102] The information acquisition module 910 is configured to acquire policy operation information, wherein the policy operation information includes execution status information of a transaction control policy of a specified virtual resource, wherein the transaction control policy is used to generate a virtual resource transaction;

[0103] An indicator query module 920 is configured to query a policy health indicator corresponding to the transaction control policy according to the policy operation information, wherein the policy health indicator includes an indicator for indicating a healthy state of operation of the transaction control policy;

[0104] A health check module 930 is configured to perform a policy health check on the policy operation information according to the policy health indicator;

[0105] The transaction stopping module 940 is configured to stop generating virtual resource transactions according to the transaction control policy if the policy operation information does not meet the policy health index.

[0106] In some embodiments of the present application, based on the above technical solution, the health check module 930 is specifically configured to: update the operation statistics of the transaction control strategy according to the strategy operation information of the transaction control strategy; query the total number of operations of all transaction control strategies within the first strategy period according to the strategy health indicator and the operation statistics, wherein the strategy health indicator includes a first number interval set for all transaction control strategies; if the total number of operations is not within the first number interval, it is determined that the strategy operation information does not meet the strategy health indicator.

[0107] In some embodiments of the present application, based on the above technical solution, the health check module 930 is specifically configured as follows: if the total number of operations is within the first number interval, then according to the strategy health indicator, the number of strategy operations of the transaction control strategy within the second strategy period is queried from the operation statistics data, wherein the strategy health indicator includes a second number interval set for the transaction control strategy; if the strategy operation number is not within the second number interval, it is determined that the strategy operation information does not meet the strategy health indicator.

[0108] In some embodiments of the present application, based on the above technical solution, the health check module 930 is also configured to: obtain transaction instruction information, the transaction instruction information includes execution status information of the virtual resource transaction generated according to the transaction control policy; according to the transaction instruction information, query the transaction health indicator corresponding to the virtual resource transaction, the transaction health indicator includes an indicator for indicating the health status of the virtual resource transaction; according to the transaction health indicator, perform a transaction health check on the transaction instruction information; if the transaction instruction information does not meet the transaction health indicator, stop generating the virtual resource transaction according to the transaction control policy.

[0109] In some embodiments of the present application, based on the above technical solution, the health check module 930 is specifically configured to: update the transaction statistics of the specified virtual resource according to the transaction volume of the specified virtual resource in the transaction instruction information; query the total transaction volume of all virtual resources in the first transaction period and the transaction volume of the specified virtual resource in the second transaction period according to the transaction health index and the transaction statistics, wherein the transaction health index includes a first transaction volume interval set for all virtual resources and a second transaction volume interval set for the specified virtual resource; if the total transaction volume is not within the first transaction volume interval or the transaction volume is not within the second transaction volume interval, it is determined that the transaction instruction information does not meet the transaction health index.

[0110] In some embodiments of the present application, based on the above technical solution, the health check module 930 is specifically configured as follows: if the total transaction volume is within the first transaction volume interval and the transaction volume is within the second transaction volume interval, then according to the transaction health indicator and the transaction statistics data, the total number of transactions for all virtual resources within the first specified time period is queried; according to the transaction health indicator, the number of transactions generated for virtual resource transactions generated according to the transaction control policy within the second specified time period is queried from the transaction statistics data, wherein the transaction health indicator includes a first number interval set for all virtual resources and a second number interval set for the transaction control policy; if the total number of transactions is not within the first number interval or the number of transactions generated is not within the second number interval, it is determined that the transaction instruction information does not meet the transaction health indicator.

[0111] In some embodiments of the present application, based on the above technical solution, the health check module 930 is also configured to: determine the third transaction volume interval of the virtual resource transaction from the transaction health indicator according to the policy identifier of the transaction control policy in the policy operation information; if the transaction volume of the specified virtual resource in the transaction instruction information is not within the third transaction volume interval, it is determined that the transaction instruction information does not meet the transaction health indicator.

[0112] In some embodiments of the present application, based on the above technical solution, the health check module 930 is also configured to: receive the transaction result of the virtual resource transaction generated according to the transaction control policy; if the transaction result indicates that the virtual resource transaction has failed, delete the transaction data of the virtual resource in the transaction instruction information from the transaction statistics.

[0113] In some embodiments of the present application, based on the above technical solution, the policy health indicator also includes the indicator effective time of the policy health indicator; the health check module 930 is specifically configured to: determine the currently effective policy health indicator based on the current time and the indicator effective time of the policy health indicator; and perform a policy health check on the policy operation information based on the currently effective policy health indicator.

[0114] In some embodiments of the present application, based on the above technical solution, the transaction stop module 940 is also configured to: if the strategy operation information is not received within the specified time, query the strategy health indicator corresponding to the transaction control strategy; and perform a strategy health check on the historical strategy operation information of the transaction control strategy according to the strategy health indicator.

[0115] In some embodiments of the present application, based on the above technical solution, the health check module 930 is also configured to: receive an indicator generation request, the indicator generation request including specified duration information, policy identification information and policy threshold information; determine the target control policy corresponding to the policy identification information and the target virtual resource transaction generated by the target control policy according to the policy identification information in the indicator generation request; generate a policy health indicator corresponding to the target control policy and all transaction control policies and a transaction health indicator corresponding to the target virtual resource transaction and all virtual resources according to the specified duration information and policy threshold information in the indicator generation request.

[0116] In some embodiments of the present application, based on the above technical solution, the information acquisition module 910 is specifically configured as follows: when the policy execution module executes the target transaction control policy, the policy execution result is obtained and uploaded to the guardian module; when the transaction execution module executes the virtual resource transaction generated by the target transaction control policy, the transaction execution result is obtained and uploaded to the guardian module; through the guardian module, the policy execution information is determined according to the policy execution result, and the transaction instruction information is determined according to the transaction execution result.

[0117] It should be noted that the apparatus provided in the above embodiment and the method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module performs the operation has been described in detail in the method embodiment and will not be repeated here.

[0118] Fig.10 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.

[0119] It should be noted that Fig.10 The computer system 1000 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0120] like Fig.10As shown, the computer system 1000 includes a central processing unit (CPU) 1001, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1002 or the program loaded from the storage part 1008 to the random access memory (RAM) 1003. Various programs and data required for system operation are also stored in the RAM 1003. The CPU 1001, the ROM 1002 and the RAM 1003 are connected to each other through a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0121] The following components are connected to the I / O interface 1005: an input section 1006 including a keyboard, a mouse, etc.; an output section 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1008 including a hard disk, etc.; and a communication section 1009 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed so that a computer program read therefrom is installed into the storage section 1008 as needed.

[0122] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part 1009, and / or installed from a removable medium 1011. When the computer program is executed by a central processing unit (CPU) 1001, various functions defined in the system of the present application are executed.

[0123] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CompactDisc Read-Only Memory, CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0124] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0125] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0126] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation method of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation method of the present application.

[0127] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary technical means in the art that are not disclosed in the present application.

[0128] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A transaction control method, characterized in that: include: Acquiring strategy operation information, wherein the strategy operation information includes execution status information of a transaction control strategy for a specified virtual resource, wherein the transaction control strategy is used to generate a virtual resource transaction; According to the strategy operation information, query the strategy health indicator corresponding to the transaction control strategy, wherein the strategy health indicator includes an indicator for indicating the operation health status of the transaction control strategy; Performing a policy health check on the policy operation information according to the policy health indicator; If the policy operation information does not satisfy the policy health indicator, the generation of virtual resource transactions according to the transaction control policy is stopped.

2. The transaction control method according to claim 1, characterized in that: The performing a policy health check on the policy operation information according to the policy health indicator includes: updating the operational statistics of the transaction control strategy according to the strategy operational information of the transaction control strategy; According to the strategy health indicator and the operation statistical data, query the total number of operations of all transaction control strategies within the first strategy period, wherein the strategy health indicator includes a first number interval set for all transaction control strategies; If the total number of operations is not within the first number interval, it is determined that the policy operation information does not meet the policy health indicator.

3. The transaction control method according to claim 2, characterized in that: The method further comprises: If the total number of operations is within the first number interval, querying the number of strategy operations of the transaction control strategy within the second strategy period from the operation statistical data according to the strategy health indicator, wherein the strategy health indicator includes the second number interval set for the transaction control strategy; If the policy execution times are not within the second time interval, it is determined that the policy execution information does not meet the policy health indicator.

4. The transaction control method according to claim 1, characterized in that: The method further comprises: Acquiring transaction instruction information, wherein the transaction instruction information includes execution status information of the virtual resource transaction generated according to the transaction control strategy; According to the transaction instruction information, query the transaction health indicator corresponding to the virtual resource transaction, wherein the transaction health indicator includes an indicator for indicating the health status of the virtual resource transaction; Performing a transaction health check on the transaction instruction information according to the transaction health indicator; If the transaction instruction information does not meet the transaction health indicator, the generation of virtual resource transactions according to the transaction control policy is stopped.

5. The transaction control method according to claim 4, characterized in that: The step of performing a transaction health check on the transaction instruction information according to the transaction health indicator includes: According to the transaction volume of the specified virtual resource in the transaction instruction information, updating the transaction statistics of the specified virtual resource; According to the transaction health indicator and the transaction statistics, query the total transaction volume of all virtual resources in the first transaction period and the transaction volume of the specified virtual resource in the second transaction period, wherein the transaction health indicator includes a first transaction volume interval set for all virtual resources and a second transaction volume interval set for the specified virtual resource; If the total transaction volume is not within the first transaction volume range or the transaction volume is not within the second transaction volume range, it is determined that the transaction instruction information does not meet the transaction health indicator.

6. The transaction control method according to claim 5, characterized in that: The method further comprises: If the total transaction volume is within the first transaction volume range and the transaction volume is within the second transaction volume range, querying the total number of transactions of all virtual resources in the first specified time period according to the transaction health indicator and the transaction statistical data; According to the transaction health indicator, querying from the transaction statistics the number of transactions generated for virtual resource transactions generated according to the transaction control policy within a second specified time period, wherein the transaction health indicator includes a first number interval set for all virtual resources and a second number interval set for the transaction control policy; If the total number of transactions is not within the first number range or the number of generated transactions is not within the second number range, it is determined that the transaction instruction information does not meet the transaction health indicator.

7. The transaction control method according to claim 5, characterized in that: The method further comprises: Determining a third transaction volume interval of the virtual resource transaction from the transaction health indicator according to the strategy identifier of the transaction control strategy in the strategy operation information; If the transaction volume of the designated virtual resource in the transaction instruction information is not within the third transaction volume range, it is determined that the transaction instruction information does not meet the transaction health indicator.

8. The transaction control method according to claim 5, characterized in that: The method further comprises: receiving a transaction result of the virtual resource transaction generated according to the transaction control policy; If the transaction result indicates that the virtual resource transaction fails, the transaction data of the virtual resource in the transaction instruction information is deleted from the transaction statistics data.

9. The transaction control method according to claim 1, characterized in that: The policy health indicator also includes the indicator effective time of the policy health indicator; the policy health check of the policy operation information according to the policy health indicator includes: Determine the currently effective policy health indicator according to the current time and the indicator effective time of the policy health indicator; A policy health check is performed on the policy operation information according to the currently effective policy health indicator.

10. The transaction control method according to claim 1, characterized in that: If the policy operation information does not meet the policy health indicator, before stopping generating virtual resource transactions according to the transaction control policy, the method further includes: If the strategy operation information is not received within the specified time, querying the strategy health indicator corresponding to the transaction control strategy; According to the strategy health indicator, a strategy health check is performed on the historical strategy operation information of the transaction control strategy.

11. The transaction control method according to claim 1, characterized in that: The method further comprises: Receiving an indicator generation request, wherein the indicator generation request includes specified duration information, policy identification information, and policy threshold information; Determining, according to the policy identification information in the indicator generation request, a target control policy corresponding to the policy identification information and a target virtual resource transaction generated by the target control policy; According to the specified duration information and policy threshold information in the indicator generation request, a policy health indicator corresponding to the target control policy and all transaction control policies and a transaction health indicator corresponding to the target virtual resource transaction and all virtual resources are generated.

12. The transaction control method according to any one of claims 1 to 11, characterized in that: The method further comprises: After the strategy execution module executes the target transaction control strategy, it obtains the strategy execution results and uploads them to the guardian module; After the transaction execution module executes the virtual resource transaction generated by the target transaction control policy, the transaction execution result is obtained and uploaded to the guard module; Through the guard module, the strategy operation information is determined according to the strategy operation result, and the transaction instruction information is determined according to the transaction execution result.

13. A transaction control device, characterized in that: include: An information acquisition module configured to acquire strategy operation information, wherein the strategy operation information includes execution status information of a transaction control strategy for a specified virtual resource, wherein the transaction control strategy is used to generate a virtual resource transaction; An indicator query module, configured to query a policy health indicator corresponding to the transaction control policy according to the policy operation information, wherein the policy health indicator includes an indicator for indicating a healthy state of operation of the transaction control policy; A health check module, configured to perform a policy health check on the policy operation information according to the policy health indicator; The transaction stopping module is configured to stop generating virtual resource transactions according to the transaction control policy if the policy operation information does not meet the policy health index.

14. An electronic device, characterized in that: include: processor; A memory, configured to store executable instructions of the processor; The processor is configured to execute the transaction control method according to any one of claims 1 to 12 by executing the executable instructions.

15. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the transaction control method according to any one of claims 1 to 12 is implemented.

16. A computer program product, characterized in that The computer program product includes a computer program, which is stored in a computer-readable storage medium. The processor of the electronic device reads and executes the computer program from the computer-readable storage medium, so that the electronic device executes the transaction control method as claimed in any one of claims 1 to 12.