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

By obtaining virtual resource conversion records and closing operations, the transaction interruption problem in virtual resource transactions caused by third parties not supporting closing positions is solved, and the stability and normal operation of virtual resource transactions are achieved.

CN119067774APending Publication Date: 2024-12-03TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the prior art, during the virtual resource trading process, since the third party does not support the trading platform to close the position of the virtual resource types that need to be closed, the transaction process cannot be executed normally, affecting the stability of the virtual resource trading.

Method used

By obtaining virtual resource conversion records, generating transaction orders, and closing virtual resources based on conversion ratios and closing records, ensuring smooth transaction execution and avoiding dependence on third parties.

Benefits of technology

Ensure the normal operation and stability of virtual resource transactions, avoid transaction interruptions caused by third-party non-support, and improve transaction reliability and efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119067774A_ABST
    Figure CN119067774A_ABST
Patent Text Reader

Abstract

The invention discloses a virtual resource transaction method and device, electronic equipment and a readable medium. The method comprises the steps of obtaining a virtual resource conversion record, wherein the virtual resource conversion record comprises corresponding amount information when a first virtual resource and a target virtual resource are converted and corresponding amount information when a second virtual resource and the target virtual resource are converted; if a transaction instruction which is initiated for the first virtual resource and specifies the second virtual resource as the specified transaction resource is received, generating a first transaction order according to the amount information of the first virtual resource in the virtual resource conversion record and the conversion ratio between the first virtual resource and the second virtual resource; according to the amount difference between the amount information of the second virtual resource in the virtual resource conversion record and the transaction amount information of the second virtual resource in the first transaction order, flattening the second virtual resource; and executing the virtual resource transaction according to the first transaction order. According to the method, normal operation of virtual resource transaction is ensured, and the stability of virtual resource transaction is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the rapid development of network technology, the application of virtual resources has become more and more extensive, and the types of virtual resources have also increased. When the types of virtual resources used by the two parties to a transaction are different, it is usually necessary to convert the virtual resources through a trading platform to complete the transaction.

[0003] In the related art, the trading platform will trade with both parties to perform the conversion between the two virtual resources, and then close the type of virtual resources used by one party based on the results of the transaction to complete the transaction.

[0004] However, the closing operation in the transaction process depends on the transaction between the trading platform and the third party. Once the third party does not support the trading platform to close the virtual resource types that need to be closed, the virtual resource transaction process cannot be executed normally, which is not conducive to the stability of virtual resource transactions. Summary of the invention

[0005] Based on the above technical problems, the present application provides a virtual resource trading method, device, electronic device and readable medium to ensure the normal operation of virtual resource trading and improve the stability of virtual resource trading.

[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 virtual resource transaction method is provided, comprising:

[0008] Acquire a virtual resource conversion record, wherein the virtual resource conversion record includes amount information corresponding to conversions between the first virtual resource and the target virtual resource, and amount information corresponding to conversions between the second virtual resource and the target virtual resource;

[0009] If a transaction instruction initiated for the first virtual resource and designating the second virtual resource as a designated transaction resource is received, a first transaction order is generated according to the conversion ratio between the first virtual resource and the second virtual resource and the amount information of the first virtual resource in the virtual resource conversion record, wherein the first transaction order includes the transaction amount information of the second virtual resource;

[0010] performing a closing operation on the second virtual resource according to the difference between the amount information of the second virtual resource in the virtual resource conversion record and the transaction amount information of the second virtual resource in the first transaction order;

[0011] The virtual resource transaction is executed according to the first transaction order.

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

[0013] An acquisition unit, used to acquire a virtual resource conversion record, wherein the virtual resource conversion record includes amount information corresponding to the conversion between the first virtual resource and the target virtual resource, and amount information corresponding to the conversion between the second virtual resource and the target virtual resource;

[0014] a generating unit, configured to generate a first transaction order according to a conversion ratio between the first virtual resource and the second virtual resource and the amount information of the first virtual resource in the virtual resource conversion record, if receiving a transaction instruction initiated for the first virtual resource and designating the second virtual resource as a designated transaction resource, wherein the first transaction order includes the transaction amount information of the second virtual resource;

[0015] a closing unit, configured to close the second virtual resource according to the difference between the amount information of the second virtual resource in the virtual resource conversion record and the transaction amount information of the second virtual resource in the first transaction order;

[0016] An execution unit is used to execute the virtual resource transaction according to the first transaction order.

[0017] In some embodiments of the present application, based on the above technical solution, the closing unit is further configured to: obtain the conversion direction of the second virtual resource in the virtual resource conversion record and the conversion direction of the second virtual resource in the first transaction order; if the conversion direction of the second virtual resource in the virtual resource conversion record is opposite to the conversion direction of the second virtual resource in the first transaction order, then according to the difference between the amount information of the second virtual resource in the virtual resource conversion record and the transaction amount information of the second virtual resource in the first transaction order, close the second virtual resource.

[0018] In some embodiments of the present application, based on the above technical solution, the closing unit is also configured to: sum the amount information of the second virtual resource in the virtual resource conversion record and the transaction amount information of the second virtual resource in the first transaction order to determine the remaining amount of the second virtual resource; if the remaining amount is opposite to the conversion direction of the second virtual resource in the virtual resource conversion record, then close the second virtual resource according to the remaining amount.

[0019] In some embodiments of the present application, based on the above technical solution, the liquidation unit is further configured to: generate a second transaction order between the second virtual resource and the target virtual resource according to the balance amount and the conversion ratio between the second virtual resource and the target virtual resource;

[0020] The execution unit is further configured to: execute the virtual resource transaction according to the first transaction order and the second transaction order.

[0021] In some embodiments of the present application, based on the above technical solution, the closing unit is also configured to: if the balance amount is the same as the conversion direction of the second virtual resource in the virtual resource conversion record, then update the virtual resource conversion record according to the balance amount and the conversion ratio between the second virtual resource and the target virtual resource.

[0022] In some embodiments of the present application, based on the above technical solution, the closing unit is further configured to: calculate the conversion amount information of the target virtual resource according to the balance amount and the conversion ratio between the second virtual resource and the target virtual resource; update the amount information corresponding to the second virtual resource when the conversion between the second virtual resource and the target virtual resource is performed in the virtual resource conversion record according to the balance amount; update the amount information corresponding to the target virtual resource when the conversion between the second virtual resource and the target virtual resource is performed in the virtual resource conversion record according to the conversion amount information.

[0023] In some embodiments of the present application, based on the above technical solution, the closing unit is also configured to: if the conversion direction of the second virtual resource in the virtual resource conversion record is the same as the conversion direction of the second virtual resource in the first transaction order, then the second virtual resource is closed according to the transaction amount information of the second virtual resource in the first transaction order.

[0024] In some embodiments of the present application, based on the above technical solution, the acquisition unit is also configured to: receive a first virtual resource transaction request, the first virtual resource transaction request includes first conversion information between the first virtual resource and the target virtual resource; construct a virtual resource conversion record corresponding to the target virtual resource based on the first conversion information; receive a second virtual resource transaction request, the second virtual resource transaction request includes second conversion information between the second virtual resource and the target virtual resource; read and update the virtual resource conversion record corresponding to the target virtual resource based on the second conversion information.

[0025] In some embodiments of the present application, based on the above technical solution, the acquisition unit is also configured to: receive a third virtual resource transaction request, which contains third conversion information between the first virtual resource and the second virtual resource; split the third conversion information into a first split transaction between the first virtual resource and the target virtual resource and a second split transaction between the second virtual resource and the target virtual resource according to the conversion ratio between the first virtual resource and the target virtual resource and the third conversion information and the conversion ratio between the second virtual resource and the target virtual resource; read and update the virtual resource conversion record corresponding to the target virtual resource according to the first split transaction and the second split transaction.

[0026] In some embodiments of the present application, based on the above technical solution, the virtual resource conversion record also includes a third virtual resource; the acquisition unit is also configured to: calculate the first conversion cost of converting the first virtual resource into the second virtual resource and the second virtual resource into the target virtual resource according to the conversion ratio between the virtual resources in the virtual resource conversion record, as well as the second conversion cost of converting the first virtual resource into the third virtual resource and the third virtual resource into the target virtual resource; if the first conversion cost is better than the second conversion cost, designate the second virtual resource as the designated transaction resource of the first virtual resource.

[0027] In some embodiments of the present application, based on the above technical solution, the virtual resource conversion record also includes a third virtual resource; the acquisition unit is also configured to: respectively obtain the transaction volume of the first virtual resource, the second virtual resource and the third virtual resource in the virtual resource conversion record; and determine the virtual resource with the highest transaction volume as the designated transaction resource of the remaining virtual resources.

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

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

[0030] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the transaction method of virtual resources provided in the above various optional implementations.

[0031] In an embodiment of the present application, the first virtual resource in the virtual resource conversion record is converted into the second virtual resource, and then the second virtual resource is closed according to the conversion data between the second virtual resource and the target virtual resource in the virtual resource conversion record. Thus, when the first virtual resource cannot be directly converted into the target virtual resource, the target virtual resource is used to close and settle the first virtual resource, thereby avoiding the situation where the third party does not support the closing transaction of the first virtual resource type that needs to be closed, resulting in the inability to execute the virtual resource transaction process normally, ensuring the normal operation of the virtual resource transaction, and helping to improve the stability of the virtual resource transaction.

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

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

[0034] In the attached picture:

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

[0036] Figure 2 A schematic diagram of the virtual resource conversion relationship in an embodiment of the present application.

[0037] Figure 3 It is a schematic diagram of the overall transaction process in the embodiment of the present application.

[0038] Figure 4 It is a schematic flow chart of a method for trading virtual resources in an embodiment of the present application.

[0039] Figure 5 It is a schematic flow chart of a method for trading virtual resources in an embodiment of the present application.

[0040] Figure 6 It is a schematic flow chart of a method for trading virtual resources in an embodiment of the present application.

[0041] Figure 7 It is a schematic flow chart of a method for trading virtual resources in an embodiment of the present application.

[0042] Figure 8 It is a schematic diagram of the virtual resource transaction process in the embodiment of the present application.

[0043] Fig. 9 It is a schematic diagram of the virtual resource transaction process in the embodiment of the present application.

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

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

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

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

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

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

[0050] It should be understood that the solution of the present application is applied in a conversion platform or trading platform that provides mutual conversion of multiple virtual resources, and is specifically applied in a transaction process in which the virtual resources settled by the transaction parties and the trading platform are different. This process can also be referred to as a cross-virtual resource transaction process. Generally, a trading platform that provides virtual resource payment or conversion services will provide users with conversion quotes for the target virtual resource for various virtual resources, so that users can display and pay the corresponding target virtual resources when using other virtual resources to trade with stores or exchanges. When the transaction is completed, the trading platform collects the amount of the target virtual resource from the user's account, and the settlement virtual resource promised by the trading platform to the store is the various virtual resources set when the store signed the contract. Therefore, in the payment scenario of cross-virtual resources, the user transaction is completed, and the trading platform conducts the buying and selling process of virtual resources to form the virtual resource assets held by the trading platform, or virtual resource exposure. The trading platform will select a virtual resource as the target virtual resource for its settlement to manage the virtual resources it buys and sells. Virtual resources may be regulated and cannot be directly bought and sold with the target virtual resource selected by the trading platform. In this case, the solution of the present application will use another virtual resource that can be directly bought and sold (usually specified when implementing the control) to conduct cross-virtual resource pair transactions for settlement. The present application provides a method for trading virtual resources based on a specified virtual resource as a cross-resource, by specifying the type of virtual resource used for closing a position, generating a cross-virtual resource pair closing order, satisfying the transaction method required by the regulated virtual resource, and realizing the management of the transaction and holding amount of the regulated virtual resource.

[0051] 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 1As shown, the scenario includes a terminal 110, a transaction platform 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, a tablet computer and other devices, and a terminal held by a merchant, such as a POS machine and various cash registers. The transaction platform server 120 provides payment of virtual resources to the terminal 110. The user's terminal 110 pays the virtual resources to the transaction platform service, and the merchant's terminal 110 sends the transaction it has reached to the transaction platform server 120 to fulfill its transaction content. The transaction platform server 120 performs internal calculations based on the received transactions and closes the position with the third-party server 130 to settle the transaction sent by the merchant's terminal 110, thereby completing the overall transaction process.

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

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

[0054] The following is an introduction to the transaction process in the trading platform in this application. Figure 2 , Figure 2 Schematic diagram of the virtual resource conversion relationship in the embodiment of the present application. Figure 2 As shown, the transaction between the first virtual resource IDA and the target virtual resource IDC and the transaction between the second virtual resource IDB and the target virtual resource IDC are provided in the transaction platform. The first virtual resource IDA is regulated, so third parties such as banks do not support the transaction platform to apply for the transaction between the first virtual resource IDA and the target virtual resource IDC, but support the transaction between the first virtual resource IDA and the second virtual resource IDB and the transaction between the second virtual resource IDB and the target virtual resource IDC. Please refer to Figure 3 , Figure 3 Schematic diagram of the overall transaction process in the embodiment of this application. Figure 3As shown, after receiving the transaction from the merchant, the trading platform will store it in the transaction record, and initiate a transaction for the record between the first virtual resource IDA and the target virtual resource IDC. After the transaction starts, the type of the opponent virtual resource specified in the transaction will be checked in step 310. If the specified opponent virtual resource type is the target virtual resource IDC, a transaction order between the first virtual resource IDA and the target virtual resource IDC will be directly generated in step 320, and the transaction order will be directly sent to the bank in step 360. It should be noted that this situation indicates that the first virtual resource IDA is not currently in a regulated state, so the transaction between the first virtual resource IDA and the target virtual resource IDC can be directly carried out. In the case where the first virtual resource IDA is regulated, the trading platform will not allow the target virtual resource IDC to be specified as the opponent virtual resource type for the first virtual resource IDA. In step 310, if the specified opponent virtual resource type is not the target virtual resource IDC, but the second virtual resource IDB, a transaction order between the first virtual resource IDA and the second virtual resource IDB will be generated in step 330. Then, in step 340, it is checked whether the holding amount of the second virtual resource IDB for amortization has been expanded or reversed. If no reverse has occurred, the transaction order is directly sent to the bank in step 360. If reverse or expansion has occurred, a transaction order between the second virtual resource IDB and the target virtual resource IDC is generated in step 350, and the two orders are sent together to the bank in step 360.

[0055] The following is a detailed description of the technical solution provided by this application in conjunction with the specific implementation method. Figure 4 , Figure 4 The following is a schematic flow chart of a virtual resource transaction method in an embodiment of the present application. In the embodiment of the present application, the server where the transaction platform is located is introduced as the execution subject, and the virtual resource transaction method may include the following steps S410 to S440:

[0056] In step S410, a virtual resource conversion record is obtained, wherein the virtual resource conversion record includes amount information corresponding to conversions between the first virtual resource and the target virtual resource, and amount information corresponding to conversions between the second virtual resource and the target virtual resource.

[0057] The virtual resource conversion record is a data storage form in which the trading platform records the conversion between transactions or virtual resources provided by it. A virtual resource conversion record is usually established based on a single virtual resource as the central virtual resource, that is, all entries in the virtual resource conversion record are conversion records of a certain virtual resource and the central virtual resource. In this embodiment, the virtual resource conversion record is established based on the target virtual resource as the central virtual resource. Therefore, the virtual resource conversion record will include the conversion record of the first virtual resource and the target virtual resource and the conversion record of the second virtual resource and the target virtual resource. In the virtual resource conversion record, different transactions will be summarized based on certain rules. For example, conversion transactions with the same delivery date will be calculated together into the same entry. The virtual resource conversion record will include the amount information corresponding to the virtual resource when it is converted. The amount information can be positive or negative. A positive value indicates that the corresponding amount of virtual resources has been added to the trading platform, that is, the trading platform has bought virtual resources, and a negative value indicates that the trading platform has reduced (i.e., sold) the corresponding amount of virtual resources.

[0058] The virtual resource conversion record can be recorded in the manner of Table 1 below:

[0059]

[0060] Table 1

[0061] In step S420, if a transaction instruction is received that is initiated for the first virtual resource and specifies the second virtual resource as the designated transaction resource, a first transaction order is generated based on the conversion ratio between the first virtual resource and the second virtual resource and the amount information of the first virtual resource in the virtual resource conversion record, and the first transaction order includes the transaction amount information of the second virtual resource.

[0062] The transaction instruction is used to trigger a transaction for a certain entry in the virtual resource conversion record. For example, if the trading platform wants to trigger a transaction between virtual resource 1 and the target virtual resource, a transaction instruction for the entry of virtual resource 1 in the virtual resource conversion record will be generated. When the transaction instruction is generated, it is also necessary to specify a virtual resource as a designated transaction resource. The designated transaction resource is a virtual resource used to settle the transaction. For a transaction recorded in a virtual resource conversion record, the trading platform will convert the virtual resource income and expenditure except the target virtual resource into the target virtual resource during the transaction process. During the conversion process, some specific virtual resources may not be able to be directly converted with the target virtual resource. At this time, the trading platform will perform the transaction process by specifying the transaction resource as a cross resource. In this embodiment, when the trading platform receives a transaction instruction initiated for the first virtual resource and designating the second virtual resource as the designated transaction resource, it indicates that the first virtual resource cannot be directly converted with the target virtual resource. Based on the transaction instruction, the trading platform will generate a first transaction order according to the amount information of the first virtual resource in the virtual resource conversion record and the conversion ratio between the first virtual resource and the second virtual resource, and the first transaction order contains the transaction amount information of the second virtual resource. It can be understood that the first transaction order converts the first virtual resource into the second virtual resource, and the conversion operation will reset the amount information of the first virtual resource in the virtual resource conversion record to zero, which is equivalent to completing the liquidation process of the first virtual resource. However, from the overall point of view, the first virtual resource indicates that it has been converted into the second virtual resource, but it has not yet been converted into the required target virtual resource in the first transaction order.

[0063] In step S430, the second virtual resource is closed according to the difference between the amount information of the second virtual resource in the virtual resource conversion record and the transaction amount information of the second virtual resource in the first transaction order.

[0064] The amount information of the second virtual resource in the virtual resource conversion record is a record entered according to the transaction between the second virtual resource and the target virtual resource. After the trading platform converts the first virtual resource into the second virtual resource, it is necessary to close the converted second virtual resource to complete the transaction process. The closing process is usually carried out with a third-party platform, such as a transaction with a bank or other institutions that provide conversion services. However, before trading with the outside, the trading platform can first conduct an internal transaction to partially or completely replace the closing operation with the external transaction. That is, the conversion transaction of the second virtual resource recorded in the virtual resource conversion record is offset with the second virtual resource converted from the first virtual resource. Therefore, the trading platform can close the position according to the amount difference between the amount information of the second virtual resource in the virtual resource conversion record and the transaction amount information of the second virtual resource in the first transaction order. The amount difference can be considered to indicate how much of the second virtual resource converted in the first transaction order needs to be closed, so as to perform a closing operation based on the amount.

[0065] In step S440, the virtual resource transaction is executed according to the first transaction order.

[0066] The trading platform can send the first transaction order to the third-party platform to complete the virtual resource transaction. The third-party platform provides the trading platform with the second virtual resource of the corresponding amount according to the first virtual resource requested in the first transaction order. It can be immediately understood that the specific delivery process of the virtual resources can be completed at a specific time point. For example, the transaction order generated during the trading day will be delivered at 24:00 on the trading day, that is, at 0:00 on the next trading day.

[0067] In an embodiment of the present application, the first virtual resource in the virtual resource conversion record is converted into the second virtual resource, and then the second virtual resource is closed according to the conversion data between the second virtual resource and the target virtual resource in the virtual resource conversion record. Thus, when the first virtual resource cannot be directly converted into the target virtual resource, the target virtual resource is used to close and settle the first virtual resource, thereby avoiding the situation where the third party does not support the closing transaction of the first virtual resource type that needs to be closed, resulting in the inability to execute the virtual resource transaction process normally, ensuring the normal operation of the virtual resource transaction, and helping to improve the stability of the virtual resource transaction.

[0068] In some optional embodiments, the virtual resource conversion record also includes a third virtual resource. During the operation of the trading platform, the first conversion cost of converting the first virtual resource into the second virtual resource and the second virtual resource into the target virtual resource, as well as the second conversion cost of converting the first virtual resource into the third virtual resource and the third virtual resource into the target virtual resource, will be calculated according to the conversion ratio between the virtual resources in the virtual resource conversion record. The first conversion cost can be considered as the conversion cost of the second virtual resource as a designated transaction resource, and the second conversion cost can be considered as the conversion cost of the third virtual resource as a designated transaction resource. The conversion cost is the loss in the process of virtual resource conversion, which is usually controlled by the conversion ratio between virtual resources, and the conversion ratio in the trading platform is determined based on the conversion ratio provided by third-party institutions such as banks. If the first conversion cost is better than the second conversion cost, the second virtual resource is designated as the designated transaction resource of the first virtual resource. In the subsequent transaction process, even if the second virtual resource is not designated as the designated transaction resource in the transaction instruction, the trading platform will default to using the second virtual resource for cross-trading. In some embodiments, when the first virtual resource can be directly converted into the target virtual resource, the trading platform will also calculate the conversion cost of converting the first virtual resource into the target virtual resource, and compare it with the conversion cost of converting using the designated trading resource. It is understandable that the virtual resource conversion record can contain more types of virtual resources, and the trading platform can calculate the conversion cost of using other virtual resources as designated trading resources for each virtual resource, and select the virtual resource with the best conversion cost as the designated trading resource. By selecting a virtual resource with a better conversion cost as the designated trading resource, the loss in the virtual resource trading process can be reduced and the conversion efficiency of the transaction can be improved.

[0069] In some optional embodiments, the virtual resource conversion record also includes a third virtual resource. During the operation of the trading platform, the transaction volume of the first virtual resource, the second virtual resource and the third virtual resource in the virtual resource conversion record will be obtained respectively. The transaction volume includes the overall transaction flow of each virtual resource, that is, the buying volume and the selling volume will be counted separately. Based on the transaction volume of each virtual resource, the trading platform determines the virtual resource with the highest transaction volume as the designated transaction resource of the remaining virtual resources. For example, if the transaction volume of the third virtual resource is the highest, the trading platform determines the third virtual resource as the designated transaction resource of the first virtual resource and the second virtual resource. In the transaction process of the first virtual resource and the second virtual resource, even if they are not regulated, they are no longer directly converted into the target virtual resource, but will be converted into the third virtual resource, and the transaction with the third virtual resource is internalized. By determining the virtual resource with the highest transaction volume as the designated transaction resource of the remaining virtual resources, the probability of internalized transactions in the transaction process can be increased, thereby reducing transaction costs.

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

[0071] Step S510, obtaining a virtual resource conversion record, wherein the virtual resource conversion record includes amount information corresponding to conversions between the first virtual resource and the target virtual resource, and amount information corresponding to conversions between the second virtual resource and the target virtual resource.

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

[0073] Step S520: If a transaction instruction is received that is initiated for the first virtual resource and specifies the second virtual resource as the designated transaction resource, a first transaction order is generated based on the conversion ratio between the first virtual resource and the second virtual resource, and the amount information of the first virtual resource in the virtual resource conversion record, and the first transaction order includes the transaction amount information of the second virtual resource.

[0074] Optionally, the implementation details of step S520 are the same as Figure 4 The step S420 shown in FIG. 1 is the same as that in FIG. 1 and will not be described in detail.

[0075] Step S530, obtaining the conversion direction of the second virtual resource in the virtual resource conversion record and the conversion direction of the second virtual resource in the first transaction order.

[0076] In the virtual resource conversion record, the conversion direction is determined by the positive or negative of the corresponding amount information of the virtual resource. Therefore, the trading platform compares the conversion direction of the second virtual resource in the virtual resource conversion record with the symbol of the second virtual resource in the first transaction order. If the symbols are opposite, the conversion direction is opposite, and the trading platform executes step S540; if the symbols are the same, the conversion direction is the same, and the trading platform executes step S550.

[0077] Step S540: performing a closing operation on the second virtual resource according to the difference between the amount information of the second virtual resource in the virtual resource conversion record and the transaction amount information of the second virtual resource in the first transaction order.

[0078] Optionally, the implementation details of step S540 are the same as Figure 4 In the case of the opposite conversion direction, the transaction of the second virtual resource in the first transaction order can be offset with the transaction of the second virtual resource in the virtual resource conversion record to form an internalized transaction. The mutually offset part does not need to be closed with a third party, only the part that cannot be offset needs to be closed. The transaction cost of the internalized transaction is much lower than the transaction cost of the closing operation, so the transaction cost can be reduced.

[0079] Step S550: performing a closing operation on the second virtual resource according to the transaction amount information of the second virtual resource in the first transaction order.

[0080] When the conversion direction is the same, it means that the transaction of the second virtual resource in the virtual resource conversion record cannot offset the transaction of the second virtual resource in the first transaction order, that is, there is no condition for internalization transaction. Even if the transaction of the second virtual resource in the virtual resource conversion record is internalized, it will only expand the holding amount of the second virtual resource in the original conversion direction, that is, expand the transaction volume, and cannot reduce the transaction cost. Therefore, the trading platform directly closes the second virtual resource based on the transaction amount information of the second virtual resource in the first transaction order, instead of trying to execute the internalization transaction, thereby reducing unnecessary retrieval and calculation, which is conducive to improving the execution efficiency of the transaction.

[0081] Step S560: Execute virtual resource transaction according to the first transaction order.

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

[0083] In an embodiment of the present application, the first virtual resource in the virtual resource conversion record is converted into the second virtual resource, and then the second virtual resource is closed according to the conversion data between the second virtual resource and the target virtual resource in the virtual resource conversion record. Thus, when the first virtual resource cannot be directly converted into the target virtual resource, the target virtual resource is used to close and settle the first virtual resource, thereby avoiding the situation where the third party does not support the closing transaction of the first virtual resource type that needs to be closed, resulting in the inability to execute the virtual resource transaction process normally, ensuring the normal operation of the virtual resource transaction, and helping to improve the stability of the virtual resource transaction.

[0084] In some optional embodiments, the virtual resource conversion record also includes a third virtual resource. During the operation of the trading platform, the first conversion cost of converting the first virtual resource into the second virtual resource and the second virtual resource into the target virtual resource, as well as the second conversion cost of converting the first virtual resource into the third virtual resource and the third virtual resource into the target virtual resource, will be calculated according to the conversion ratio between the virtual resources in the virtual resource conversion record. The first conversion cost can be considered as the conversion cost of the second virtual resource as a designated transaction resource, and the second conversion cost can be considered as the conversion cost of the third virtual resource as a designated transaction resource. The conversion cost is the loss in the process of virtual resource conversion, which is usually controlled by the conversion ratio between virtual resources, and the conversion ratio in the trading platform is determined based on the conversion ratio provided by third-party institutions such as banks. If the first conversion cost is better than the second conversion cost, the second virtual resource is designated as the designated transaction resource of the first virtual resource. In the subsequent transaction process, even if the second virtual resource is not designated as the designated transaction resource in the transaction instruction, the trading platform will default to using the second virtual resource for cross-trading. In some embodiments, when the first virtual resource can be directly converted into the target virtual resource, the trading platform will also calculate the conversion cost of converting the first virtual resource into the target virtual resource, and compare it with the conversion cost of converting using the designated trading resource. It is understandable that the virtual resource conversion record can contain more types of virtual resources, and the trading platform can calculate the conversion cost of using other virtual resources as designated trading resources for each virtual resource, and select the virtual resource with the best conversion cost as the designated trading resource. By selecting a virtual resource with a better conversion cost as the designated trading resource, the loss in the virtual resource trading process can be reduced and the conversion efficiency of the transaction can be improved.

[0085] In some optional embodiments, the virtual resource conversion record also includes a third virtual resource. During the operation of the trading platform, the transaction volume of the first virtual resource, the second virtual resource and the third virtual resource in the virtual resource conversion record will be obtained respectively. The transaction volume includes the overall transaction flow of each virtual resource, that is, the buying volume and the selling volume will be counted separately. Based on the transaction volume of each virtual resource, the trading platform determines the virtual resource with the highest transaction volume as the designated transaction resource of the remaining virtual resources. For example, if the transaction volume of the third virtual resource is the highest, the trading platform determines the third virtual resource as the designated transaction resource of the first virtual resource and the second virtual resource. In the transaction process of the first virtual resource and the second virtual resource, even if they are not regulated, they are no longer directly converted into the target virtual resource, but will be converted into the third virtual resource, and the transaction with the third virtual resource is internalized. By determining the virtual resource with the highest transaction volume as the designated transaction resource of the remaining virtual resources, the probability of internalized transactions in the transaction process can be increased, thereby reducing transaction costs.

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

[0087] Step S610, obtaining a virtual resource conversion record, wherein the virtual resource conversion record includes amount information corresponding to the conversion between the first virtual resource and the target virtual resource, and amount information corresponding to the conversion between the second virtual resource and the target virtual resource.

[0088] Optionally, the implementation details of step S610 are the same as Figure 4 The step S410 shown in FIG. 1 is the same as that in FIG. 1 and will not be described in detail.

[0089] Step S620: If a transaction instruction is received that is initiated for the first virtual resource and specifies the second virtual resource as the designated transaction resource, a first transaction order is generated based on the conversion ratio between the first virtual resource and the second virtual resource and the amount information of the first virtual resource in the virtual resource conversion record, and the first transaction order includes the transaction amount information of the second virtual resource.

[0090] Optionally, the implementation details of step S620 are the same as Figure 4 The step S420 shown in FIG. 1 is the same as that in FIG. 1 and will not be described in detail.

[0091] Step S630, obtaining the conversion direction of the second virtual resource in the virtual resource conversion record and the conversion direction of the second virtual resource in the first transaction order.

[0092] In the virtual resource conversion record, the conversion direction is determined by the positive or negative of the corresponding amount information of the virtual resource. Therefore, the trading platform compares the conversion direction of the second virtual resource in the virtual resource conversion record with the symbol of the second virtual resource in the first transaction order. If the symbols are opposite, the conversion direction is opposite, and the trading platform executes step S640; if the symbols are the same, the conversion direction is the same, and the trading platform executes step S670.

[0093] Step S640: sum the amount information of the second virtual resource in the virtual resource conversion record and the transaction amount information of the second virtual resource in the first transaction order to determine the remaining amount of the second virtual resource.

[0094] The trading platform sums the amount information of the second virtual resource in the virtual resource conversion record and the transaction amount information of the second virtual resource in the first transaction order. Since the signs of the two amount information are opposite, the sum will inevitably lead to one of them being zero. In some special cases, both will be zero at the same time. In this embodiment, the transaction amount information of the second virtual resource in the first transaction order is reset to zero, and the amount data obtained by summing is used as the balance amount of the second virtual resource. The balance amount is recorded in the transaction between the second virtual resource and the target virtual resource. There are two cases for the balance amount. If its sign is opposite to the amount information of the second virtual resource in the virtual resource conversion record, that is, the conversion direction is opposite, it means that the transaction of the second virtual resource has been reversed. For example, the original trading platform bought the second virtual resource, and after the internalized transaction was carried out through the first transaction order, it became the trading platform selling the second virtual resource. In this case, it is necessary to pull the transaction amount of the second virtual resource of the trading platform back to the state of 0 through the transaction, that is, to close the sold part. The opposite situation is similar. In such a case, the trading platform will execute step S650. If the sign of the balance amount is consistent with the amount information of the second virtual resource in the virtual resource conversion record, that is, the conversion direction is the same, it means that the internalized transaction of the second virtual resource has been successfully executed without the need to close the position with a third party, and the trading platform executes step S660.

[0095] Step S650: performing a closing operation on the second virtual resource according to the balance amount.

[0096] In the case of a transaction reversal, the trading platform will execute a closing operation on the second virtual resource based on the balance amount. The trading platform buys and sells the second virtual resource with the third-party platform based on the balance amount. For example, when the balance amount is negative, it means that the trading platform is currently selling the second resource, and it will buy the second virtual resource from the third-party platform to make up for the sold part. Vice versa, if the balance amount is positive, the trading platform will sell the corresponding amount of the second virtual resource to the third-party platform. By closing the position according to the balance amount, the transaction amount in the closing process can be reduced, thereby reducing the cost of closing the position.

[0097] Step S660: updating the virtual resource conversion record according to the remaining amount and the conversion ratio between the second virtual resource and the target virtual resource.

[0098] If the transaction reversal does not occur, it means that for the second virtual resource converted from the first virtual resource, the trading platform has completed the closing operation through internalized trading, without the need for external closing operations with a third-party platform. In this case, the trading platform can directly calculate the target virtual resource amount obtained by conversion based on the remaining amount and the conversion ratio between the second virtual resource and the target virtual resource, and directly update the virtual resource conversion record based on the result. For the remaining second virtual resources, the trading platform will proceed according to the trading process of the second virtual resources, that is, it will be processed when the second virtual resource needs to be traded or closed. The amount of the second virtual resource required in the transaction process of the first virtual resource is completely covered by the internalization process, thereby avoiding external closing operations, reducing the communication process between systems, and reducing the probability of transaction failures caused by cross-system communication failures, which is conducive to improving the stability of the solution.

[0099] Step S670: performing a closing operation on the second virtual resource according to the transaction amount information of the second virtual resource in the first transaction order.

[0100] Optionally, the implementation details of step S670 are the same as Figure 5 The step S550 shown in FIG. 1 is the same as that in FIG. 1 and will not be described in detail.

[0101] Step S680: Execute virtual resource transaction according to the first transaction order.

[0102] Optionally, the implementation details of step S680 are the same as Figure 4 The step S440 shown in FIG. 1 is consistent with the step S440 shown in FIG. 1 and will not be

[0103] In an embodiment of the present application, the first virtual resource in the virtual resource conversion record is converted into the second virtual resource, and then the second virtual resource is closed according to the conversion data between the second virtual resource and the target virtual resource in the virtual resource conversion record. Thus, when the first virtual resource cannot be directly converted into the target virtual resource, the target virtual resource is used to close and settle the first virtual resource, thereby avoiding the situation where the third party does not support the closing transaction of the first virtual resource type that needs to be closed, resulting in the inability to execute the virtual resource transaction process normally, ensuring the normal operation of the virtual resource transaction, and helping to improve the stability of the virtual resource transaction.

[0104] In some optional embodiments, the virtual resource conversion record also includes a third virtual resource. During the operation of the trading platform, the first conversion cost of converting the first virtual resource into the second virtual resource and the second virtual resource into the target virtual resource, as well as the second conversion cost of converting the first virtual resource into the third virtual resource and the third virtual resource into the target virtual resource, will be calculated according to the conversion ratio between the virtual resources in the virtual resource conversion record. The first conversion cost can be considered as the conversion cost of the second virtual resource as a designated transaction resource, and the second conversion cost can be considered as the conversion cost of the third virtual resource as a designated transaction resource. The conversion cost is the loss in the process of virtual resource conversion, which is usually controlled by the conversion ratio between virtual resources, and the conversion ratio in the trading platform is determined based on the conversion ratio provided by third-party institutions such as banks. If the first conversion cost is better than the second conversion cost, the second virtual resource is designated as the designated transaction resource of the first virtual resource. In the subsequent transaction process, even if the second virtual resource is not designated as the designated transaction resource in the transaction instruction, the trading platform will default to using the second virtual resource for cross-trading. In some embodiments, when the first virtual resource can be directly converted into the target virtual resource, the trading platform will also calculate the conversion cost of converting the first virtual resource into the target virtual resource, and compare it with the conversion cost of converting using the designated trading resource. It is understandable that the virtual resource conversion record can contain more types of virtual resources, and the trading platform can calculate the conversion cost of using other virtual resources as designated trading resources for each virtual resource, and select the virtual resource with the best conversion cost as the designated trading resource. By selecting a virtual resource with a better conversion cost as the designated trading resource, the loss in the virtual resource trading process can be reduced and the conversion efficiency of the transaction can be improved.

[0105] In some optional embodiments, the virtual resource conversion record also includes a third virtual resource. During the operation of the trading platform, the transaction volume of the first virtual resource, the second virtual resource and the third virtual resource in the virtual resource conversion record will be obtained respectively. The transaction volume includes the overall transaction flow of each virtual resource, that is, the buying volume and the selling volume will be counted separately. Based on the transaction volume of each virtual resource, the trading platform determines the virtual resource with the highest transaction volume as the designated transaction resource of the remaining virtual resources. For example, if the transaction volume of the third virtual resource is the highest, the trading platform determines the third virtual resource as the designated transaction resource of the first virtual resource and the second virtual resource. In the transaction process of the first virtual resource and the second virtual resource, even if they are not regulated, they are no longer directly converted into the target virtual resource, but will be converted into the third virtual resource, and the transaction with the third virtual resource is internalized. By determining the virtual resource with the highest transaction volume as the designated transaction resource of the remaining virtual resources, the probability of internalized transactions in the transaction process can be increased, thereby reducing transaction costs.

[0106] In some optional embodiments, in the process of closing the second virtual resource according to the balance amount, the trading platform generates a second transaction order between the second virtual resource and the target virtual resource according to the balance amount and the conversion ratio between the second virtual resource and the target virtual resource. And when executing the virtual resource transaction according to the first transaction order, the virtual resource transaction is executed according to the first transaction order and the second transaction order. When closing the second virtual resource, the trading platform does not immediately trade with the third-party platform, but generates a second transaction order, and sends the first transaction order and the second transaction order together to the third-party platform for trading. In this way, the number of communications between systems can be reduced, and the time waiting for the communication response between systems can be reduced, which is conducive to improving the execution efficiency of transactions.

[0107] In some optional embodiments, in the process of updating the virtual resource conversion record according to the remaining amount and the conversion ratio between the second virtual resource and the target virtual resource, the trading platform first calculates the conversion amount information of the target virtual resource according to the remaining amount and the conversion ratio between the second virtual resource and the target virtual resource, and then updates the amount information corresponding to the second virtual resource when the second virtual resource and the target virtual resource are converted in the virtual resource conversion record according to the remaining amount, and updates the amount information corresponding to the target virtual resource when the second virtual resource and the target virtual resource are converted in the virtual resource conversion record according to the conversion amount information. The process of determining the conversion amount information of the target virtual resource is performed by the trading platform internally, which can reduce cross-system communication, reduce communication waiting time, and improve transaction response speed compared to communicating with a third-party platform to determine the conversion amount.

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

[0109] Step S710: receiving a first virtual resource transaction request, which includes first conversion information between the first virtual resource and the target virtual resource.

[0110] Step S720: construct a virtual resource conversion record corresponding to the target virtual resource according to the first conversion information.

[0111] Step S730: receiving a second virtual resource transaction request, which includes second conversion information between the second virtual resource and the target virtual resource.

[0112] Step S740: Read and update the virtual resource conversion record corresponding to the target virtual resource according to the second conversion information.

[0113] After receiving the first virtual resource transaction request, the trading platform will check the virtual resource required to be traded in the first virtual resource transaction request. The first virtual resource transaction request contains the first conversion information between the first virtual resource and the target virtual resource. The target virtual resource is the designated transaction resource preset by the trading platform itself, that is, any other virtual resource to be traded will be converted into the target virtual resource by default for transaction settlement. Therefore, the trading platform will construct a virtual resource conversion record with the target virtual resource as the central virtual resource. All transactions recorded in the virtual resource conversion record are conversion relationships between a certain virtual resource and the target virtual resource, including transactions for buying and selling other virtual resources with the target virtual resource as the bid price. After constructing the virtual resource conversion record, when the trading platform receives the second virtual resource transaction request, it will read the virtual resource conversion record corresponding to the target virtual resource according to the second conversion information between the second virtual resource and the target virtual resource contained in the second virtual resource transaction request, and update the corresponding amount in the virtual resource conversion record according to the content in the second conversion information. It is understandable that the trading platform will usually only determine one of the two virtual resources that can be traded as the central virtual resource, that is, the first virtual resource, the second virtual resource and the target virtual resource. After the target virtual resource is determined to be the central virtual resource, the first virtual resource and the second virtual resource cannot be determined as the central virtual resource. In some embodiments, various types of virtual resource transactions can be divided according to the business types involved, so as to obtain virtual resource conversion records corresponding to different businesses. For example, a separate virtual resource conversion record can be established for virtual resource transactions from catering merchants. The trading platform establishes and updates virtual resource conversion records based on virtual resource transaction requests, so that the transaction amounts of virtual resources can be summarized and managed in a timely and effective manner, which is conducive to the operability of the solution.

[0114] Step S750, obtaining a virtual resource conversion record, wherein the virtual resource conversion record includes amount information corresponding to the conversion between the first virtual resource and the target virtual resource, and amount information corresponding to the conversion between the second virtual resource and the target virtual resource.

[0115] Optionally, the implementation details of step S750 are the same as Figure 4 The step S410 shown in FIG. 1 is the same as that in FIG. 1 and will not be described in detail.

[0116] Step S760: If a transaction instruction is received that is initiated for the first virtual resource and specifies the second virtual resource as the designated transaction resource, a first transaction order is generated based on the conversion ratio between the first virtual resource and the second virtual resource and the amount information of the first virtual resource in the virtual resource conversion record, and the first transaction order includes the transaction amount information of the second virtual resource.

[0117] Optionally, the implementation details of step S760 are the same as Figure 4 The step S420 shown in FIG. 1 is the same as that in FIG. 1 and will not be described in detail.

[0118] Step S770: performing a closing operation on the second virtual resource according to the difference between the amount information of the second virtual resource in the virtual resource conversion record and the transaction amount information of the second virtual resource in the first transaction order.

[0119] Optionally, the implementation details of step S770 are the same as Figure 4 The step S430 shown in FIG. 1 is the same as that in FIG. 1 and will not be described in detail.

[0120] Step S780: Execute virtual resource transaction according to the first transaction order.

[0121] Optionally, the implementation details of step S780 are the same as Figure 4 The step S440 shown in FIG. 1 is consistent with the step S440 shown in FIG. 1 and will not be

[0122] In an embodiment of the present application, the first virtual resource in the virtual resource conversion record is converted into the second virtual resource, and then the second virtual resource is closed according to the conversion data between the second virtual resource and the target virtual resource in the virtual resource conversion record. Thus, when the first virtual resource cannot be directly converted into the target virtual resource, the target virtual resource is used to close and settle the first virtual resource, thereby avoiding the situation where the third party does not support the closing transaction of the first virtual resource type that needs to be closed, resulting in the inability to execute the virtual resource transaction process normally, ensuring the normal operation of the virtual resource transaction, and helping to improve the stability of the virtual resource transaction.

[0123] In some optional embodiments, the virtual resource conversion record also includes a third virtual resource. During the operation of the trading platform, the first conversion cost of converting the first virtual resource into the second virtual resource and the second virtual resource into the target virtual resource, as well as the second conversion cost of converting the first virtual resource into the third virtual resource and the third virtual resource into the target virtual resource, will be calculated according to the conversion ratio between the virtual resources in the virtual resource conversion record. The first conversion cost can be considered as the conversion cost of the second virtual resource as a designated transaction resource, and the second conversion cost can be considered as the conversion cost of the third virtual resource as a designated transaction resource. The conversion cost is the loss in the process of virtual resource conversion, which is usually controlled by the conversion ratio between virtual resources, and the conversion ratio in the trading platform is determined based on the conversion ratio provided by third-party institutions such as banks. If the first conversion cost is better than the second conversion cost, the second virtual resource is designated as the designated transaction resource of the first virtual resource. In the subsequent transaction process, even if the second virtual resource is not designated as the designated transaction resource in the transaction instruction, the trading platform will default to using the second virtual resource for cross-trading. In some embodiments, when the first virtual resource can be directly converted into the target virtual resource, the trading platform will also calculate the conversion cost of converting the first virtual resource into the target virtual resource, and compare it with the conversion cost of converting using the designated trading resource. It is understandable that the virtual resource conversion record can contain more types of virtual resources, and the trading platform can calculate the conversion cost of using other virtual resources as designated trading resources for each virtual resource, and select the virtual resource with the best conversion cost as the designated trading resource. By selecting a virtual resource with a better conversion cost as the designated trading resource, the loss in the virtual resource trading process can be reduced and the conversion efficiency of the transaction can be improved.

[0124] In some optional embodiments, the virtual resource conversion record also includes a third virtual resource. During the operation of the trading platform, the transaction volume of the first virtual resource, the second virtual resource and the third virtual resource in the virtual resource conversion record will be obtained respectively. The transaction volume includes the overall transaction flow of each virtual resource, that is, the buying volume and the selling volume will be counted separately. Based on the transaction volume of each virtual resource, the trading platform determines the virtual resource with the highest transaction volume as the designated transaction resource of the remaining virtual resources. For example, if the transaction volume of the third virtual resource is the highest, the trading platform determines the third virtual resource as the designated transaction resource of the first virtual resource and the second virtual resource. In the transaction process of the first virtual resource and the second virtual resource, even if they are not regulated, they are no longer directly converted into the target virtual resource, but will be converted into the third virtual resource, and the transaction with the third virtual resource is internalized. By determining the virtual resource with the highest transaction volume as the designated transaction resource of the remaining virtual resources, the probability of internalized transactions in the transaction process can be increased, thereby reducing transaction costs.

[0125] In some optional embodiments, before obtaining the virtual resource conversion record, the trading platform will also receive a third virtual resource transaction request, which includes the third conversion information between the first virtual resource and the second virtual resource, and then split the third conversion information into a first split transaction between the first virtual resource and the target virtual resource and a second split transaction between the second virtual resource and the target virtual resource according to the conversion ratio between the first virtual resource and the target virtual resource and the third conversion information and the conversion ratio between the second virtual resource and the target virtual resource, and finally read and update the virtual resource conversion record corresponding to the target virtual resource according to the first split transaction and the second split transaction. By splitting the transaction between the first virtual resource and the second virtual resource into transactions between the first virtual resource and the second virtual resource and the target virtual resource respectively and recording them in the virtual resource conversion record, the trading platform can expand the coverage of the virtual resource conversion record on the transaction, improve the possibility of internalized transactions, and help reduce transaction costs.

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

[0127] In one embodiment of the present application, transactions for virtual resources will be recorded in a virtual resource conversion record. The structure of the record can be set with reference to the structure of Table 1 above. When the trading platform needs to trade virtual resources, the corresponding transaction process is performed based on the virtual resource conversion record. Assume that the specific virtual resource conversion information is: the central virtual resource is the target virtual resource, that is, the priced virtual resources are all target virtual resources. The first virtual resource has a positive holding, and the second virtual resource has a negative holding, and the negative holding value is not enough to balance the positive holding of the first virtual resource.

[0128] Initial holdings:

[0129]

[0130] Please refer to the transaction process Figure 8 After the transaction starts, in step 810, the second virtual resource is selected as the virtual resource to be closed. According to the conversion ratio of the second virtual resource to the first virtual resource: 13448.09, that is, 1 unit of the second virtual resource is equal to 13448.09 units of the first virtual resource, it is expected that all the first virtual resources will be closed, and 111.54 units of the second virtual resource need to be purchased. In step 820, the first cross order of the first virtual resource and the second virtual resource is generated as follows:

[0131]

[0132] Changes in intermediate holdings: The original holdings of -100 units of the second virtual resource in the virtual resource conversion record will be internalized with +111.54 units of the second virtual resource, leaving +11.54 units of the second virtual resource. The remaining holdings are as follows (assuming that the market benchmark price allows all the quoted currencies to be fully settled):

[0133]

[0134] In step 830, based on the holding risk management strategy, all transactions need to reduce the value of the virtual resource holding in the original direction. The remaining +11.54 units of holdings are opposite to the initial -100.00 units of holdings. Therefore, when the second virtual resource is used to close the first virtual resource, the second virtual resource holdings are reversed. Subsequently, in step 840, it is necessary to synchronously process the reversed holdings, generate a transaction to sell 11.54 units of the second virtual resource, and generate a cross order between the second virtual resource and the target virtual resource.

[0135] The final transaction order is as follows:

[0136]

[0137] Finally, the order is sent to the bank to settle the transaction.

[0138] In one embodiment, it is assumed that the specific virtual resource conversion information is: the central virtual resource is the target virtual resource, that is, the priced virtual resources are all target virtual resources. The first virtual resource has a positive holding, and the second virtual resource has a negative holding, and the negative holding value is sufficient to balance the positive holding of the first virtual resource.

[0139] Initial holdings:

[0140]

[0141] Please refer to the transaction process Fig. 9 After the transaction starts, in step 910, the second virtual resource is selected as the virtual resource to be closed. According to the conversion ratio of the second virtual resource to the first virtual resource: 13448.09, that is, 1 unit of the second virtual resource is equal to 13448.09 units of the first virtual resource, it is expected that all the first virtual resources will be closed, and 111.54 units of the second virtual resource need to be purchased. In step 920, the first cross order of the first virtual resource and the second virtual resource is generated as follows:

[0142]

[0143] Changes in intermediate holdings: The original holdings of -1000 units of the second virtual resource in the virtual resource conversion record will be internalized with +111.54 units of the second virtual resource, leaving -888.46 units of the second virtual resource. The remaining holdings are as follows (assuming that the market benchmark price allows all the quoted currencies to be fully settled):

[0144]

[0145] In step 930, based on the holding risk management strategy, all transactions need to reduce the value of the virtual resource holdings in the original direction. The remaining holdings of -888.46 units are in the same direction as the initial holdings of -100.00 units. Therefore, the amount of the second virtual resource that needs to be closed is reduced through internalized transactions, the transaction cost is optimized, and no additional transactions are required.

[0146] The final transaction order is as follows:

[0147]

[0148] Finally, the order is sent to the bank to settle the transaction.

[0149] In one embodiment, the central virtual resource is the target virtual resource, that is, the priced virtual resources are all target virtual resources. The first virtual resource has a negative holding, and the second virtual resource has a negative holding. The negative holding value cannot close the negative holding of the first virtual resource.

[0150] Initial holdings:

[0151]

[0152] After the transaction starts, the second virtual resource is selected as the virtual resource to be closed. According to the conversion ratio of the second virtual resource to the first virtual resource: 13448.09, that is, 1 unit of the second virtual resource is equal to 13448.09 units of the first virtual resource. In order to close all the first virtual resources, 111.54 units of the second virtual resource need to be purchased. The first cross order of the first virtual resource and the second virtual resource is generated as follows:

[0153]

[0154] Changes in intermediate holdings: In the virtual resource conversion record, there is a holding of -100 units of the second virtual resource. After selling 111.54 units of the second virtual resource, the holding of the second virtual resource will be expanded to -211.54. At this time, it is necessary to close the position of the expanded holding, that is, buy 111.54 units of the second virtual resource. The order information is as follows:

[0155]

[0156] The remaining holdings are as follows (assuming that the market benchmark price allows all quoted currencies to be fully liquidated):

[0157]

[0158] Finally, the order is sent to the bank to settle the transaction.

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

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

[0161] The acquisition unit 1010 is used to acquire a virtual resource conversion record, wherein the virtual resource conversion record includes amount information corresponding to the conversion between the first virtual resource and the target virtual resource, and amount information corresponding to the conversion between the second virtual resource and the target virtual resource;

[0162] The generating unit 1020 is configured to generate a first transaction order according to a conversion ratio between the first virtual resource and the second virtual resource and the amount information of the first virtual resource in the virtual resource conversion record, if a transaction instruction initiated for the first virtual resource and specifying the second virtual resource as a designated transaction resource is received, wherein the first transaction order includes the transaction amount information of the second virtual resource;

[0163] A closing unit 1030, configured to close the second virtual resource according to the difference between the amount information of the second virtual resource in the virtual resource conversion record and the transaction amount information of the second virtual resource in the first transaction order;

[0164] The execution unit 1040 is used to execute the virtual resource transaction according to the first transaction order.

[0165] In some embodiments of the present application, based on the above technical solution, the closing unit 1030 is also configured to: obtain the conversion direction of the second virtual resource in the virtual resource conversion record and the conversion direction of the second virtual resource in the first transaction order; if the conversion direction of the second virtual resource in the virtual resource conversion record is opposite to the conversion direction of the second virtual resource in the first transaction order, then according to the difference between the amount information of the second virtual resource in the virtual resource conversion record and the transaction amount information of the second virtual resource in the first transaction order, close the second virtual resource.

[0166] In some embodiments of the present application, based on the above technical solution, the closing unit 1030 is also configured to: sum the amount information of the second virtual resource in the virtual resource conversion record and the transaction amount information of the second virtual resource in the first transaction order to determine the remaining amount of the second virtual resource; if the remaining amount is opposite to the conversion direction of the second virtual resource in the virtual resource conversion record, then close the second virtual resource according to the remaining amount.

[0167] In some embodiments of the present application, based on the above technical solution, the closing unit 1030 is further configured to: generate a second transaction order between the second virtual resource and the target virtual resource according to the balance amount and the conversion ratio between the second virtual resource and the target virtual resource;

[0168] The execution unit 1040 is further configured to execute the virtual resource transaction according to the first transaction order and the second transaction order.

[0169] In some embodiments of the present application, based on the above technical solution, the closing unit 1030 is also configured to: if the balance amount is the same as the conversion direction of the second virtual resource in the virtual resource conversion record, then update the virtual resource conversion record according to the balance amount and the conversion ratio between the second virtual resource and the target virtual resource.

[0170] In some embodiments of the present application, based on the above technical solution, the closing unit 1030 is also configured to: calculate the conversion amount information of the target virtual resource according to the balance amount and the conversion ratio between the second virtual resource and the target virtual resource; update the amount information corresponding to the second virtual resource when the conversion between the second virtual resource and the target virtual resource is performed in the virtual resource conversion record according to the balance amount; update the amount information corresponding to the target virtual resource when the conversion between the second virtual resource and the target virtual resource is performed in the virtual resource conversion record according to the conversion amount information.

[0171] In some embodiments of the present application, based on the above technical solution, the closing unit 1030 is also configured as: if the conversion direction of the second virtual resource in the virtual resource conversion record is the same as the conversion direction of the second virtual resource in the first transaction order, then the second virtual resource is closed according to the transaction amount information of the second virtual resource in the first transaction order.

[0172] In some embodiments of the present application, based on the above technical solution, the acquisition unit 1010 is also configured to: receive a first virtual resource transaction request, the first virtual resource transaction request includes first conversion information between the first virtual resource and the target virtual resource; construct a virtual resource conversion record corresponding to the target virtual resource based on the first conversion information; receive a second virtual resource transaction request, the second virtual resource transaction request includes second conversion information between the second virtual resource and the target virtual resource; and read and update the virtual resource conversion record corresponding to the target virtual resource based on the second conversion information.

[0173] In some embodiments of the present application, based on the above technical solution, the acquisition unit 1010 is also configured to: receive a third virtual resource transaction request, which contains third conversion information between the first virtual resource and the second virtual resource; split the third conversion information into a first split transaction between the first virtual resource and the target virtual resource and a second split transaction between the second virtual resource and the target virtual resource according to the conversion ratio between the first virtual resource and the target virtual resource and the third conversion information and the conversion ratio between the second virtual resource and the target virtual resource; read and update the virtual resource conversion record corresponding to the target virtual resource according to the first split transaction and the second split transaction.

[0174] In some embodiments of the present application, based on the above technical solution, the virtual resource conversion record also includes a third virtual resource; the acquisition unit 1010 is also configured to: calculate the first conversion cost of converting the first virtual resource into the second virtual resource and the second virtual resource into the target virtual resource according to the conversion ratio between the virtual resources in the virtual resource conversion record, as well as the second conversion cost of converting the first virtual resource into the third virtual resource and the third virtual resource into the target virtual resource; if the first conversion cost is better than the second conversion cost, designate the second virtual resource as the designated transaction resource of the first virtual resource.

[0175] In some embodiments of the present application, based on the above technical solution, the virtual resource conversion record also includes a third virtual resource; the acquisition unit 1010 is also configured to: respectively obtain the transaction volume of the first virtual resource, the second virtual resource and the third virtual resource in the virtual resource conversion record; and determine the virtual resource with the highest transaction volume as the designated transaction resource of the remaining virtual resources.

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

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

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

[0179] like Fig.11As shown, the computer system 1100 includes a central processing unit (CPU) 1101, which can perform 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, ROM 1102 and 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.

[0180] 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 performs 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.

[0181] 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 executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part 1109, and / or installed from a removable medium 1111. When the computer program is executed by a central processing unit (CPU) 1101, various functions defined in the system of the present application are executed.

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

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

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

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

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

[0187] 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 virtual resource trading method, characterized in that: include: Acquire a virtual resource conversion record, wherein the virtual resource conversion record includes amount information corresponding to conversions between the first virtual resource and the target virtual resource, and amount information corresponding to conversions between the second virtual resource and the target virtual resource; If a transaction instruction initiated for the first virtual resource and designating the second virtual resource as a designated transaction resource is received, a first transaction order is generated according to the conversion ratio between the first virtual resource and the second virtual resource and the amount information of the first virtual resource in the virtual resource conversion record, wherein the first transaction order includes the transaction amount information of the second virtual resource; performing a closing operation on the second virtual resource according to the difference between the amount information of the second virtual resource in the virtual resource conversion record and the transaction amount information of the second virtual resource in the first transaction order; The virtual resource transaction is executed according to the first transaction order.

2. The transaction method according to claim 1, characterized in that: The closing operation of the second virtual resource according to the difference between the amount information of the second virtual resource in the virtual resource conversion record and the transaction amount information of the second virtual resource in the first transaction order includes: Acquire the conversion direction of the second virtual resource in the virtual resource conversion record and the conversion direction of the second virtual resource in the first transaction order; If the conversion direction of the second virtual resource in the virtual resource conversion record is opposite to the conversion direction of the second virtual resource in the first transaction order, the second virtual resource is closed according to the difference between the amount information of the second virtual resource in the virtual resource conversion record and the transaction amount information of the second virtual resource in the first transaction order.

3. The transaction method according to claim 2, characterized in that: The closing operation of the second virtual resource according to the difference between the amount information of the second virtual resource in the virtual resource conversion record and the transaction amount information of the second virtual resource in the first transaction order includes: Summing the amount information of the second virtual resource in the virtual resource conversion record and the transaction amount information of the second virtual resource in the first transaction order to determine the remaining amount of the second virtual resource; If the balance amount is opposite to the conversion direction of the second virtual resource in the virtual resource conversion record, a liquidation operation is performed on the second virtual resource according to the balance amount.

4. The transaction method according to claim 3, characterized in that: The closing operation of the second virtual resource according to the balance amount includes: generating a second transaction order between the second virtual resource and the target virtual resource according to the balance amount and the conversion ratio between the second virtual resource and the target virtual resource; The executing the virtual resource transaction according to the first transaction order includes: The virtual resource transaction is executed according to the first transaction order and the second transaction order.

5. The transaction method according to claim 3, characterized in that: The transaction method further comprises: If the remaining amount is the same as the conversion direction of the second virtual resource in the virtual resource conversion record, the virtual resource conversion record is updated according to the remaining amount and the conversion ratio between the second virtual resource and the target virtual resource.

6. The method according to claim 5, characterized in that The updating of the virtual resource conversion record according to the surplus amount and the conversion ratio between the second virtual resource and the target virtual resource includes: Calculating conversion amount information of the target virtual resource according to the remaining amount and a conversion ratio between the second virtual resource and the target virtual resource; According to the remaining amount, updating the amount information corresponding to the second virtual resource when the second virtual resource is converted with the target virtual resource in the virtual resource conversion record; According to the conversion amount information, the amount information corresponding to the target virtual resource when the second virtual resource and the target virtual resource are converted in the virtual resource conversion record is updated.

7. The transaction method according to claim 2, characterized in that: The transaction method further comprises: If the conversion direction of the second virtual resource in the virtual resource conversion record is the same as the conversion direction of the second virtual resource in the first transaction order, the second virtual resource is closed according to the transaction amount information of the second virtual resource in the first transaction order.

8. The transaction method according to claim 1, characterized in that: Before obtaining the virtual resource conversion record, the method further includes: receiving a first virtual resource transaction request, wherein the first virtual resource transaction request includes first conversion information between the first virtual resource and the target virtual resource; Constructing a virtual resource conversion record corresponding to the target virtual resource according to the first conversion information; receiving a second virtual resource transaction request, wherein the second virtual resource transaction request includes second conversion information between the second virtual resource and the target virtual resource; According to the second conversion information, the virtual resource conversion record corresponding to the target virtual resource is read and updated.

9. The transaction method according to claim 8, characterized in that: Before obtaining the virtual resource conversion record, the method further includes: receiving a third virtual resource transaction request, which includes third conversion information between the first virtual resource and the second virtual resource; According to the conversion ratio between the first virtual resource and the target virtual resource and the third conversion information and the conversion ratio between the second virtual resource and the target virtual resource, splitting the third conversion information into a first split transaction between the first virtual resource and the target virtual resource and a second split transaction between the second virtual resource and the target virtual resource; According to the first split transaction and the second split transaction, the virtual resource conversion record corresponding to the target virtual resource is read and updated.

10. The transaction method according to claim 1, characterized in that: The virtual resource conversion record further includes a third virtual resource; and the method further includes: Calculate, according to the conversion ratio between the virtual resources in the virtual resource conversion record, a first conversion cost of converting the first virtual resource into the second virtual resource and the second virtual resource into the target virtual resource, and a second conversion cost of converting the first virtual resource into the third virtual resource and the third virtual resource into the target virtual resource; If the first conversion cost is better than the second conversion cost, the second virtual resource is designated as a designated transaction resource of the first virtual resource.

11. The transaction method according to claim 1, characterized in that: The virtual resource conversion record further includes a third virtual resource; and the method further includes: Respectively obtaining the transaction volumes of the first virtual resource, the second virtual resource and the third virtual resource in the virtual resource conversion record; The virtual resource with the highest transaction volume is determined as the designated transaction resource for the remaining virtual resources.

12. A virtual resource trading device, characterized in that: include: An acquisition unit, used to acquire a virtual resource conversion record, wherein the virtual resource conversion record includes amount information corresponding to the conversion between the first virtual resource and the target virtual resource, and amount information corresponding to the conversion between the second virtual resource and the target virtual resource; a generating unit, configured to generate a first transaction order according to a conversion ratio between the first virtual resource and the second virtual resource and the amount information of the first virtual resource in the virtual resource conversion record, if receiving a transaction instruction initiated for the first virtual resource and designating the second virtual resource as a designated transaction resource, wherein the first transaction order includes the transaction amount information of the second virtual resource; a closing unit, configured to close the second virtual resource according to the difference between the amount information of the second virtual resource in the virtual resource conversion record and the transaction amount information of the second virtual resource in the first transaction order; An execution unit is used to execute the virtual resource transaction according to the first transaction order.

13. An electronic device, characterized in that: include: processor; A memory, configured to store executable instructions of the processor; Wherein, the processor is configured to execute the virtual resource trading method described in any one of claims 1 to 11 by executing the executable instructions.

14. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the virtual resource trading method according to any one of claims 1 to 11 is implemented.

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