Digital resource conversion method and device, computer equipment and storage medium
By predicting the change trend of digital resource conversion ratio and filtering target resource pairs for conversion, the real-time problem under the influence of exchange rate fluctuations is solved and faster resource conversion decisions are achieved.
Patent Information
- Application Number
- CN202410128757.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-29
- Publication Date
- 2025-07-29
AI Technical Summary
In the prior art, exchange rate conversion between different currencies is easily affected by market exchange rate fluctuations, resulting in poor real-time real-time conversion of digital resource conversion, and the adjustment of risk assessment and asset allocation methods is long, making it impossible to achieve daily liquidity demand.
By determining the real-time conversion ratio of any two digital resource types that can be converted to each other in the current cycle, predict the conversion ratio change trend of the next cycle, filter the target resource pairs that meet the criteria, and convert the resource according to the matching conversion method.
It improves the real-time nature of digital resource conversion, avoids the time consumption of long-term adjustments, and achieves faster resource conversion decisions.
Smart Images

Figure CN120387889A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and particularly to a method, apparatus, computer device, and storage medium for digital resource conversion. Background Art
[0002] With the advancement of economic globalization, the exchange rate conversion between different currencies is usually based on user needs. At present, the exchange rate conversion between different currencies often only supports the conversion of fixed channels and fixed currencies, and is easily affected by the exchange rate fluctuations of the market index. At present, methods such as risk assessment and asset allocation can be used to perform exchange rate conversion between different currencies to achieve risk control of exchange rate conversion. However, methods such as risk assessment and asset allocation are often adjusted once in a relatively long time, and usually do not flow with daily digital resource conversion, thereby reducing the real-time performance of digital resource conversion. Therefore, there is an urgent need for a method that can improve the real-time performance of digital resource conversion. Summary of the Invention
[0003] Based on this, in view of the above technical problems, it is necessary to provide a method, apparatus, computer device, and storage medium for digital resource conversion that can improve the real-time performance of digital resource conversion.
[0004] In a first aspect, the present application provides a method for digital resource conversion. The method includes:
[0005] For any resource pair composed of two mutually convertible digital resource types, determine the real-time conversion ratio of the two digital resource types in the resource pair in the current period;
[0006] Based on the real-time conversion ratio, determine the change trend of the conversion ratio of each resource pair in the next period. The change trend of the conversion ratio represents whether the predicted conversion ratio of the resource pair in the next period is increasing or decreasing compared to the real-time conversion ratio;
[0007] From each resource pair, determine a target resource pair whose change trend of the conversion ratio meets the screening conditions;
[0008] Convert the digital resources in the target resource pair according to the resource conversion method matched by the target resource pair.
[0009] In a second aspect, the present application further provides a digital resource conversion apparatus. The apparatus includes:
[0010] A conversion ratio determination module, configured to determine the real-time conversion ratio of the two digital resource types in the resource pair for any resource pair composed of two mutually convertible digital resource types;
[0011] A change trend determination module, configured to determine the change trend of the conversion ratio of each resource pair in the next cycle based on the real-time conversion ratio, where the change trend of the conversion ratio indicates whether the predicted conversion ratio of the resource pair in the next cycle is increasing or decreasing compared to the real-time conversion ratio;
[0012] A target resource pair determination module, configured to determine a target resource pair whose change trend of the conversion ratio meets the screening criteria from all resource pairs;
[0013] A digital resource conversion module, configured to convert the digital resources in the target resource pair according to the resource conversion method matched by the target resource pair.
[0014] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0015] For any resource pair composed of two mutually convertible digital resource types, determine the real-time conversion ratio of the two digital resource types in the resource pair in the current cycle;
[0016] Based on the real-time conversion ratio, determine the change trend of the conversion ratio of each resource pair in the next cycle, where the change trend of the conversion ratio indicates whether the predicted conversion ratio of the resource pair in the next cycle is increasing or decreasing compared to the real-time conversion ratio;
[0017] Determine a target resource pair whose change trend of the conversion ratio meets the screening criteria from all resource pairs;
[0018] Convert the digital resources in the target resource pair according to the resource conversion method matched by the target resource pair.
[0019] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0020] For any resource pair composed of two mutually convertible digital resource types, determine the real-time conversion ratio of the two digital resource types in the resource pair in the current cycle;
[0021] Based on the real-time conversion ratio, determine the change trend of the conversion ratio of each resource pair in the next cycle, where the change trend of the conversion ratio indicates whether the predicted conversion ratio of the resource pair in the next cycle is increasing or decreasing compared to the real-time conversion ratio;
[0022] Determine a target resource pair whose change trend of the conversion ratio meets the screening criteria from all resource pairs;
[0023] Convert the digital resources in the target resource pair according to the resource conversion method matched by the target resource pair.
[0024] In a fifth aspect, the present application also provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0025] For any resource pair composed of two mutually convertible digital resource types, determine the real-time conversion ratio of the two digital resource types in the resource pair in the current cycle;
[0026] Based on the real-time conversion ratio, determine the change trend of the conversion ratio of each resource pair in the next cycle. The change trend of the conversion ratio represents whether the predicted conversion ratio of the resource pair in the next cycle is increasing or decreasing compared to the real-time conversion ratio;
[0027] From each resource pair, determine the target resource pair whose conversion ratio change trend meets the screening conditions;
[0028] Convert the digital resources in the target resource pair according to the resource conversion method matched by the target resource pair.
[0029] For the method, device, computer device, storage medium, and computer program product for the above digital resource conversion, for any resource pair composed of two mutually convertible digital resource types, predict the change trend of the conversion ratio in the next cycle through the real-time conversion ratio in the current cycle, so as to select the target resource pair whose conversion ratio change trend meets the screening conditions for resource conversion. Therefore, through the prediction of the conversion ratio change between adjacent cycles, it is possible to select resource pairs for conversion more real-timely, avoid the time consumption of conversion adjustment for a long time, and thus improve the real-time performance of digital resource conversion. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is an application environment diagram of the method for digital resource conversion in an embodiment;
[0031] Figure 2 It is a schematic system architecture diagram of a customer intelligent account management system in an embodiment;
[0032] Figure 3 It is a schematic flowchart of the method for digital resource conversion in an embodiment;
[0033] Figure 4 It is a schematic flowchart of selecting a target resource pair in an embodiment;
[0034] Figure 5 It is a partial schematic flowchart of the method for digital resource conversion in an embodiment;
[0035] Figure 6Partial process schematic diagram of the method for digital resource conversion in another embodiment;
[0036] Figure 7 Partial process schematic diagram of the method for digital resource conversion in yet another embodiment;
[0037] Figure 8 Complete process schematic diagram of the method for digital resource conversion in one embodiment;
[0038] Figure 9 Structural block diagram of the digital resource conversion device in one embodiment;
[0039] Figure 10 Internal structure diagram of a computer device in one embodiment. Detailed implementation manners
[0040] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0041] With the advancement of economic globalization, the exchange rate conversion between different currencies is usually based on user needs. At present, the exchange rate conversion between different currencies often only supports the conversion of fixed channels and fixed currencies, and is easily affected by the fluctuations of the market exchange rate. Currently, the target object can make exchange rate conversion decisions according to the market conditions, and the automatic exchange rate conversion between different currencies can adopt methods such as risk assessment and asset allocation to achieve risk control of exchange rate conversion. However, methods such as risk assessment and asset allocation are often adjusted once in a relatively long time and usually do not flow with daily digital resource conversion, thereby reducing the real-time performance of digital resource conversion. Therefore, there is an urgent need for a method that can improve the real-time performance of digital resource conversion.
[0042] The embodiment of the present application provides a method for digital resource conversion that can improve the real-time performance of digital resource conversion. The method for digital resource conversion provided by the embodiment of the present application can be applied to an application environment as Figure 1 shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or can be placed in the cloud or on other servers.
[0043] Specifically, taking the application to server 104 as an example, for any resource pair composed of two mutually convertible digital resource types, server 104 determines the real-time conversion ratio of the two digital resource types in the resource pair in the current period. Then, based on the real-time conversion ratio, it determines the change trend of the conversion ratio of each resource pair in the next period. The change trend of the conversion ratio represents whether the predicted conversion ratio of the resource pair in the next period is increasing or decreasing compared to the real-time conversion ratio. Then, from each resource pair, it determines the target resource pair whose change trend of the conversion ratio meets the screening conditions. Thus, server 104 converts the digital resources in the target resource pair according to the resource conversion method matched by the target resource pair.
[0044] Among them, the terminal 102 can be, but is not limited to, various desktop computers, laptop computers, smartphones, tablet computers, Internet of Things devices, and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart in-vehicle devices, etc. The portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. Server 104 can be implemented by an independent server or a server cluster composed of multiple servers. And the method for digital resource conversion provided by the application embodiments can be applied to various scenarios, including but not limited to blockchain technology and the like.
[0045] Secondly, since this application involves digital resources, for the sake of easy understanding, the related technologies based on digital resource applications are introduced below:
[0046] Blockchain technology: It refers to a distributed database technology that has received wide attention for its characteristics of decentralization, high security, and transparency.
[0047] Smart contract: It refers to an automatically executable contract based on blockchain technology, which can realize functions such as automated transactions and asset management.
[0048] Multi-currency account: It refers to an account in which a customer opens accounts in multiple currencies to achieve diversified investment of assets.
[0049] Foreign exchange loss risk: It refers to the loss risk that a customer may encounter in cross-border transactions due to fluctuations in foreign exchange rates.
[0050] Based on this, as Figure 2The customer intelligent account management system shown includes a multi-currency account smart contract 202 in the customer intelligent account management system 201. The multi-currency account smart contract 202 specifically includes currency conversions between currency 2021, currency 2022, and currency 2023, that is, currency conversions between currency 2021 and currency 2022, currency conversions between currency 2022 and currency 2023, and currency conversions between currency 2021 and currency 2023. Then, the multi-currency account smart contract 202 in the customer intelligent account management system 201 obtains the currency conversion ratios between different currencies through the currency conversion ratio data source 2023. Thus, relying on the trained algorithm model 204, it considers the currency conversion ratios between different currencies and conducts currency swaps among multiple currencies to participate in automated foreign exchange trading.
[0051] Specifically, it is illustrated through the following embodiments: In one embodiment, as Figure 3 shown, a method for digital resource conversion is provided. Taking the method applied to Figure 1 the server 104 in it as an example for illustration, it can be understood that this method can also be applied to the terminal 102, and can also be applied to a system including the terminal 102 and the server 104, and is implemented through the interaction between the terminal 102 and the server 104. In this embodiment, the method includes the following steps:
[0052] Step 302, for a resource pair composed of any two mutually convertible digital resource types, determine the real-time conversion ratio of the two digital resource types in the resource pair in the current period.
[0053] Among them, a resource pair is any two mutually convertible digital resource types. For example, the resource pair A1 includes the digital resource type B1 and the digital resource type B2, and the digital resource C1 corresponding to the digital resource type B1 can be converted into the digital resource C2 corresponding to the digital resource type B2, and the digital resource C2 corresponding to the digital resource type B2 can also be converted into the digital resource C1 corresponding to the digital resource type B1. For ease of understanding, if the digital resource type B1 is of type A, then the digital resource C1 is specifically a type A digital resource. Similarly, if the digital resource type B2 is of type B, then the digital resource C2 is specifically a type B digital resource.
[0054] Based on this, for different account objects, each digital resource type has a corresponding digital resource value of the digital resources. The account object is specifically an object that has opened a multi-currency account, that is, the account object includes at least two different digital resource types. For example, under the account object D1, it includes the digital resource type B1 and the digital resource type B2. And under the account object D1, the digital resource value of the digital resource C1 corresponding to the digital resource type B1 is 1000, and the digital resource value of the digital resource C2 corresponding to the digital resource type B2 under the account object D1 is 2000. Taking the above example for further introduction, then under the account object D1, the resource value of the Class A digital resources is 1000 Class A digital resources, and the resource value of the Class B digital resources is 2000 digital US dollars.
[0055] Secondly, the real-time conversion ratio is used to describe the real-time ratio of the conversion between two digital resource types in a resource pair. The real-time conversion ratio is specifically described as: the real-time exchange rate between digital resource types. Since two digital resource types can be converted with each other, the real-time conversion ratio includes two conversion ratios for mutual conversion. For example, if the resource pair includes a first digital resource type and a second digital resource type, then the real-time conversion ratio can include: the conversion ratio of the first digital resource type to the second digital resource type in the current period, and the conversion ratio of the second digital resource type to the first digital resource type in the current period. For ease of understanding, again take the resource pair A1 including the digital resource type B1 and the digital resource type B2, where the digital resource type B1 is Class A and the digital resource type B2 is Class B as an example. At this time, the real-time conversion ratio can include the conversion ratio of Class A to Class B in the current period, and the conversion ratio of Class B to Class A in the current period. And the current period in this application is the period where the current timestamp is located. The current period can be 1 week, 3 days, 1 day, 12 hours, etc. The specific time period length of the current period needs to be flexibly determined based on the actual application situation.
[0056] Specifically, the server first determines a resource pair composed of any two mutually convertible digital resource types, and then determines the real-time conversion ratio of the two digital resource types in the resource pair in the current period. That is, as Figure 2 shown, the server can obtain the real-time conversion ratio of the two digital resource types in the resource pair in the current period from the currency conversion ratio data source. The aforementioned currency conversion ratio data source includes at least: a digital resource conversion data source and a digital resource conversion channel.
[0057] Optionally, for any resource pair composed of two mutually convertible digital resource types, determine the real-time conversion ratio of the two digital resource types in the resource pair in the current period, including: obtaining, from the digital resource conversion data source, the respective first real-time conversion ratios of each resource pair in the current period; obtaining, from multiple digital resource conversion channels, the respective second real-time conversion ratios of each resource pair in the current period; and determining the real-time conversion ratio of the two digital resource types in the resource pair in the current period through the respective first real-time conversion ratios and second real-time conversion ratios of each resource pair.
[0058] That is, the server obtains, from the digital resource conversion data source, the respective first real-time conversion ratios of each resource pair in the current period. In practical applications, the foregoing digital resource conversion data source can be a foreign exchange price data source. Therefore, for each resource pair, the first real-time conversion ratio includes the conversion ratio of the two digital resource types recorded in the digital resource conversion data source in the current period. It can be understood that there may also be a situation where the first real-time conversion ratio of a certain resource pair does not exist in the digital resource conversion data source. For example, the first real-time conversion ratio E1 of resource pair A1, the first real-time conversion ratio E2 of resource pair A2, and the real-time conversion ratio of resource pair A3 do not exist in the digital resource conversion data source.
[0059] Secondly, the server can also obtain, from multiple digital resource conversion channels, the respective second real-time conversion ratios of each resource pair in the current period. The multiple digital resource conversion channels at least include the foreign exchange trading market, foreign exchange trading channels, etc. For example: digital resource conversion channel F1 is foreign exchange trading market 1, digital resource conversion channel F2 is foreign exchange trading market 2, digital resource conversion channel F3 is foreign exchange trading channel 1, and digital resource conversion channel F4 is foreign exchange trading channel 2. Therefore, for each resource pair, the second real-time conversion ratio includes the conversion ratio of the two digital resource types recorded in the digital resource conversion channel in the current period. It can be understood that there may also be a situation where the second real-time conversion ratio of a certain resource pair does not exist in the digital resource conversion channel. For example, for digital resource conversion channel F1, there is a second real-time conversion ratio G1 of resource pair A1, but there is no real-time conversion ratio of resource pair A2, and there is a second real-time conversion ratio G2 of resource pair A3. Or, for digital resource conversion channel F2, there is no real-time conversion ratio of resource pair A1, but there is a second real-time conversion ratio G3 of resource pair A2, and there is a second real-time conversion ratio G4 of resource pair A3.
[0060] Further, the server determines the real-time conversion ratio of the two digital resource types in the resource pair in the current period based on the respective first real-time conversion ratio and the second real-time conversion ratio of each resource pair. That is, the server can calculate the average value of the respective first real-time conversion ratio and the second real-time conversion ratio of each resource pair, and determine the average value result obtained as the real-time conversion ratio of the two digital resource types in the resource pair in the current period. For example, taking the resource pair A1 as an example, there is a first real-time conversion ratio E1 of the resource pair A1 and a second real-time conversion ratio G1 of the resource pair A1. Then, the average value can be calculated for the first real-time conversion ratio E1 and the second real-time conversion ratio G1, and the average value result obtained is determined as the real-time conversion ratio of the two digital resource types in the resource pair in the current period.
[0061] And it can be seen from the foregoing example that the real-time conversion ratio can essentially include two conversion ratios for mutual conversion. For example, the resource pair A1 includes a first digital resource type and a second digital resource type. The first real-time conversion ratio E1 is used to describe the conversion ratio of the first digital resource type recorded by the digital resource conversion data source to the second digital resource type in the current period, and the conversion ratio of the second digital resource type recorded by the digital resource conversion data source to the first digital resource type in the current period. Similarly, it can be known that the second real-time conversion ratio G1 is used to describe the conversion ratio of the first digital resource type recorded by the digital resource conversion channel F1 to the second digital resource type in the current period, and the conversion ratio of the second digital resource type recorded by the digital resource conversion channel F1 to the first digital resource type in the current period. Then, the average value will be calculated respectively for the conversion ratio of the first digital resource type to the second digital resource type in the current period and the conversion ratio of the second digital resource type to the first digital resource type in the current period.
[0062] Secondly, the server can also configure a data source weight for the digital resource conversion data source and a conversion channel weight for different digital resource conversion channels. Therefore, based on the data source weight and the channel weight, the server performs a weighted summation calculation on the respective first real-time conversion ratio and the second real-time conversion ratio of each resource pair, and determines the weighted summation result obtained as the real-time conversion ratio of the two digital resource types in the resource pair in the current period. Examples are not elaborated here.
[0063] Step 304: Based on the real-time conversion ratio, determine the change trend of the conversion ratio of each resource pair in the next period. The change trend of the conversion ratio represents whether the predicted conversion ratio of the resource pair in the next period is increasing or decreasing compared to the real-time conversion ratio.
[0064] Among them, the changing trend of the conversion ratio characterizes whether the predicted conversion ratio of the resource pair in the next cycle is increasing or decreasing compared to the real-time conversion ratio. Specifically, the changing trend of the conversion ratio can include the amplitude of the conversion ratio change of each resource pair between the current cycle and the next cycle. For example, an increase of 10%, an increase of 20%, a decrease of 15%, etc. Secondly, the duration of the next cycle can be the same as or different from that of the current cycle. It can be understood that there may be a predicted result where the changing trend of the conversion ratio is flat, that is, the conversion ratios of the resource pairs in the current cycle and the next cycle are the same. Being flat can mean no change at all, or the amplitude of the conversion ratio change is less than the change threshold, such as a change amplitude of 0.1%. In this case, the changing trend of the conversion ratio can be considered flat. Specifically, based on the real-time conversion ratio, the server predicts the changing trend of the conversion ratio of each resource pair in the next cycle through Figure 2 the algorithm model that has been trained in
[0065] Furthermore, the training method of the aforementioned algorithm model can be as follows: Obtain the conversion ratios of each resource pair in the historical cycle and the real changing trends of each resource pair in the next historical cycle adjacent to the historical cycle. Then, based on the conversion ratios of each resource pair in the historical cycle, predict the predicted changing trends of each resource pair in the next historical cycle through the algorithm model to be trained. Thus, adjust the model parameters of the algorithm model to be trained through the real changing trends of each resource pair in the next historical cycle and the predicted changing trends of each resource pair in the next historical cycle to obtain the completed algorithm model. Then apply the aforementioned algorithm model to the step of determining the changing trend of the conversion ratio. Secondly, the method of adjusting the model parameters of the algorithm model to be trained can be to calculate the loss value based on the real changing trends of each resource pair in the next historical cycle and the predicted changing trends of each resource pair in the next historical cycle, and then determine whether the loss function of the algorithm model to be trained reaches the convergence condition through the loss value. If the convergence condition is not reached, use the loss value to adjust the model parameters of the algorithm model to be trained. If the convergence condition is reached, the algorithm model can be generated based on the current model parameters.
[0066] Step 306: Determine the target resource pairs whose changing trends of the conversion ratio meet the screening conditions from each resource pair.
[0067] Among them, the screening conditions are used to screen out resource pairs that meet the requirements, and the screening conditions can at least include the range of the amplitude of the change in the conversion ratio. And the target resource pair can be one resource pair or can include multiple resource pairs. Specifically, the server determines, from each resource pair, a target resource pair whose conversion ratio change trend meets the screening conditions, that is, the server screens out a target resource pair that meets the requirements from each resource pair. For example, there are resource pair A1, resource pair A2, and resource pair A3, and the conversion ratio change trend H1 of resource pair A1 meets the screening conditions, the conversion ratio change trend H2 of resource pair A2 meets the screening conditions, while the conversion ratio change trend H3 of resource pair A3 does not meet the screening conditions. Thus, it can be seen that the target resource pair includes resource pair A1 and resource pair A2.
[0068] Step 308: Convert the digital resources in the target resource pair according to the resource conversion method matched by the target resource pair.
[0069] Among them, the resource conversion method is used to convert digital resources, and the specific conversion method can be pre-configured for each resource pair. Secondly, the resource conversion can be: converting the digital resources corresponding to the digital resource types in the target resource pair with each other, or converting the digital resources corresponding to a certain digital resource type in the target resource pair into digital resources of other types, or converting digital resources of other types into digital resources corresponding to a certain digital resource type. No specific limitation is made here.
[0070] Specifically, the server converts the digital resources in the target resource pair according to the resource conversion method pre-matched by the target resource pair. For example, taking the previous example, the target resource pair includes resource pair A1 and resource pair A2. Then the server will convert the digital resources in resource pair A1 according to the resource conversion method matched by resource pair A1. And will convert the digital resources in resource pair A2 according to the resource conversion method matched by resource pair A2.
[0071] It can be understood that the previous example is only for understanding this solution, and the specific settings need to be flexibly determined based on the actual situation.
[0072] In the above method for converting digital resources, for a resource pair composed of any two mutually convertible digital resource types, the conversion ratio change trend in the next period is predicted through the real-time conversion ratio in the current period, so as to select a target resource pair whose conversion ratio change trend meets the screening conditions for resource conversion. Therefore, through the prediction of the conversion ratio change between adjacent periods, it is possible to select resource pairs for conversion more real-timely, avoid the time consumption of conversion adjustment for a long time, and thus improve the real-time performance of digital resource conversion.
[0073] In one embodiment, as Figure 4As shown, the screening conditions include the range of the change amplitude of the conversion ratio.
[0074] Among them, the range of the change amplitude of the conversion ratio can be a single amplitude range, and the range of the change amplitude of the conversion ratio includes a positive amplitude range and a negative amplitude range. For example, the range of the change amplitude of the conversion ratio I1 is from 5% to 20%, or the range of the change amplitude of the conversion ratio I2 is from -30% to -10%. Secondly, the range of the change amplitude of the conversion ratio can also include multiple different sub-ranges of the change amplitude of the conversion ratio. Similar to the range of the change amplitude of the conversion ratio, the sub-ranges of the change amplitude of the conversion ratio also have a positive amplitude range and a negative amplitude range.
[0075] Based on this, from each pair of resources, select the target pair of resources whose change trend of the conversion ratio meets the screening conditions, including:
[0076] Step 402, based on the change trend of the conversion ratio of each pair of resources respectively, determine the change amplitude of the conversion ratio of each pair of resources in the current period and the next period.
[0077] Among them, the change amplitude of the conversion ratio is used to describe the change amplitude between the predicted conversion ratio of the digital resource in the next period and the real-time conversion ratio in the current period in the pair of resources. And the change amplitude of the conversion ratio can be a positive change amplitude or a negative change amplitude. That is, when the change trend of the conversion ratio is decreasing, the change amplitude of the conversion ratio is negative. On the contrary, when the change trend of the conversion ratio is increasing, the change amplitude of the conversion ratio is positive.
[0078] Specifically, the server first determines the positive and negative amplitude results of the change amplitude of the conversion ratio of each pair of resources in the current period and the next period based on the change trend of the conversion ratio of each pair of resources respectively. Then, based on the change trend of the conversion ratio of each pair of resources respectively and the real-time conversion ratio in the current period, calculate the change amplitude of the conversion ratio. For example, if the change trend of the conversion ratio of the pair of resources A1 is decreasing, that is, the change amplitude of the conversion ratio of the pair of resources A1 is negative, such as: -12%. If the change trend of the conversion ratio of the pair of resources A2 is increasing, that is, the change amplitude of the conversion ratio of the pair of resources A2 is positive, such as: 16%. If the change trend of the conversion ratio of the pair of resources A3 is increasing, then the change amplitude of the conversion ratio of the pair of resources A3 is also positive, such as: 3%.
[0079] Step 404, from each pair of resources, select the target pair of resources whose change amplitude of the conversion ratio belongs to the range of the change amplitude of the conversion ratio.
[0080] Specifically, the server selects target resource pairs from each pair of resources whose absolute value of the conversion ratio change belongs to the range of the absolute value of the conversion ratio change. That is, the server can select the range of the absolute value of the conversion ratio change corresponding to the positive and negative absolute value results of the conversion ratio change, and then further determine whether the absolute value of the conversion ratio change of the resource pair belongs to the range of the absolute value of the conversion ratio change.
[0081] For example, in the case of a positive absolute value, the range of the absolute value of the conversion ratio change is 5% to 20%. From the foregoing example, it can be seen that the absolute value of the conversion ratio change of resource pair A2 is 16%, and the absolute value of the conversion ratio change of resource pair A3 is 3%. That is, the absolute value of the conversion ratio change of resource pair A2 belongs to the range of the absolute value of the conversion ratio change. Therefore, resource pair A2 can be selected as the target resource pair. Secondly, in the case of a negative absolute value, the range of the absolute value of the conversion ratio change is -30% to -10%. From the foregoing example, it can be seen that the absolute value of the conversion ratio change of resource pair A1 is -12%. That is, the absolute value of the conversion ratio change of resource pair A1 belongs to the range of the absolute value of the conversion ratio change. Therefore, resource pair A1 can also be selected as the target resource pair. At this time, it can be obtained that the target resource pairs include resource pair A1 and resource pair A2.
[0082] It can be understood that the foregoing example is only for understanding the present solution, and the specific setting needs to be flexibly determined based on the actual situation.
[0083] In this embodiment, considering the absolute value of the conversion ratio change of each resource pair in the current cycle and the next cycle, and specifically considering the positive and negative changes of the absolute value, the range of the absolute value of the conversion ratio change in different cases of positive and negative changes is selected for screening, so as to avoid selecting resource pairs with abnormal changes or small-range changes that do not require conversion, reduce the processing resources for unnecessary digital resource conversion, and ensure the accuracy of the target resource pair, thereby improving the reliability of digital resource conversion.
[0084] In one embodiment, the range of the absolute value of the conversion ratio change includes multiple different sub-ranges of the absolute value of the conversion ratio change; and each resource pair has its own matching resource conversion method for different sub-ranges of the absolute value of the conversion ratio change.
[0085] As can be seen from the foregoing embodiments, the range of the change amplitude of the conversion ratio includes a plurality of different sub-ranges of the change in the conversion ratio. For each resource pair, there is a respective matching resource conversion method for different sub-ranges of the change in the conversion ratio. Secondly, the sub-ranges of the change in the conversion ratio include: a sub-range of the increase in the conversion ratio, and a sub-range of the decrease in the conversion ratio. That is, the sub-range of the increase in the conversion ratio refers to the change amplitude of the conversion ratio obtained when the change trend of the conversion ratio is characterized by an increase, while the sub-range of the decrease in the conversion ratio refers to the change amplitude of the conversion ratio obtained when the change trend of the conversion ratio is characterized by a decrease. For example, the range I1 of the change amplitude of the conversion ratio includes a sub-range J1 of the increase in the conversion ratio, a sub-range J2 of the increase in the conversion ratio, and a sub-range J3 of the increase in the conversion ratio. The sub-range J1 of the increase in the conversion ratio is from 5% to 10%, the sub-range J2 of the increase in the conversion ratio is from 10% to 15%, and the sub-range J3 of the increase in the conversion ratio is from 15% to 20%. Secondly, the range I2 of the change amplitude of the conversion ratio includes a sub-range K1 of the decrease in the conversion ratio, a sub-range K2 of the decrease in the conversion ratio, and a sub-range K3 of the decrease in the conversion ratio. The sub-range K1 of the decrease in the conversion ratio is from -30% to -23%, the sub-range K2 of the decrease in the conversion ratio is from -23% to -16%, and the sub-range K3 of the decrease in the conversion ratio is from -16% to -10%.
[0086] Since the sub-ranges of the change in the conversion ratio include: a sub-range of the increase in the conversion ratio, and a sub-range of the decrease in the conversion ratio. Then the sub-range of the increase in the conversion ratio specifically has a matching resource conversion method for growth, and the sub-range of the decrease in the conversion ratio specifically has a matching resource conversion method for decline. For example, the matching resource conversion method for growth in the sub-range J1 of the increase in the conversion ratio is: convert 10% of the digital resources, the matching resource conversion method for growth in the sub-range J2 of the increase in the conversion ratio is: convert 20% of the digital resources, and the matching resource conversion method for growth in the sub-range J3 of the increase in the conversion ratio is: convert 30% of the digital resources. Secondly, the resource conversion method for decline in the sub-range K1 of the decrease in the conversion ratio is: convert 15% of the digital resources, the resource conversion method for decline in the sub-range K2 of the decrease in the conversion ratio is: convert 25% of the digital resources, and the resource conversion method for decline in the sub-range K3 of the decrease in the conversion ratio is: convert 35% of the digital resources.
[0087] Based on this, converting the digital resources in the target resource pair according to the resource conversion method matched by the target resource pair includes: determining the change amplitude of the conversion ratio of the target resource pair and the target sub-range of the change in the conversion ratio to which it belongs in the range of the change amplitude of the conversion ratio; converting the digital resources in the target resource pair according to the resource conversion method matched by the target resource pair for the target sub-range of the change in the conversion ratio.
[0088] Specifically, the server first determines the change amplitude of the conversion ratio of the target resource pair. Then it determines the target conversion ratio change sub-range to which the change amplitude of the conversion ratio belongs. As can be seen from the foregoing introduction, since the conversion ratio change sub-range includes: the conversion ratio increase sub-range and the conversion ratio decrease sub-range. Optionally, determining the target conversion ratio change sub-range to which the change amplitude of the conversion ratio of the target resource pair belongs in the conversion ratio change amplitude range includes: if the conversion ratio change trend indicates that the predicted conversion ratio of the resource pair in the next cycle is increasing compared to the real-time conversion ratio, determining the target conversion ratio increase sub-range to which the target resource pair belongs in the conversion ratio change amplitude range; if the conversion ratio change trend indicates that the predicted conversion ratio of the resource pair in the next cycle is decreasing compared to the real-time conversion ratio, determining the target conversion ratio decrease sub-range to which the target resource pair belongs in the conversion ratio change amplitude range.
[0089] That is, the server needs to first determine the positive and negative amplitude results of the conversion ratio change amplitude, and select the conversion ratio increase sub-range or the conversion ratio decrease sub-range for sub-range screening through the positive and negative amplitude results, thereby determining the target conversion ratio change sub-range to which the conversion ratio change amplitude belongs. For example, the conversion ratio increase sub-range J1 is 5% to 10%, the conversion ratio increase sub-range J2 is 10% to 15%, and the conversion ratio increase sub-range J3 is 15% to 20%. The conversion ratio decrease sub-range K1 is -30% to -23%, the conversion ratio decrease sub-range K2 is -23% to -16%, and the conversion ratio decrease sub-range K3 is -16% to -10%.
[0090] Based on the foregoing example, the target resource pair includes resource pair A1 and resource pair A2. The conversion ratio change trend of resource pair A1 is decreasing, that is, resource pair A1 needs to be matched with the conversion ratio decrease sub-range K1 to the conversion ratio decrease sub-range K3, and the conversion ratio change amplitude of resource pair A1 is specifically -12%, that is, the conversion ratio change amplitude of resource pair A1 specifically belongs to the conversion ratio decrease sub-range K3 (-16% to -10%). Therefore, for resource pair A1, it can be known that the target conversion ratio change sub-range to which resource pair A1 belongs is the conversion ratio decrease sub-range K3.
[0091] Similarly, the conversion ratio change trend of resource pair A2 is increasing, that is, resource pair A2 needs to be matched with the conversion ratio increase sub-range J1 to the conversion ratio increase sub-range J3, and the conversion ratio change amplitude of resource pair A2 is specifically 16%, that is, the conversion ratio change amplitude of resource pair A2 specifically belongs to the conversion ratio increase sub-range J3 (15% to 20%). Therefore, for resource pair A2, it can be known that the target conversion ratio change sub-range to which resource pair A2 belongs is the conversion ratio increase sub-range J3.
[0092] Further, the server converts the digital resources in the target resource pair according to the resource conversion method matched for the target conversion ratio change sub-range with respect to the target resources. For example, as can be seen from the foregoing example, the target resource pair includes resource pair A1 and resource pair A2. The target conversion ratio change sub-range to which resource pair A1 belongs is the conversion ratio decline sub-range K3, and the target conversion ratio change sub-range to which resource pair A2 belongs is the conversion ratio decline sub-range J3. Then, for resource pair A1, the server will convert 35% of the digital resources in resource pair A1 according to the growth resource conversion method matched for the conversion ratio decline sub-range K3. Similarly, for resource pair A2, the server will convert 30% of the digital resources in resource pair A2 according to the growth resource conversion method matched for the conversion ratio growth sub-range J3.
[0093] It can be understood that the foregoing example is only for understanding this solution, and the specific settings need to be flexibly determined based on the actual situation.
[0094] In this embodiment, different conversion ratio change sub-ranges are first considered, and the target conversion ratio change sub-range to which the target resource pair belongs is located to ensure the reliability of the sub-range when the conversion ratio change trend is increasing or decreasing. Furthermore, the digital resources of resource pairs belonging to different sub-ranges are more accurately converted according to the actual needs, thereby improving the feasibility and accuracy of digital resource conversion.
[0095] In one embodiment, as Figure 5 shown, the target resource pair includes a first digital resource type and a second digital resource type, and the conversion ratio is used to represent the ratio of conversion from the first digital resource type to the second digital resource type. For example, the first digital resource type is type A, and the second digital resource type is type B, that is, the conversion ratio is used to represent the ratio of conversion from type A to type B.
[0096] Based on this, converting the digital resources in the target resource pair according to the resource conversion method matched by the target resource pair includes:
[0097] Step 502, if the conversion ratio change trend is characterized by a decline, convert the first digital resource matched with the first digital resource type in the target resource pair into the transit digital resource matched with the transit digital resource type according to the transit digital resource type configured in the resource conversion method matched by the target resource pair.
[0098] Among them, the transit digital resource type is specifically the hedge digital resource type. The aforementioned hedge is a defensive investment strategy, usually referring to hedging the fluctuations of the underlying spot assets. Currently, the hedge digital resource types can be: type B, type C, and type D.
[0099] Specifically, in the case where the change trend of the conversion ratio is characterized by a decrease, as can be seen from the foregoing embodiments, the specific conversion method of the target resource to the matched resource is that the target resource belongs to a sub-range of the decreasing conversion ratio, and there is a corresponding decreasing resource conversion method. Therefore, the server needs to convert the first digital resource matched by the first digital resource type in the target resource pair into a transit digital resource matched by the transit digital resource type according to the transit digital resource type configured in the conversion method of the target resource to the matched resource. For example, in the case where the change trend of the conversion ratio is characterized by a decrease, at this time, the target conversion ratio change sub-range to which the resource pair A2 in the target resource pair belongs is the conversion ratio decrease sub-range J3. At this time, the server converts 30% of the first digital resource matched by the first digital resource type in the target resource pair into a transit digital resource matched by the transit digital resource type.
[0100] For the convenience of further understanding, an actual application example is given with the first digital resource type being type A, the second digital resource type being type B, and the transit digital resource type being type C. If the change trend of the conversion ratio from type A to type B in the resource pair A2 in the next period is characterized by a decrease, then at this time, 30% of the type A digital resources matched by type A need to be converted into type C digital resources matched by type C.
[0101] Step 504, if the change trend of the conversion ratio is characterized by an increase, convert the existing digital resource matched by the existing digital resource type configured in the conversion method of the target resource pair to the first digital resource type matched in the target resource pair; the existing digital resource type is the existing digital resource type of the target object.
[0102] Among them, the existing digital resource type is the existing digital resource type of the target object, and the target object is a multi-currency account object for the target resource pair. Specifically, in the case where the change trend of the conversion ratio is characterized by an increase, as can be seen from the foregoing embodiments, the specific conversion method of the target resource pair to the matched resource is that the target resource pair belongs to a sub-range of the increasing conversion ratio, and there is a corresponding increasing resource conversion method. Therefore, the server needs to convert the existing digital resource matched by the existing digital resource type configured in the conversion method of the target resource pair to the first digital resource type matched in the target resource pair. For example, in the case where the change trend of the conversion ratio is characterized by an increase, at this time, the target conversion ratio change sub-range to which the resource pair A1 in the target resource pair belongs is the conversion ratio decrease sub-range K3. At this time, the server first determines the existing digital resource type to be matched, and then converts 30% of the existing digital resources matched by the existing digital resource type of the target object into the first digital resources matched by the first digital resource type in the resource pair A1.
[0103] For better understanding, take the first digital resource type as Class A, the second digital resource type as Class B, and the existing digital resource type as Class D for practical application examples. If the changing trend of the conversion ratio of converting Class A in A1 to Class B in the next cycle is characterized as known, then at this time, 30% of the digital resources of Class D that match the target object need to be converted into the digital resources of Class A that match Class A.
[0104] It can be understood that the foregoing examples are only for understanding this solution, and the specific settings need to be flexibly determined based on the actual situation.
[0105] In this embodiment, considering the resource conversion methods configured for different sub-ranges in actual situations, it is ensured that digital resource conversions for resource pairs belonging to different sub-ranges can be more accurately combined with actual requirements, thereby improving the feasibility and accuracy of digital resource conversions.
[0106] In one embodiment, in actual applications, considering that the values of digital resources included in the possible account objects may be different, a floating conversion range can be set for different digital resource types, and the floating conversion range can be divided into an upward conversion range and a downward conversion range. That is, during the conversion process, the growth and decline of the real-time conversion ratio are considered separately, and different conversion ranges are set.
[0107] That is, it is necessary to pre-configure a downward resource convertible range and an upward resource convertible range for each digital resource type. For example, configure a downward resource convertible range L1 and an upward resource convertible range M1 for digital resource type B1, configure a downward resource convertible range L2 and an upward resource convertible range M2 for digital resource type B2, and configure a downward resource convertible range L3 and an upward resource convertible range M3 for digital resource type B3.
[0108] For example, the downward resource convertible range L1 is from digital resource C1 of 1000 to digital resource C1 of 2000, and the upward resource convertible range M1 is from digital resource C1 of 1500 to digital resource C1 of 2500. The downward resource convertible range L2 is from digital resource C2 of 1200 to digital resource C2 of 2400, and the upward resource convertible range M2 is from digital resource C2 of 1800 to digital resource C2 of 3000. And the downward resource convertible range L3 is from digital resource C3 of 1500 to digital resource C3 of 2800, and the upward resource convertible range M3 is from digital resource C3 of 2000 to digital resource C3 of 3000.
[0109] Based on this, when the change trend of the conversion ratio indicates that the predicted conversion ratio of the resource pair in the next cycle is lower than the real-time conversion ratio, converting the first digital resource matching the first digital resource type in the target resource pair into a transit digital resource matching the transit digital resource type includes: determining the convertible range of the declining resources configured for the first digital resource type; within the convertible range of the declining resources, converting the first digital resource matching the first digital resource type in the target resource pair into a transit digital resource matching the transit digital resource type; the reduced first digital resource after conversion belongs to the convertible range of the declining resources.
[0110] Among them, since the first digital resource is converted into a transit digital resource, the reduced first digital resource after conversion belongs to the convertible range of the declining resources. Specifically, the server first determines the convertible range of the declining resources configured for the first digital resource type, and then within the convertible range of the declining resources, converts the first digital resource matching the first digital resource type in the target resource pair into a transit digital resource matching the transit digital resource type. For example, the first digital resource is the digital resource C1 corresponding to the digital resource type B1. Through the foregoing example, the convertible range L1 of the declining resources configured for the digital resource type B1 is: the digital resource C1 from 1000 to the digital resource C1 of 2000. Therefore, the server can convert at most the digital resource C1 of 2000 into a transit digital resource, and the server needs to convert at least the digital resource C1 of 1000 into a transit digital resource.
[0111] In another alternative embodiment, when the change trend of the conversion ratio indicates that the predicted conversion ratio of the resource pair in the next cycle is higher than the real-time conversion ratio, converting the existing digital resource matching the existing digital resource type into the first digital resource matching the first digital resource type in the target resource pair includes: determining the convertible range of the growing resources configured for the first digital resource type, and based on the convertible range of the growing resources, converting the existing digital resource matching the existing digital resource type into the first digital resource matching the first digital resource type in the target resource pair; the increased first digital resource after conversion belongs to the convertible range of the growing resources.
[0112] Among them, since the existing digital resources are converted into the first digital resources, the increased first digital resources after conversion belong to the convertible range of growth resources. Specifically, the server first determines the convertible range of growth resources configured for the first digital resource type, and then within the convertible range of growth resources, converts the existing digital resources matching the existing digital resource type into the first digital resources matching the first digital resource type in the target resource pair. For example, the first digital resource is the digital resource C1 corresponding to the digital resource type B1. From the foregoing example, the convertible range M1 of growth resources configured for the digital resource type B1 is: the digital resource C1 from 1500 to the digital resource C1 of 2500. Therefore, when converting the existing digital resources into the digital resource C1, at most 2500 of the digital resource C1 can be converted, and the server needs to convert at least 1500 of the digital resource C1.
[0113] It can be understood that the foregoing example is only for understanding the present solution, and the specific settings need to be flexibly determined based on the actual situation.
[0114] In this embodiment, considering that the values of the digital resources included in the possible account objects may be different, different convertible ranges of decline resources and convertible ranges of growth resources are set for different digital resource types, so as to perform corresponding data resource conversion for different digital resources, thereby making the digital resource conversion more in line with the actual application requirements and improving the flexibility of digital resource conversion.
[0115] In an alternative embodiment, different convertible ratios of decline resources and convertible ratios of growth resources can also be set for different digital resource types. Based on this, the convertible ratio of decline resources is positively correlated with the change trend of the conversion ratio when it shows a decline, that is, when the change trend of the conversion ratio shows a decline, the greater the change amplitude of the obtained conversion ratio, the greater the convertible ratio of decline resources. Similarly, it can be known that the convertible ratio of growth resources is positively correlated with the change trend of the conversion ratio when it shows an increase, that is, when the change trend of the conversion ratio shows an increase, the greater the change amplitude of the obtained conversion ratio, the greater the convertible ratio of growth resources.
[0116] That is, it is necessary to pre-configure the convertible ratio of decline resources and the convertible ratio of growth resources for each digital resource type. For example, configure the convertible ratio of decline resources N1 and the convertible ratio of growth resources O1 for the digital resource type B1, configure the convertible ratio of decline resources N2 and the convertible ratio of growth resources O2 for the digital resource type B2, and configure the convertible ratio of decline resources N3 and the convertible ratio of growth resources O3 for the digital resource type B3.
[0117] For example, the decreasing resource conversion ratio N1 is: 10% to 20% of the digital resource C1, and the increasing resource conversion ratio O1 is: 15% to 25% of the digital resource C1. The decreasing resource conversion ratio N2 is: 1200% to 24% of the digital resource C2, and the increasing resource conversion ratio O2 is: 18% to 30% of the digital resource C2. And the decreasing resource conversion ratio N3 is: 15% to 28% of the digital resource C3, and the increasing resource conversion ratio O3 is: 20% to 30% of the digital resource C3.
[0118] Based on this, converting the first digital resource matching the first digital resource type in the target resource pair into the intermediate digital resource matching the intermediate digital resource type includes: determining the decreasing resource conversion ratio configured for the first digital resource type; within the decreasing resource conversion ratio, converting the first digital resource matching the first digital resource type in the target resource pair into the intermediate digital resource matching the intermediate digital resource type; the ratio between the reduced first digital resource after conversion and the first digital resource before conversion belongs to the decreasing resource conversion ratio.
[0119] Among them, since the first digital resource is converted into the intermediate digital resource, the ratio between the reduced first digital resource after conversion and the first digital resource before conversion belongs to the decreasing resource conversion ratio. Specifically, the server first determines the decreasing resource conversion ratio configured for the first digital resource type, and then within the decreasing resource conversion ratio, converts the first digital resource matching the first digital resource type in the target resource pair into the intermediate digital resource matching the intermediate digital resource type. For example, the first digital resource is the digital resource C1 corresponding to the digital resource type B1. Through the foregoing example, it can be seen that the decreasing resource conversion ratio N1 configured for the digital resource type B1 is: 10% to 20% of the digital resource C1. Therefore, the server can convert at most 20% of the digital resource C1 into the intermediate digital resource, and the server also needs to convert at least 10% of the digital resource C1 into the intermediate digital resource.
[0120] In another alternative embodiment, converting the existing digital resource matching the existing digital resource type into the first digital resource matching the first digital resource type in the target resource pair includes: determining the increasing resource conversion ratio configured for the first digital resource type; based on the increasing resource conversion ratio, converting the existing digital resource matching the existing digital resource type into the first digital resource matching the first digital resource type in the target resource pair; the ratio between the increased first digital resource after conversion and the first digital resource before conversion belongs to the increasing resource conversion ratio.
[0121] Among them, since the existing digital resources are converted into the first digital resources, the proportion of the first digital resources increased after conversion to the first digital resources before conversion belongs to the convertible proportion of growth resources. Specifically, the server first determines the convertible proportion of growth resources configured for the first digital resource type, and then converts the existing digital resources matching the existing digital resource type into the first digital resources matching the first digital resource type in the target resource pair according to the convertible proportion of growth resources. For example, the first digital resource is the digital resource C1 corresponding to the digital resource type B1. Through the foregoing example, the convertible proportion O1 of growth resources configured for the digital resource type B1 is: 15% to 25% of the digital resource C1. Therefore, when converting the existing digital resources into the digital resource C1, at most 25% of the digital resource C1 can be converted, and the server needs to convert at least 15% of the digital resource C1.
[0122] It can be understood that the foregoing example is only for understanding this solution, and the specific settings need to be flexibly determined based on the actual situation.
[0123] In this embodiment, different convertible proportions of decline resources and convertible proportions of growth resources are set for different digital resource types. By setting the conversion ratio, the corresponding data resource conversion is performed for different digital resources, so that the digital resource conversion performed is more in line with the actual application requirements, and the flexibility of digital resource conversion can also be improved.
[0124] In one embodiment, as Figure 6 shown, there are multiple intermediate digital resource types configured in the resource conversion method matched by the target resource pair. Among them, there is a resource conversion priority among the multiple intermediate digital resource types. For example, the resource conversion method is configured with an intermediate digital resource type P1, an intermediate digital resource type P2, and an intermediate digital resource type P3. And the resource conversion priority of the intermediate digital resource type P1 is greater than the resource conversion priority of the intermediate digital resource type P2, and the resource conversion priority of the intermediate digital resource type P2 is greater than the resource conversion priority of the intermediate digital resource type P3.
[0125] Based on this, converting the first digital resources matching the first digital resource type in the target resource pair into the intermediate digital resources matching the intermediate digital resource type includes:
[0126] Step 602, determine the target intermediate digital resource type from the multiple intermediate digital resource types according to the resource conversion priority configured for each intermediate digital resource type.
[0127] Among them, the target intermediate digital resource type can be one or more intermediate digital resource types. Specifically, the server determines the target intermediate digital resource type from multiple intermediate digital resource types according to the resource conversion priority configured for each intermediate digital resource type. When the target intermediate digital resource type is one, the server can select the intermediate digital resource type with the highest resource conversion priority from multiple intermediate digital resource types as the target intermediate digital resource type. For example, in the resource conversion method, there are intermediate digital resource type P1, intermediate digital resource type P2, and intermediate digital resource type P3 configured. Through the foregoing example, it can be seen that the resource conversion priority of intermediate digital resource type P1 is the highest. At this time, it can be determined that intermediate digital resource type P1 is the target intermediate digital resource type.
[0128] Secondly, when the target intermediate digital resource type is multiple, the server can sort based on the resource conversion priority configured for each intermediate digital resource type, and then select multiple intermediate digital resource types with higher resource conversion priority based on a preset quantity as the target intermediate digital resource type. For example, in the resource conversion method, there are intermediate digital resource type P1, intermediate digital resource type P2, and intermediate digital resource type P3 configured. At this time, two intermediate digital resource types are required as the target intermediate digital resource type. Then, the intermediate digital resource type P1 with a higher resource conversion priority and intermediate digital resource type P2 can be selected as the target intermediate digital resource type.
[0129] Step 604, convert the first digital resource matching the first digital resource type in the target resource pair into the target intermediate digital resource matching the target intermediate digital resource type.
[0130] Specifically, the server converts the first digital resource matching the first digital resource type in the target resource pair into the target intermediate digital resource matching the target intermediate digital resource type. For example, taking intermediate digital resource type P1 as the target intermediate digital resource type, and intermediate digital resource type P1 is specifically digital resource type B4. At this time, the first digital resource can be converted into the target intermediate digital resource matching digital resource type B4. Or, taking intermediate digital resource type P1 and intermediate digital resource type P2 as the target intermediate digital resource types, and intermediate digital resource type P1 is specifically digital resource type B4, while intermediate digital resource type P2 is specifically digital resource type B5. At this time, the first digital resource can be converted into the target intermediate digital resource matching digital resource type B4 and the target intermediate digital resource matching digital resource type B5 respectively. The specific way of converting values can consider the resource convertible range and resource conversion ratio introduced in the foregoing example, which is not limited here.
[0131] It is understandable that the foregoing examples are only for understanding this solution, and the specific settings need to be flexibly determined based on the actual situation.
[0132] In this embodiment, considering the resource conversion priority, digital resources with a higher resource conversion priority are selected for resource conversion to ensure that the digital resource conversion better meets the resource conversion requirements of the target object, that is, better meets the actual application requirements of the target object.
[0133] In one embodiment, the method for digital resource conversion further includes:
[0134] Step 702, determining a candidate resource pair containing the primary digital resource type of the target object from the resource pairs.
[0135] Wherein, the target object is a multi-currency account object, and the primary digital resource type can be the resource type set for the target object. For example, the target object selects type A as the primary digital resource type. It can also be determined based on the region where the target object is located. For example, if the region where the target object is located is the United States, then the primary digital resource type can be determined as type B.
[0136] Specifically, the server first determines the target object and obtains the primary digital resource type of the target object, and thus determines a candidate resource pair containing the primary digital resource type of the target object from the resource pairs. For example, resource pair A1 includes digital resource type B1 and digital resource type B2, resource pair A2 includes digital resource type B2 and digital resource type B3, and resource pair A3 includes digital resource type B3 and digital resource type B4. If the primary digital resource type is digital resource type B2, then resource pair A1 and resource pair A2 including digital resource type B2 can be selected from resource pair A1 to resource pair A3, and resource pair A1 and resource pair A2 can be determined as candidate resource pairs.
[0137] Based on this, from each resource pair, a target resource pair whose conversion ratio change trend meets the screening conditions is selected, including: Step 704, selecting a target resource pair whose conversion ratio change trend meets the screening conditions from each candidate resource pair.
[0138] Specifically, the server selects a target resource pair whose conversion ratio change trend meets the screening conditions from each candidate resource pair in a similar manner as introduced in the foregoing embodiment. That is, when the screening conditions include the conversion ratio change amplitude range, first, based on the conversion ratio change trend of each candidate resource pair, the conversion ratio change amplitude of each candidate resource pair in the current cycle and the next cycle is determined, and then a target resource pair whose conversion ratio change amplitude belongs to the conversion ratio change amplitude range is selected from each candidate resource pair.
[0139] And, according to the resource conversion method matched by the target resource pair, convert the digital resources in the target resource pair, including: Step 706, convert the digital resources of the target object according to the resource conversion method matched by the target resource pair.
[0140] Specifically, the server converts the digital resources of the target object according to the resource conversion method matched by the target resource pair in a similar manner as introduced in the foregoing embodiments. For example, the conversion ratio is used to represent the ratio of the primary digital resource type to another digital resource type. Based on this, if the change trend of the conversion ratio is characterized by a decrease, at this time, convert the primary digital resource into the intermediate digital resource matched by the intermediate digital resource type. If the change trend of the conversion ratio is characterized by an increase, convert the existing digital resource matched by the existing digital resource type into the primary digital resource. It should be understood that the specific implementation manners of Step 704 and Step 706 are similar to those of the foregoing embodiments and will not be elaborated here.
[0141] In this embodiment, considering the primary digital resource type of the target object can ensure that the target object is more targeted when performing digital resource conversion, and can also reduce the data processing volume, thereby improving the efficiency of digital resource conversion.
[0142] Based on the detailed introduction of the foregoing embodiments, the complete process of the method for digital resource conversion in the embodiments of the present application will be introduced below. In one embodiment, as Figure 8 shown, a method for digital resource conversion is provided. Taking the method being applied to Figure 1 the server 104 as an example for illustration, it can be understood that the method can also be applied to the terminal 102, and can also be applied to a system including the terminal 102 and the server 104, and is implemented through the interaction between the terminal 102 and the server 104. In this embodiment, the method includes the following steps:
[0143] Step 801, determine a candidate resource pair containing the primary digital resource type of the target object from the resource pairs, and determine the real-time conversion ratio of the candidate resource pair in the current period.
[0144] Among them, the target object is a multi-currency account object, and the primary digital resource type can be the resource type set for the target object. For example, the target object selects Class A as the primary digital resource type. It can also be determined based on the region where the target object is located. For example, if the region where the target object is located is the United States, then the primary digital resource type can be determined as Class B. Specifically, the server first determines the target object and obtains the primary digital resource type of the target object, and thus determines a candidate resource pair containing the primary digital resource type of the target object from the resource pairs.
[0145] Specifically, the server obtains, from the digital resource conversion data source, the first real-time conversion ratio of each candidate resource pair in the current cycle; obtains, from multiple digital resource conversion channels, the second real-time conversion ratio of each candidate resource pair in the current cycle; and determines the real-time conversion ratio of the two digital resource types in the candidate resource pair in the current cycle based on the first real-time conversion ratio and the second real-time conversion ratio of each candidate resource pair.
[0146] Step 802: Based on the real-time conversion ratio, determine the change trend of the conversion ratio of each candidate resource pair in the next cycle.
[0147] Among them, the change trend of the conversion ratio characterizes whether the predicted conversion ratio of the candidate resource pair in the next cycle is increasing or decreasing compared to the real-time conversion ratio. And the change trend of the conversion ratio can specifically include the change amplitude of the conversion ratio of each candidate resource pair in the current cycle and the next cycle. Specifically, the server predicts the change trend of the conversion ratio of each candidate resource pair in the next cycle based on the real-time conversion ratio through the trained algorithm model.
[0148] Step 803: Based on the change trend of the conversion ratio of each candidate resource pair, determine the change amplitude of the conversion ratio of each candidate resource pair in the current cycle and the next cycle.
[0149] Among them, the change amplitude of the conversion ratio is used to describe the change amplitude between the predicted conversion ratio of the digital resource in the resource pair in the next cycle and the real-time conversion ratio in the current cycle. And the change amplitude of the conversion ratio can be a positive change amplitude or a negative change amplitude, that is, when the change trend of the conversion ratio is decreasing, the change amplitude of the conversion ratio is negative, and vice versa, when the change trend of the conversion ratio is increasing, the change amplitude of the conversion ratio is positive.
[0150] Specifically, the server first determines the positive and negative amplitude results of the change amplitude of the conversion ratio of each resource pair in the current cycle and the next cycle based on the change trend of the conversion ratio of each resource pair. Then, based on the change trend of the conversion ratio of each resource pair and the real-time conversion ratio in the current cycle, it calculates the change amplitude of the conversion ratio.
[0151] Step 804: Select the target resource pairs whose change amplitudes of the conversion ratio belong to the range of the change amplitudes of the conversion ratio from among the candidate resource pairs.
[0152] Specifically, the server selects the target resource pairs whose change amplitudes of the conversion ratio belong to the range of the change amplitudes of the conversion ratio from among the resource pairs. That is, the server can select the range of the change amplitudes of the conversion ratio corresponding to the positive and negative amplitude results through the positive and negative amplitude results of the change amplitude of the conversion ratio, and then further determine whether the change amplitude of the conversion ratio of the resource pair belongs to the range of the change amplitudes of the conversion ratio.
[0153] Step 805: If the change trend of the conversion ratio indicates that the predicted conversion ratio of the resource pair in the next cycle is increasing compared to the real-time conversion ratio, determine the target conversion ratio growth sub-range to which the target resource pair belongs within the change amplitude range of the conversion ratio.
[0154] Specifically, the server first needs to determine the positive and negative amplitude results of the change amplitude of the conversion ratio, and select the conversion ratio growth sub-range for sub-range screening through the positive and negative amplitude results, so as to determine the target conversion ratio change sub-range to which the change amplitude of the conversion ratio belongs. For example, the conversion ratio growth sub-range J1 is 5% to 10%, the conversion ratio growth sub-range J2 is 10% to 15%, and the conversion ratio growth sub-range J3 is 15% to 20%. The conversion ratio decline sub-range K1 is -30% to -23%, the conversion ratio decline sub-range K2 is -23% to -16%, and the conversion ratio decline sub-range K3 is -16% to -10%.
[0155] Based on the foregoing example, it can be seen that the target resource pair includes resource pair A1 and resource pair A2. The change trend of the conversion ratio of resource pair A2 is increasing, that is, resource pair A2 needs to be matched with the conversion ratio growth sub-range J1 to the conversion ratio growth sub-range J3, and the change amplitude of the conversion ratio of resource pair A2 is specifically 16%, that is, the change amplitude of the conversion ratio of resource pair A2 specifically belongs to the conversion ratio growth sub-range J3 (15% to 20%). Therefore, for resource pair A2, it can be known that the target conversion ratio change sub-range to which resource pair A2 belongs is the conversion ratio growth sub-range J3.
[0156] Step 806: If the change trend of the conversion ratio indicates that the predicted conversion ratio of the resource pair in the next cycle is decreasing compared to the real-time conversion ratio, determine the target conversion ratio decline sub-range to which the target resource pair belongs within the change amplitude range of the conversion ratio.
[0157] Specifically, the server first needs to determine the positive and negative amplitude results of the change amplitude of the conversion ratio, and select the conversion ratio growth sub-range for sub-range screening through the positive and negative amplitude results, so as to determine the target conversion ratio change sub-range to which the change amplitude of the conversion ratio belongs. For example, the change trend of the conversion ratio of resource pair A1 is decreasing, that is, resource pair A1 needs to be matched with the conversion ratio decline sub-range K1 to the conversion ratio decline sub-range K3, and the change amplitude of the conversion ratio of resource pair A1 is specifically -12%, that is, the change amplitude of the conversion ratio of resource pair A1 specifically belongs to the conversion ratio decline sub-range K3 (-16% to -10%). Therefore, for resource pair A1, it can be known that the target conversion ratio change sub-range to which resource pair A1 belongs is the conversion ratio decline sub-range K3.
[0158] Step 807: Convert the digital resources in the target resource pair of the target object according to the resource conversion method matched for the target conversion ratio change sub-range with respect to the target resources.
[0159] Among them, the target conversion ratio change sub-range includes a target conversion ratio increase sub-range and a target conversion ratio decrease sub-range. Specifically, the server specifically converts the digital resources in the target resource pair of the target object according to the resource conversion method matched for the target conversion ratio change sub-range with respect to the target resources.
[0160] It should be understood that the specific implementation manners of Steps 801 to 807 are similar to those of the foregoing embodiments, and will not be elaborated herein.
[0161] It should be understood that although the steps in the flowcharts involved in the foregoing embodiments are sequentially shown according to the indications of the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise clearly stated in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the foregoing embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same moment, but can be executed at different moments. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or alternately with at least a part of other steps or steps or stages in other steps.
[0162] Based on the same inventive concept, an embodiment of the present application also provides a digital resource conversion device for implementing the method for digital resource conversion involved above. The solution provided by this device for solving problems is similar to the solution described in the above method. Therefore, the specific limitations in one or more embodiments of the digital resource conversion device provided below can refer to the limitations on the method for digital resource conversion in the foregoing text, and will not be elaborated herein.
[0163] In one embodiment, as Figure 9 shown, a digital resource conversion device is provided, including: a conversion ratio determination module 902, a change trend determination module 904, a target resource pair determination module 906, and a digital resource conversion module 908, where:
[0164] The conversion ratio determination module 902 is configured to determine the real-time conversion ratio of two digital resource types in the resource pair for any resource pair composed of two mutually convertible digital resource types in the current period;
[0165] A change trend determination module 904, configured to determine, based on the real-time conversion ratio, the change trend of the conversion ratio of each resource pair in the next cycle, where the change trend of the conversion ratio indicates whether the predicted conversion ratio of the resource pair in the next cycle is increasing or decreasing compared to the real-time conversion ratio;
[0166] A target resource pair determination module 906, configured to determine, from all resource pairs, target resource pairs whose change trend of the conversion ratio meets the screening criteria;
[0167] A digital resource conversion module 908, configured to convert the digital resources in the target resource pairs according to the resource conversion method matched by the target resource pairs.
[0168] In one embodiment, the screening criteria include a range of change amplitudes of the conversion ratio;
[0169] The target resource pair determination module 906 is specifically configured to determine, based on the change trend of the conversion ratio of each resource pair, the change amplitude of the conversion ratio of each resource pair in the current cycle and the next cycle; and select, from all resource pairs, target resource pairs whose change amplitude of the conversion ratio belongs to the range of change amplitudes of the conversion ratio.
[0170] In one embodiment, the range of change amplitudes of the conversion ratio includes multiple different sub-ranges of change amplitudes of the conversion ratio; and each resource pair has its own matched resource conversion method for different sub-ranges of change amplitudes of the conversion ratio;
[0171] The digital resource conversion module 908 is specifically configured to determine the target sub-range of change amplitudes of the conversion ratio to which the change amplitude of the conversion ratio of the target resource pair belongs in the range of change amplitudes of the conversion ratio; and convert the digital resources in the target resource pairs according to the resource conversion method matched by the target resource pair for the target sub-range of change amplitudes of the conversion ratio.
[0172] In one embodiment, the sub-ranges of change amplitudes of the conversion ratio include: a sub-range of increasing conversion ratio, and a sub-range of decreasing conversion ratio;
[0173] The digital resource conversion module 908 is specifically configured to, if the change trend of the conversion ratio indicates that the predicted conversion ratio of the resource pair in the next cycle is increasing compared to the real-time conversion ratio, determine the target sub-range of increasing conversion ratio to which the target resource pair belongs in the range of change amplitudes of the conversion ratio;
[0174] The digital resource conversion module 908 is specifically configured to, if the change trend of the conversion ratio indicates that the predicted conversion ratio of the resource pair in the next cycle is decreasing compared to the real-time conversion ratio, determine the target sub-range of decreasing conversion ratio to which the target resource pair belongs in the range of change amplitudes of the conversion ratio.
[0175] In one embodiment, the target resource pair includes a first digital resource type and a second digital resource type, and the conversion ratio is used to represent the ratio of the conversion of the first digital resource type to the second digital resource type;
[0176] The digital resource conversion module 908 is specifically configured to, if the change trend of the conversion ratio is characterized as decreasing, convert the first digital resource matched with the first digital resource type in the target resource pair into the transit digital resource matched with the transit digital resource type according to the transit digital resource type configured in the resource conversion method matched with the target resource pair;
[0177] The digital resource conversion module 908 is specifically configured to, if the change trend of the conversion ratio is characterized as increasing, convert the existing digital resource matched with the existing digital resource type into the first digital resource matched with the first digital resource type in the target resource pair according to the existing digital resource type configured in the resource conversion method matched with the target resource pair; the existing digital resource type is the digital resource type that the target object already has.
[0178] In one embodiment, the digital resource conversion module 908 is specifically configured to determine the downward resource convertible range configured for the first digital resource type; within the downward resource convertible range, convert the first digital resource matched with the first digital resource type in the target resource pair into the transit digital resource matched with the transit digital resource type; the reduced first digital resource after conversion belongs to the downward resource convertible range;
[0179] The digital resource conversion module 908 is specifically configured to determine the upward resource convertible range configured for the first digital resource type; based on the upward resource convertible range, convert the existing digital resource matched with the existing digital resource type into the first digital resource matched with the first digital resource type in the target resource pair; the increased first digital resource after conversion belongs to the upward resource convertible range.
[0180] In one embodiment, the digital resource conversion module 908 is specifically configured to determine the downward resource convertible ratio configured for the first digital resource type; within the downward resource convertible ratio, convert the first digital resource matched with the first digital resource type in the target resource pair into the transit digital resource matched with the transit digital resource type; the ratio between the reduced first digital resource after conversion and the first digital resource before conversion belongs to the downward resource convertible ratio;
[0181] The digital resource conversion module 908 is specifically configured to determine the convertible ratio of growth resources configured for the first digital resource type; based on the convertible ratio of growth resources, convert the existing digital resources matching the existing digital resource type into the first digital resources matching the first digital resource type in the target resource pair; the ratio of the increased first digital resources after conversion to the first digital resources before conversion belongs to the convertible ratio of growth resources.
[0182] In one embodiment, the convertible ratio of decline resources and the change trend of the conversion ratio are positively correlated when the change trend is decline; the convertible ratio of growth resources and the change trend of the conversion ratio are positively correlated when the change trend is growth.
[0183] In one embodiment, multiple intermediate digital resource types are configured in the resource conversion method matched by the target resource pair;
[0184] The digital resource conversion module 908 is specifically configured to determine the target intermediate digital resource type from multiple intermediate digital resource types according to the resource conversion priority configured for each intermediate digital resource type; convert the first digital resources matching the first digital resource type in the target resource pair into the target intermediate digital resources matching the target intermediate digital resource type.
[0185] In one embodiment, the digital resource conversion device further includes a candidate resource pair determination module;
[0186] The candidate resource pair determination module determines the candidate resource pairs that include the main digital resource type of the target object from the resource pairs;
[0187] The target resource pair determination module is specifically configured to select the target resource pairs whose change trend of the conversion ratio meets the screening conditions from each candidate resource pair;
[0188] The digital resource conversion module is specifically configured to convert the digital resources of the target object according to the resource conversion method matched by the target resource pair.
[0189] In one embodiment, the conversion ratio determination module is configured to obtain the first real-time conversion ratio of each resource pair in the current period from the digital resource conversion data source; obtain the second real-time conversion ratio of each resource pair in the current period from multiple digital resource conversion channels; determine the real-time conversion ratio of the two digital resource types in the resource pair in the current period through the first real-time conversion ratio and the second real-time conversion ratio of each resource pair.
[0190] Each module in the above digital resource conversion device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above modules can be embedded in the processor of the computer device in hardware form or be independent of it, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each of the above modules.
[0191] In one embodiment, a computer device is provided. The computer device can be a server or a terminal. In this embodiment, the computer device being a server is taken as an example for introduction, and its internal structure diagram can be as Figure 10 shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O), and a communication interface. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used for data related to resource pairs, conversion ratios, and relevant information of target objects, etc., which are related to the embodiments of the present application. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with external terminals through a network connection. When the computer program is executed by the processor, it implements a method for digital resource conversion.
[0192] Those skilled in the art can understand that Figure 10 the structure shown in
[0193] is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0194] In one embodiment, a computer device is further provided, including a memory and a processor. A computer program is stored in the memory, and when the processor executes the computer program, the steps in the above method embodiments are implemented.
[0194] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by the processor, the steps in the above method embodiments are implemented.
[0195] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by the processor, the steps in the above method embodiments are implemented.
[0196] It should be noted that the object information involved in this application (including but not limited to object device information, object personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) are all information and data authorized by the object or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of relevant countries and regions.
[0197] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memories. Non-volatile memories can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memories can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in this application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., and are not limited thereto. The processors involved in the embodiments provided in this application can be general-purpose processors, central processors, graphics processors, digital signal processors, programmable logic devices, data processing logics based on quantum computing, etc., and are not limited thereto.
[0198] The technical feature information of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical feature information in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical feature information, it should be considered to be within the scope described in this specification.
[0199] The embodiments described above merely represent several implementation manners of the present application. The description is relatively specific and detailed, but it should not be construed as a limitation to the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all fall within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.
Claims
1. A method for digital resource conversion, characterized in that, Including: For any resource pair composed of two mutually convertible digital resource types, determining the real-time conversion ratio of the two digital resource types in the resource pair in the current period; Based on the real-time conversion ratio, determining the change trend of the conversion ratio of each resource pair in the next period, where the change trend of the conversion ratio characterizes whether the predicted conversion ratio of the resource pair in the next period is increasing or decreasing compared to the real-time conversion ratio; Determining, from each of the resource pairs, a target resource pair whose change trend of the conversion ratio meets the screening criteria; Converting the digital resources in the target resource pair according to the resource conversion method matched by the target resource pair.
2. The method according to claim 1, wherein The screening criteria include a range of change amplitudes of the conversion ratio; The selecting, from each of the resource pairs, a target resource pair whose change trend of the conversion ratio meets the screening criteria includes: Based on the change trend of the conversion ratio of each resource pair, determining the change amplitude of the conversion ratio of each resource pair in the current period and the next period; Selecting, from each of the resource pairs, a target resource pair whose change amplitude of the conversion ratio belongs to the range of change amplitudes of the conversion ratio.
3. The method according to claim 2, characterized in that, The range of change amplitudes of the conversion ratio includes multiple different sub-ranges of change amplitudes of the conversion ratio; and each resource pair has a respective resource conversion method matched for different sub-ranges of change amplitudes of the conversion ratio; The converting the digital resources in the target resource pair according to the resource conversion method matched by the target resource pair includes: Determining the target sub-range of change amplitudes of the conversion ratio to which the change amplitude of the conversion ratio of the target resource pair belongs in the range of change amplitudes of the conversion ratio; Converting the digital resources in the target resource pair according to the resource conversion method matched by the target resource pair for the target sub-range of change amplitudes of the conversion ratio.
4. The method according to claim 3, wherein The sub-ranges of change amplitudes of the conversion ratio include: a sub-range of increasing conversion ratio, and a sub-range of decreasing conversion ratio; The determining the target sub-range of change amplitudes of the conversion ratio to which the change amplitude of the conversion ratio of the target resource pair belongs in the range of change amplitudes of the conversion ratio includes: If the change trend of the conversion ratio characterizes that the predicted conversion ratio of the resource pair in the next period is increasing compared to the real-time conversion ratio, determining the target sub-range of increasing conversion ratio to which the target resource pair belongs in the range of change amplitudes of the conversion ratio; If the change trend of the conversion ratio characterizes that the predicted conversion ratio of the resource pair in the next period is decreasing compared to the real-time conversion ratio, determining the target sub-range of decreasing conversion ratio to which the target resource pair belongs in the range of change amplitudes of the conversion ratio.
5. The method according to claim 1, characterized in that The target resource pair includes a first digital resource type and a second digital resource type, and the conversion ratio is used to characterize the ratio of conversion of the first digital resource type to the second digital resource type; The converting the digital resources in the target resource pair according to the resource conversion method matched by the target resource pair includes: If the change trend of the conversion ratio is characterized by a decrease, convert the first digital resource matched with the first digital resource type in the target resource pair into a transit digital resource matched with the transit digital resource type according to the transit digital resource type configured in the resource conversion method matched with the target resource pair; If the change trend of the conversion ratio is characterized by an increase, convert the existing digital resource matched with the existing digital resource type into the first digital resource matched with the first digital resource type in the target resource pair according to the existing digital resource type configured in the resource conversion method matched with the target resource pair; the existing digital resource type is the existing digital resource type of the target object.
6. The method according to claim 5, wherein The conversion of the first digital resource matched with the first digital resource type in the target resource pair into a transit digital resource matched with the transit digital resource type includes: Determine the convertible range of the decreasing resources configured for the first digital resource type; Within the convertible range of the decreasing resources, convert the first digital resource matched with the first digital resource type in the target resource pair into a transit digital resource matched with the transit digital resource type; the decreased first digital resource after conversion belongs to the convertible range of the decreasing resources; The conversion of the existing digital resource matched with the existing digital resource type into the first digital resource matched with the first digital resource type in the target resource pair includes: Determine the convertible range of the increasing resources configured for the first digital resource type; Based on the convertible range of the increasing resources, convert the existing digital resource matched with the existing digital resource type into the first digital resource matched with the first digital resource type in the target resource pair; the increased first digital resource after conversion belongs to the convertible range of the increasing resources.
7. The method according to claim 5, characterized in that The conversion of the first digital resource matched with the first digital resource type in the target resource pair into a transit digital resource matched with the transit digital resource type includes: Determine the convertible ratio of the decreasing resources configured for the first digital resource type; Within the convertible ratio of the decreasing resources, convert the first digital resource matched with the first digital resource type in the target resource pair into a transit digital resource matched with the transit digital resource type; the ratio between the decreased first digital resource after conversion and the first digital resource before conversion belongs to the convertible ratio of the decreasing resources; The conversion of the existing digital resource matched with the existing digital resource type into the first digital resource matched with the first digital resource type in the target resource pair includes: Determine the convertible ratio of the increasing resources configured for the first digital resource type; Based on the convertible ratio of the increasing resources, convert the existing digital resource matched with the existing digital resource type into the first digital resource matched with the first digital resource type in the target resource pair; the ratio between the increased first digital resource after conversion and the first digital resource before conversion belongs to the convertible ratio of the increasing resources.
8. The method according to claim 7, wherein The convertible ratio of the decreasing resources is positively correlated with the changing trend of the conversion ratio when it shows a decreasing trend; The convertible ratio of the increasing resources is positively correlated with the changing trend of the conversion ratio when it shows an increasing trend.
9. The method according to claim 5, wherein Multiple intermediate digital resource types are configured in the resource conversion method matched by the target resource; Converting the first digital resource matched by the first digital resource type in the target resource pair into the intermediate digital resource matched by the intermediate digital resource type includes: Determining a target intermediate digital resource type from the multiple intermediate digital resource types according to the resource conversion priority configured for each intermediate digital resource type; Converting the first digital resource matched by the first digital resource type in the target resource pair into the target intermediate digital resource matched by the target intermediate digital resource type.
10. The method according to claim 1, characterized in that, The method further includes: Determining a candidate resource pair containing the main digital resource type of the target object from the resource pairs; Selecting a target resource pair whose conversion ratio changing trend meets the screening conditions from each of the resource pairs includes: Selecting a target resource pair whose conversion ratio changing trend meets the screening conditions from each of the candidate resource pairs; Converting the digital resources in the target resource pair according to the resource conversion method matched by the target resource pair includes: Converting the digital resources of the target object according to the resource conversion method matched by the target resource pair.
11. The method according to claim 1, wherein Determining the real-time conversion ratio of the two digital resource types in the resource pair in the current period for any resource pair composed of two mutually convertible digital resource types includes: Obtaining the first real-time conversion ratio of each resource pair in the current period from the digital resource conversion data source; Obtaining the second real-time conversion ratio of each resource pair in the current period from multiple digital resource conversion channels; Determining the real-time conversion ratio of the two digital resource types in the resource pair in the current period through the first real-time conversion ratio and the second real-time conversion ratio of each resource pair.
12. A digital resource conversion device, characterized in that, The device includes: A conversion ratio determination module for determining the real-time conversion ratio of the two digital resource types in the resource pair in the current period for any resource pair composed of two mutually convertible digital resource types; A changing trend determination module for determining the changing trend of the conversion ratio of each resource pair in the next period based on the real-time conversion ratio, where the changing trend of the conversion ratio represents whether the predicted conversion ratio of the resource pair in the next period is increasing or decreasing compared to the real-time conversion ratio; A target resource pair determination module for determining a target resource pair whose conversion ratio changing trend meets the screening conditions from each of the resource pairs; A digital resource conversion module for converting the digital resources in the target resource pair according to the resource conversion method matched by the target resource pair.
13. A computer device, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 11.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 11.
15. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 11.