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

By querying the pending conversion requests that are better than the expected ratio and performing virtual resource conversion processing, the delay problem caused by multiple communications during the virtual resource conversion process is solved and the conversion efficiency is improved.

CN119341927APending Publication Date: 2025-01-21TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310898439.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-20
Publication Date
2025-01-21

AI Technical Summary

Technical Problem

During the virtual resource conversion process, communication is required to communicate with each other multiple times, resulting in delay affecting execution efficiency.

Method used

By obtaining virtual resource conversion requests, query pending conversion requests whose conversion ratio is better than the expected ratio, and perform virtual resource conversion processing based on the queried requests to reduce the number of communications.

Benefits of technology

It realizes virtual resource conversion in one communication and improves the execution efficiency of the conversion process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119341927A_ABST
    Figure CN119341927A_ABST
Patent Text Reader

Abstract

The invention provides a virtual resource conversion method and device, electronic equipment and a readable medium. The method comprises the steps of obtaining a virtual resource conversion request, wherein the virtual resource conversion request comprises the number of virtual resources needing to be converted into second virtual resources from first virtual resources and an expected conversion ratio; according to the resource conversion direction from the first to the second in the virtual resource conversion request, a first order list is obtained, and the first order list comprises a to-be-executed conversion request for converting the second virtual resource into the first virtual resource; querying a to-be-executed conversion request of which the conversion ratio is superior to the expected conversion ratio from the first order list; if the to-be-executed conversion request with the conversion ratio superior to the expected conversion ratio is queried, virtual resource conversion processing is executed according to the virtual resource conversion request and the queried to-be-executed conversion request. The method can reduce the communication times in the conversion process and improve the execution efficiency of the conversion process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the development of computer technologies such as blockchain, more and more types of virtual resources are being applied to various scenarios, and conversion platforms that provide mutual conversion services between virtual resources have also emerged. Platform accounts can convert the virtual resources they hold into another type of virtual resource at a certain conversion ratio on the conversion platform.

[0003] During the conversion process, the conversion platform will provide the user with the conversion ratio of the virtual resources that the user wants to convert upon the user's request, and then the user will initiate the conversion of the amount of virtual resources that need to be converted.

[0004] However, the process of virtual resource conversion in such solutions usually requires multiple mutual communications to complete, and the conversion process is easily affected by delays in the communication process, which is not conducive to the execution efficiency of the conversion process. Summary of the invention

[0005] Based on the above technical problems, the present application provides a method, device, electronic device and readable medium for converting virtual resources to reduce the number of communications during the conversion process and improve the execution efficiency of the conversion process.

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

[0007] According to one aspect of an embodiment of the present application, a method for converting a virtual resource is provided, comprising:

[0008] Acquire a virtual resource conversion request, wherein the virtual resource conversion request includes the number of virtual resources that the first virtual resource needs to be converted into the second virtual resource and an expected conversion ratio;

[0009] According to the resource conversion direction from the first to the second in the virtual resource conversion request, obtaining a first order list, wherein the first order list includes pending conversion requests for converting the second virtual resource into the first virtual resource;

[0010] Querying the first order list for pending conversion requests whose conversion ratio is better than the expected conversion ratio;

[0011] If a to-be-executed conversion request having a conversion ratio better than the expected conversion ratio is found, a virtual resource conversion process is performed according to the virtual resource conversion request and the to-be-executed conversion request found.

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

[0013] A request acquisition module configured to acquire a virtual resource conversion request, wherein the virtual resource conversion request includes the number of virtual resources that the first virtual resource needs to be converted into the second virtual resource and an expected conversion ratio;

[0014] A list acquisition module, configured to acquire a first order list according to a resource conversion direction from the first to the second in the virtual resource conversion request, wherein the first order list includes a to-be-executed conversion request for converting the second virtual resource into the first virtual resource;

[0015] A request query module, configured to query the first order list for pending conversion requests whose conversion ratio is better than the expected conversion ratio;

[0016] The conversion execution module is configured to execute virtual resource conversion processing according to the virtual resource conversion request and the queried conversion request to be executed if a to-be-executed conversion request with a conversion ratio better than the expected conversion ratio is queried.

[0017] In some embodiments of the present application, based on the above technical solution, the conversion execution module is also configured as: if no pending conversion request with a conversion ratio better than the expected conversion ratio is found in the first order list, the virtual resource conversion request is added to the second order list, and the second order list contains pending conversion requests to convert the first virtual resource into the second virtual resource.

[0018] In some embodiments of the present application, based on the above technical solution, the conversion execution module is also configured to: obtain a third-party conversion ratio provided by a third party from the first order list; send conversion ratio report information for the virtual resource conversion request to the requester of the virtual resource conversion request, and the conversion ratio report information is generated based on the obtained third-party conversion ratio; receive a transaction confirmation instruction from the request policy of the virtual resource conversion request for the conversion ratio report information; and in response to the transaction confirmation instruction, convert the first virtual resource into the second virtual resource according to the third-party conversion ratio and the quantity of the virtual resources.

[0019] In some embodiments of the present application, based on the above technical solution, the first order list contains third-party conversion ratios of multiple third parties; the conversion execution module is also configured to: calculate the ratio difference between each third-party conversion ratio and the expected conversion ratio; obtain the third-party conversion ratio with the smallest difference from the ratio from the first order list.

[0020] In some embodiments of the present application, based on the above technical solution, the request acquisition module is also configured to: query the updated conversion ratio provided by each third party for converting the second virtual resource into the first virtual resource; and update the third-party conversion ratios of multiple third parties in the first order list according to the updated conversion ratios of each third party.

[0021] In some embodiments of the present application, based on the above technical solution, the first order list contains multiple third-party conversion ratios corresponding to different orders of magnitude; the conversion execution module is also configured to: query multiple third-party conversion ratios whose orders of magnitude match the number of virtual resources from the first order list; calculate the ratio difference between the queried third-party conversion ratio and the expected conversion ratio; and obtain the third-party conversion ratio with the smallest difference from the ratio.

[0022] In some embodiments of the present application, based on the above technical solution, the request acquisition module is also configured to: query the updated conversion ratio of converting the second virtual resource to the first virtual resource for each order of magnitude provided by the third party according to each order of magnitude included in the first order list; and update the third-party conversion ratio corresponding to each order of magnitude in the first order list according to the updated conversion ratio of each third party.

[0023] In some embodiments of the present application, based on the above technical solution, the conversion execution module is also configured to: receive a conversion ratio query request for the conversion ratio of a first virtual resource to a second virtual resource; in response to the conversion ratio query request, obtain, from the first order list, pending conversion requests whose conversion ratios are better than the third-party conversion ratios; obtain a quoted conversion ratio for converting the first virtual resource to the second virtual resource by averaging the conversion ratios and quantities of the pending conversion requests and the third-party conversion ratios provided by the third party; and generate the conversion ratio report information based on the quoted conversion ratio.

[0024] In some embodiments of the present application, based on the above technical solution, the conversion execution module is also configured as: if the first order list does not contain a third-party conversion ratio provided by a third party, then the conversion ratios and quantities of each conversion request to be executed in the first order list are averaged to obtain the quoted conversion ratio for converting the first virtual resource into the second virtual resource.

[0025] In some embodiments of the present application, based on the above technical solution, the conversion execution module is also configured to: if the difference between the number of virtual resources in the virtual resource conversion request and the number in the obtained conversion request to be executed exceeds a preset difference threshold, then based on the third-party conversion ratio, generate the conversion ratio report information.

[0026] In some embodiments of the present application, based on the above technical solution, the pending conversion request includes a validity period; the request query module is also configured to: determine the validity status of the pending conversion request at the current moment based on the validity period in the pending conversion request queried; if the pending conversion request is in an invalid state, delete the pending conversion request from the first order list.

[0027] In some embodiments of the present application, based on the above technical solution, the conversion execution module is also configured to: determine the execution conversion ratio according to the average of the expected conversion ratio in the virtual resource conversion request and the conversion ratio in the conversion request to be executed; and convert the first virtual resource into the second virtual resource according to the execution conversion ratio and the number of 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 converting 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 method for converting virtual resources in the above technical solution is implemented.

[0030] According to one aspect of an embodiment of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being 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 virtual resource conversion method provided in the above-mentioned various optional implementations.

[0031] In an embodiment of the present application, the virtual resource conversion request obtained by the conversion platform includes the number of virtual resources to be converted and the expected conversion ratio, and the conversion platform obtains a first order list containing pending conversion requests with opposite conversion directions, and queries the first order list for pending conversion requests with conversion ratios better than the expected conversion ratio. If a pending conversion request with a better conversion ratio is found, the virtual resource conversion request and the found pending conversion request are executed together, thereby completing the two conversion requests. By adding the quantity and the expected conversion ratio to the virtual resource conversion request, the conversion process of first asking for a price and then confirming the price is not required, and the overall conversion can be completed with only one communication, thereby reducing the number of communications during the conversion process and improving the execution efficiency of the conversion process.

[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 The system architecture of the conversion solution applied to virtual resources according to the embodiment of the present application.

[0036] Figure 2 This is a schematic diagram of a blockchain network in an embodiment of the present application.

[0037] Figure 3 This is a schematic diagram of blocks in a blockchain network in an embodiment of the present application.

[0038] Figure 4 The figure is a flowchart of a method for converting virtual resources according to an embodiment of the present application.

[0039] Figure 5 The figure is a flowchart of a method for converting virtual resources according to an embodiment of the present application.

[0040] Figure 6 The figure is a flowchart of a method for converting virtual resources according to an embodiment of the present application.

[0041] Figure 7 The present invention is a flowchart of a method for converting virtual resources according to an embodiment of the present application.

[0042] Figure 8 It is a schematic flowchart of the specific process of virtual resource conversion in the embodiment of the present application.

[0043] Fig. 9 The block diagram schematically shows the composition of the virtual resource conversion device in the embodiment of the present application.

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

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

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

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

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

[0049] It should be understood that the scheme of the present application is applied in a virtual resource trading platform or conversion platform that provides a variety of virtual resources for mutual conversion. Usually, the trading platform that provides virtual resource trading or conversion services will set the conversion ratio used when providing trading services to users according to the virtual resource conversion ratio provided by the third-party platform. The user trades with the trading platform according to the conversion ratio, and the trading platform then trades the obtained virtual resources with the third-party platform to complete the transaction process of virtual resources. In this process, the user's terminal needs to communicate with the conversion platform multiple times to complete the processes of inquiry, quotation, confirmation of transaction and result delivery. Each action requires the terminal to communicate with the conversion platform once, so that the waiting time for communication occupies a certain proportion in the entire conversion process. In addition, during the conversion process, the quotation provided by the conversion platform to the user is usually based on the conversion ratio specified by the third-party platform, for example, the conversion ratio is determined according to the virtual resource buying price or selling price provided by the virtual resource manager, and the user can only passively choose to accept or not accept, and not accepting means that the conversion cannot be completed. In the scheme of the present application, a quotation method is provided to the user to actively propose the conversion ratio and quantity during the inquiry process. The conversion mechanism forms an order list according to the conversion ratio expected by the user, and matches two conversion requests with opposite conversion directions according to the order list, thereby completing the conversion process.

[0050] With the development of computer technologies such as blockchain, more and more types of virtual resources are being applied to various scenarios, and conversion platforms that provide mutual conversion services between virtual resources have also emerged. Platform accounts can convert the virtual resources they hold into another virtual resource at a certain conversion ratio in the conversion platform. During the conversion process, the conversion platform will provide the user with the conversion ratio of the virtual resource they want to convert upon the user's request, and then the user will initiate the conversion of the amount of virtual resources that need to be converted. However, the process of virtual resource conversion in such solutions usually requires multiple mutual communications to complete, and the conversion process is easily affected by delays in the communication process, which is not conducive to the execution efficiency of the conversion process.

[0051] Based on this, the technical solution of the embodiment of the present application proposes an information processing solution based on blockchain. Specifically, Figure 1As shown, the system architecture 100 applied to the information processing scheme based on blockchain according to the embodiment of the present application may include a terminal device 110, a network 120 and a server 130. The terminal device 110 may include a smart phone, a tablet computer, a laptop computer, an intelligent voice interaction device, a smart home appliance, a vehicle terminal, an aircraft, etc. The server 130 may be a server that provides various services, which may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides 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, content distribution network) and big data and artificial intelligence platforms. The network 120 may be a communication medium of various connection types that can provide a communication link between the terminal device 110 and the server 130, such as a wired communication link or a wireless communication link.

[0052] According to the implementation needs, the system architecture in the embodiment of the present application can have any number of terminal devices, networks and servers. For example, the server 130 can be a server group composed of multiple server devices. In addition, the technical solution provided in the embodiment of the present application can be applied to the terminal device 110, can also be applied to the server 130, or can be implemented by the terminal device 110 and the server 130 together, and the present application does not make special restrictions on this. In the embodiment of the present application, the server 130 can be a server of the conversion platform, and the terminal device 110 can be a blockchain node or a user terminal, and the client software of the conversion platform is run on the terminal device 110 to communicate with the server 130.

[0053] Specifically, virtual resources are usually provided in a blockchain or a specific virtual scene, and both the server 130 and the terminal device 110 can be blockchain nodes in the blockchain. Blockchain is a peer-to-peer distributed ledger consisting of multiple nodes. Each node contains all transaction records, and all nodes need to verify each transaction. Each node in the blockchain network can be a full node or a local blockchain node. A full node can be connected to other nodes, while a local blockchain node refers to an independent node running in the blockchain and is not connected to other nodes. The local blockchain node does not participate in the consensus mechanism of the blockchain network like a full node, but it can independently verify transactions and create new blocks. Only the first node can decrypt the confidential information sent by the second node to the first node, thereby obtaining the content therein, thereby realizing confidential communication between the two connections.

[0054] Blockchain is a new application model of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks (i.e. blocks) generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain is maintained by the nodes in the blockchain network. For example, in Figure 2 The blockchain network shown may include multiple nodes 201, and the multiple nodes 201 may be the various clients forming the blockchain network. Each node 201 may receive input information during normal operation, and maintain the shared data in the blockchain network based on the received input information. In order to ensure the information intercommunication within the blockchain network, there may be an information connection between each node in the blockchain network, and information may be transmitted between nodes through the above information connection. For example, when any node in the blockchain network receives input information, other nodes in the blockchain network obtain the input information according to the consensus algorithm, and store the input information as shared data, so that the data stored on all nodes in the blockchain network are consistent.

[0055] Each node in the blockchain network has a corresponding node identifier, and each node in the blockchain network can store the node identifiers of other nodes, so that the generated blocks can be broadcast to other nodes in the blockchain network according to the node identifiers of other nodes. A node identifier list can be maintained in each node, and the node name and node identifier are stored in the node identifier list accordingly. The node identifier can be an IP (Internet Protocol, a protocol for interconnecting networks) address or any other information that can be used to identify the node.

[0056] Each node in the blockchain network stores the same blockchain. The blockchain consists of multiple blocks, see Figure 3 As shown, the blockchain consists of multiple blocks. The genesis block includes a block header and a block body. The block header stores input information feature values, version numbers, timestamps, and difficulty values, and the block body stores input information. The next block of the genesis block uses the genesis block as its parent block. The next block also includes a block header and a block body. The block header stores input information feature values ​​of the current block, feature values ​​of the block header of the parent block, version numbers, timestamps, and difficulty values, and so on. This ensures that the block data stored in each block in the blockchain is associated with the block data stored in the parent block, thereby ensuring the security of the input information in the block.

[0057] The implementation details of the technical solution of the embodiment of the present application are described in detail below: Figure 4A flowchart of a method for converting virtual resources according to an embodiment of the present application is shown. The method for converting virtual resources is applied to a virtual resource conversion platform and can be specifically executed by a device with computing and processing functions, such as a server or terminal device where the virtual resource conversion platform is located. Figure 4 As shown, the virtual resource conversion method at least includes steps S410 to S440, which are described in detail as follows:

[0058] Step S410: obtaining a virtual resource conversion request, wherein the virtual resource conversion request includes the number of virtual resources that the first virtual resource needs to be converted into the second virtual resource and an expected conversion ratio.

[0059] A virtual resource conversion request is a request initiated by the holder of a virtual resource or the requester of the conversion through a client. The virtual resource conversion request includes the number of virtual resources that the first virtual resource needs to convert into the second virtual resource and the expected conversion ratio. The number of virtual resources is usually determined according to the conversion of one of the virtual resources. For example, if the first virtual resource is the target, the number of virtual resources can be the number of virtual resources that 100 first virtual resources need to be converted into the second virtual resource. On the contrary, the two virtual resources are to be converted into 100 first virtual resources. The expected conversion ratio is the conversion ratio proposed by the requester when the virtual resource is to be converted. The virtual resource conversion request is proposed through the inquiry interface between the client of the requester and the conversion platform. The interface will provide additional functions to allow the client to pass in the desired quantity and conversion ratio in addition to requesting the conversion platform to obtain the platform quotation for the conversion of the first virtual resource into the second virtual resource. It can be understood that the expected conversion ratio is the conversion ratio for the conversion of the first virtual resource into the second virtual resource, and is also the conversion ratio proposed for this request.

[0060] Step S420: acquiring a first order list according to the resource conversion direction from the first to the second in the virtual resource conversion request, wherein the first order list includes a to-be-executed conversion request for converting the second virtual resource into the first virtual resource.

[0061] The resource conversion direction is the conversion direction between the first virtual resource and the second virtual resource. In this embodiment, the resource conversion direction from the first to the second in the virtual resource conversion request is the conversion of the first virtual resource to the second virtual resource. The conversion request included in the first order list is a pending conversion request to convert the second virtual resource to the first virtual resource. These conversion requests are conversion requests that are proposed by other users and have not yet been traded. The type of information contained in the pending conversion request is the same as that of the virtual resource conversion request, that is, the pending conversion request will also include the quantity and conversion ratio. It can be seen that the conversion direction of the pending conversion request contained in the first order list is opposite to the resource conversion direction from the first to the second in the virtual resource conversion request. The first order list is an order list established for the conversion direction of the second virtual resource to the first virtual resource. It can be understood that there will also be an order list dedicated to the conversion request of the first virtual resource to the second virtual resource in the conversion platform, and for each pair of virtual resources that can be converted on the conversion platform, there will be two corresponding order lists.

[0062] Step S430: query the first order list for to-be-executed conversion requests whose conversion ratio is better than the expected conversion ratio.

[0063] A better conversion ratio usually corresponds to obtaining more virtual resources through conversion. Depending on which of the first virtual resource and the second virtual resource is the settlement virtual resource of the conversion platform, the specific comparison method is different. In this embodiment, the second virtual resource is used as the settlement resource, and the conversion requested in the virtual resource conversion request can be referred to as selling the first virtual resource. Correspondingly, the conversion request in the first order list is a purchase of the first virtual resource. When querying pending conversion requests, pending conversion requests in the first order list whose conversion ratio is greater than the expected conversion ratio will be searched, that is, conversion requests whose buying price is greater than the selling price. Conversely, it is similar. In the case of buying the first virtual resource in the virtual resource conversion request, it is necessary to find a conversion request whose selling price is less than the buying price.

[0064] Step S440: If a pending conversion request having a conversion ratio better than the expected conversion ratio is found, a virtual resource conversion process is performed according to the virtual resource conversion request and the found pending conversion request.

[0065] The pending conversion request is a request initiated by other users, and the conversion ratio therein naturally represents the conversion ratio expected by the user. If a pending conversion request with a conversion ratio better than the expected conversion ratio is found, it means that the conversion ratios of the virtual resource conversion request and the pending conversion request found can match each other. In this case, since the conversion directions of the two requests are opposite, the virtual resource conversion process can be performed according to the virtual resource conversion request and the pending conversion request found, thereby completing two virtual resource transaction requests at the same time. That is, it can be understood as matching transactions for the two conversion requests, thereby completing their respective virtual resource conversion processes, that is, transferring the first virtual resource in the account that makes the current virtual resource conversion request to the account that makes the pending conversion request, and transferring the second virtual resource of the account that makes the pending conversion request to the account that makes the virtual resource conversion request.

[0066] In an embodiment of the present application, the virtual resource conversion request obtained by the conversion platform includes the number of virtual resources to be converted and the expected conversion ratio, and the conversion platform obtains a first order list containing pending conversion requests with opposite conversion directions, and queries the first order list for pending conversion requests with conversion ratios better than the expected conversion ratio. If a pending conversion request with a better conversion ratio is found, the virtual resource conversion request and the found pending conversion request are executed together, thereby completing the two conversion requests. By adding the quantity and the expected conversion ratio to the virtual resource conversion request, the conversion process of first asking for a price and then confirming the price is not required, and the overall conversion can be completed with only one communication, thereby reducing the number of communications during the conversion process and improving the execution efficiency of the conversion process.

[0067] In some optional embodiments, in the process of executing the virtual resource conversion processing according to the virtual resource conversion request and the queried conversion request to be executed, the conversion platform determines the execution conversion ratio according to the average of the expected conversion ratio in the virtual resource conversion request and the conversion ratio in the conversion request to be executed, and then converts the first virtual resource into the second virtual resource according to the execution conversion ratio and the number of virtual resources. When executing the virtual resource conversion processing, the average of the expected conversion ratio and the conversion ratio in the conversion request to be executed is used as the execution conversion ratio, so that both conversion requests can be executed according to a more optimal conversion ratio, which is conducive to reducing resource loss in the conversion process.

[0068] 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 conversion method of an embodiment of the present application, the following steps may be included:

[0069] Step S510: obtaining a virtual resource conversion request, wherein the virtual resource conversion request includes the number of virtual resources that the first virtual resource needs to be converted into the second virtual resource and an expected conversion ratio.

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

[0071] Step S520: acquiring a first order list according to the resource conversion direction from the first to the second in the virtual resource conversion request, wherein the first order list includes a to-be-executed conversion request for converting the second virtual resource into the first virtual resource.

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

[0073] Step S530: query the first order list for to-be-executed conversion requests whose conversion ratio is better than the expected conversion ratio.

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

[0075] If a to-be-executed conversion request having a conversion ratio better than the expected conversion ratio is found, the conversion platform executes step S540 ; otherwise, it indicates step S550 .

[0076] Step S540: executing virtual resource conversion processing according to the virtual resource conversion request and the queried conversion request to be executed.

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

[0078] Step S550: Add the virtual resource conversion request to a second order list, wherein the second order list includes pending conversion requests for converting the first virtual resource into the second virtual resource.

[0079] In the case that no pending conversion request with a conversion ratio better than the expected conversion ratio is found, it means that there is no conversion request in the first order list that can be matched with the virtual resource conversion request, and the conversion platform adds the virtual resource conversion request to the second order list, and the second order list contains pending conversion requests for converting the first virtual resource into the second virtual resource. Subsequently, when other conversion requests for converting the second virtual resource into the first virtual resource arrive at the conversion platform, the conversion platform will try to query the pending conversion request from the second order list to match the execution with the subsequent conversion request. By constructing an order list based on the virtual resource conversion request, it is possible to allow the conversion platform to match and execute conversion requests from different users, thereby directly completing the conversion request, which is conducive to the convenience of executing the conversion request.

[0080] In an embodiment of the present application, the virtual resource conversion request obtained by the conversion platform includes the number of virtual resources to be converted and the expected conversion ratio, and the conversion platform obtains a first order list containing pending conversion requests with opposite conversion directions, and queries the first order list for pending conversion requests with conversion ratios better than the expected conversion ratio. If a pending conversion request with a better conversion ratio is found, the virtual resource conversion request and the found pending conversion request are executed together, thereby completing the two conversion requests. By adding the quantity and the expected conversion ratio to the virtual resource conversion request, the conversion process of first asking for a price and then confirming the price is not required, and the overall conversion can be completed with only one communication, thereby reducing the number of communications during the conversion process and improving the execution efficiency of the conversion process.

[0081] In some optional embodiments, in the process of executing the virtual resource conversion processing according to the virtual resource conversion request and the queried conversion request to be executed, the conversion platform determines the execution conversion ratio according to the average of the expected conversion ratio in the virtual resource conversion request and the conversion ratio in the conversion request to be executed, and then converts the first virtual resource into the second virtual resource according to the execution conversion ratio and the number of virtual resources. When executing the virtual resource conversion processing, the average of the expected conversion ratio and the conversion ratio in the conversion request to be executed is used as the execution conversion ratio, so that both conversion requests can be executed according to a more optimal conversion ratio, which is conducive to reducing resource loss in the conversion process.

[0082] In some optional embodiments, the to-be-executed conversion request includes a validity period, which is a time limit set when the client submits the virtual resource conversion request, and is written into the first order list together with the virtual resource conversion request. After querying the to-be-executed conversion request whose conversion ratio is better than the expected conversion ratio from the first order list, the conversion platform will determine the validity status of the to-be-executed conversion request at the current moment based on the validity period in the query to-be-executed conversion request; if it is in an invalid state, the conversion request will continue to be executed; if the to-be-executed conversion request is in an invalid state, the to-be-executed conversion request will be deleted from the first order list. By specifying the validity of the submitted virtual resource conversion request through the validity period, it is possible to avoid the execution of the conversion request at a time beyond the user's expectation, which is conducive to improving the controllability of the virtual resource conversion process.

[0083] 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 6 As shown, in a virtual resource conversion method of an embodiment of the present application, the following steps may be included:

[0084] Step S610: obtaining a virtual resource conversion request, wherein the virtual resource conversion request includes the number of virtual resources that the first virtual resource needs to be converted into the second virtual resource and an expected conversion ratio.

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

[0086] Step S620: acquiring a first order list according to the resource conversion direction from the first to the second in the virtual resource conversion request, wherein the first order list includes pending conversion requests for converting the second virtual resource into the first virtual resource.

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

[0088] Step S630: query the first order list for to-be-executed conversion requests whose conversion ratio is better than the expected conversion ratio.

[0089] Optionally, the implementation details of step S630 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.

[0090] If a to-be-executed conversion request having a conversion ratio better than the expected conversion ratio is found, the conversion platform executes step S640 ; otherwise, it indicates step S650 .

[0091] Step S640: executing virtual resource conversion processing according to the virtual resource conversion request and the queried conversion request to be executed.

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

[0093] Step S650: Add the virtual resource conversion request to a second order list, wherein the second order list includes pending conversion requests for converting the first virtual resource into the second virtual resource.

[0094] Optionally, the implementation details of step S650 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.

[0095] Step S660, obtaining a third-party conversion ratio provided by a third party from the first order list;

[0096] Step S670, sending conversion ratio report information for the virtual resource conversion request to the requester of the virtual resource conversion request, wherein the conversion ratio report information is generated based on the acquired third-party conversion ratio;

[0097] Step S680, receiving a transaction confirmation instruction of the request policy of the virtual resource conversion request for the conversion ratio report information;

[0098] Step S690: In response to the transaction confirmation instruction, convert the first virtual resource into the second virtual resource according to the third-party conversion ratio and the amount of the virtual resources.

[0099] In the case where there is no conversion request that can be matched and executed, the conversion platform will make a quotation to the requester. The quotation is based on the third-party conversion ratio provided by the third party. The third party is usually the manager of the virtual resources or the service provider that provides virtual resource exchange and repurchase, such as a bank. The conversion platform will obtain the third-party conversion ratio provided by the third party in advance and store it in the first order list. The conversion platform reads the third-party conversion ratio from the first order list, generates a conversion ratio report information for the virtual resource conversion request based on the obtained third-party conversion ratio, and sends it to the requester of the virtual resource conversion request. The requester can decide whether to convert according to the received conversion ratio. If it is determined to convert, a transaction confirmation instruction for the conversion ratio report information is sent to the conversion platform. After receiving the transaction confirmation instruction, the conversion platform responds to the transaction confirmation instruction and converts the first virtual resource into the second virtual resource according to the third-party conversion ratio and the number of virtual resources. In the case where the request cannot be matched directly, the transaction is conducted by quotation, so that the compatibility of the scheme with other conversion methods can be improved, which is conducive to the operability of the scheme implementation process.

[0100] In an embodiment of the present application, the virtual resource conversion request obtained by the conversion platform includes the number of virtual resources to be converted and the expected conversion ratio, and the conversion platform obtains a first order list containing pending conversion requests with opposite conversion directions, and queries the first order list for pending conversion requests with conversion ratios better than the expected conversion ratio. If a pending conversion request with a better conversion ratio is found, the virtual resource conversion request and the found pending conversion request are executed together, thereby completing the two conversion requests. By adding the quantity and the expected conversion ratio to the virtual resource conversion request, the conversion process of first asking for a price and then confirming the price is not required, and the overall conversion can be completed with only one communication, thereby reducing the number of communications during the conversion process and improving the execution efficiency of the conversion process.

[0101] In some optional embodiments, in the process of executing the virtual resource conversion processing according to the virtual resource conversion request and the queried conversion request to be executed, the conversion platform determines the execution conversion ratio according to the average of the expected conversion ratio in the virtual resource conversion request and the conversion ratio in the conversion request to be executed, and then converts the first virtual resource into the second virtual resource according to the execution conversion ratio and the number of virtual resources. When executing the virtual resource conversion processing, the average of the expected conversion ratio and the conversion ratio in the conversion request to be executed is used as the execution conversion ratio, so that both conversion requests can be executed according to a more optimal conversion ratio, which is conducive to reducing resource loss in the conversion process.

[0102] In some optional embodiments, the first order list includes third-party conversion ratios of multiple third parties. In the process of obtaining the third-party conversion ratios provided by the third parties from the first order list, the conversion platform calculates the ratio difference between each third-party conversion ratio and the expected conversion ratio, and then obtains the third-party conversion ratio with the smallest ratio difference from the first order list. In some optional embodiments, before obtaining the virtual resource conversion request, the conversion platform also queries the updated conversion ratio provided by each third party for converting the second virtual resource to the first virtual resource, and then updates the third-party conversion ratios of multiple third parties in the first order list according to the updated conversion ratios of each third party. The conversion platform can obtain different conversion ratios from multiple third parties and save them in the first order list respectively. The use of multiple different conversion ratios is conducive to improving the execution success rate of the conversion request.

[0103] In some optional embodiments, the first order list contains multiple third-party conversion ratios corresponding to different orders of magnitude. In the process of obtaining the third-party conversion ratio provided by the third party from the first order list, the conversion platform queries multiple third-party conversion ratios whose orders of magnitude match the number of virtual resources from the first order list, and then calculates the ratio difference between the queried third-party conversion ratio and the expected conversion ratio, and then obtains the third-party conversion ratio with the smallest ratio difference. In some optional embodiments, before obtaining the virtual resource conversion request, the conversion platform will also query the updated conversion ratio provided by the third party for each order of magnitude to convert the second virtual resource to the first virtual resource according to each order of magnitude included in the first order list, and then update the third-party conversion ratio corresponding to each order of magnitude in the first order list according to the updated conversion ratio of each third party. By saving different conversion ratios for different orders of magnitude of the same third party in the first order list, it is beneficial to improve the execution success rate of the conversion request through multiple different conversion ratios.

[0104] 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 conversion method of an embodiment of the present application, the following steps may be included:

[0105] Step S710: obtaining a virtual resource conversion request, wherein the virtual resource conversion request includes the number of virtual resources that the first virtual resource needs to be converted into the second virtual resource and an expected conversion ratio.

[0106] Optionally, the implementation details of step S710 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.

[0107] Step S720: acquiring a first order list according to the resource conversion direction from the first to the second in the virtual resource conversion request, wherein the first order list includes a to-be-executed conversion request for converting the second virtual resource into the first virtual resource.

[0108] Optionally, the implementation details of step S720 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.

[0109] Step S730: query the first order list for pending conversion requests whose conversion ratio is better than the expected conversion ratio.

[0110] Optionally, the implementation details of step S730 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.

[0111] If a pending conversion request with a conversion ratio better than the expected conversion ratio is found, the conversion platform executes step S740; otherwise, it indicates step S750.

[0112] Step S740: executing virtual resource conversion processing according to the virtual resource conversion request and the queried conversion request to be executed.

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

[0114] Step S750: Add the virtual resource conversion request to a second order list, wherein the second order list includes pending conversion requests for converting the first virtual resource into the second virtual resource.

[0115] Optionally, the implementation details of step S750 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.

[0116] Step S760: Obtain a third-party conversion ratio provided by a third party from the first order list.

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

[0118] Step S761, receiving a conversion ratio query request for a conversion ratio of a first virtual resource to a second virtual resource;

[0119] Step S762, in response to the conversion ratio query request, obtaining, from the first order list, pending conversion requests whose conversion ratio is better than the third-party conversion ratio;

[0120] Step S763, averaging the conversion ratio and quantity of the conversion requests to be executed and the third-party conversion ratio provided by the third party to obtain a quoted conversion ratio for converting the first virtual resource into the second virtual resource;

[0121] Step S764: Generate the conversion ratio report information based on the quotation conversion ratio.

[0122] The conversion platform will send the quotation conversion ratio of the virtual resource conversion to the requester when there is no successful matching request. The quotation conversion ratio is calculated based on the conversion ratio proposed by other users in the first order list. Specifically, after receiving the conversion ratio query request for the conversion ratio of the first virtual resource to the second virtual resource, the conversion platform will respond to the conversion ratio query request and obtain the conversion request to be executed from the first order list with a conversion ratio better than the third-party conversion ratio. Then, the conversion ratio and quantity of the conversion request to be executed and the third-party conversion ratio provided by the third party are averaged to obtain the quotation conversion ratio of the first virtual resource to the second virtual resource. It can be understood that because the conversion request has not been successfully matched, the conversion ratio of the conversion request to be executed obtained at this time is not better than the expected conversion ratio. The conversion ratio obtained by averaging these conversion ratios that are better than the third-party conversion ratio and the third-party conversion ratio must be better than the third-party conversion ratio. For example, the conversion amount of the conversion ratio provided by the third party is preset, the buying price greater than the third party in the first order list and the selling price less than the third party in the second order list and the corresponding conversion amount are selected, and the final quotation conversion ratio is calculated as follows when selling:

[0123] Quote conversion ratio = (buy price 1 * buy volume 1 + ... + buy price X * buy volume X + third-party conversion ratio * third-party conversion volume) / (buy volume 1 + ... + buy volume X + third-party conversion volume)

[0124] Wherein, Buy Price 1 is the Buy Price of the pending conversion request 1 in the first order list, Buy Quantity 1 is the Buy Quantity of the pending conversion request 1, Buy Price X is the Buy Price of the pending conversion request X in the first order list, and Buy Quantity X is the Buy Quantity of the pending conversion request X. The calculation method of the quote conversion ratio when buying is as follows:

[0125] Quote conversion ratio = (sell price 1 * sell volume 1 + ... + sell price X * sell volume X + third-party sell price * third-party conversion volume) / (sell volume 1 + ... + sell volume X + third-party conversion volume)

[0126] Similarly, selling price 1 is the selling price of pending conversion request 1 in the second order list, selling quantity 1 is the selling quantity of pending conversion request 1, selling price X is the selling price of pending conversion request X in the first order list, and selling quantity X is the selling quantity of pending conversion request X.

[0127] The quotation conversion ratio is obtained by averaging the conversion ratio provided by the user and the third-party conversion ratio, so that a better quotation conversion ratio can be provided to the user, which is conducive to improving the execution efficiency of virtual resource conversion.

[0128] Step S770: Sending conversion ratio report information for the virtual resource conversion request to the requester of the virtual resource conversion request, wherein the conversion ratio report information is generated based on the acquired third-party conversion ratio.

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

[0130] Step S780: receiving a transaction confirmation instruction of the request policy of the virtual resource conversion request for the conversion ratio report information.

[0131] Optionally, the implementation details of step S780 are the same as Figure 6 The step S680 shown in FIG. 1 is the same as that in FIG. 1 and will not be described in detail.

[0132] Step S790: In response to the transaction confirmation instruction, convert the first virtual resource into the second virtual resource according to the third-party conversion ratio and the amount of the virtual resources.

[0133] Optionally, the implementation details of step S790 are the same as Figure 6 The step S790 shown in FIG. 1 is consistent with the step S790 shown in FIG. 1 and will not be

[0134] In an embodiment of the present application, the virtual resource conversion request obtained by the conversion platform includes the number of virtual resources to be converted and the expected conversion ratio, and the conversion platform obtains a first order list containing pending conversion requests with opposite conversion directions, and queries the first order list for pending conversion requests with conversion ratios better than the expected conversion ratio. If a pending conversion request with a better conversion ratio is found, the virtual resource conversion request and the found pending conversion request are executed together, thereby completing the two conversion requests. By adding the quantity and the expected conversion ratio to the virtual resource conversion request, the conversion process of first asking for a price and then confirming the price is not required, and the overall conversion can be completed with only one communication, thereby reducing the number of communications during the conversion process and improving the execution efficiency of the conversion process.

[0135] In some optional embodiments, in the process of executing the virtual resource conversion processing according to the virtual resource conversion request and the queried conversion request to be executed, the conversion platform determines the execution conversion ratio according to the average of the expected conversion ratio in the virtual resource conversion request and the conversion ratio in the conversion request to be executed, and then converts the first virtual resource into the second virtual resource according to the execution conversion ratio and the number of virtual resources. When executing the virtual resource conversion processing, the average of the expected conversion ratio and the conversion ratio in the conversion request to be executed is used as the execution conversion ratio, so that both conversion requests can be executed according to a more optimal conversion ratio, which is conducive to reducing resource loss in the conversion process.

[0136] In some optional embodiments, after obtaining the third-party conversion ratio provided by the third party from the first order list, if the first order list does not contain the third-party conversion ratio provided by the third party, the conversion platform averages the conversion ratios and quantities of each pending conversion request in the first order list to obtain the quoted conversion ratio for converting the first virtual resource to the second virtual resource. In the absence of a third-party conversion ratio, the quoted conversion ratio is directly obtained by averaging the conversion ratios and quantities of each pending conversion request in the first order list, so that the relevant conversion can be directly performed after obtaining the third-party quotation in the future, which is beneficial to the execution efficiency of the conversion process.

[0137] In some optional embodiments, after obtaining the to-be-executed conversion request whose conversion ratio is better than the third-party conversion ratio from the first order list in response to the conversion ratio query request, if the difference between the number of virtual resources in the virtual resource conversion request and the number in the obtained to-be-executed conversion request exceeds a preset difference threshold, the conversion platform generates the conversion ratio report information based on the third-party conversion ratio. When the difference between the number of virtual resources in the virtual resource conversion request and the number in the obtained to-be-executed conversion request is too large, the third-party conversion ratio is used as the quoted conversion ratio, thereby avoiding the inability to complete the conversion in the virtual resource conversion request due to the large difference in the number of virtual resources when executing the conversion, which is beneficial to the execution success rate of the conversion process.

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

[0139] See also Figure 8 , Figure 8 FIG. 1 is a schematic flow chart of a specific process of virtual resource conversion in an embodiment of the present application. Figure 8As shown in the figure, this solution is specifically applied to foreign exchange trading scenarios. When a trading request arrives, the trading platform will parse the expected buying and selling exchange rate in the request parameters. If the customer wants to buy, the order list (Order Book) in the selling direction is queried. If the customer wants to buy, the order list in the buying direction is queried. For buying transactions, check in the order list whether there is a selling price less than the expected buying price. For selling transactions, check in the order list whether there is a buying price greater than the expected selling price. If it exists, the price will be taken out for transaction matching, and the information of successful transaction will be fed back to the customer. If it does not exist, the transaction request will be written to the order list in the selling direction or the order list in the buying direction according to the required transaction.

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

[0141] The following introduces the device implementation of the present application, which can be used to execute the virtual resource conversion method in the above-mentioned embodiment of the present application. Fig. 9 The block diagram schematically shows the composition of the virtual resource conversion device in the embodiment of the present application. Fig. 9 As shown, the virtual resource conversion device 900 may mainly include:

[0142] A request acquisition module 910 is configured to acquire a virtual resource conversion request, wherein the virtual resource conversion request includes the number of virtual resources that the first virtual resource needs to be converted into the second virtual resource and an expected conversion ratio;

[0143] A list acquisition module 920 is configured to acquire a first order list according to a resource conversion direction from the first to the second in the virtual resource conversion request, wherein the first order list includes a to-be-executed conversion request for converting the second virtual resource into the first virtual resource;

[0144] A request query module 930, configured to query the first order list for pending conversion requests whose conversion ratio is better than the expected conversion ratio;

[0145] The conversion execution module 940 is configured to execute virtual resource conversion processing according to the virtual resource conversion request and the queried conversion request to be executed if a to-be-executed conversion request having a conversion ratio better than the expected conversion ratio is queried.

[0146] In some embodiments of the present application, based on the above technical solution, the conversion execution module 940 is also configured as follows: if no pending conversion request with a conversion ratio better than the expected conversion ratio is found in the first order list, the virtual resource conversion request is added to the second order list, and the second order list contains pending conversion requests to convert the first virtual resource into the second virtual resource.

[0147] In some embodiments of the present application, based on the above technical solution, the conversion execution module 940 is also configured to: obtain a third-party conversion ratio provided by a third party from the first order list; send conversion ratio report information for the virtual resource conversion request to the requester of the virtual resource conversion request, and the conversion ratio report information is generated based on the obtained third-party conversion ratio; receive a transaction confirmation instruction from the request policy of the virtual resource conversion request for the conversion ratio report information; and in response to the transaction confirmation instruction, convert the first virtual resource into the second virtual resource according to the third-party conversion ratio and the quantity of the virtual resources.

[0148] In some embodiments of the present application, based on the above technical solution, the first order list contains third-party conversion ratios of multiple third parties; the conversion execution module 940 is also configured to: calculate the ratio difference between each third-party conversion ratio and the expected conversion ratio; obtain the third-party conversion ratio with the smallest difference from the ratio from the first order list.

[0149] In some embodiments of the present application, based on the above technical solution, the request acquisition module 910 is also configured to: query the updated conversion ratio provided by each third party for converting the second virtual resource into the first virtual resource; and update the third-party conversion ratios of multiple third parties in the first order list according to the updated conversion ratios of each third party.

[0150] In some embodiments of the present application, based on the above technical solution, the first order list contains multiple third-party conversion ratios corresponding to different orders of magnitude; the conversion execution module 940 is also configured to: query multiple third-party conversion ratios whose orders of magnitude match the number of virtual resources from the first order list; calculate the ratio difference between the queried third-party conversion ratio and the expected conversion ratio; and obtain the third-party conversion ratio with the smallest difference from the ratio.

[0151] In some embodiments of the present application, based on the above technical solution, the request acquisition module 910 is also configured to: query the updated conversion ratio of converting the second virtual resource to the first virtual resource for each order of magnitude provided by the third party according to each order of magnitude included in the first order list; and update the third-party conversion ratio corresponding to each order of magnitude in the first order list according to the updated conversion ratio of each third party.

[0152] In some embodiments of the present application, based on the above technical solution, the conversion execution module 940 is also configured to: receive a conversion ratio query request for the conversion ratio of the first virtual resource to the second virtual resource; in response to the conversion ratio query request, obtain from the first order list a pending conversion request whose conversion ratio is better than the third-party conversion ratio; average the conversion ratio and quantity of the pending conversion request and the third-party conversion ratio provided by the third party to obtain the quoted conversion ratio of the first virtual resource to the second virtual resource; and generate the conversion ratio report information based on the quoted conversion ratio.

[0153] In some embodiments of the present application, based on the above technical solution, the conversion execution module 940 is also configured as: if the first order list does not contain a third-party conversion ratio provided by a third party, then the conversion ratios and quantities of each conversion request to be executed in the first order list are averaged to obtain the quoted conversion ratio for converting the first virtual resource into the second virtual resource.

[0154] In some embodiments of the present application, based on the above technical solution, the conversion execution module 940 is also configured to: if the difference between the number of virtual resources in the virtual resource conversion request and the number in the obtained conversion request to be executed exceeds a preset difference threshold, then based on the third-party conversion ratio, generate the conversion ratio report information.

[0155] In some embodiments of the present application, based on the above technical solution, the pending conversion request includes a validity period; the request query module 930 is also configured to: determine the validity status of the pending conversion request at the current moment based on the validity period in the queried pending conversion request; if the pending conversion request is in an invalid state, delete the pending conversion request from the first order list.

[0156] In some embodiments of the present application, based on the above technical solution, the conversion execution module 940 is also configured to: determine the execution conversion ratio according to the average of the expected conversion ratio in the virtual resource conversion request and the conversion ratio in the to-be-executed conversion request; and convert the first virtual resource into the second virtual resource according to the execution conversion ratio and the number of virtual resources.

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

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

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

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

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

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

[0163] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program 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.

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

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

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

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

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

Claims

1. A method for converting virtual resources, characterized in that: include: Acquire a virtual resource conversion request, wherein the virtual resource conversion request includes the number of virtual resources that the first virtual resource needs to be converted into the second virtual resource and an expected conversion ratio; According to the resource conversion direction from the first to the second in the virtual resource conversion request, obtaining a first order list, wherein the first order list includes pending conversion requests for converting the second virtual resource into the first virtual resource; Querying the first order list for pending conversion requests whose conversion ratio is better than the expected conversion ratio; If a to-be-executed conversion request having a conversion ratio better than the expected conversion ratio is found, a virtual resource conversion process is performed according to the virtual resource conversion request and the to-be-executed conversion request found.

2. The method for converting virtual resources according to claim 1, characterized in that: The method further comprises: If no pending conversion request with a conversion ratio better than the expected conversion ratio is found in the first order list, the virtual resource conversion request is added to a second order list, which contains pending conversion requests for converting the first virtual resource into the second virtual resource.

3. The method for converting virtual resources according to claim 2, characterized in that: After adding the virtual resource conversion request to the second order list, the method further includes: Obtaining a third-party conversion ratio provided by a third party from the first order list; Sending conversion ratio report information for the virtual resource conversion request to the requester of the virtual resource conversion request, wherein the conversion ratio report information is generated based on the acquired third-party conversion ratio; Receiving a transaction confirmation instruction of the request policy of the virtual resource conversion request for the conversion ratio report information; In response to the transaction confirmation instruction, the first virtual resource is converted into the second virtual resource according to the third-party conversion rate and the virtual resource quantity.

4. The method for converting virtual resources according to claim 3, characterized in that: The first order list includes third-party conversion ratios of multiple third parties; and obtaining the third-party conversion ratio provided by the third party from the first order list includes: Calculating the difference between each third-party conversion ratio and the expected conversion ratio; A third-party conversion ratio having the smallest difference from the ratio is obtained from the first order list.

5. The method for converting virtual resources according to claim 4, characterized in that: Before obtaining the virtual resource conversion request, the method further includes: querying each third party for an updated conversion ratio provided for converting the second virtual resource into the first virtual resource; The third-party conversion ratios of the plurality of third parties in the first order list are updated according to the updated conversion ratios of the respective third parties.

6. The method for converting virtual resources according to claim 3, characterized in that: The first order list includes a plurality of third-party conversion ratios corresponding to different orders of magnitude; the step of obtaining the third-party conversion ratio provided by the third party from the first order list includes: querying from the first order list a plurality of third-party conversion ratios whose magnitude matches the quantity of the virtual resources; Calculating a ratio difference between the queried third-party conversion ratio and the expected conversion ratio; Get the third-party conversion ratio that has the smallest difference from the stated ratio.

7. The method for converting virtual resources according to claim 6, characterized in that: Before obtaining the virtual resource conversion request, the method further includes: According to each order of magnitude included in the first order list, querying a third party for an updated conversion ratio for converting the second virtual resource into the first virtual resource for each order of magnitude; According to the updated conversion ratios of the third parties, the third party conversion ratios corresponding to the respective orders of magnitude in the first order list are updated.

8. The method for converting virtual resources according to claim 3, characterized in that: Before sending the conversion ratio report information for the virtual resource conversion request to the requester of the virtual resource conversion request, the method further includes: receiving a conversion ratio query request for a conversion ratio of a first virtual resource to a second virtual resource; In response to the conversion ratio query request, obtaining, from the first order list, pending conversion requests whose conversion ratio is better than the third-party conversion ratio; A conversion ratio of the first virtual resource to the second virtual resource is obtained by averaging the conversion ratio and the number of the conversion requests to be executed and the third-party conversion ratio provided by the third party; Based on the quotation conversion ratio, the conversion ratio report information is generated.

9. The method for converting virtual resources according to claim 8, characterized in that: After obtaining the third-party conversion rate provided by the third party from the first order list, the method further includes: If the first order list does not include a third-party conversion ratio provided by a third party, the conversion ratio and quantity of each to-be-executed conversion request in the first order list are averaged to obtain a quoted conversion ratio for converting the first virtual resource to the second virtual resource.

10. The method for converting virtual resources according to claim 8, characterized in that: After obtaining, in response to the conversion ratio query request, from the first order list a to-be-executed conversion request whose conversion ratio is better than the third-party conversion ratio, the method further includes: If the difference between the number of virtual resources in the virtual resource conversion request and the number in the obtained to-be-executed conversion request exceeds a preset difference threshold, the conversion ratio report information is generated based on the third-party conversion ratio.

11. The method for converting virtual resources according to claim 2, characterized in that: The to-be-executed conversion request includes a validity period; after querying the to-be-executed conversion request having a conversion ratio better than the expected conversion ratio from the first order list, the method further includes: Determine the validity status of the pending conversion request at the current moment according to the validity period in the queried pending conversion request; If the to-be-executed conversion request is in an invalid state, deleting the to-be-executed conversion request from the first order list.

12. The method for converting virtual resources according to claim 1, characterized in that: The performing of virtual resource conversion processing according to the virtual resource conversion request and the queried conversion request to be executed includes: Determining an execution conversion ratio according to an average of an expected conversion ratio in the virtual resource conversion request and a conversion ratio in the to-be-executed conversion request; The first virtual resource is converted into the second virtual resource according to the execution conversion ratio and the number of virtual resources.

13. A virtual resource conversion device, characterized in that: include: A request acquisition module configured to acquire a virtual resource conversion request, wherein the virtual resource conversion request includes the number of virtual resources that the first virtual resource needs to be converted into the second virtual resource and an expected conversion ratio; A list acquisition module, configured to acquire a first order list according to a resource conversion direction from the first to the second in the virtual resource conversion request, wherein the first order list includes a to-be-executed conversion request for converting the second virtual resource into the first virtual resource; A request query module, configured to query the first order list for pending conversion requests whose conversion ratio is better than the expected conversion ratio; The conversion execution module is configured to execute virtual resource conversion processing according to the virtual resource conversion request and the queried conversion request to be executed if a to-be-executed conversion request with a conversion ratio better than the expected conversion ratio is queried.

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

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

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