Virtual resource processing method and device, electronic equipment and readable medium

By generating different types of virtual resource conversion transactions, the problem of insufficient data processing during virtual resource conversion is solved, which improves conversion accuracy and reduces costs.

CN119067773APending Publication Date: 2024-12-03TENPAY PAID TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310603878.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-25
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

The prior art ignores the information between each trading day during the virtual resource conversion process, resulting in insufficient data processing and accurate enough, affecting the accuracy of virtual resource conversion and increasing the conversion cost.

Method used

By obtaining virtual resource conversion records, different types of conversion transactions are generated based on the total conversion volume and the conversion ratios of each point in time, including the first type of conversion transaction for closing positions and the second type of conversion transaction for provisioning, ensuring each The amount of virtual resources at the time point can be closed at a specified time point.

Benefits of technology

It improves the accuracy of the virtual resource conversion process, reduces the conversion cost during closing processing, and covers the virtual resource quantity information between each trading day through fine and accurate data processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119067773A_ABST
    Figure CN119067773A_ABST
Patent Text Reader

Abstract

A virtual resource processing method, apparatus and device, and a readable medium, the method comprising: acquiring a virtual resource conversion record including a total conversion amount between a specified virtual resource and a target virtual resource and amount information corresponding to conversion at a plurality of time points; according to the total conversion amount and a first conversion ratio corresponding to a first type of conversion transaction between the specified virtual resource and the target virtual resource, generating a first type of conversion transaction for conversion at a specified time point in the plurality of time points; according to a second conversion ratio corresponding to a second type of conversion transaction between the specified virtual resource and the target virtual resource and the amount information of the specified virtual resource corresponding to each other time point, generating a second type of conversion transaction for conversion at each other time point, and correspondingly generating a second type of conversion transactions which have the same conversion amount and opposite conversion directions and are converted at a specified time point. According to the method, the conversion cost of the virtual resources can be reduced.
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 method, device, electronic device and readable medium for processing virtual resources. Background Art

[0002] With the rapid development of network technology, the application of virtual resources has become more and more extensive, and the transaction scenarios for conversion between different virtual resources have also increased. In such transactions, the trading party conducts virtual resource conversion transactions with the conversion platform, and the conversion platform closes the position by trading with a third-party platform at the cost of losing some virtual resources.

[0003] In the related art, the conversion platform calculates the amount of virtual resources that need to be closed at the end of each trading day, and then closes the position based on the amount of virtual resources.

[0004] However, the conversion platform ignores the information between trading days that helps calculate the amount of virtual resources that need to be closed during the virtual resource closing process on each trading day. The data processing is not sophisticated and accurate enough, which affects the accuracy of the virtual resource conversion process and increases the conversion cost of virtual resources. Summary of the invention

[0005] Based on the above technical problems, the present application provides a method, device, electronic device and readable medium for processing virtual resources to improve the accuracy of the virtual resource conversion process and reduce the conversion cost of virtual resources during liquidation processing.

[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 method for processing virtual resources is provided, including:

[0008] Acquire a virtual resource conversion record, wherein the virtual resource conversion record includes a total conversion amount between a specified virtual resource and a target virtual resource and amount information corresponding to each conversion at multiple time points;

[0009] generating a first type of conversion transaction for conversion at a designated time point among the plurality of time points according to the total conversion amount and a first conversion ratio corresponding to the first type of conversion transaction between the designated virtual resource and the target virtual resource, wherein the first type of conversion transaction is a conversion transaction for performing a position closing operation;

[0010] For other time points among the multiple time points except the designated time point, generating a second type of conversion transaction for conversion at each other time point according to the second conversion ratio corresponding to the second type of conversion transaction between the designated virtual resource and the target virtual resource and the amount information of the designated virtual resource corresponding to each other time point;

[0011] Based on the amount information in the second type of conversion transaction converted at each other time point and the second conversion ratio, a corresponding second type of conversion transaction converted at the specified time point is generated, and the conversion amount between the second conversion transaction converted at each other time point and the corresponding second type of conversion transaction converted at the specified time point is the same and the conversion direction is opposite.

[0012] According to one aspect of an embodiment of the present application, a device for processing virtual resources is provided, including:

[0013] A record acquisition module configured to acquire a virtual resource conversion record, wherein the virtual resource conversion record includes a total conversion amount between a specified virtual resource and a target virtual resource and amount information corresponding to each conversion at multiple time points;

[0014] a first transaction module configured to generate a first type of conversion transaction for conversion at a designated time point among the plurality of time points according to the total conversion amount and a first conversion ratio corresponding to the first type of conversion transaction between the designated virtual resource and the target virtual resource, wherein the first type of conversion transaction is a conversion transaction for performing a position closing operation;

[0015] A second transaction module is configured to generate, for other time points among the multiple time points except the specified time point, a second type of conversion transaction for conversion at each other time point according to a second conversion ratio corresponding to the second type of conversion transaction between the specified virtual resource and the target virtual resource and amount information of the specified virtual resource corresponding to each other time point;

[0016] The third transaction module is configured to generate a second-type conversion transaction converted at the specified time point according to the amount information in the second-type conversion transaction converted at each other time point and the second conversion ratio, wherein the conversion amount of the second conversion transaction converted at each other time point is the same as that of the corresponding second-type conversion transaction converted at the specified time point and the conversion direction is opposite.

[0017] In some embodiments of the present application, based on the above technical solution, the record acquisition module is also configured to: establish a virtual resource conversion record between the designated virtual resource and the target virtual resource according to the conversion relationship between the designated virtual resource and the target virtual resource; if virtual resource conversion information between the designated virtual resource and the target virtual resource is received, calculate the amount information of the target virtual resource according to the amount information of the designated virtual resource in the virtual resource conversion information and the first conversion ratio in the first type of conversion transaction between the designated virtual resource and the target virtual resource; update the total conversion amount in the virtual resource conversion record according to the amount information of the designated virtual resource and the target virtual resource.

[0018] In some embodiments of the present application, based on the above technical solution, the virtual resource conversion information also includes the conversion type of the virtual resource conversion; the record acquisition module is also configured to: establish a virtual resource conversion record between the specified virtual resource and the target virtual resource for each conversion type according to the conversion relationship between the specified virtual resource and the target virtual resource; read the virtual resource conversion record corresponding to the conversion type in the virtual resource conversion information.

[0019] In some embodiments of the present application, based on the above technical solution, the virtual resource conversion information also includes conversion environment information of the target virtual resource; the record acquisition module is also configured to: establish a virtual resource conversion record between the specified virtual resource and the target virtual resource for each conversion environment information according to the conversion relationship between the specified virtual resource and the target virtual resource; obtain a first conversion ratio in a first type of conversion transaction between the specified virtual resource and the target virtual resource in the corresponding conversion environment according to the conversion environment information of the target virtual resource in the virtual resource conversion information; calculate the amount information of the target virtual resource according to the amount information of the specified virtual resource in the virtual resource conversion information and the obtained first conversion ratio; read the virtual resource conversion record corresponding to the conversion environment information in the virtual resource conversion information.

[0020] In some embodiments of the present application, based on the above technical solution, the first transaction module is also configured to: when generating a first type of conversion transaction for conversion at a specified time point among multiple time points, query the conversion ratio of the first type of conversion transaction between the specified virtual resource and the target virtual resource in the first conversion environment, and the conversion ratio of the first type of conversion transaction between the specified virtual resource and the target virtual resource in the second conversion environment, wherein the second conversion environment is different from the first conversion environment; if the conversion ratio in the first conversion environment is better than the conversion ratio in the second conversion environment, execute the process of generating the first type of conversion transaction.

[0021] In some embodiments of the present application, based on the above technical solution, the first transaction module is further configured to: if the conversion ratio in the second conversion environment is better than the conversion ratio in the first conversion environment, then the process of generating the first type of conversion transaction is executed in the second conversion environment.

[0022] In some embodiments of the present application, based on the above technical solution, the first transaction module is also configured to: if the conversion ratio in the first conversion environment is better than the conversion ratio in the second conversion environment, and the value of the conversion ratio in the first conversion environment being better than the conversion ratio in the second conversion environment exceeds the set ratio threshold, then execute the process of generating a first type of conversion transaction.

[0023] In some embodiments of the present application, based on the above technical solution, the first transaction module is further configured to: query the second conversion ratio between the designated virtual resource and the target virtual resource at each time point in the second type of conversion transaction to obtain a plurality of second conversion ratios;

[0024] Determine a conversion cost of the second conversion ratio at each time point according to the plurality of second conversion ratios, the total conversion amount, and the amount information of the designated virtual resource at each time point;

[0025] The time point corresponding to the highest conversion cost is taken as the designated time point.

[0026] In some embodiments of the present application, based on the above technical solution, the first transaction module is also configured to: calculate a first conversion cost based on the total conversion amount and the first conversion ratio in the first type of conversion transaction between the designated virtual resource and the target virtual resource; calculate a second conversion cost based on the total conversion amount, the first conversion ratio in the first type of conversion transaction between the designated virtual resource and other virtual resources, and the first conversion ratio in the first type of conversion transaction between the other virtual resources and the target virtual resource; if the first conversion cost is greater than the second conversion cost, generate a first type of conversion transaction between the designated virtual resource and the other virtual resource at a specified time point and a first type of conversion transaction between the other virtual resources and the target virtual resource at a specified time point.

[0027] In some embodiments of the present application, based on the above technical solution, the first transaction module is also configured to: after generating the first type of conversion transaction, update the total conversion amount in the virtual resource conversion record and the amount information corresponding to the specified time point in the virtual resource conversion record according to the number of target virtual resources consumed in the first conversion transaction.

[0028] In some embodiments of the present application, based on the above technical solution, the third transaction module is also configured to: after generating a second conversion transaction for conversion at each other time point, update the amount information corresponding to other time points in the virtual resource conversion record according to the number of target virtual resources consumed in the conversion transaction; after generating a second type of conversion transaction for conversion at the specified time point, update the amount information corresponding to the specified time point in the virtual resource conversion record according to the number of target virtual resources consumed in the conversion transaction.

[0029] In some embodiments of the present application, based on the above technical solution, the record acquisition module is also configured to: when receiving the virtual resource conversion information between the specified virtual resource and the target virtual resource, update the amount information corresponding to the time point in the virtual resource conversion information in the virtual resource conversion record according to the time point in the virtual resource conversion information and the amount information of the specified virtual resource and the target virtual resource.

[0030] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: a processor; and a memory for storing instructions that can be generated by the processor; wherein the processor is configured to generate a processing method for virtual resources as in the above technical solution by generating instructions that can be generated.

[0031] 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 generated by a processor, the method for processing virtual resources in the above technical solution is implemented.

[0032] According to one aspect of an embodiment of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes a computer instruction, and the computer instruction is stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor generates the computer instruction, so that the computer device generates a processing method for virtual resources provided in the above-mentioned various optional implementations.

[0033] In an embodiment of the present application, for conversion transactions at multiple time points, firstly, a first type of conversion transaction for conversion between specified time points is performed based on the total conversion amount of multiple time points, and then, for conversions at other time points other than the specified time points, second type of conversion transactions for conversion at other time points and between the specified time points and in opposite directions are created respectively, so that only one first type of conversion transaction based on the total conversion amount is required at the specified time point, and only the second type of conversion transaction is executed for other time points, so that in the liquidation process, the first type of conversion transaction based on the total conversion amount is performed according to the virtual resource conversions performed at different time points, and the virtual resource amounts are offset between the virtual resource conversions performed at each time point through the second type of conversion transaction, so that in the process of processing virtual resources, information that helps to calculate the amount of virtual resources that need to be closed between each trading day is covered, and more refined and accurate data is provided for the process of processing virtual resources, thereby improving the accuracy of the virtual resource conversion process and reducing the conversion cost of virtual resources during liquidation.

[0034] 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

[0035] 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.

[0036] In the attached picture:

[0037] Figure 1 A schematic diagram of the system architecture of the implementation scheme of this application in an application scenario.

[0038] Figure 2 It is a schematic flowchart of the overall conversion and liquidation process in the embodiment of the present application.

[0039] Figure 3 The present invention is a schematic flowchart of a method for processing virtual resources in an embodiment of the present application.

[0040] Figure 4 The present invention is a schematic flowchart of a method for processing virtual resources in an embodiment of the present application.

[0041] Figure 5 The present invention is a schematic flowchart of a method for processing virtual resources in an embodiment of the present application.

[0042] Figure 6 The present invention is a schematic flowchart of a method for processing virtual resources in an embodiment of the present application.

[0043] Figure 7 It is a schematic flow chart of the conversion transaction process of virtual resources in an embodiment of the present application.

[0044] Figure 8 It is a schematic flow chart of the conversion transaction process of virtual resources in an embodiment of the present application.

[0045] Fig. 9 It is a schematic flow chart of the conversion transaction process of virtual resources in an embodiment of the present application.

[0046] Fig.10 The block diagram schematically shows the composition of the virtual resource processing device in the embodiment of the present application.

[0047] Fig.11 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

[0048] 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.

[0049] 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.

[0050] 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.

[0051] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor do they have to be generated 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 generation order may change according to actual conditions.

[0052] It should be understood that the scheme of the present application is applied in a conversion platform that includes converting at least two virtual resources, and is specifically applied in the process of the conversion platform closing and settling virtual resources. In the present application, the conversion platform provides services for converting designated virtual resources into target virtual resources and converting target virtual resources into designated virtual resources. For example, the designated virtual resources are converted into target virtual resources. The trading party converts the designated virtual resources held by the conversion platform into the target virtual resources held by it according to a certain conversion ratio (for example, the virtual resources are converted into metal exchanges such as gold and silver, or directly converted into funds or virtual assets, etc.), or converts a certain number of target virtual resources into designated virtual resources. In the process of conversion, the conversion platform usually has a difference between the number of designated virtual resources entering the platform through conversion and the number of designated virtual resources converted by the platform. The conversion platform will conduct a closing transaction with a third-party platform to reset the number of designated virtual resources in the platform to zero, that is, if the number of designated virtual resources flowing into the platform is more, the designated virtual resources will be converted into target virtual resources to the third-party platform. If the number of designated virtual resources flowing out of the platform is more, the target virtual resources obtained by conversion to the third-party platform are converted into designated virtual resources to fill the transfer deficit. This process can be a liquidation process. The transactions of virtual resources in the conversion platform are usually divided into two types, namely spot transactions and swap transactions. Among them, spot transactions are also called spot transactions or spot transactions, which refer to the transaction behavior in which the two parties to the transaction handle the delivery procedures on the same day or two trading days after the sale or conversion of virtual resources is delivered. It generally refers to transactions with delivery dates of T+0, T+1, and T+2. Swap transactions refer to buying virtual resources for spot transactions on the conversion platform and selling forward virtual resources of the same currency at the same time, or selling spot virtual resources and buying forward virtual resources of the same currency at the same time, that is, combining a spot and a forward business in the same transaction, or combining lending and borrowing businesses in one business. In the scheme of this application, when liquidation is required, the conversion platform will preset virtual resource conversion records with different delivery dates and currencies, and enter all virtual resource spot transactions received by the conversion platform into different virtual resource conversion records according to virtual resource pairs, delivery dates, etc. The total conversion volume of a type of virtual resource conversion is calculated and summarized in the conversion platform, which summarizes all different virtual resource conversion records of the same virtual resource pair. The conversion platform will close positions from time to time. The closing operation is to send a spot transaction with a delivery date of T+2 to the interbank market to close the position based on the total conversion volume, and include the conversion information with a delivery date of T+2.

[0053] At the end of the trading day, since the total conversion amount is already 0, that is, the total amount that needs to be closed on different delivery dates is 0, but the amount of virtual resources that need to be closed on each different delivery date is not necessarily 0, the conversion platform only needs to conduct swap transactions to make the remaining amount of designated virtual resources on each delivery date 0. The execution process of the swap transaction is to conduct it on the designated virtual resource amount of T+0 and T+1 respectively. Taking the designated virtual resource amount of T+0 as an example, it is determined whether the designated virtual resource amount is 0. If it is not 0, a swap transaction is executed. The transaction closes the designated virtual resource amount of T+0 and exchanges virtual resources in the opposite direction on the delivery date of T+2.

[0054] The following is an introduction to the application scenarios of the embodiments of this application. Figure 1 , Figure 1 This is a schematic diagram of the system architecture of the implementation scheme of this application in an application scenario. Figure 1 As shown, the scenario includes a terminal 110, a conversion server 120, and a third-party server 130. The terminal 110 is usually a device held by a terminal user, such as a mobile phone, a computer, and a tablet computer. The conversion server 120 is deployed with a conversion environment to provide conversion services to the terminal 110. The conversion server 120 will aggregate the transaction amounts on multiple delivery dates into a total conversion amount, and communicate with the third-party server 130 based on the total conversion amount to perform a closing operation. The conversion server 120 will also communicate with the third-party server 130 to conduct swap transactions on each delivery date to complete the final closing process.

[0055] The conversion server 120 and the third-party server 130 can be independent physical servers, or a server cluster or distributed system composed of multiple physical servers. They can also be cloud servers that provide basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network) and big data and artificial intelligence platforms. No restrictions are imposed on this herein.

[0056] The terminal 110 includes but is not limited to a mobile phone, a computer, an intelligent voice interaction device, a smart home appliance, or a vehicle-mounted terminal. The terminal 110, the conversion server 120, and the third-party server 130 may be directly or indirectly connected via wired or wireless communication, which is not limited in this application. The number of terminal conversion servers and third-party servers is also not limited.

[0057] The following is an introduction to the execution process in the conversion environment of this application. Figure 2 , Figure 2 FIG. 1 is a schematic flow chart of the overall conversion and liquidation process in the embodiment of the present application. Figure 2 As shown, the overall process includes three processes, the setting process 210, the spot liquidation process 220 and the swap liquidation process 230. In the setting process 210, the conversion platform will establish a virtual resource conversion record corresponding to each pair of objects according to the pairing between the specified virtual resource and the target virtual resource. The virtual resource conversion record will contain the total conversion amount of a pair of specified virtual resources and the target virtual resource on each delivery day. It can be understood that when the conversion environment performs virtual resource conversion each time, the data in the virtual resource conversion record of the corresponding virtual resource pair will be updated, thereby recording the total conversion amount of the specified virtual resource and the target virtual resource in the current conversion environment on each delivery day. In the spot liquidation process 220, the conversion platform will randomly perform spot liquidation operations on the trading day. At the beginning of the process, the conversion platform will read the total conversion amount in the virtual resource conversion record, and then select a specified time point as the delivery date to conduct spot transactions with third-party platforms such as banks to perform liquidation operations, and finally update the virtual resource amount information for the specified time point in the virtual resource conversion record according to the updated content. In the swap closing process 230, the conversion platform will read the virtual resource amount information at other time points from the virtual resource conversion record. For each other time point, if the corresponding amount information is zero, no processing is performed. If the corresponding amount information of the designated virtual resource is not zero, a swap transaction is performed for the time point, that is, a buy or sell corresponding to the other time point is performed according to the amount information of the designated virtual resource, and then a reverse transaction is performed at the designated time point. In this way, only one conversion transaction based on the total conversion amount needs to be performed with the bank on the delivery date, and only swap transactions, that is, two transactions in opposite directions, are performed for other time points, so that the total amount of virtual resource conversions performed at different time points is closed in the closing process, and there is no need to perform a separate closing process for each virtual resource conversion, thereby reducing the number of spot transactions and providing more refined and accurate data for the processing of virtual resources, thereby improving the accuracy of the virtual resource conversion process and reducing the conversion cost of virtual resources during the closing process.

[0058] The following is a detailed description of the technical solution provided by this application in conjunction with the specific implementation method. For ease of introduction, please refer to Figure 3 , Figure 3 This is a schematic flow chart of a method for processing virtual resources in an embodiment of the present application. In the embodiment of the present application, the server of the conversion platform is introduced as the execution subject, and the method for processing virtual resources may include the following steps S310 to S340:

[0059] Step S310, obtaining a virtual resource conversion record, wherein the virtual resource conversion record includes a total conversion amount between a specified virtual resource and a target virtual resource and amount information corresponding to the conversion at multiple time points.

[0060] The virtual resource conversion record is the data obtained by the conversion platform after summarizing and recording the amount of virtual resources converted in each conversion transaction on the trading day. The virtual resource conversion record is usually stored in the server of the conversion platform. Among them, the total conversion amount of the specified virtual resources and the target virtual resources is obtained after summarizing multiple time points, and the amount information of each time point is obtained after summarizing the transactions corresponding to the time point. The time points in the virtual resource conversion record have different meanings depending on different scenarios. For example, the time point can be a certain day, and the transaction corresponding to the time point is the conversion transaction conducted on that day or the delivery date on that day. The time point can also be a specific time, and the transaction corresponding to the time point can be a transaction conducted between two consecutive time points in the virtual resource conversion record. For example, the two time points are 11 am and 3 pm, respectively, and the time point of 3 pm corresponds to the transaction between 11 am and 3 pm. The amount information of the specified virtual resources and the target virtual resources can be positive or negative. A positive number indicates that the conversion platform has transferred in the corresponding specified virtual resources or target virtual resources, and a negative number indicates that the conversion platform has transferred out the corresponding specified virtual resources or target virtual resources.

[0061] Step S320, based on the total conversion amount and the first conversion ratio corresponding to the first conversion transaction between the designated virtual resource and the target virtual resource, generates a first conversion transaction for conversion at a designated time point among the multiple time points, wherein the first conversion transaction is a conversion transaction for performing a closing operation.

[0062] The first conversion ratio corresponding to the first type of conversion transaction between the designated virtual resource and the target virtual resource is the conversion ratio determined by the conversion platform based on external information. The first type of conversion transaction is a conversion transaction used for liquidation operations. This transaction is usually a spot transaction between a third-party platform such as a bank, which usually occurs between the server of the conversion platform and the server of the third-party platform. The conversion platform trades with the third-party platform based on the total conversion amount, so that the total conversion amount of the designated virtual resource in the virtual resource conversion record is reset to zero, thereby completing the liquidation operation. The first type of conversion transaction is converted at a designated time point among multiple time points, that is, the actual delivery action of the virtual resources involved in the transaction content will occur at the designated time point, not necessarily at the time point of the application transaction. For example, the conversion platform conducts a first type of conversion transaction on the T day to sell 2,000 designated virtual resources to the third-party platform. The first type of conversion transaction is executed on the T day, wherein the T+2 day is designated as the delivery date, and the virtual resources involved in the transaction are actually formally traded on the T+2 day.

[0063] Step S330, for other time points among the multiple time points except the designated time point, based on the second conversion ratio corresponding to the second conversion transaction between the designated virtual resource and the target virtual resource, and the amount information of the designated virtual resource corresponding to each other time point, generate a second type of conversion transaction for conversion at each other time point.

[0064] Step S340, based on the amount information in the second type of conversion transaction converted at each other time point and the second conversion ratio, a corresponding second type of conversion transaction converted at the specified time point is generated, and the conversion amount between the second conversion transaction converted at each other time point and the corresponding second type of conversion transaction converted at the specified time point is the same and the conversion direction is opposite.

[0065] For other time points other than the specified time point, the conversion platform will generate two second-type conversion transactions for each time point. The second-type conversion transaction is a transaction used to allocate virtual resources between different time points. This transaction is usually a swap transaction between third-party platforms such as banks. Each other time point and the specified time point constitute a time point pair. For each time point pair, a pair of second-type conversion transactions will be created, that is, a second-type conversion transaction for conversion at each other time point and a second-type conversion transaction for conversion at the specified time point. The conversion amounts of these two second-type conversion transactions are the same and the conversion directions are opposite. For example, if the conversion platform specifies the amount of virtual resources on day T as -500, it will create a second-type conversion transaction on day T to sell the target virtual resources to convert to 500 of the specified virtual resources, and create a second-type conversion transaction on day T+2 to convert 500 of the specified virtual resources into the target virtual resources. This is because in the previous steps, the first type of conversion transaction has been performed based on the total conversion amount, and the amount of the specified virtual resources that need to be closed in the virtual resource conversion record is already 0. In other words, the total conversion amount has been recorded in the amount information of the specified virtual resources corresponding to the specified time point through the first type of conversion transaction. Therefore, it is only necessary to perform an internal balance between the amount information of the specified virtual resources corresponding to other time points and the amount information of the specified virtual resources corresponding to the specified time point to complete the closing process of returning the specified virtual resources corresponding to the specified time point and other time points to zero.

[0066] In an embodiment of the present application, for conversion transactions at multiple time points, firstly, a first type of conversion transaction for conversion between specified time points is performed based on the total conversion amount of multiple time points, and then, for conversions at other time points other than the specified time points, second type of conversion transactions for conversion at other time points and between the specified time points and in opposite directions are created respectively, so that only one first type of conversion transaction based on the total conversion amount is required at the specified time point, and only the second type of conversion transaction is executed for other time points, so that in the liquidation process, the first type of conversion transaction based on the total conversion amount is performed according to the virtual resource conversions performed at different time points, and the virtual resource amounts are offset between the virtual resource conversions performed at each time point through the second type of conversion transaction, so that in the process of processing virtual resources, information that helps to calculate the amount of virtual resources that need to be closed between each trading day is covered, and more refined and accurate data is provided for the process of processing virtual resources, thereby improving the accuracy of the virtual resource conversion process and reducing the conversion cost of virtual resources during liquidation.

[0067] In some optional embodiments, after generating the first type of conversion transaction, the conversion platform will update the total conversion amount in the virtual resource conversion record and the amount information corresponding to the specified time point in the virtual resource conversion record according to the amount of the target virtual resource consumed in the first conversion transaction. Specifically, the conversion between the specified virtual resource and the target virtual resource executed in the first type of conversion transaction will be recorded in the record entry corresponding to the specified time point in the virtual resource conversion record. After the entry corresponding to the specified time point changes, the total conversion amount in the virtual resource conversion record will also be updated accordingly. Since the liquidation operation is performed according to the total conversion amount during the first type of conversion transaction, the total conversion amount in the virtual resource conversion record will be reset to zero, but the amount of the specified virtual resource corresponding to the specified time point will usually not be reset to zero. By updating the virtual resource conversion record after the transaction, the conversion situation between the indicated virtual resource and the target virtual resource in the conversion platform can be updated in a timely manner, which is conducive to providing more accurate data for the virtual resource processing process of the conversion platform and is conducive to the accuracy of the solution.

[0068] In some optional embodiments, after generating a second conversion transaction for conversion at each other time point, the amount information corresponding to other time points in the virtual resource conversion record is updated according to the amount of the target virtual resource consumed in the conversion transaction, and after generating a second type of conversion transaction for conversion at the specified time point, the amount information corresponding to the specified time point in the virtual resource conversion record is updated according to the amount of the target virtual resource consumed in the conversion transaction. By updating the virtual resource conversion record after the swap transaction, the conversion status between the indicated virtual resource and the target virtual resource in the conversion platform can be updated in a timely manner, which is conducive to providing more accurate data for the virtual resource processing process of the conversion platform and is conducive to the accuracy of the solution.

[0069] In some optional embodiments, when receiving the virtual resource conversion information between the designated virtual resource and the target virtual resource, the amount information corresponding to the time point in the virtual resource conversion information in the virtual resource conversion record is updated according to the time point in the virtual resource conversion information and the amount information of the designated virtual resource and the target virtual resource. By updating the virtual resource conversion record after receiving the virtual resource conversion information, the conversion status between the indicated virtual resource and the target virtual resource in the conversion platform can be updated in a timely manner, avoiding the increase of computing pressure caused by the centralized update of data and affecting the computing efficiency, which is conducive to improving the execution efficiency of the solution.

[0070] In some optional embodiments, before generating a first type of conversion transaction for conversion at a designated time point among multiple time points, the conversion platform will query the second conversion ratio between the designated virtual resource and the target virtual resource at each time point in the second type of conversion transaction to obtain multiple second conversion ratios; according to the multiple second conversion ratios, the total conversion amount, and the amount information of the designated virtual resource at each time point, the conversion cost of the second conversion ratio at each time point is determined, and the time point corresponding to the highest conversion cost is used as the designated time point. By determining the cost of conversion at each time point according to the second conversion ratios corresponding to multiple time points, and selecting the time point with the highest cost as the designated time point, it is possible to ensure that the second type of conversion transaction is carried out at a time point with lower cost, which is conducive to reducing the conversion cost of virtual resources.

[0071] In the embodiments of the present application, it is also proposed to Figure 3 Other embodiments that refine the technical solution of the embodiment shown in the figure are as follows Figure 4 As shown, in a method for processing virtual resources in an embodiment of the present application, the following steps may be included:

[0072] Step S410: establishing a virtual resource conversion record between the designated virtual resource and the target virtual resource according to the conversion relationship between the designated virtual resource and the target virtual resource.

[0073] There may be multiple virtual resources in the conversion platform. The conversion platform may designate any two virtual resources as designated virtual resources and target virtual resources, thereby forming a conversion relationship between the two, and establish a virtual resource conversion record between the designated virtual resources and the target virtual resources according to the conversion relationship. The record is usually recorded in a table, as shown in Table 1 below:

[0074]

[0075] Table 1

[0076] It can be seen that in the virtual resource conversion record, the data of each conversion time point is stored in a separate row of data, and the data corresponding to a time point will be summarized and recorded in the amount, while the total conversion amount does not record the conversion time. It can be understood that although only two conversion time points are shown in Table 1, in fact, more conversion time points can be included in the virtual resource conversion record.

[0077] Step S420, if the virtual resource conversion information between the designated virtual resource and the target virtual resource is received, the amount information of the target virtual resource is calculated according to the amount information of the designated virtual resource in the virtual resource conversion information and the first conversion ratio in the first type of conversion transaction between the designated virtual resource and the target virtual resource.

[0078] The virtual resource conversion information is information provided by the requesting party of the virtual resource conversion when applying for the virtual resource conversion, which includes the amount information of the specified virtual resource that the requesting party requires to be converted, such as buying a certain amount of the specified virtual resource or selling a certain amount of the specified virtual resource. The conversion platform can obtain the first conversion ratio in the first type of conversion transaction between the specified virtual resource and the target virtual resource, and calculate the amount information of the target virtual resource based on the amount information of the specified virtual resource in the virtual resource conversion information and the first conversion ratio.

[0079] Step S430: updating the total conversion amount in the virtual resource conversion record according to the amount information of the designated virtual resource and the target virtual resource.

[0080] After determining the amount information of the designated virtual resource and the target virtual resource, the server of the conversion platform will update the total conversion amount in the virtual resource conversion record according to the amount information of the designated virtual resource and the target virtual resource. Specifically, the calculation is performed according to the total conversion amount of the total conversion amount in the virtual resource conversion record and the conversion direction in the virtual resource conversion information.

[0081] Step S440, based on the total conversion amount and the first conversion ratio corresponding to the first conversion transaction between the designated virtual resource and the target virtual resource, generates a first conversion transaction for conversion at a designated time point among the multiple time points, wherein the first conversion transaction is a conversion transaction for performing a closing operation.

[0082] Optionally, the implementation details of step S440 are the same as Figure 3 The step S320 shown in FIG. 1 is consistent with the step S320 shown in FIG. 1 and will not be repeated here.

[0083] Step S450, for other time points among the multiple time points except the designated time point, based on the second conversion ratio corresponding to the second conversion transaction between the designated virtual resource and the target virtual resource, and the amount information of the designated virtual resource corresponding to each other time point, generate a second type of conversion transaction to be performed at each other time point.

[0084] Optionally, the implementation details of step S450 are the same as Figure 3 The step S330 shown in FIG. 1 is consistent with the step S330 shown in FIG. 1 and will not be repeated here.

[0085] Step S460, based on the amount information in the second type of conversion transaction converted at each other time point and the second conversion ratio, a corresponding second type of conversion transaction converted at the specified time point is generated, and the conversion amount between the second conversion transaction converted at each other time point and the corresponding second type of conversion transaction converted at the specified time point is the same and the conversion direction is opposite.

[0086] Optionally, the implementation details of step S460 are the same as Figure 3 The step S340 shown in FIG. 1 is consistent with the step S340 shown in FIG. 1 and will not be repeated here.

[0087] In some optional embodiments, the virtual resource conversion information also includes the conversion type of the virtual resource conversion; in the process of establishing the virtual resource conversion record between the designated virtual resource and the target virtual resource according to the conversion relationship between the designated virtual resource and the target virtual resource, the conversion platform will establish the virtual resource conversion record between the designated virtual resource and the target virtual resource for each conversion type according to the conversion relationship between the designated virtual resource and the target virtual resource, and before updating the total conversion amount in the virtual resource conversion record according to the amount information of the designated virtual resource and the target virtual resource, the conversion platform will also read the virtual resource conversion record corresponding to the conversion type in the virtual resource conversion information.

[0088] In some optional embodiments, the virtual resource conversion information also includes conversion environment information of the target virtual resource. In the process of establishing the virtual resource conversion record between the designated virtual resource and the target virtual resource according to the conversion relationship between the designated virtual resource and the target virtual resource, the conversion platform establishes the virtual resource conversion record between the designated virtual resource and the target virtual resource for each conversion environment information according to the conversion relationship between the designated virtual resource and the target virtual resource; and in the process of calculating the amount information of the target virtual resource according to the amount information of the designated virtual resource in the virtual resource conversion information and the first conversion ratio in the first type of conversion transaction between the designated virtual resource and the target virtual resource, the conversion platform obtains the first conversion ratio in the first type of conversion transaction between the designated virtual resource and the target virtual resource in the corresponding conversion environment according to the conversion environment information of the target virtual resource in the virtual resource conversion information, and calculates the amount information of the target virtual resource according to the amount information of the designated virtual resource in the virtual resource conversion information and the first conversion ratio obtained. The conversion environment information is information used to identify the specific environment in which the virtual resource conversion occurs, such as the specific region where the conversion platform is located, the conversion loss and conversion ratio specified by the third party and the regulator involved in the conversion process, etc. In addition, before updating the total conversion amount in the virtual resource conversion record according to the amount information of the designated virtual resource and the target virtual resource, the conversion platform reads the virtual resource conversion record corresponding to the conversion environment information in the virtual resource conversion information.

[0089] In an embodiment of the present application, for conversion transactions at multiple time points, firstly, a first type of conversion transaction for conversion between specified time points is performed based on the total conversion amount of multiple time points, and then, for conversions at other time points other than the specified time points, second type of conversion transactions for conversion at other time points and between the specified time points and in opposite directions are created respectively, so that only one first type of conversion transaction based on the total conversion amount is required at the specified time point, and only the second type of conversion transaction is executed for other time points, so that in the liquidation process, the first type of conversion transaction based on the total conversion amount is performed according to the virtual resource conversions performed at different time points, and the virtual resource amounts are offset between the virtual resource conversions performed at each time point through the second type of conversion transaction, so that in the process of processing virtual resources, information that helps to calculate the amount of virtual resources that need to be closed between each trading day is covered, and more refined and accurate data is provided for the process of processing virtual resources, thereby improving the accuracy of the virtual resource conversion process and reducing the conversion cost of virtual resources during liquidation.

[0090] In some optional embodiments, after generating the first type of conversion transaction, the conversion platform will update the total conversion amount in the virtual resource conversion record and the amount information corresponding to the specified time point in the virtual resource conversion record according to the amount of the target virtual resource consumed in the first conversion transaction. Specifically, the conversion between the specified virtual resource and the target virtual resource executed in the first type of conversion transaction will be recorded in the record entry corresponding to the specified time point in the virtual resource conversion record. After the entry corresponding to the specified time point changes, the total conversion amount in the virtual resource conversion record will also be updated accordingly. Since the liquidation operation is performed according to the total conversion amount during the first type of conversion transaction, the total conversion amount in the virtual resource conversion record will be reset to zero, but the amount of the specified virtual resource corresponding to the specified time point will usually not be reset to zero. By updating the virtual resource conversion record after the transaction, the conversion situation between the indicated virtual resource and the target virtual resource in the conversion platform can be updated in a timely manner, which is conducive to providing more accurate data for the virtual resource processing process of the conversion platform and is conducive to the accuracy of the solution.

[0091] In some optional embodiments, after generating a second conversion transaction for conversion at each other time point, the amount information corresponding to other time points in the virtual resource conversion record is updated according to the amount of the target virtual resource consumed in the conversion transaction, and after generating a second type of conversion transaction for conversion at the specified time point, the amount information corresponding to the specified time point in the virtual resource conversion record is updated according to the amount of the target virtual resource consumed in the conversion transaction. By updating the virtual resource conversion record after the swap transaction, the conversion status between the indicated virtual resource and the target virtual resource in the conversion platform can be updated in a timely manner, which is conducive to providing more accurate data for the virtual resource processing process of the conversion platform and is conducive to the accuracy of the solution.

[0092] In some optional embodiments, when receiving the virtual resource conversion information between the designated virtual resource and the target virtual resource, the amount information corresponding to the time point in the virtual resource conversion information in the virtual resource conversion record is updated according to the time point in the virtual resource conversion information and the amount information of the designated virtual resource and the target virtual resource. By updating the virtual resource conversion record after receiving the virtual resource conversion information, the conversion status between the indicated virtual resource and the target virtual resource in the conversion platform can be updated in a timely manner, avoiding the increase of computing pressure caused by the centralized update of data and affecting the computing efficiency, which is conducive to improving the execution efficiency of the solution.

[0093] In some optional embodiments, before generating a first type of conversion transaction for conversion at a designated time point among multiple time points, the conversion platform will query the second conversion ratio between the designated virtual resource and the target virtual resource at each time point in the second type of conversion transaction to obtain multiple second conversion ratios; according to the multiple second conversion ratios, the total conversion amount, and the amount information of the designated virtual resource at each time point, the conversion cost of the second conversion ratio at each time point is determined, and the time point corresponding to the highest conversion cost is used as the designated time point. By determining the cost of conversion at each time point according to the second conversion ratios corresponding to multiple time points, and selecting the time point with the highest cost as the designated time point, it is possible to ensure that the second type of conversion transaction is carried out at a time point with lower cost, which is conducive to reducing the conversion cost of virtual resources.

[0094] In the embodiments of the present application, it is also proposed to Figure 3 Other embodiments that refine the technical solution of the embodiment shown in the figure are as follows Figure 5 As shown, in a method for processing virtual resources in an embodiment of the present application, the following steps may be included:

[0095] Step S510, obtaining a virtual resource conversion record, wherein the virtual resource conversion record includes a total conversion amount between a designated virtual resource and a target virtual resource and amount information corresponding to each conversion at multiple time points.

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

[0097] Step S520, querying the conversion ratio of the first type of conversion transactions between the specified virtual resource and the target virtual resource in the first conversion environment, and the conversion ratio of the first type of conversion transactions between the specified virtual resource and the target virtual resource in the second conversion environment, wherein the second conversion environment is different from the first conversion environment.

[0098] In an embodiment of the present application, by querying the first conversion ratio corresponding to the specified virtual resource and the target virtual resource in the first conversion environment, and the second conversion ratio corresponding to the specified virtual resource and the target virtual resource in the second conversion environment, a better conversion ratio can be selected by comparing the conversion ratios in different conversion environments to minimize the conversion cost.

[0099] It should be noted that if it is necessary to buy (buying means obtaining the specified virtual resource through conversion of the target virtual resource) a specified virtual resource when closing a position, then if the first conversion ratio of the target virtual resource to the specified virtual resource in the first conversion environment is less than the second conversion ratio of the target virtual resource to the specified virtual resource in the second conversion environment, then it means that the first conversion ratio is better than the second conversion ratio.

[0100] If the closing process requires selling (selling means converting the specified virtual resources into target virtual resources) the specified virtual resources, then if the first conversion ratio of converting the specified virtual resources into the target virtual resources in the first conversion environment is greater than the second conversion ratio of converting the specified virtual resources into the target virtual resources in the second conversion environment, then it means that the first conversion ratio is better than the second conversion ratio.

[0101] If the conversion ratio in the first conversion environment is better than the conversion ratio in the second conversion environment, the instruction step S530 is executed, otherwise, if the conversion ratio in the second conversion environment is better than the conversion ratio in the first conversion environment, step S530 is executed in the second conversion environment. In some optional embodiments, the conversion platform further sets a ratio threshold, and if the conversion ratio in the first conversion environment is better than the conversion ratio in the second conversion environment, and the value of the conversion ratio in the first conversion environment being better than the conversion ratio in the second conversion environment exceeds the set ratio threshold, step S530 is executed, otherwise step S530 is executed in the second conversion environment.

[0102] Step S530, based on the total conversion amount and the first conversion ratio corresponding to the first conversion transaction between the designated virtual resource and the target virtual resource, generates a first conversion transaction for conversion at a designated time point among the multiple time points, wherein the first conversion transaction is a conversion transaction for performing a closing operation.

[0103] Optionally, the implementation details of step S530 are the same as Figure 3 The step S320 shown in FIG. 1 is consistent with the step S320 shown in FIG. 1 and will not be repeated here.

[0104] Step S540, for other time points among the multiple time points except the designated time point, based on the second conversion ratio corresponding to the second conversion transaction between the designated virtual resource and the target virtual resource, and the amount information of the designated virtual resource corresponding to each other time point, generate a second type of conversion transaction to be performed at each other time point.

[0105] Optionally, the implementation details of step S540 are the same as Figure 3 The step S330 shown in FIG. 1 is consistent with the step S330 shown in FIG. 1 and will not be repeated here.

[0106] Step S550, based on the amount information in the second type of conversion transaction converted at each other time point and the second conversion ratio, a corresponding second type of conversion transaction converted at the specified time point is generated, and the conversion amount between the second conversion transaction converted at each other time point and the corresponding second type of conversion transaction converted at the specified time point is the same and the conversion direction is opposite.

[0107] Optionally, the implementation details of step S550 are the same as Figure 3 The step S340 shown in FIG. 1 is consistent with the step S340 shown in FIG. 1 and will not be repeated here.

[0108] In an embodiment of the present application, for conversion transactions at multiple time points, firstly, a first type of conversion transaction for conversion between specified time points is performed based on the total conversion amount of multiple time points, and then, for conversions at other time points other than the specified time points, second type of conversion transactions for conversion at other time points and between the specified time points and in opposite directions are created respectively, so that only one first type of conversion transaction based on the total conversion amount is required at the specified time point, and only the second type of conversion transaction is executed for other time points, so that in the liquidation process, the first type of conversion transaction based on the total conversion amount is performed according to the virtual resource conversions performed at different time points, and the virtual resource amounts are offset between the virtual resource conversions performed at each time point through the second type of conversion transaction, so that in the process of processing virtual resources, information that helps to calculate the amount of virtual resources that need to be closed between each trading day is covered, and more refined and accurate data is provided for the process of processing virtual resources, thereby improving the accuracy of the virtual resource conversion process and reducing the conversion cost of virtual resources during liquidation.

[0109] In some optional embodiments, after generating the first type of conversion transaction, the conversion platform will update the total conversion amount in the virtual resource conversion record and the amount information corresponding to the specified time point in the virtual resource conversion record according to the amount of the target virtual resource consumed in the first conversion transaction. Specifically, the conversion between the specified virtual resource and the target virtual resource executed in the first type of conversion transaction will be recorded in the record entry corresponding to the specified time point in the virtual resource conversion record. After the entry corresponding to the specified time point changes, the total conversion amount in the virtual resource conversion record will also be updated accordingly. Since the liquidation operation is performed according to the total conversion amount during the first type of conversion transaction, the total conversion amount in the virtual resource conversion record will be reset to zero, but the amount of the specified virtual resource corresponding to the specified time point will usually not be reset to zero. By updating the virtual resource conversion record after the transaction, the conversion situation between the indicated virtual resource and the target virtual resource in the conversion platform can be updated in a timely manner, which is conducive to providing more accurate data for the virtual resource processing process of the conversion platform and is conducive to the accuracy of the solution.

[0110] In some optional embodiments, after generating a second conversion transaction for conversion at each other time point, the amount information corresponding to other time points in the virtual resource conversion record is updated according to the amount of the target virtual resource consumed in the conversion transaction, and after generating a second type of conversion transaction for conversion at the specified time point, the amount information corresponding to the specified time point in the virtual resource conversion record is updated according to the amount of the target virtual resource consumed in the conversion transaction. By updating the virtual resource conversion record after the swap transaction, the conversion status between the indicated virtual resource and the target virtual resource in the conversion platform can be updated in a timely manner, which is conducive to providing more accurate data for the virtual resource processing process of the conversion platform and is conducive to the accuracy of the solution.

[0111] In some optional embodiments, when receiving the virtual resource conversion information between the designated virtual resource and the target virtual resource, the amount information corresponding to the time point in the virtual resource conversion information in the virtual resource conversion record is updated according to the time point in the virtual resource conversion information and the amount information of the designated virtual resource and the target virtual resource. By updating the virtual resource conversion record after receiving the virtual resource conversion information, the conversion status between the indicated virtual resource and the target virtual resource in the conversion platform can be updated in a timely manner, avoiding the increase of computing pressure caused by the centralized update of data and affecting the computing efficiency, which is conducive to improving the execution efficiency of the solution.

[0112] In some optional embodiments, before generating a first type of conversion transaction for conversion at a designated time point among multiple time points, the conversion platform will query the second conversion ratio between the designated virtual resource and the target virtual resource at each time point in the second type of conversion transaction to obtain multiple second conversion ratios; according to the multiple second conversion ratios, the total conversion amount, and the amount information of the designated virtual resource at each time point, the conversion cost of the second conversion ratio at each time point is determined, and the time point corresponding to the highest conversion cost is used as the designated time point. By determining the cost of conversion at each time point according to the second conversion ratios corresponding to multiple time points, and selecting the time point with the highest cost as the designated time point, it is possible to ensure that the second type of conversion transaction is carried out at a time point with lower cost, which is conducive to reducing the conversion cost of virtual resources.

[0113] In the embodiments of the present application, it is also proposed to Figure 3 Other embodiments that refine the technical solution of the embodiment shown in the figure are as follows Figure 6 As shown, in a method for processing virtual resources in an embodiment of the present application, the following steps may be included:

[0114] Step S610, obtaining a virtual resource conversion record, wherein the virtual resource conversion record includes a total conversion amount between a specified virtual resource and a target virtual resource and amount information corresponding to the conversion at multiple time points.

[0115] Optionally, the implementation details of step S610 are the same as Figure 3 The step S310 shown in FIG. 1 is consistent with the step S310 shown in FIG. 1 and will not be described in detail.

[0116] Step S620: Calculate a first conversion cost according to the total conversion amount and a first conversion ratio in a first type of conversion transaction between the designated virtual resource and the target virtual resource.

[0117] The conversion cost is the resource loss generated during the conversion between the designated virtual resource and the target virtual resource. For example, if the first conversion ratio is 0.72 and the actual conversion ratio between the designated virtual resource and the target virtual resource is 0.70, the conversion cost is 0.02. For example, 100 designated virtual resources can be converted into 72 target virtual resources, but in the first type of conversion transaction, only 70 target virtual resources can be converted, and 2 target virtual resources become the conversion cost.

[0118] Step S630, calculating a second conversion cost according to the total conversion amount, the first conversion ratio in the first type of conversion transactions between the designated virtual resource and other virtual resources, and the first conversion ratio in the first type of conversion transactions between the other virtual resources and the target virtual resource.

[0119] Other virtual resources are virtual resources that can be converted in the conversion platform, wherein the first conversion ratio in the first type of conversion transaction between the designated virtual resource and the other virtual resources is usually different from the first conversion ratio in the first type of conversion transaction between the designated virtual resource and the target virtual resource. There may be multiple other virtual resources in the conversion platform, and the conversion platform will calculate the second conversion cost of each other virtual resource accordingly. The second conversion cost specifically includes two parts, namely the sum of the conversion cost of converting the designated virtual resource into other virtual resources and the conversion cost of converting other virtual resources into the target virtual resource.

[0120] Step S640: If the first conversion cost is greater than the second conversion cost, a first type of conversion transaction is generated for conversion between the specified virtual resource and other virtual resources at a specified time point, and a first type of conversion transaction is generated for conversion between the other virtual resources and the target virtual resource at a specified time point.

[0121] If the first conversion cost is greater than the second conversion cost, the conversion platform will use the other virtual resources as intermediate resources for virtual resource conversion. That is, the designated virtual resources will be converted into other virtual resources first, and then the other virtual resources will be converted into the target virtual resources. By converting the other virtual resources as intermediate contents of the conversion, the conversion cost of the virtual resource conversion can be further reduced.

[0122] Step S650, for other time points among the multiple time points except the designated time point, based on the second conversion ratio corresponding to the second conversion transaction between the designated virtual resource and the target virtual resource, and the amount information of the designated virtual resource corresponding to each other time point, generate a second type of conversion transaction to be converted at each other time point.

[0123] Optionally, the implementation details of step S650 are the same as Figure 3 The step S330 shown in FIG. 1 is consistent with the step S330 shown in FIG. 1 and will not be repeated here.

[0124] Step S660, based on the amount information in the second type of conversion transaction converted at each other time point and the second conversion ratio, a corresponding second type of conversion transaction converted at the specified time point is generated, and the conversion amount between the second conversion transaction converted at each other time point and the corresponding second type of conversion transaction converted at the specified time point is the same and the conversion direction is opposite.

[0125] Optionally, the implementation details of step S660 are the same as Figure 3 The step S340 shown in FIG. 1 is consistent with the step S340 shown in FIG. 1 and will not be repeated here.

[0126] In an embodiment of the present application, for conversion transactions at multiple time points, firstly, a first type of conversion transaction for conversion between specified time points is performed based on the total conversion amount of multiple time points, and then, for conversions at other time points other than the specified time points, second type of conversion transactions for conversion at other time points and between the specified time points and in opposite directions are created respectively, so that only one first type of conversion transaction based on the total conversion amount is required at the specified time point, and only the second type of conversion transaction is executed for other time points, so that in the liquidation process, the first type of conversion transaction based on the total conversion amount is performed according to the virtual resource conversions performed at different time points, and the virtual resource amounts are offset between the virtual resource conversions performed at each time point through the second type of conversion transaction, so that in the process of processing virtual resources, information that helps to calculate the amount of virtual resources that need to be closed between each trading day is covered, and more refined and accurate data is provided for the process of processing virtual resources, thereby improving the accuracy of the virtual resource conversion process and reducing the conversion cost of virtual resources during liquidation.

[0127] In some optional embodiments, after generating the first type of conversion transaction, the conversion platform will update the total conversion amount in the virtual resource conversion record and the amount information corresponding to the specified time point in the virtual resource conversion record according to the amount of the target virtual resource consumed in the first conversion transaction. Specifically, the conversion between the specified virtual resource and the target virtual resource executed in the first type of conversion transaction will be recorded in the record entry corresponding to the specified time point in the virtual resource conversion record. After the entry corresponding to the specified time point changes, the total conversion amount in the virtual resource conversion record will also be updated accordingly. Since the liquidation operation is performed according to the total conversion amount during the first type of conversion transaction, the total conversion amount in the virtual resource conversion record will be reset to zero, but the amount of the specified virtual resource corresponding to the specified time point will usually not be reset to zero. By updating the virtual resource conversion record after the transaction, the conversion situation between the indicated virtual resource and the target virtual resource in the conversion platform can be updated in a timely manner, which is conducive to providing more accurate data for the virtual resource processing process of the conversion platform and is conducive to the accuracy of the solution.

[0128] In some optional embodiments, after generating a second conversion transaction for conversion at each other time point, the amount information corresponding to other time points in the virtual resource conversion record is updated according to the amount of the target virtual resource consumed in the conversion transaction, and after generating a second type of conversion transaction for conversion at the specified time point, the amount information corresponding to the specified time point in the virtual resource conversion record is updated according to the amount of the target virtual resource consumed in the conversion transaction. By updating the virtual resource conversion record after the swap transaction, the conversion status between the indicated virtual resource and the target virtual resource in the conversion platform can be updated in a timely manner, which is conducive to providing more accurate data for the virtual resource processing process of the conversion platform and is conducive to the accuracy of the solution.

[0129] In some optional embodiments, when receiving the virtual resource conversion information between the designated virtual resource and the target virtual resource, the amount information corresponding to the time point in the virtual resource conversion information in the virtual resource conversion record is updated according to the time point in the virtual resource conversion information and the amount information of the designated virtual resource and the target virtual resource. By updating the virtual resource conversion record after receiving the virtual resource conversion information, the conversion status between the indicated virtual resource and the target virtual resource in the conversion platform can be updated in a timely manner, avoiding the increase of computing pressure caused by the centralized update of data and affecting the computing efficiency, which is conducive to improving the execution efficiency of the solution.

[0130] In some optional embodiments, before generating a first type of conversion transaction for conversion at a designated time point among multiple time points, the conversion platform will query the second conversion ratio between the designated virtual resource and the target virtual resource at each time point in the second type of conversion transaction to obtain multiple second conversion ratios; according to the multiple second conversion ratios, the total conversion amount, and the amount information of the designated virtual resource at each time point, the conversion cost of the second conversion ratio at each time point is determined, and the time point corresponding to the highest conversion cost is used as the designated time point. By determining the cost of conversion at each time point according to the second conversion ratios corresponding to multiple time points, and selecting the time point with the highest cost as the designated time point, it is possible to ensure that the second type of conversion transaction is carried out at a time point with lower cost, which is conducive to reducing the conversion cost of virtual resources.

[0131] The following is an example of the implementation details of the technical solution of the embodiment of the present application:

[0132] In one embodiment of the present application, it is necessary to construct a virtual resource conversion record first. The specific construction method can refer to the construction structure in the above text, and the structure of the constructed virtual resource conversion record can refer to the structure of Table 1 in the above text.

[0133] After completing the above preset work, when a merchant's spot transaction arrives, it will be entered into the virtual resource conversion record based on the virtual resource pair and conversion time point. Figure 7 As shown, there are three transactions, namely, selling 1 million designated virtual resources at time point T+0, buying 500,000 designated virtual resources at time point T+1, and selling 200,000 designated virtual resources at time point T+2. After entering the virtual resource conversion record, it is shown in Table 2 below.

[0134]

[0135] Table 2

[0136] At this time, if Figure 8 As shown, the conversion platform conducts the first type of conversion transaction based on the total conversion volume, that is, selling 700,000 designated virtual resources at the time point T+2. The virtual resource conversion record after entry is shown in Table 3 below.

[0137]

[0138] Table 3

[0139] like Fig. 9As shown in the figure, when the T+0 time point is reached, the total conversion amount is already 0, then the T+0 and T+1 time points are checked respectively. Since both are not 0, the second type of conversion transactions are respectively carried out, namely, selling 1 million designated virtual resources at T+0 and buying 1 million designated virtual resources at T+2, and buying 500,000 designated virtual resources at T+1 and selling 500,000 designated virtual resources at T+2. At this time, the amount of designated virtual resources at each time point in the virtual resource conversion record is reset to zero, and the position is closed.

[0140] It can be understood that if the cost of the first type of conversion transaction is 0.02%, for the liquidation process of three first type conversion transactions, the total conversion volume is 1.7 million, and the transaction cost is 340. However, through the above method, only 0.7 million first type conversion transactions with a total conversion volume were carried out, and the conversion cost was 140. Since the second type of conversion transaction is an internal transaction of buying and selling at the same time, its conversion cost is much lower than the first type of conversion transaction, that is, much less than 0.02%, which shows that the conversion cost is saved.

[0141] 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 generated in this specific order, or that all the steps shown must be generated 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.

[0142] The following introduces the device implementation of the present application, which can be used to generate the processing method of the virtual resources in the above-mentioned embodiment of the present application. Fig.10 The block diagram schematically shows the composition of the virtual resource processing device in the embodiment of the present application. Fig.10 As shown, the virtual resource processing device 1000 may mainly include:

[0143] The record acquisition module 1010 is configured to acquire a virtual resource conversion record, wherein the virtual resource conversion record includes a total conversion amount between a specified virtual resource and a target virtual resource and amount information corresponding to each conversion at multiple time points;

[0144] A first transaction module 1020 is configured to generate a first type of conversion transaction for conversion at a specified time point among the multiple time points according to the total conversion amount and a first conversion ratio corresponding to the first type of conversion transaction between the specified virtual resource and the target virtual resource, wherein the first type of conversion transaction is a conversion transaction for performing a position closing operation;

[0145] The second transaction module 1030 is configured to generate, for other time points among the multiple time points except the specified time point, a second conversion transaction for conversion at each other time point according to the second conversion ratio corresponding to the second type of conversion transaction between the specified virtual resource and the target virtual resource and the amount information of the specified virtual resource corresponding to each other time point;

[0146] The third transaction module 1040 is configured to generate a corresponding second-type conversion transaction converted at the specified time point based on the amount information in the second-type conversion transaction converted at each other time point and the second conversion ratio, and the second conversion transaction converted at each other time point has the same conversion amount as the corresponding second-type conversion transaction converted at the specified time point and the conversion direction is opposite.

[0147] In some embodiments of the present application, based on the above technical solution, the record acquisition module 1010 is also configured to: establish a virtual resource conversion record between the designated virtual resource and the target virtual resource according to the conversion relationship between the designated virtual resource and the target virtual resource; if virtual resource conversion information between the designated virtual resource and the target virtual resource is received, calculate the amount information of the target virtual resource according to the amount information of the designated virtual resource in the virtual resource conversion information and the first conversion ratio in the first type of conversion transaction between the designated virtual resource and the target virtual resource; update the total conversion amount in the virtual resource conversion record according to the amount information of the designated virtual resource and the target virtual resource.

[0148] In some embodiments of the present application, based on the above technical solution, the virtual resource conversion information also includes the conversion type of the virtual resource conversion; the record acquisition module 1010 is also configured to: establish a virtual resource conversion record between the specified virtual resource and the target virtual resource for each conversion type according to the conversion relationship between the specified virtual resource and the target virtual resource; read the virtual resource conversion record corresponding to the conversion type in the virtual resource conversion information.

[0149] In some embodiments of the present application, based on the above technical solution, the virtual resource conversion information also includes conversion environment information of the target virtual resource; the record acquisition module 1010 is also configured to: establish a virtual resource conversion record between the specified virtual resource and the target virtual resource for each conversion environment information according to the conversion relationship between the specified virtual resource and the target virtual resource; obtain the first conversion ratio in the first type of conversion transaction between the specified virtual resource and the target virtual resource in the corresponding conversion environment according to the conversion environment information of the target virtual resource in the virtual resource conversion information; calculate the amount information of the target virtual resource according to the amount information of the specified virtual resource in the virtual resource conversion information and the obtained first conversion ratio; read the virtual resource conversion record corresponding to the conversion environment information in the virtual resource conversion information.

[0150] In some embodiments of the present application, based on the above technical solution, the first transaction module 1020 is also configured to: when generating a first type of conversion transaction for conversion at a specified time point among multiple time points, query the conversion ratio of the first type of conversion transaction between the specified virtual resource and the target virtual resource in the first conversion environment, and the conversion ratio of the first type of conversion transaction between the specified virtual resource and the target virtual resource in the second conversion environment, wherein the second conversion environment is different from the first conversion environment; if the conversion ratio in the first conversion environment is better than the conversion ratio in the second conversion environment, execute the process of generating the first type of conversion transaction.

[0151] In some embodiments of the present application, based on the above technical solution, the first transaction module 1020 is further configured to: if the conversion ratio in the second conversion environment is better than the conversion ratio in the first conversion environment, then the process of generating the first type of conversion transaction is executed in the second conversion environment.

[0152] In some embodiments of the present application, based on the above technical solution, the first transaction module 1020 is also configured to: if the conversion ratio in the first conversion environment is better than the conversion ratio in the second conversion environment, and the value of the conversion ratio in the first conversion environment being better than the conversion ratio in the second conversion environment exceeds the set ratio threshold, then execute the process of generating a first type of conversion transaction.

[0153] In some embodiments of the present application, based on the above technical solution, the first transaction module 1020 is further configured to: query the second conversion ratio between the designated virtual resource and the target virtual resource at each time point in the second type of conversion transaction to obtain a plurality of second conversion ratios;

[0154] Determine a conversion cost of the second conversion ratio at each time point according to the plurality of second conversion ratios, the total conversion amount, and the amount information of the designated virtual resource at each time point;

[0155] The time point corresponding to the highest conversion cost is taken as the designated time point.

[0156] In some embodiments of the present application, based on the above technical solution, the first transaction module 1020 is also configured to: calculate a first conversion cost according to the total conversion amount and the first conversion ratio in the first type of conversion transaction between the designated virtual resource and the target virtual resource; calculate a second conversion cost according to the total conversion amount, the first conversion ratio in the first type of conversion transaction between the designated virtual resource and other virtual resources, and the first conversion ratio in the first type of conversion transaction between the other virtual resources and the target virtual resource; if the first conversion cost is greater than the second conversion cost, generate a first type of conversion transaction between the designated virtual resource and the other virtual resource at a specified time point and a first type of conversion transaction between the other virtual resources and the target virtual resource at a specified time point.

[0157] In some embodiments of the present application, based on the above technical solution, the first transaction module 1020 is also configured to: after generating the first type of conversion transaction, update the total conversion amount in the virtual resource conversion record and the amount information corresponding to the specified time point in the virtual resource conversion record according to the number of target virtual resources consumed in the first conversion transaction.

[0158] In some embodiments of the present application, based on the above technical solution, the third transaction module 1040 is also configured to: after generating a second conversion transaction for conversion at each other time point, update the amount information corresponding to other time points in the virtual resource conversion record according to the number of target virtual resources consumed in the conversion transaction; after generating a second type of conversion transaction for conversion at the specified time point, update the amount information corresponding to the specified time point in the virtual resource conversion record according to the number of target virtual resources consumed in the conversion transaction.

[0159] In some embodiments of the present application, based on the above technical solution, the record acquisition module 1010 is also configured to: when receiving the virtual resource conversion information between the specified virtual resource and the target virtual resource, update the amount information corresponding to the time point in the virtual resource conversion information in the virtual resource conversion record according to the time point in the virtual resource conversion information and the amount information of the specified virtual resource and the target virtual resource.

[0160] 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 generates an operation has been described in detail in the method embodiment and will not be repeated here.

[0161] Fig.11 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.

[0162] It should be noted that Fig.11 The computer system 1100 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.

[0163] like Fig.11 As shown, the computer system 1100 includes a central processing unit (CPU) 1101, which can generate various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1102 or the program loaded from the storage part 1108 to the random access memory (RAM) 1103. Various programs and data required for system operation are also stored in the RAM 1103. The CPU 1101, the ROM 1102, and the RAM 1103 are connected to each other through a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.

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

[0165] 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 contains a program code for generating 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 1109, and / or installed from a removable medium 1111. When the computer program is generated by a central processing unit (CPU) 1101, various functions defined in the system of this application are generated.

[0166] 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 (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, which may be used by an instruction generation system, device or device or used in combination with it. 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, wherein a computer-readable program code is carried. 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 generation system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0167] 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 instructions that can be generated for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be generated substantially in parallel, and they can sometimes be generated 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 realized by a dedicated hardware-based system that generates a specified function or operation, or can be realized by a combination of dedicated hardware and computer instructions.

[0168] It should be noted that, although several modules or units of the device for action generation 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. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0169] 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 methods 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 generate a method according to the implementation methods of the present application.

[0170] 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.

[0171] 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 method for processing virtual resources, It is characterized in that include: Acquire a virtual resource conversion record, wherein the virtual resource conversion record includes a total conversion amount between a specified virtual resource and a target virtual resource and amount information corresponding to each conversion at multiple time points; generating a first type of conversion transaction for conversion at a designated time point among the plurality of time points according to the total conversion amount and a first conversion ratio corresponding to the first type of conversion transaction between the designated virtual resource and the target virtual resource, wherein the first type of conversion transaction is a conversion transaction for performing a position closing operation; For other time points among the multiple time points except the designated time point, generating a second type of conversion transaction for conversion at each other time point according to the second conversion ratio corresponding to the second type of conversion transaction between the designated virtual resource and the target virtual resource and the amount information of the designated virtual resource corresponding to each other time point; Based on the amount information in the second-type conversion transaction converted at each other time point and the second conversion ratio, a second-type conversion transaction converted at the specified time point is generated corresponding to each other time point, and the second-type conversion transaction converted at each other time point has the same conversion amount as the second-type conversion transaction converted at the specified time point and the conversion direction is opposite.

2. The method according to claim 1, It is characterized in that The step of obtaining the virtual resource conversion record includes: According to the conversion relationship between the designated virtual resource and the target virtual resource, a virtual resource conversion record between the designated virtual resource and the target virtual resource is established; If the virtual resource conversion information between the designated virtual resource and the target virtual resource is received, the amount information of the target virtual resource is calculated according to the amount information of the designated virtual resource in the virtual resource conversion information and the first conversion ratio in the first type of conversion transaction between the designated virtual resource and the target virtual resource; The total conversion amount in the virtual resource conversion record is updated according to the amount information of the designated virtual resource and the target virtual resource.

3. The method according to claim 2, It is characterized in that The virtual resource conversion information also includes a conversion type of the virtual resource conversion; the virtual resource conversion record between the specified virtual resource and the target virtual resource is established according to the conversion relationship between the specified virtual resource and the target virtual resource, including: According to the conversion relationship between the designated virtual resource and the target virtual resource, establishing a virtual resource conversion record between the designated virtual resource and the target virtual resource for each conversion type; Before updating the total conversion amount in the virtual resource conversion record according to the amount information of the designated virtual resource and the target virtual resource, the method further includes: A virtual resource conversion record corresponding to the conversion type in the virtual resource conversion information is read.

4. The method according to claim 2, It is characterized in that The virtual resource conversion information also includes conversion environment information of the target virtual resource; the virtual resource conversion record between the specified virtual resource and the target virtual resource is established according to the conversion relationship between the specified virtual resource and the target virtual resource, including: According to the conversion relationship between the designated virtual resource and the target virtual resource, for each conversion environment information, a virtual resource conversion record between the designated virtual resource and the target virtual resource is established; The calculating the amount information of the target virtual resource according to the amount information of the designated virtual resource in the virtual resource conversion information and the first conversion ratio in the first type of conversion transaction between the designated virtual resource and the target virtual resource comprises: According to the conversion environment information of the target virtual resource in the virtual resource conversion information, obtaining a first conversion ratio in a first type of conversion transaction between the designated virtual resource and the target virtual resource in the corresponding conversion environment; Calculating the amount information of the target virtual resource according to the amount information of the virtual resource specified in the virtual resource conversion information and the acquired first conversion ratio; Before updating the total conversion amount in the virtual resource conversion record according to the amount information of the designated virtual resource and the target virtual resource, the method further includes: A virtual resource conversion record corresponding to the conversion environment information in the virtual resource conversion information is read.

5. The method according to claim 1, It is characterized in that The processing method also includes: When generating a first type of conversion transaction that is converted at a specified time point among a plurality of time points, querying a conversion ratio of the first type of conversion transaction between the specified virtual resource and the target virtual resource in the first conversion environment, and a conversion ratio of the first type of conversion transaction between the specified virtual resource and the target virtual resource in the second conversion environment, wherein the second conversion environment is different from the first conversion environment; If the conversion ratio in the first conversion environment is better than the conversion ratio in the second conversion environment, the process of generating the first type of conversion transaction is performed.

6. The method according to claim 5, It is characterized in that The processing method also includes: If the conversion ratio in the second conversion environment is better than the conversion ratio in the first conversion environment, the process of generating the first type of conversion transaction is performed in the second conversion environment.

7. The method according to claim 5, It is characterized in that The processing method also includes: If the conversion ratio in the first conversion environment is better than the conversion ratio in the second conversion environment, and the value by which the conversion ratio in the first conversion environment is better than the conversion ratio in the second conversion environment exceeds a set ratio threshold, a process of generating a first type of conversion transaction is executed.

8. The method according to claim 1, It is characterized in that Before generating a first type of conversion transaction to be converted at a designated time point among the multiple time points, the method further includes: querying a second conversion ratio at each time point in a second type of conversion transaction between the designated virtual resource and the target virtual resource to obtain a plurality of second conversion ratios; Determine a conversion cost of the second conversion ratio at each time point according to the plurality of second conversion ratios, the total conversion amount, and the amount information of the designated virtual resource at each time point; The time point corresponding to the highest conversion cost is taken as the designated time point.

9. The method according to claim 1, It is characterized in that The generating, according to the total conversion amount and the first conversion ratio corresponding to the first conversion transaction between the designated virtual resource and the target virtual resource, a first conversion transaction for conversion at a designated time point among the multiple time points, comprises: calculating a first conversion cost according to the total conversion amount and a first conversion ratio in the first type of conversion transactions between the designated virtual resource and the target virtual resource; calculating a second conversion cost according to the total conversion amount, a first conversion ratio in the first type of conversion transactions between the designated virtual resource and other virtual resources, and a first conversion ratio in the first type of conversion transactions between the other virtual resources and the target virtual resource; If the first conversion cost is greater than the second conversion cost, a first type conversion transaction is generated for conversion between the specified virtual resource and other virtual resources at a specified time point, and a first type conversion transaction is generated for conversion between the other virtual resources and the target virtual resource at a specified time point.

10. The method according to claim 1, It is characterized in that The processing method also includes: After the first type of conversion transaction is generated, the total conversion amount in the virtual resource conversion record and the amount information corresponding to the specified time point in the virtual resource conversion record are updated according to the amount of the target virtual resources consumed in the first conversion transaction.

11. The method according to claim 1, It is characterized in that The processing method also includes: After generating a second conversion transaction for conversion at each other time point, updating the amount information corresponding to the other time points in the virtual resource conversion record according to the amount of the target virtual resource consumed in the conversion transaction; After generating the second type conversion transaction for conversion at the designated time point, the amount information corresponding to the designated time point in the virtual resource conversion record is updated according to the amount of the target virtual resource consumed in the conversion transaction.

12. The method according to claim 1, It is characterized in that The processing method also includes: When receiving virtual resource conversion information between the designated virtual resource and the target virtual resource, the amount information corresponding to the time point in the virtual resource conversion information in the virtual resource conversion record is updated according to the time point in the virtual resource conversion information and the amount information of the designated virtual resource and the target virtual resource.

13. A virtual resource processing device, It is characterized in that include: A record acquisition unit, used to acquire a virtual resource conversion record, wherein the virtual resource conversion record includes a total conversion amount between a specified virtual resource and a target virtual resource and amount information corresponding to each conversion at multiple time points; a first transaction unit, configured to generate a first type of conversion transaction for conversion at a designated time point among the plurality of time points according to the total conversion amount and a first conversion ratio corresponding to the first type of conversion transaction between the designated virtual resource and the target virtual resource, wherein the first type of conversion transaction is a conversion transaction for performing a position closing operation; A second transaction unit is configured to generate, for other time points among the multiple time points except the specified time point, a second conversion transaction for conversion at each other time point according to a second conversion ratio corresponding to the second conversion transaction between the specified virtual resource and the target virtual resource and amount information of the specified virtual resource corresponding to each other time point; A third transaction unit is used to generate a second-type conversion transaction converted at the specified time point according to the amount information in the second-type conversion transaction converted at each other time point and the second conversion ratio, wherein the second conversion transaction converted at each other time point has the same conversion amount as the corresponding second-type conversion transaction converted at the specified time point and the conversion direction is opposite.

14. An electronic device, It is characterized in that include: processor; A memory for storing instructions that can be generated by the processor; The processor is configured to generate the method for processing virtual resources as described in any one of claims 1 to 12 by generating the generable instructions.

15. A computer readable medium having a computer program stored thereon, It is characterized in that When the computer program is generated by a processor, the computer program implements the method for processing virtual resources according to any one of claims 1 to 12.

16. A computer program product, It is characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium. A processor of a computer device reads and executes the computer instructions from the computer-readable storage medium, so that the computer device executes the method for processing virtual resources according to any one of claims 1 to 12.