Resource data interaction method and device, computer equipment and storage medium

By acquiring and offset adjusting the interaction rate, resource data interaction is achieved, the problem of resource data waste is solved and interaction efficiency is improved.

CN119847718APending Publication Date: 2025-04-18TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311346345.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-17
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

During the resource data interaction process, the requesting party usually needs to directly interact with the original resource data provider, resulting in waste of resource data.

Method used

By obtaining resource data interaction requests, the existing target resource data is obtained based on the resource data identification to be interacted and the target resource data identification, and the standard interaction rate is adjusted through offset to obtain the second target interaction rate, and then resource data interaction is carried out.

Benefits of technology

This method can save the requesting party's resource data, avoid waste of resource data, and improve the efficiency of resource data interaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119847718A_ABST
    Figure CN119847718A_ABST
Patent Text Reader

Abstract

The invention relates to a resource data interaction method and device, computer equipment, a storage medium and a computer program product. The method comprises the steps of obtaining a resource data interaction request carrying a to-be-interacted resource data identifier, a target resource data identifier and to-be-interacted resource data corresponding to the to-be-interacted resource data identifier; obtaining existing target resource data corresponding to the target resource data identifier based on the to-be-interacted resource data identifier and the target resource data identifier, and performing offset adjustment on the second original interaction rate based on the first original interaction rate, the second original interaction rate and the existing target resource data to obtain a second target interaction rate; and based on the to-be-interacted resource data, interacting with current target resource data corresponding to the target resource data identifier according to a second target interaction rate to obtain interacted target resource data, and returning the interacted target resource data and the second target interaction rate to a request end corresponding to the resource data interaction request. By adopting the method, resource data can be saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a resource data interaction method, apparatus, computer equipment, storage medium and computer program product. Background Art

[0002] With the development of Internet technology, resource data interaction services have emerged, through which resource data interaction can be realized. The resource data can be financial data, media data, etc. For example, financial data can be monetary amounts, and monetary transactions can be realized through resource data interaction services. Media data can be converted through resource data interaction services, for example, converting text into images, text into videos, etc.

[0003] At present, when a requester interacts with resource data, it usually interacts directly with the original resource data provider. However, directly interacting with the original resource data provider usually consumes more resource data, resulting in a waste of resource data. Summary of the invention

[0004] Based on this, it is necessary to provide a resource data interaction method, apparatus, computer equipment, computer-readable storage medium and computer program product that can save resource data of the requesting party in response to the above technical problems.

[0005] In a first aspect, the present application provides a resource data interaction method. The method comprises:

[0006] Obtain a resource data interaction request, where the resource data interaction request carries a resource data identifier to be interacted, a target resource data identifier, and resource data to be interacted corresponding to the resource data identifier to be interacted;

[0007] Based on the resource data identifier to be interacted with and the target resource data identifier, obtaining existing target resource data corresponding to the target resource data identifier, the existing target resource data being used to interact with the resource data to be interacted with corresponding to the resource data identifier to be interacted with;

[0008] Obtaining a first original interaction rate and a second original interaction rate, and performing an offset adjustment on the second original interaction rate based on the first original interaction rate, the second original interaction rate, and the existing target resource data to obtain a second target interaction rate, wherein the first original interaction rate is used to characterize a standard interaction rate for interacting with the target resource data using the target resource data, and the second original interaction rate is used to characterize a standard interaction rate for interacting with the target resource data using the resource data to be interacted;

[0009] Based on the resource data to be interacted, the current target resource data corresponding to the target resource data identifier is interacted according to the second target interaction rate to obtain the interacted target resource data, and the interacted target resource data and the second target interaction rate are returned to the request end corresponding to the resource data interaction request.

[0010] In a second aspect, the present application also provides a resource data interaction device. The device comprises:

[0011] A request acquisition module, used to acquire a resource data interaction request, wherein the resource data interaction request carries a resource data identifier to be interacted, a target resource data identifier, and resource data to be interacted corresponding to the resource data identifier to be interacted;

[0012] A resource acquisition module, used for acquiring existing target resource data corresponding to the target resource data identifier based on the resource data identifier to be interacted with and the target resource data identifier, wherein the existing target resource data is used for interacting with the resource data to be interacted with corresponding to the resource data identifier to be interacted with;

[0013] an interaction rate adjustment module, configured to obtain a first original interaction rate and a second original interaction rate, and to offset and adjust the second original interaction rate based on the first original interaction rate, the second original interaction rate and the existing target resource data to obtain a second target interaction rate, wherein the first original interaction rate is used to characterize a standard interaction rate for interacting with the target resource data using the target resource data, and the second original interaction rate is used to characterize a standard interaction rate for interacting with the target resource data using the target resource data;

[0014] The interaction module is used to interact with the current target resource data corresponding to the target resource data identifier based on the resource data to be interacted according to the second target interaction rate, obtain the interacted target resource data, and return the interacted target resource data and the second target interaction rate to the request end corresponding to the resource data interaction request.

[0015] 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 the processor implements the following steps when executing the computer program:

[0016] Obtain a resource data interaction request, where the resource data interaction request carries a resource data identifier to be interacted, a target resource data identifier, and resource data to be interacted corresponding to the resource data identifier to be interacted;

[0017] Acquire existing target resource data corresponding to the target resource data identifier based on the resource data identifier to be interacted with and the target resource data identifier, wherein the existing target resource data is used to interact with the resource data to be interacted with corresponding to the resource data identifier to be interacted with;

[0018] Obtaining a first original interaction rate and a second original interaction rate, and performing an offset adjustment on the second original interaction rate based on the first original interaction rate, the second original interaction rate, and the existing target resource data to obtain a second target interaction rate, wherein the first original interaction rate is used to characterize a standard interaction rate for interacting with the target resource data using the target resource data, and the second original interaction rate is used to characterize a standard interaction rate for interacting with the target resource data using the resource data to be interacted;

[0019] Based on the resource data to be interacted, the current target resource data corresponding to the target resource data identifier is interacted according to the second target interaction rate to obtain the interacted target resource data, and the interacted target resource data and the second target interaction rate are returned to the request end corresponding to the resource data interaction request.

[0020] 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:

[0021] Obtain a resource data interaction request, where the resource data interaction request carries a resource data identifier to be interacted, a target resource data identifier, and resource data to be interacted corresponding to the resource data identifier to be interacted;

[0022] Acquire existing target resource data corresponding to the target resource data identifier based on the resource data identifier to be interacted with and the target resource data identifier, wherein the existing target resource data is used to interact with the resource data to be interacted with corresponding to the resource data identifier to be interacted with;

[0023] Obtaining a first original interaction rate and a second original interaction rate, and performing an offset adjustment on the second original interaction rate based on the first original interaction rate, the second original interaction rate, and the existing target resource data to obtain a second target interaction rate, wherein the first original interaction rate is used to characterize a standard interaction rate for interacting with the target resource data using the target resource data, and the second original interaction rate is used to characterize a standard interaction rate for interacting with the target resource data using the resource data to be interacted;

[0024] Based on the resource data to be interacted, the current target resource data corresponding to the target resource data identifier is interacted according to the second target interaction rate to obtain the interacted target resource data, and the interacted target resource data and the second target interaction rate are returned to the request end corresponding to the resource data interaction request.

[0025] In a fifth aspect, the present application further 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:

[0026] Obtain a resource data interaction request, where the resource data interaction request carries a resource data identifier to be interacted, a target resource data identifier, and resource data to be interacted corresponding to the resource data identifier to be interacted;

[0027] Acquire existing target resource data corresponding to the target resource data identifier based on the resource data identifier to be interacted with and the target resource data identifier, wherein the existing target resource data is used to interact with the resource data to be interacted with corresponding to the resource data identifier to be interacted with;

[0028] Obtaining a first original interaction rate and a second original interaction rate, and performing an offset adjustment on the second original interaction rate based on the first original interaction rate, the second original interaction rate, and the existing target resource data to obtain a second target interaction rate, wherein the first original interaction rate is used to characterize a standard interaction rate for interacting with the target resource data using the target resource data, and the second original interaction rate is used to characterize a standard interaction rate for interacting with the target resource data using the resource data to be interacted;

[0029] Based on the resource data to be interacted, the current target resource data corresponding to the target resource data identifier is interacted according to the second target interaction rate to obtain the interacted target resource data, and the interacted target resource data and the second target interaction rate are returned to the request end corresponding to the resource data interaction request.

[0030] The resource data interaction method, device, computer equipment, storage medium and computer program product described above obtain a resource data interaction request, and then obtain the existing target resource data corresponding to the target resource data identifier based on the resource data identifier to be interacted and the target resource data identifier. At this time, the first original interaction rate and the second original interaction rate are obtained, and the second original interaction rate is used to characterize the standard interaction rate for interacting with the target resource data using the resource data to be interacted, and the second original interaction rate is offset adjusted based on the first original interaction rate, the second original interaction rate and the existing target resource data to obtain the second target interaction rate. Finally, based on the resource data to be interacted, the current target resource data corresponding to the target resource data identifier is interacted according to the second target interaction rate to obtain the interacted target resource data, and the interacted target resource data and the second target interaction rate are returned to the request end corresponding to the resource data interaction request. That is, by offset adjusting the standard interaction rate, and then using the offset-adjusted second target interaction rate to interact with the resource data, the resource data to be interacted of the requester can be saved, and the resource data waste of the requester can be avoided. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 An application environment diagram of a resource data interaction method in an embodiment;

[0032] Figure 2 A schematic diagram of a flow chart of a resource data interaction method in one embodiment;

[0033] Figure 3 is a schematic diagram of a flow chart of obtaining a second target interaction rate in one embodiment;

[0034] Figure 4 A schematic diagram of a process for obtaining interacted target resource data in one embodiment;

[0035] Figure 5 A logical diagram of an interaction rate query in a specific embodiment;

[0036] Figure 6 A schematic diagram of a flow chart of an interaction rate query rate in one embodiment;

[0037] Figure 7 A schematic diagram of a process for obtaining interacted target resource data in another embodiment;

[0038] Figure 8 A schematic diagram of a flow chart of a resource data interaction method in a specific embodiment;

[0039] Fig. 9 is a structural block diagram of a resource data interaction device in an embodiment;

[0040] Fig.10 is an internal structure diagram of a computer device in one embodiment;

[0041] Fig.11 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with 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.

[0043] The resource data interaction method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. Among them, the requesting end 102 communicates with the target interactive 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 it can be placed on the cloud or other servers. The target interactive server 104 obtains the resource data interaction request sent by the requesting end 102, and the resource data interaction request carries the resource data identifier to be interacted, the target resource data identifier, and the resource data to be interacted corresponding to the resource data identifier to be interacted. The target interactive server 104 obtains the existing target resource data corresponding to the target resource data identifier based on the resource data identifier to be interacted and the target resource data identifier, and the existing target resource data is used to interact with the resource data to be interacted corresponding to the resource data identifier to be interacted. The target interaction server 104 can obtain the first original interaction rate and the second original interaction rate from the standard interaction server 106, and offset the second original interaction rate based on the first original interaction rate, the second original interaction rate and the existing target resource data to obtain the second target interaction rate, wherein the first original interaction rate is used to characterize the standard interaction rate for using the target resource data to interact with the resource data to be interacted, and the second original interaction rate is used to characterize the standard interaction rate for using the resource data to be interacted with the target resource data to interact; the target interaction server 104 interacts with the current target resource data corresponding to the target resource data identifier according to the second target interaction rate based on the resource data to be interacted, obtains the interacted target resource data, and returns the interacted target resource data and the second target interaction rate to the request end 102 corresponding to the resource data interaction request. The request end 102 can be a terminal or a server. The terminal can be, but is not limited to, various desktop computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices, and the Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, etc. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.

[0044] In one embodiment, Figure 2 As shown, a resource data interaction method is provided, which is applied to Figure 1 The target interactive server in the example is used for explanation. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0045] S202, obtaining a resource data interaction request, where the resource data interaction request carries a to-be-interacted resource data identifier, a target resource data identifier, and the to-be-interacted resource data corresponding to the to-be-interacted resource data identifier.

[0046] Among them, the resource data interaction request is used to request the interaction of resource data. The resource data identifier to be interacted is used to identify the resource data type to be interacted, which can be the name of the resource data type to be interacted, a string, etc. For example, if the resource data type to be interacted is a text type, the resource data identifier to be interacted can be text. For example, text data and voice data are different types of media data, and the identifiers of all text data can be text, and the identifiers of all voice data can be voice. For example, different currencies are different types of resource data. The target resource data identifier is used to identify the target resource data type, which can be the name of the target resource data type, a string, etc. The target resource data type refers to the resource data type that interacts with the resource data type to be interacted. That is, the requesting end needs to use the resource data corresponding to the resource data identifier to be interacted to interact with the resource data corresponding to the target resource data type. The resource data to be interacted corresponding to the resource data identifier to be interacted refers to the resource data corresponding to the resource data type to be interacted that the requesting end needs to interact with, and is the resource data that can be exchanged with the target resource data corresponding to the target resource data identifier. The resource data to be interacted can be financial data or media data, etc., and the financial data can be different currency amounts, that is, transactions of different currencies can be realized through resource data interaction. The media data may be image data, text data or voice data, etc., and the exchange can be realized through resource data interaction, for example, converting text data into image data, converting text data into video data, converting image data into text data, converting voice data into image data, converting blurred image data into clear image data, converting noisy voice data into noise-free voice data, converting a paragraph of text into an article, etc. The target interaction server refers to a server that realizes resource data interaction, a server that provides a resource data interaction service platform, and a server that is not the original resource data provider.

[0047] Specifically, the target interaction server can obtain the resource data interaction request sent by the requesting end, and then parse the resource data interaction request to obtain the resource data identifier to be interacted, the target resource data identifier, and the resource data to be interacted corresponding to the resource data identifier to be interacted. That is, the requesting end needs to use the resource data to be interacted corresponding to the resource data identifier to be interacted to interact with the target resource data corresponding to the target resource data identifier. The target interaction server can also obtain the resource data interaction request sent by the service provider providing resource data interaction services. The server can also trigger a request event, and obtain the resource data interaction request in response to the request event. For example, the request event can be an event requesting resource data interaction. For example, when the current time reaches a pre-set request trigger time, the request event is triggered to obtain the resource data interaction request.

[0048] S204, acquiring existing target resource data corresponding to the target resource data identifier based on the resource data identifier to be interacted with and the target resource data identifier, wherein the existing target resource data is used to interact with the resource data to be interacted with corresponding to the resource data identifier to be interacted with.

[0049] The existing target resource data refers to the target resource data corresponding to the target resource data identifier stored in the target interactive server. The existing target resource data in the target interactive server may be acquired at a historical time, such as acquired from a standard interactive server through resource data interaction at a historical time, or acquired from a resource data interaction with a different request end at a historical time.

[0050] Specifically, the server obtains existing target resource data corresponding to the target resource data identifier from a pre-set storage space according to the resource data identifier to be interacted and the target resource data identifier. The pre-set storage space stores the existing resource data corresponding to the resource data identifier to be interacted and the target resource data identifier to be interacted. The existing resource data includes the existing resource data corresponding to the resource data identifier to be interacted and the existing target resource data corresponding to the target resource data identifier. The existing resource data stored in the pre-set storage space is used for the interaction between the resource data corresponding to the resource data identifier to be interacted and the target resource data corresponding to the target resource data identifier.

[0051] S206, obtaining a first original interaction rate and a second original interaction rate, and performing an offset adjustment on the second original interaction rate based on the first original interaction rate, the second original interaction rate and the existing target resource data to obtain a second target interaction rate, wherein the first original interaction rate is used to characterize a standard interaction rate for interacting between the target resource data and the resource data to be interacted with, and the second original interaction rate is used to characterize a standard interaction rate for interacting between the resource data to be interacted with the target resource data.

[0052] Among them, the standard interaction server is the server of the original resource data provider. The first original interaction rate is the standard interaction rate of the resource data to be interacted obtained by converting the target resource data. The second original interaction rate refers to the standard interaction rate of the target resource data converted by the resource data to be interacted. The standard interaction rate refers to the ratio when resource data interacts, such as the ratio of text data converted to image data, the ratio of two currencies converted, etc. The second target interaction rate refers to the interaction rate after the second original interaction rate is offset adjusted, and the second target interaction rate is usually less than the second original interaction rate.

[0053] Specifically, the target interaction server can obtain the first original interaction rate and the second original interaction rate from the standard interaction server. The target interaction server can also obtain the first original interaction rate and the second original interaction rate from the request end. The target interaction server can also obtain the first original interaction rate and the second original interaction rate from the Internet. The target interaction server can also obtain the first original interaction rate and the second original interaction rate from the service provider of information, wherein the first original interaction rate is used to characterize the standard interaction rate of using the target resource data to interact with the resource data to be interacted, and the second original interaction rate is used to characterize the standard interaction rate of using the resource data to be interacted with the target resource data. Then the target interaction server uses the first original interaction rate, the second original interaction rate and the existing target resource data to offset the second original interaction rate, wherein the target interaction server can use the first original interaction rate and the second original interaction rate to calculate the difference degree of the original interaction rate, and then use the existing target resource data and the preset resource data threshold to calculate, obtain the weighted weight of the difference degree, and then use the weighted weight to weight the difference degree to obtain the offset interaction rate, and then use the offset interaction rate to adjust the second original interaction rate, and finally obtain the second target interaction rate.

[0054] S208, based on the resource data to be interacted, the current target resource data corresponding to the target resource data identifier is interacted according to the second target interaction rate to obtain the interacted target resource data, and the interacted target resource data and the second target interaction rate are returned to the request end corresponding to the resource data interaction request.

[0055] Among them, the current target resource data refers to the target resource data corresponding to the target resource data identifier saved by the target interactive server at the current time. The current target resource data can be the same as the existing target resource data, or it can be different from the existing target resource data. The target resource data corresponding to the target resource data identifier saved in the target interactive server changes in real time. The interacted target resource data refers to the target resource data obtained after interacting with the resource data to be interacted.

[0056] Specifically, the target interaction server calculates the target resource data that can be interacted with the resource data to be interacted according to the second target interaction rate, and then obtains the current target resource data corresponding to the target resource data identifier from the storage space corresponding to the pre-set resource data identifier to be interacted and the target resource data identifier. Then, the target resource data that can be interacted with is determined from the current target resource data, thereby obtaining the interacted target resource data. Finally, the target interaction server returns the interacted target resource data and the second target interaction rate to the request end corresponding to the resource data interaction request. In one embodiment, the target interaction server may also only return the interacted target resource data to the request end corresponding to the resource data interaction request.

[0057] The resource data interaction method, device, computer equipment, storage medium and computer program product are obtained by obtaining a resource data interaction request, and then obtaining the existing target resource data corresponding to the target resource data identifier based on the resource data identifier to be interacted and the target resource data identifier. At this time, the first original interaction rate and the second original interaction rate are obtained, and the second original interaction rate is used to characterize the standard interaction rate for interacting with the target resource data using the resource data to be interacted, and the second original interaction rate is offset adjusted based on the first original interaction rate, the second original interaction rate and the existing target resource data to obtain the second target interaction rate. Finally, based on the resource data to be interacted, the current target resource data corresponding to the target resource data identifier is interacted according to the second target interaction rate to obtain the interacted target resource data, and the interacted target resource data and the second target interaction rate are returned to the request end corresponding to the resource data interaction request. That is, by offset adjusting the standard interaction rate, and then using the offset-adjusted second target interaction rate to interact with the resource data, it is avoided to use the standard interaction rate to interact with the resource data, thereby saving the resource data to be interacted of the requesting party and avoiding the waste of the resource data of the requesting party.

[0058] In one embodiment, Figure 3 As shown, S206, based on the first original interaction rate, the second original interaction rate and the existing target resource data, the second original interaction rate is offset-adjusted to obtain the second target interaction rate, including:

[0059] S302: Calculate the difference between the first original interaction rate and the second original interaction rate.

[0060] S304, performing weighted weight calculation based on the existing target resource data and the preset target resource data threshold to obtain a weighted weight, and using the weighted weight to weight the degree of difference to obtain an offset value.

[0061] S306: Calculate the difference between the second original interaction rate and the offset value to obtain a second target interaction rate.

[0062] The difference degree refers to the difference between the first original interaction rate and the second original interaction rate. The preset target resource data threshold refers to the preset upper limit of the target resource data when performing the offset. The weighted weight is used to weight the difference degree. The offset value refers to the interaction rate that needs to be offset.

[0063] Specifically, the target interaction server calculates the degree of difference between the first original interaction rate and the second original interaction rate, wherein the difference between the second original interaction rate and the first original interaction rate can be calculated to obtain the degree of difference, or the difference between the first original interaction rate and the second original interaction rate can be calculated to obtain the degree of difference. Then the target interaction server obtains the preset upper limit value of the target resource data. Then, the degree of adjustment of the degree of difference is calculated based on the existing target resource data and the preset target resource data threshold, that is, the weighted weight is obtained. Among them, the ratio of the existing target resource data to the preset target resource data threshold can be calculated to obtain the weighted weight. The target interaction server calculates the product of the degree of difference and the weighted weight to obtain the offset value. Finally, the server uses the offset value to offset the second original interaction rate, that is, calculates the difference between the second original interaction rate and the offset value to obtain the second target interaction rate.

[0064] In one embodiment, the second target interaction rate may also be the same as the second original interaction rate. Specifically, when the first original interaction rate and the second original interaction rate are equal, and the existing target resource data and the preset target resource data threshold are also equal, the calculated second target interaction rate is the same as the second original interaction rate. In one embodiment, the second target interaction rate may also be greater than the second original interaction rate. Specifically, when the existing target resource data is a negative value, that is, when the target resource data does not exist in the target interaction server and the target resource data of the interaction history request is required, the existing target resource data in the target interaction server is a negative value. At this time, the calculated second target interaction rate is greater than the second original interaction rate.

[0065] In the above embodiment, by calculating the difference between the first original interaction rate and the second original interaction rate, weighted weight calculation is performed based on the existing target resource data and the preset target resource data threshold to obtain a weighted weight, and the difference is weighted using the weighted weight to obtain an offset value, and then the difference between the second original interaction rate and the offset value is calculated to obtain the second target interaction rate, thereby improving the accuracy of the obtained second target interaction rate.

[0066] In one embodiment, S304, weighted weight calculation is performed based on the existing target resource data and the preset target resource data threshold to obtain weighted weights, and the weighted weights are used to weight the degree of difference to obtain an offset value, including the steps of:

[0067] Compare the existing target resource data with the preset target resource data threshold. When the preset target resource data threshold is greater than the existing target resource data, calculate the ratio of the existing target resource data to the preset target resource data threshold to obtain the weighted weight; obtain the standard adjustment parameter, calculate the ratio of the difference degree to the standard adjustment parameter, obtain the adjusted difference degree, and calculate the product of the adjusted difference degree and the weighted weight to obtain the offset value.

[0068] The standard adjustment parameter refers to a preset standard parameter for adjusting the difference degree, for example, the standard adjustment parameter may be 2. The adjusted difference degree refers to the difference degree obtained by adjusting the difference degree using the standard adjustment parameter.

[0069] Specifically, the target interactive server compares the existing target resource data with the preset target resource data threshold. When the preset target resource data threshold is greater than the existing target resource data, the ratio of the existing target resource data to the preset target resource data threshold is calculated to obtain a weighted weight, and the weighted weight is a value between 0 and 1. When the existing target resource data is greater than the preset target resource data threshold, the ratio of the preset target resource data threshold to the preset target resource data threshold is calculated to obtain a weighted weight, and the weighted weight is 1. Then the target interactive server can obtain the pre-stored standard adjustment parameters from the database, or obtain the pre-set standard adjustment parameters from the configuration file, or obtain the standard adjustment parameters uploaded by the terminal. At this time, the target interactive server calculates the ratio of the difference degree to the standard adjustment parameter to obtain the adjusted difference degree, and calculates the product of the adjusted difference degree and the weighted weight to obtain the offset value.

[0070] In a specific embodiment, the target interactive server may use the following formula (1) to calculate the offset value.

[0071] S=(AB) / α*(min[M,N] / N) Formula (1)

[0072] Wherein, S refers to the offset value, A refers to the second original interaction rate, B refers to the first original interaction rate, and M refers to the existing target resource data. N refers to the preset target resource data threshold. min[M,N] refers to the smaller value between the existing target resource data and the preset target resource data threshold. α refers to the standard adjustment parameter. Then, the second target interaction rate is calculated using formula (2).

[0073] New=AS formula (2)

[0074] Here, New refers to the first target interaction rate, that is, the interaction rate after the offset. That is, the difference between the second original interaction rate and the offset value is calculated to obtain the first target interaction rate.

[0075] In the above embodiment, by comparing the existing target resource data with the preset target resource data threshold, when the preset target resource data threshold is greater than the existing target resource data, the ratio of the existing target resource data to the preset target resource data threshold is calculated to obtain a weighted weight. Then, the standard adjustment parameter is obtained, the ratio of the difference degree to the standard adjustment parameter is calculated to obtain the adjusted difference degree, and the product of the adjusted difference degree and the weighted weight is calculated to obtain an offset value. That is, the difference degree is adjusted by the standard adjustment parameter and then weighted to obtain an offset value, which further improves the accuracy of the obtained offset value, thereby improving the accuracy of the obtained second target interaction rate.

[0076] In one embodiment, obtaining the adjustment parameter, calculating the ratio of the difference degree to the adjustment parameter, and obtaining the adjusted difference degree include:

[0077] The floating ratio corresponding to the requesting end is obtained, and the standard adjustment parameter is weighted based on the floating ratio to obtain the target adjustment parameter; the ratio of the difference degree to the target adjustment parameter is calculated to obtain the adjusted difference degree.

[0078] The floating ratio is used to dynamically change the standard adjustment parameters. Different request ends correspond to different floating ratios. The association between the request end and the floating ratio can be pre-set.

[0079] Specifically, the target interactive server can search the floating ratio corresponding to the requesting end from the database. The floating ratio corresponding to the requesting end can be pre-set by the management party of the target interactive server.

[0080] The target interactive server weights the standard adjustment parameter based on the floating ratio to obtain the target adjustment parameter; and calculates the ratio of the difference degree to the target adjustment parameter to obtain the adjusted difference degree.

[0081] In one embodiment, a corresponding floating ratio can be set according to the level of the requesting end, and then the target interaction server can obtain the importance level of the requesting end according to the requesting end, and obtain the corresponding floating ratio according to the importance level of the requesting end. Different requesting ends can set the same importance level or different importance levels. The importance level is used to characterize the importance of the requesting end. The higher the level, the higher the importance of the requesting end. The floating ratio corresponding to a high importance level is low, so that the calculated second target interaction rate is lower than the second original interaction rate. The floating ratio corresponding to a low importance level is high, so that the calculated second target interaction rate is correspondingly higher than the second target interaction rate calculated with a high importance level, but it is still lower than the second original interaction rate.

[0082] In the above embodiment, the standard adjustment parameter is weighted by using the floating ratio corresponding to the requesting end to obtain the target adjustment parameter. Then, the ratio of the difference degree to the target adjustment parameter is calculated to obtain the adjusted difference degree. Finally, the second target interaction rate is calculated using the adjusted difference degree, so that the calculated second target interaction rate meets the requirements of the requesting end and makes the second target interaction rate more accurate.

[0083] In one embodiment, Figure 4 As shown, S208, that is, based on the resource data to be interacted, interacting with the current target resource data corresponding to the target resource data identifier according to the second target interaction rate, to obtain the interacted target resource data, includes:

[0084] S402, acquiring historical service information corresponding to the requesting end, and determining the service type corresponding to the requesting end based on the historical service information and the resource data to be interacted.

[0085] The historical service information refers to the information of the resource data interaction requests that have been processed by the requesting end, and may include the historical resource data to be interacted by the requesting end that has been processed. The service type is used to characterize the type of resource data interaction service to be processed by the requesting end. Different requesting ends may correspond to different service types or to the same service type.

[0086] Specifically, the target interactive server can obtain the historical business information corresponding to the requesting end from the database, and then determine the business type corresponding to the requesting end according to the historical business information and the resource data to be interacted, wherein the total resource data to be interacted can be determined according to the historical resource data to be interacted and the resource data to be interacted, and then the resource data interval to which the total resource data to be interacted belongs is determined according to the resource data interval corresponding to each business type that is preset, and the corresponding requesting end business type is determined according to the resource data interval. For example, the business type may include important business, medium business, ordinary business, and new business, etc. Different business types set the corresponding interactive resource data interval, the resource data interval corresponding to the important business exceeds the resource data interval corresponding to the medium business, and the resource data interval corresponding to the medium business exceeds the resource data interval corresponding to the ordinary business.

[0087] S404: Acquire a service weight corresponding to the service type, and weight the second target interaction rate based on the service weight to obtain a weighted second target interaction rate.

[0088] S406: Interact with the current target resource data corresponding to the target resource data identifier based on the resource data to be interacted according to the weighted second target interaction rate to obtain interacted target resource data corresponding to the service type.

[0089] Among them, the business weight is a pre-set weight corresponding to different business types, which is used to weight the second target interaction rate. The higher the business importance of the requesting end represented by the business type, the lower the business weight, and the lower the weighted second target interaction rate obtained. The higher the business importance of the requesting end represented by the business type, the higher the business weight, and the higher the weighted second target interaction rate obtained.

[0090] Specifically, the target interaction server can obtain the business weight corresponding to the business type from the database, wherein different business types are associated with different business weights, and obtain the corresponding business weight according to the business type corresponding to the requesting end, for example, the business weight corresponding to the important business is 0.96, the business weight corresponding to the medium business is 0.98, the business weight corresponding to the ordinary business is 0.99, the business weight corresponding to the new business is 1, and so on. Then the target interaction server uses the business weight to weight the second target interaction rate to obtain the weighted second target interaction rate. Finally, the target interaction server interacts with the current target resource data corresponding to the target resource data identifier based on the resource data to be interacted according to the weighted second target interaction rate, that is, the target resource data to be interacted is calculated using the resource data to be interacted and the weighted second target interaction rate, and then the target resource data to be interacted is obtained from the current target resource data, thereby obtaining the interacted target resource data corresponding to the business type.

[0091] In the above embodiment, by obtaining the historical business information corresponding to the requesting end, the business type corresponding to the requesting end is determined based on the historical business information and the resource data to be interacted. Then the business weight corresponding to the business type is obtained, and the second target interaction rate is weighted based on the business weight to obtain the weighted second target interaction rate. Finally, based on the resource data to be interacted, the current target resource data corresponding to the target resource data identifier is interacted according to the weighted second target interaction rate to obtain the interacted target resource data corresponding to the business type. That is, the second target interaction rate is adjusted by the business type corresponding to the requesting end, so that the obtained second target interaction rate is more accurate, thereby improving the accuracy of the obtained interacted target resource data.

[0092] In one embodiment, S204, based on the to-be-interacted resource data identifier and the target resource data identifier, obtaining the existing target resource data corresponding to the target resource data identifier includes the following steps:

[0093] The corresponding resource data storage space is searched based on the resource data identifier to be interacted with and the target resource data identifier, and the existing target resource data corresponding to the target resource data identifier is obtained in the resource data storage space.

[0094] The resource data storage space refers to a storage space used to store resource data, which may be a database or cache space in memory, that is, the resource data may be stored in a database in the form of a data table, or may be stored in a cache space in a cache storage format.

[0095] Specifically, the target interactive server finds the corresponding resource data storage space according to the resource data identifier to be interacted and the target resource data identifier. The resource data storage space can be a storage space for storing the resource data identifier to be interacted and the corresponding target resource data identifier that can interact, that is, the resource data storage space can only store the interactive data between the resource data identifier to be interacted and the target resource data identifier. The resource data storage space can also store the interactive data of other resource data. Then the target interactive server searches for the existing target resource data corresponding to the target resource data identifier in the resource data storage space. When the existing target resource data corresponding to the target resource data identifier is found, the existing target resource data corresponding to the target resource data identifier is obtained. That is, by using the two resource data identifiers to be interacted, the resource data records stored in the target interactive server can be found from the corresponding storage space. In one embodiment, a corresponding resource data storage space can be pre-set between each two resource data identifiers that can interact with resource data. Different resource data identifiers have different resource data storage spaces, that is, the two resource data that can interact are stored independently, which improves the efficiency of resource data search, and then improves the efficiency of resource data interaction.

[0096] After S208, that is, after the resource data to be interacted is interacted with the current target resource data corresponding to the target resource data identifier according to the second target interaction rate to obtain the interacted target resource data, the following steps are further included:

[0097] The resource data storage space is updated based on the resource data to be interacted with and the interacted target resource data to obtain an updated resource data storage space.

[0098] Specifically, the server updates the resource data storage space according to the resource data to be interacted and the target resource data that has been interacted, that is, the server saves the acquired resource data to be interacted into the corresponding database or cache, that is, the existing resource data to be interacted can be found in the corresponding database or cache according to the resource data identifier to be interacted, and then the sum of the existing resource data to be interacted and the resource data to be interacted sent by the requesting end is calculated to obtain the updated resource data to be interacted, and the updated resource data to be interacted is saved to the storage location corresponding to the resource data identifier to be interacted. Then the difference between the current target resource data and the interacted target resource data is calculated to obtain the remaining target resource data, and the remaining target resource data is saved to the storage location corresponding to the target resource data identifier, thereby obtaining the updated database or cache.

[0099] In a specific embodiment, the resource data storage space in the target interactive server may be a database, and the resource data may be recorded in the form of a data table, as shown in Table 1 below, which is a currency data table recording currency A and currency B.

[0100] Currency pair AB data table 1

[0101] Position Set Position Identification Currency Pairs Delivery date Amount in Currency A Currency Amount B Position Set AB Summary Summary AB 1000000 -7000000 Position Set AB 100 AB T+0 1000000 -7000000 Position Set AB 101 AB T+1 0 0 Position Set AB 102 AB T+2 0 0

[0102] Among them, the target interaction server obtains the query request of using currency B to interact with currency A, and calculates the target interaction rate of using currency B to interact with currency A according to the interaction request, which is 7.075 to 1, wherein the second original interaction rate is 7.1 to 1, the first original interaction rate is 7.0 to 1, the preset target resource data threshold is 2000000, the existing currency A is 1000000, and the standard adjustment parameter is 2. Then the target interaction server returns the target interaction rate to the request end. At this time, the request end sends an interaction request, which also carries the amount of currency B 7075000 and the settlement date is T+0, where T+0 indicates real-time interaction, T+1 indicates interaction every other day, and T+2 indicates interaction every two days. At this time, according to the target interaction rate of 7.075 to 1, the amount of currency A that needs to be interacted is calculated to be 1000000, and then the amount of currency A 1000000 is returned to the request end according to the interaction request, and the amount of currency B 7075000 is saved. At this time, the updated currency pair AB data table is obtained as shown in Table 2 below.

[0103] Currency pair AB data table 2

[0104] Position Set Position Identification Currency Pairs Delivery date Amount in Currency A Currency Amount B Position Set AB Summary Summary AB 0 75000 Position Set AB 100 AB T+0 0 75000 Position Set AB 101 AB T+1 0 0 Position Set AB 102 AB T+2 0 0

[0105] Among them, the amount of currency A of currency pair AB on the delivery date T+0 is 1000000 minus 1000000, which is 0. The amount of currency B of currency pair AB on the delivery date T+0 is the sum of -7000000 and 7075000, which is 75000. At this time, the updated currency pair AB data table 2 is obtained. The target interactive server saves the updated currency pair data table 2.

[0106] In the above embodiment, the corresponding resource data storage space is searched based on the resource data identifier to be interacted and the target resource data identifier, and the existing target resource data corresponding to the target resource data identifier is obtained in the resource data storage space, and then the resource data storage space is updated based on the resource data to be interacted and the interacted target resource data to obtain an updated resource data storage space, so that interaction can be performed according to the resource data stored in the resource data storage space, thereby avoiding resource data interaction errors and improving the accuracy of resource data interaction.

[0107] In one embodiment, S208, i.e., interacting with the current target resource data corresponding to the target resource data identifier according to the second target interaction rate based on the resource data to be interacted, obtaining the interacted target resource data, and returning the interacted target resource data and the second target interaction rate to the requesting end, includes the steps of:

[0108] Generate an effective time period corresponding to the second target interaction rate, and return the second target interaction rate and the effective time to the requesting end; when obtaining the target interaction confirmation instruction sent by the requesting end within the effective time period, interact with the current target resource data corresponding to the target resource data identifier based on the resource data to be interacted according to the second target interaction rate to obtain the interacted target resource data; return the interacted target resource data and the second target interaction rate to the requesting end.

[0109] The effective time period refers to the available time period of the second target interaction rate, that is, the second target interaction rate can be used for resource data interaction during the effective time period, and when it is not within the effective time period, the second target interaction rate cannot be used for resource data interaction. The target interaction confirmation instruction refers to an instruction to confirm the use of the second target interaction rate for resource data interaction.

[0110] Specifically, the target interaction server generates an effective time period corresponding to the second target interaction rate, and the effective time period can be determined based on the current time point and a pre-set time period. For example, if the current time point is 13:50 and the pre-set time period is 2 minutes, the determined effective time period can be a time period from 13:50 to 13:52. At this time, the target interaction server returns the second target interaction rate and the effective time to the requesting end. Then, when the target interaction server detects the target interaction confirmation instruction sent by the requesting end within the effective time period, it interacts with the current target resource data corresponding to the target resource data identifier based on the resource data to be interacted according to the second target interaction rate to obtain the interacted target resource data. Finally, the target interaction server returns the interacted target resource data and the second target interaction rate to the requesting end.

[0111] In one embodiment, when the target interaction confirmation instruction sent by the requesting end within the effective time period is not obtained, the resource data interaction request of the requesting end is not processed, and a prompt message of request timeout is generated and returned to the requesting end.

[0112] In one embodiment, the requesting end may first query the interaction rate at the current time, and then decide whether to interact with the resource data. Specifically: the target interaction server obtains a resource data query request, and the resource data interaction request carries the resource data identifier to be interacted and the target resource data identifier. The target interaction server obtains the existing target resource data corresponding to the target resource data identifier based on the resource data identifier to be interacted and the target resource data identifier. Then the target interaction server obtains the first original interaction rate and the second original interaction rate from the standard interaction server, and offset-adjusts the second original interaction rate based on the first original interaction rate, the second original interaction rate and the existing target resource data to obtain the second target interaction rate, and then returns the second target interaction rate to the requesting end. The target interaction server may also generate an effective time period for the second target interaction rate, and return the second target interaction rate and the effective time to the requesting end. The requesting end displays the second target interaction rate and the effective time period. The requesting end receives the resource data interaction instruction within the effective time period, and sends a resource data interaction request to the target interaction server according to the resource data interaction instruction, and the resource data interaction request carries the resource data to be interacted corresponding to the resource data identifier to be interacted. At this time, the target interaction server interacts with the current target resource data corresponding to the target resource data identifier based on the resource data to be interacted according to the second target interaction rate, obtains the interacted target resource data, and returns the interacted target resource data to the requesting end corresponding to the resource data interaction request. When the target interaction server does not obtain the resource data interaction request, it does not process it, thereby reducing the processing flow of the target interaction server and saving the resources of the target interaction server. The requesting end determines whether to interact with the resource data based on the queried interaction rate, thereby improving the convenience of the requesting end in interacting with the resource data.

[0113] In a specific embodiment, Figure 5 As shown, a logical schematic diagram of an interaction rate query is provided. Specifically, the request end sends a query request to the target interaction server, and the query request carries two resource data identifiers that can interact to be queried. The target interaction server uses the interaction rate query service to query the existing resource data to be interacted from the storage space according to the query request. For example, a query request is sent to the data storage service, and the data storage service queries the existing resource data to be interacted according to the two resource data identifiers carried in the query request, and returns the queried existing resource data to the target interaction server. The target interaction server performs an offset adjustment of the interaction rate, that is, uses the existing resource data and the two original interaction rates to calculate the offset-adjusted target interaction rate, and then returns the target interaction rate to the request end for display.

[0114] In the above embodiment, by generating an effective time period corresponding to the second target interaction rate, the second target interaction rate and the effective time are returned to the requesting end. When the target interaction confirmation instruction sent by the requesting end within the effective time period is obtained, the current target resource data corresponding to the target resource data identifier is interacted with according to the second target interaction rate based on the resource data to be interacted, and the interacted target resource data is obtained, and the interacted target resource data and the second target interaction rate are returned to the requesting end. That is, by generating an effective time period corresponding to the second target interaction rate, the requesting end is prevented from repeatedly using the second target interaction rate to interact with resource data, thereby improving the accuracy of resource data interaction.

[0115] In one embodiment, the resource data interaction method further includes:

[0116] When the existing target resource data meets the preset offset condition, the first original interaction rate and the second original interaction rate are obtained, and the second original interaction rate is offset-adjusted based on the first original interaction rate, the second original interaction rate and the existing target resource data to obtain the second target interaction rate.

[0117] When the existing target resource data does not meet the preset offset condition, a second original interaction rate is obtained, and the second original interaction rate is returned to the requesting end. When the original interaction confirmation instruction sent by the requesting end is obtained, the current target resource data corresponding to the target resource data identifier is interacted with according to the second original interaction rate based on the resource data to be interacted, the original target resource data is obtained, and the original target resource data is returned to the requesting end.

[0118] The preset offset condition refers to a preset restriction condition for the target resource data when the interaction rate is offset adjusted, which may include that the target resource data acquired in the target interaction server exceeds the target resource data of the interaction request end. The original interaction confirmation instruction refers to an instruction to interact with resource data according to the second original interaction rate. The original target resource data refers to the target resource data obtained after the resource data is interacted according to the second original interaction rate.

[0119] Specifically, the target interaction server determines whether the existing target resource data meets the preset offset condition, that is, determines whether the target resource data obtained in the target interaction server exceeds the target resource data of the requesting end to be interacted with. When the target resource data obtained in the target interaction server exceeds the target resource data of the requesting end to be interacted with, it means that the existing target resource data meets the preset offset condition. At this time, the server performs an offset adjustment on the second original interaction rate to obtain the second target interaction rate. When the target resource data obtained in the target interaction server does not exceed the target resource data of the requesting end to be interacted with, it means that the existing target resource data does not meet the preset offset condition. At this time, the target interaction server obtains the second original interaction rate, returns the second original interaction rate to the requesting end, and when the original interaction confirmation instruction sent by the requesting end is obtained, the target interaction server interacts with the current target resource data corresponding to the target resource data identifier based on the resource data to be interacted with according to the second original interaction rate to obtain the original target resource data, and returns the original target resource data to the requesting end.

[0120] In a specific embodiment, when the target interactive server interacts with the currency pair AB, when currency A in the target interactive server is long, the interaction rate of currency A interacting with currency B can be offset and adjusted when currency A is used to interact with currency B. When currency B in the target interactive server is short, when currency B is used to interact with currency A, no offset adjustment is made to the interaction rate of currency B interacting with currency A, and the original interaction rate of currency B interacting with currency A is directly used to interact with resource data. Among them, if there is a long surplus position (credits exceed debts, overbought phenomenon occurs), a "long" foreign exchange position is generated. If there is a short position (debts exceed credits, oversold phenomenon occurs), a "short" foreign exchange position is generated.

[0121] In the above embodiment, when the existing target resource data meets the preset offset condition, the second target interaction rate is calculated. When the existing target resource data does not meet the preset offset condition, the second original interaction rate is directly obtained, and the second original interaction rate is returned to the request end, and when the original interaction confirmation instruction sent by the request end is obtained, the current target resource data corresponding to the target resource data identifier is interacted with according to the second original interaction rate based on the resource data to be interacted, the original target resource data is obtained, and the original target resource data is returned to the request end. When the existing target resource data does not meet the preset offset condition, the second original interaction rate can be used without the need for offset adjustment, thereby avoiding resource data loss in the target interaction server and improving the accuracy of resource data interaction of the target interaction server.

[0122] In one embodiment, Figure 6 As shown, the resource data interaction method further includes:

[0123] S602: Acquire an interaction rate query request, where the interaction rate query request carries a to-be-interacted resource data identifier and a query resource data identifier.

[0124] S604: Acquire at least two target resource data identifiers associated with the resource data identifier to be interacted with, wherein the at least two target resource data identifiers include a query resource data identifier.

[0125] The interaction rate query request refers to a request for querying the interaction rate after the offset. The query resource data identifier is used to identify the resource data that interacts with the resource data to be interacted with, and is the identifier of the resource data whose interaction rate is to be queried for offset adjustment. The target resource data identifier is used to identify the target resource data, which can interact with the resource data to be interacted with, and different target resource data can have different identifiers. The association relationship between the pre-established resource data identifier to be interacted with and the target resource data identifier that can interact.

[0126] Specifically, the server can obtain an interaction rate query request from the requesting end, parse the interaction rate query request, and obtain the resource data identifier to be interacted and the query resource data identifier carried. Then, the target resource data identifiers associated with the resource data identifier to be interacted are queried from the association relationship table. The association relationship table stores the association relationship between resource data identifiers, that is, resource data corresponding to two resource data identifiers with an association relationship can interact with each other. The query target resource data identifiers include the query resource data identifier carried in the interaction rate query request.

[0127] S606: Acquire existing target resource data corresponding to at least two target resource data identifiers based on the resource data identifier to be interacted with and the at least two associated target resource data identifiers.

[0128] Specifically, the target interaction server searches for the corresponding resource data record table according to the resource data identifier to be interacted and each target resource data identifier, and the resource data record table records the resource data to be interacted corresponding to the resource data identifier to be interacted and the target resource data corresponding to the target resource data identifier. Then, the existing target resource data corresponding to the target resource data identifier is searched in the resource data record table.

[0129] S608: offset-adjust the corresponding second original interaction rate according to the existing target resource data, the corresponding first original interaction rate and the corresponding second original interaction rate respectively corresponding to the at least two target resource data identifiers, to obtain the second target interaction rates respectively corresponding to the at least two target resource data identifiers.

[0130] Specifically, the resource data identifier to be interacted has different original interaction rates with different target resource data identifiers. The target interaction server obtains the first original interaction rate and the second original interaction rate corresponding to the resource data identifier to be interacted and each target resource data identifier. For example, the resource data identifier to be interacted is A, and the target resource data identifiers include B, C and D, then the target interaction server obtains the first original interaction rate and the second original interaction rate corresponding to A and B, obtains the first original interaction rate and the second original interaction rate corresponding to A and C, and obtains the first original interaction rate and the second original interaction rate corresponding to A and D. Then, the existing target resource data corresponding to each target resource data identifier, the first original interaction rate and the second original interaction rate corresponding to each target resource data identifier are used to offset and adjust the corresponding second original interaction rate, and the second target interaction rate corresponding to each target resource data identifier is obtained. The resource data identifier to be interacted has different second target interaction rates with different target resource data identifiers.

[0131] S610: Return the to-be-interacted resource data identifier, at least two target resource data identifiers, and the second target interaction rates respectively corresponding to the at least two target resource data identifiers to a request end corresponding to the interaction rate query request.

[0132] Specifically, the server associates the data identifier of the resource to be interacted with, the corresponding target resource data identifier and the corresponding second target interaction rate and returns them to the request end corresponding to the interaction rate query request. For example, the server returns the second target interaction rate of A and B, the second target interaction rate of A and C, and the second target interaction rate of A and D.

[0133] In the above embodiment, by obtaining an interaction rate query request, the second target interaction rates corresponding to at least two target resource data identifiers are calculated, and then the resource data identifier to be interacted, at least two target resource data identifiers and the second target interaction rates corresponding to at least two target resource data identifiers are returned to the request end corresponding to the interaction rate query request, that is, multiple second target interaction rates are returned to the request end, which can facilitate comparison at the request end, thereby improving the flexibility of resource data interaction.

[0134] In one embodiment, the resource data exchange request also carries an exchange date.

[0135] S208, i.e., interacting with the current target resource data corresponding to the target resource data identifier based on the resource data to be interacted with according to the second target interaction rate, to obtain the interacted target resource data, including the steps of:

[0136] On the interaction date, based on the resource data identifier to be interacted and the target resource data identifier, the target resource data of the interaction date corresponding to the target resource data identifier is obtained; based on the resource data to be interacted, the target resource data of the interaction date is interacted with according to the second target interaction rate to obtain the interacted target resource data.

[0137] The interaction date refers to the specific date of resource data interaction, which may include the current date and the date after the current date. The current date may be the current time point, and the date after the current date may be the date one day after the current time point, the date two days after the current time point, etc. The date one day after the current time point refers to the time point after 24 hours from the current time point, and the date two days after the current time point refers to the time point after 48 hours from the current time point. The target resource data of the interaction date refers to the target resource data already available on the target interaction server at the time point corresponding to the interaction date.

[0138] Specifically, after parsing the resource data interaction request, the target interaction server can also obtain the interaction date carried in the resource data interaction request. Then the target interaction server detects the current time point. When the current time point is the same as the time point corresponding to the interaction date, the target resource data corresponding to the target resource data identifier is found from the database resource data record table using the resource data identifier to be interacted with and the target resource data identifier. Then, the target resource data to be interacted with is interacted with according to the second target interaction rate, and the interacted target resource data is obtained.

[0139] In a specific embodiment, the target interaction server obtains an interaction request for using currency B to interact with currency A, and the interaction request carries the amount of currency B 7075000 and the settlement date is T+2. At this time, the obtained currency pair AB data table is shown in Table 3 below.

[0140] Currency pair AB data table 3

[0141]

[0142] Position Set AB Summary Summary AB 0 75000 Position Set AB 100 AB T+0 1000000 -7000000 Position Set AB 101 AB T+1 0 0 Position Set AB 102 AB T+2 -1000000 7075000

[0143] In the above embodiment, the target resource data for the interaction date corresponding to the target resource data identifier is obtained on the interaction date based on the resource data identifier to be interacted and the target resource data identifier; the target resource data for the interaction date is interacted with according to the second target interaction rate based on the resource data to be interacted, to obtain the interacted target resource data, resource data interaction can be performed on the interaction date, thereby improving the flexibility of resource data interaction.

[0144] In one embodiment, Figure 7 As shown, S208, based on the resource data to be interacted, interacting with the target resource data of the interaction date according to the second target interaction rate, to obtain the interacted target resource data, includes:

[0145] S702: Perform interaction calculation based on the resource data to be interacted according to the second target interaction rate to obtain target resource data to be confirmed as having been interacted.

[0146] S704: When the target resource data on the interaction date exceeds the target resource data on the interaction date, the target resource data on the interaction date is obtained from the target resource data on the interaction date to obtain the target resource data on the interaction date.

[0147] The interacted target resource data to be confirmed refers to the interacted target resource data that needs to be further confirmed. The interacted target resource data is the target resource data that the requesting end can obtain after interacting with the resource data to be interacted.

[0148] Specifically, the target interaction server calculates the target resource data that can be obtained by the resource data to be interacted according to the second target interaction rate, that is, the product of the resource data to be interacted and the second target interaction rate can be calculated to obtain the target resource data to be confirmed and interacted. Then, it is determined whether the target resource data on the interaction date exceeds the target resource data to be confirmed and interacted. When the target resource data on the interaction date exceeds the target resource data to be confirmed and interacted, it indicates that the target resource data that can be interacted is stored in the target interaction server. At this time, the target interaction server obtains the target resource data to be confirmed and interacted from the target resource data on the interaction date to obtain the interacted target resource data.

[0149] S706, when the target resource data on the interaction date does not exceed the target resource data to be confirmed to have been interacted, an original interaction request is sent to the original interaction server according to the resource data to be interacted, and the original interaction server interacts with the original target resource data corresponding to the target resource data identifier based on the resource data to be interacted according to the second original interaction rate corresponding to the interaction date to obtain the original target resource data.

[0150] The original interaction server refers to a server that uses the original interaction rate to interact with resource data. The original interaction request refers to the resource data interaction request obtained by the original interaction server. The original target resource data refers to the target resource data obtained by using the second original interaction rate to interact with resource data.

[0151] Specifically, when the target resource data on the interaction date does not exceed the target resource data to be confirmed to have been interacted, it means that the target resource data in the target interaction server is insufficient and the interaction of resource data cannot be completed. At this time, the target interaction server sends an original interaction request to the original interaction server according to the resource data to be interacted. The original interaction server obtains the original interaction request sent by the target interaction server, parses the original interaction request, and obtains the carried resource data to be interacted and the second original interaction rate corresponding to the interaction date. Then, the original interaction server calculates the target resource data that can be interacted based on the resource data to be interacted according to the second original interaction rate corresponding to the interaction date, and then obtains the original target resource data that can be interacted with the requesting end based on the existing original target resource data, and returns the original target resource data to the target interaction server.

[0152] S708, obtaining the original target resource data returned by the original interaction server, and obtaining the total target resource data based on the original target resource data and the interaction date target resource data, obtaining the to-be-confirmed interacted target resource data from the total target resource data, and obtaining the interacted target resource data.

[0153] The total target resource data refers to all target resource data in the target session server.

[0154] Specifically, the server obtains the original target resource data returned by the original interaction server, then calculates the sum of the original target resource data and the interaction date target resource data to obtain the total target resource data, obtains the to-be-confirmed interacted target resource data from the total target resource data, and obtains the interacted target resource data.

[0155] In a specific embodiment, the target interactive server can interact with the original interactive server for resource data to obtain resource data that can be interacted with the requesting end. For example, the target interactive server interacts with the original interactive server according to the saved currency pair AB data table 3. Among them, on the T+0 delivery date, the currency A amount of 1,000,000 is used to buy the currency B amount, and on the T+2 delivery date, the currency B amount is used to buy the currency A amount of 1,000,000. Among them, the original interaction rate of using the currency B amount to interact with currency A is 7.1 to 1. That is, the target interactive server uses the currency A amount of 1,000,000 on the T+0 delivery date to obtain the currency B amount of 7,100,000 from the original interactive server, and then uses the currency A amount of 7,025,000 on the T+2 delivery date to interact with the requesting end for resource data. At this time, the currency pair AB data table obtained is shown in Table 4 below.

[0156] Currency pair AB data table 4

[0157] Position Set Position Identification Currency Pairs Delivery date Amount in Currency A Amount in Currency B Position Set AB Summary Summary AB 0 75000 Position Set AB 100 AB T+0 0 0 Position Set AB 101 AB T+1 0 0 Position Set AB 102 AB T+2 0 75000

[0158] In the above embodiment, when the target resource data on the interaction date does not exceed the target resource data to be confirmed and has been interacted, the original interaction request is sent to the original interaction server according to the resource data to be interacted, and the original interaction server interacts with the original target resource data corresponding to the target resource data identifier based on the resource data to be interacted according to the second original interaction rate corresponding to the interaction date to obtain the original target resource data. Then, the interacted target resource data is obtained according to the original target resource data and the existing target resource data, thereby ensuring the accuracy of resource data interaction.

[0159] In one embodiment, when the target resource data needs to be used to interact with the target resource data through the original interactive server, the target interactive server can also obtain the target resource data from the original interactive server through the transit resource data. Specifically: the target interactive server obtains the interactive request, which carries the identifier of the resource data to be interacted and the identifier of the target resource data. When the target interactive server determines that the transit resource data can be used to interact with the resource data, for example, using the transit resource data to interact with the resource data can save the consumption of resource data. At this time, the target interactive server first uses the resource data to be interacted corresponding to the identifier of the resource data to be interacted to interact with the transit resource data, obtains the interacted transit resource data, and then uses the transit resource data to interact with the target resource data, thereby obtaining the interacted target resource data, and finally returns the interacted target resource data to the request end. For example, it is necessary to use currency A to interact with currency B. At this time, currency A and currency B are long positions of currency A, and currency M and currency B are short positions of currency M. At this time, the target interactive server can use currency A to interact with currency M, and then use currency M to interact with currency B, thereby meeting the demand of using currency A to interact with currency B, and can further save resource data consumption.

[0160] In one embodiment, the target interaction server can calculate the target interaction rate between different resource data identifiers in real time, and return the target interaction rate to the requesting end for real-time display. The requesting end can perform resource data interaction according to the displayed target interaction rate, thereby improving the efficiency of resource data interaction.

[0161] In a specific embodiment, Figure 8 As shown, a resource data interaction method is provided, which specifically includes the following steps:

[0162] S802, obtaining an interaction rate query request, where the interaction rate query request carries a data identifier of a resource to be interacted with, a data identifier of a target resource, and an interaction date.

[0163] S804: Search the corresponding resource data storage space based on the to-be-interacted resource data identifier and the target resource data identifier, and obtain the existing target resource data corresponding to the target resource data identifier in the resource data storage space.

[0164] S806: When the existing target resource data meets the preset offset condition, the first original interaction rate and the second original interaction rate are obtained, and the difference between the first original interaction rate and the second original interaction rate is calculated.

[0165] S808, when the preset target resource data threshold is greater than the existing target resource data, the ratio of the existing target resource data to the preset target resource data threshold is calculated to obtain a weighted weight.

[0166] S810, obtaining a standard adjustment parameter, calculating the ratio of the difference degree to the standard adjustment parameter to obtain the adjusted difference degree, and calculating the product of the adjusted difference degree and the weighted weight to obtain an offset value.

[0167] S812, calculating the difference between the second original interaction rate and the offset value to obtain a second target interaction rate, generating an effective time period corresponding to the second target interaction rate, and returning the second target interaction rate and the effective time to the requesting end.

[0168] S814, obtaining the target interaction confirmation instruction sent by the requesting end within the effective time period, obtaining the resource data to be interacted according to the target interaction confirmation instruction, and obtaining the interaction date target resource data corresponding to the target resource data identifier on the interaction date based on the resource data identifier to be interacted and the target resource data identifier.

[0169] S816, performing interaction calculation based on the resource data to be interacted according to the second target interaction rate to obtain the target resource data to be confirmed and interacted. When the interaction date target resource data exceeds the target resource data to be confirmed and interacted, obtaining the target resource data to be confirmed and interacted from the interaction date target resource data to obtain the interacted target resource data.

[0170] In the above embodiment, by querying the second target interaction rate corresponding to the interaction date, and then interacting according to the second target interaction rate on the interaction date, it is possible to save resource data to be interacted on the interaction date, thereby saving resource data on the requesting end.

[0171] In a specific embodiment, the resource data interaction method is applied to the conversion scenario of text data, for example, the text data can be used to obtain image data through conversion. Specifically: a text interaction request is obtained, and the text interaction request carries the text identifier to be interacted, the image identifier and the text content to be interacted corresponding to the text identifier to be interacted. That is, the target interaction server needs to convert the text content into an image according to the text interaction request. At this time, the target interaction server obtains the existing target image data corresponding to the image identifier based on the text identifier to be interacted and the image identifier. Then the first original interaction rate and the second original interaction rate are obtained, and the second original interaction rate is offset adjusted based on the first original interaction rate, the second original interaction rate and the existing target image data to obtain the second target interaction rate. The first original interaction rate is used to characterize the standard conversion rate for converting the target image with the text, and the second original interaction rate is used to characterize the standard conversion rate for converting the text with the target image. The conversion rate is used to characterize the conversion ratio of the number of images converted from the text content. Based on the text content to be interacted, the current target image corresponding to the target image identifier is interacted according to the second target interaction rate to obtain the interacted target image, and the interacted target image is returned to the request end.

[0172] In a specific embodiment, the resource data interaction method is applied to a foreign exchange transaction scenario. Specifically, the foreign exchange transaction platform server pre-establishes position record tables for different interaction dates and different currency pairs in the foreign exchange transaction scenario. The fields of the position record table include position set, position identifier, currency pair, delivery date, currency identifier, and interactive currency identifier. Then the foreign exchange transaction platform server can manage foreign exchange transactions according to the position record table. That is, when the foreign exchange transaction platform server obtains a foreign exchange rate query request, it obtains the name of currency A carried and the name of currency B to be interacted with according to the foreign exchange rate query request, as well as the delivery date T+1. Then, the number of existing currencies B is searched in the position record table corresponding to currency A and currency B. Then, according to the number of currency B and the selling and buying rates of currency A and currency B, the offset foreign exchange rate of currency A trading currency B is calculated. The foreign exchange rate is a foreign exchange rate that does not distinguish the delivery date, that is, it can also be used for the delivery date after the current time. And generate a corresponding effective time period, which is used to represent the time period when the request end uses the offset foreign exchange rate to send a foreign exchange transaction request. If it exceeds the effective time period, no processing is performed. Then the offset foreign exchange rate and effective time period of currency A trading currency B are returned to the requesting end. Then the foreign exchange trading platform server obtains the foreign exchange trading request sent in the effective time period, which carries the foreign exchange rate and the amount of currency A to be traded. The foreign exchange trading platform server calculates the amount of currency B that can be traded based on the amount of currency A to be traded and the offset foreign exchange rate on the delivery date T+1. Then the amount of currency B obtained by the transaction is obtained from the existing amount of currency B, and the amount of currency B is returned to the requesting end. At the same time, the amount of currency B already in the position record table corresponding to currency A and currency B is updated to obtain the updated amount of currency B, and the amount of currency A is used to update the amount of currency A already in the position record table corresponding to currency A and currency B to obtain the updated amount of currency A. Among them, when the amount of currency A already in the foreign exchange trading platform server is less than the amount of currency A to be traded, the foreign exchange trading platform server can conduct foreign exchange transactions with major original foreign exchange trading servers according to the exchange rate on the transaction date to obtain the currency A to be traded, and then complete the transaction with the requesting end. That is, the offset foreign exchange rate that is not restricted by the delivery date is provided to the requesting end, thereby saving resource data of the requesting end, reducing transactions with the original foreign exchange trading server, and saving resource data of the foreign exchange trading platform server.

[0173] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0174] Based on the same inventive concept, the embodiment of the present application also provides a resource data interaction device for implementing the resource data interaction method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more resource data interaction device embodiments provided below can refer to the above limitations on the resource data interaction method, and will not be repeated here.

[0175] In one embodiment, Fig. 9 As shown, a resource data interaction device 900 is provided, comprising: a request acquisition module 902, a resource acquisition module 904, an interaction rate adjustment module 906 and an interaction module 908, wherein:

[0176] The request acquisition module 902 is used to acquire a resource data interaction request, where the resource data interaction request carries a resource data identifier to be interacted, a target resource data identifier, and resource data to be interacted corresponding to the resource data identifier to be interacted;

[0177] A resource acquisition module 904, configured to acquire existing target resource data corresponding to the target resource data identifier based on the resource data identifier to be interacted with and the target resource data identifier, wherein the existing target resource data is used to interact with the resource data to be interacted with corresponding to the resource data identifier to be interacted with;

[0178] An interaction rate adjustment module 906 is used to obtain a first original interaction rate and a second original interaction rate, and to offset and adjust the second original interaction rate based on the first original interaction rate, the second original interaction rate and the existing target resource data to obtain a second target interaction rate, wherein the first original interaction rate is used to characterize a standard interaction rate for interacting with the target resource data using the target resource data, and the second original interaction rate is used to characterize a standard interaction rate for interacting with the target resource data using the target resource data;

[0179] The interaction module 908 is used to interact with the current target resource data corresponding to the target resource data identifier based on the resource data to be interacted according to the second target interaction rate, obtain the interacted target resource data, and return the interacted target resource data and the second target interaction rate to the request end corresponding to the resource data interaction request.

[0180] In one embodiment, the resource acquisition module 904 is also used to calculate the degree of difference between the first original interaction rate and the second original interaction rate; perform weighted weight calculation based on the existing target resource data and the preset target resource data threshold to obtain the weighted weight, and use the weighted weight to weight the degree of difference to obtain the offset value; calculate the difference between the second original interaction rate and the offset value to obtain the second target interaction rate.

[0181] In one embodiment, the resource acquisition module 904 is also used to compare the existing target resource data with the preset target resource data threshold. When the preset target resource data threshold is greater than the existing target resource data, the ratio of the existing target resource data to the preset target resource data threshold is calculated to obtain a weighted weight; the standard adjustment parameter is obtained, the ratio of the degree of difference to the standard adjustment parameter is calculated to obtain the adjusted degree of difference, and the product of the adjusted degree of difference and the weighted weight is calculated to obtain the offset value.

[0182] In one embodiment, the resource acquisition module 904 is also used to obtain the floating ratio corresponding to the request end, weight the standard adjustment parameter based on the floating ratio to obtain the target adjustment parameter; calculate the ratio of the difference degree to the target adjustment parameter to obtain the adjusted difference degree.

[0183] In one embodiment, the interaction module 908 is also used to obtain historical business information corresponding to the requesting end, determine the business type corresponding to the requesting end based on the historical business information and the resource data to be interacted with; obtain the business weight corresponding to the business type, weight the second target interaction rate based on the business weight, and obtain the weighted second target interaction rate; interact with the current target resource data corresponding to the target resource data identifier based on the resource data to be interacted according to the weighted second target interaction rate, and obtain the interacted target resource data corresponding to the business type.

[0184] In one embodiment, the resource acquisition module 904 is also used to search for the corresponding resource data storage space based on the resource data identifier to be interacted and the target resource data identifier, and obtain the existing target resource data corresponding to the target resource data identifier in the resource data storage space; based on the resource data to be interacted and the interacted target resource data, the resource data storage space is updated to obtain an updated resource data storage space.

[0185] In one embodiment, the interaction module 908 is also used to generate an effective time period corresponding to the second target interaction rate, and return the second target interaction rate and the effective time to the requesting end; when obtaining the target interaction confirmation instruction sent by the requesting end within the effective time period, the current target resource data corresponding to the target resource data identifier is interacted with according to the second target interaction rate based on the resource data to be interacted, to obtain the interacted target resource data; the interacted target resource data and the second target interaction rate are returned to the requesting end.

[0186] In one embodiment, the resource data interaction device 900 further includes:

[0187] A conditional judgment module is used to obtain a first original interaction rate and a second original interaction rate when the existing target resource data meets a preset offset condition, and to perform an offset adjustment on the second original interaction rate based on the first original interaction rate, the second original interaction rate and the existing target resource data to obtain a second target interaction rate; when the existing target resource data does not meet the preset offset condition, to obtain the second original interaction rate, to return the second original interaction rate to the requesting end, and when the original interaction confirmation instruction sent by the requesting end is obtained, to interact with the current target resource data corresponding to the target resource data identifier based on the resource data to be interacted according to the second original interaction rate to obtain the original target resource data, and to return the original target resource data to the requesting end.

[0188] In one embodiment, the resource data interaction device 900 further includes:

[0189] A query module is used to obtain an interaction rate query request, the interaction rate query request carries a to-be-interacted resource data identifier and a query resource data identifier; obtain at least two target resource data identifiers associated with the to-be-interacted resource data identifier, wherein the at least two target resource data identifiers include the query resource data identifier; obtain existing target resource data corresponding to the at least two target resource data identifiers based on the to-be-interacted resource data identifier and the associated at least two target resource data identifiers; offset-adjust the corresponding second original interaction rate according to the existing target resource data corresponding to the at least two target resource data identifiers, the corresponding first original interaction rate, and the corresponding second original interaction rate, to obtain the second target interaction rates corresponding to the at least two target resource data identifiers; and return the to-be-interacted resource data identifier, the at least two target resource data identifiers, and the second target interaction rates corresponding to the at least two target resource data identifiers to a request end corresponding to the interaction rate query request.

[0190] In one embodiment, the resource data interaction request also carries an interaction date;

[0191] The interaction module 908 is also used to obtain the interaction date target resource data corresponding to the target resource data identifier based on the resource data identifier to be interacted and the target resource data identifier on the interaction date; based on the resource data to be interacted, interact with the interaction date target resource data according to the second target interaction rate to obtain the interacted target resource data.

[0192] In one embodiment, the interaction module 908 is also used to perform interaction calculation based on the resource data to be interacted according to the second target interaction rate to obtain the target resource data to be confirmed and interacted; when the target resource data on the interaction date exceeds the target resource data to be confirmed and interacted, the target resource data to be confirmed and interacted is obtained from the target resource data on the interaction date to obtain the target resource data that has been interacted; when the target resource data on the interaction date does not exceed the target resource data to be confirmed and interacted, an original interaction request is sent to the original interaction server according to the resource data to be interacted, and the original interaction server interacts with the original target resource data corresponding to the target resource data identifier based on the resource data to be interacted according to the second original interaction rate corresponding to the interaction date to obtain the original target resource data; the original target resource data returned by the original interaction server is obtained, and the total target resource data is obtained based on the original target resource data and the target resource data on the interaction date, and the target resource data to be confirmed and interacted is obtained from the total target resource data to obtain the target resource data that has been interacted.

[0193] Each module in the resource data interaction device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0194] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.10As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. 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. 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 to store each resource data identification pair and the corresponding existing resource data, etc. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a resource data interaction method is implemented.

[0195] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.11 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface, the display unit and the input device are connected to the system bus via the input / output interface. 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 and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a resource data interaction method is implemented. The display unit of the computer device is used to form a visually visible image, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen. The input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device casing, or an external keyboard, touchpad or mouse, etc.

[0196] Those skilled in the art will understand that the structure shown in FIG. Y is merely a block diagram of a partial structure 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 shown in the figure, or combine certain components, or have a different arrangement of components.

[0197] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0198] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0199] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0200] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0201] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and 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-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory 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 memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0202] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0203] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A resource data interaction method, characterized in that: The method comprises: Obtain a resource data interaction request, wherein the resource data interaction request carries a to-be-interacted resource data identifier, a target resource data identifier, and the to-be-interacted resource data corresponding to the to-be-interacted resource data identifier; Based on the to-be-interacted resource data identifier and the target resource data identifier, acquiring existing target resource data corresponding to the target resource data identifier, wherein the existing target resource data is used to interact with the to-be-interacted resource data corresponding to the to-be-interacted resource data identifier; Acquire a first original interaction rate and a second original interaction rate, and perform an offset adjustment on the second original interaction rate based on the first original interaction rate, the second original interaction rate, and the existing target resource data to obtain a second target interaction rate, wherein the first original interaction rate is used to characterize a standard interaction rate for interacting with the target resource data using the target resource data, and the second original interaction rate is used to characterize a standard interaction rate for interacting with the target resource data using the resource data to be interacted; Based on the resource data to be interacted, the current target resource data corresponding to the target resource data identifier is interacted according to the second target interaction rate to obtain the interacted target resource data, and the interacted target resource data and the second target interaction rate are returned to the request end corresponding to the resource data interaction request.

2. The method according to claim 1, characterized in that The offset adjustment of the second original interaction rate based on the first original interaction rate, the second original interaction rate and the existing target resource data to obtain a second target interaction rate includes: calculating a degree of difference between the first original interaction rate and the second original interaction rate; Performing weighted weight calculation based on the existing target resource data and a preset target resource data threshold to obtain a weighted weight, and using the weighted weight to weight the degree of difference to obtain an offset value; The difference between the second original interaction rate and the offset value is calculated to obtain the second target interaction rate.

3. The method according to claim 2, characterized in that The weighted weight calculation is performed based on the existing target resource data and the preset target resource data threshold to obtain a weighted weight, and the difference degree is weighted by using the weighted weight to obtain an offset value, including: Comparing the existing target resource data with a preset target resource data threshold, and when the preset target resource data threshold is greater than the existing target resource data, calculating a ratio of the existing target resource data to the preset target resource data threshold to obtain the weighted weight; A standard adjustment parameter is obtained, a ratio of the difference degree to the standard adjustment parameter is calculated to obtain an adjusted difference degree, and a product of the adjusted difference degree and the weighted weight is calculated to obtain the offset value.

4. The method according to claim 3, characterized in that The obtaining of the adjustment parameter, calculating the ratio of the difference degree to the adjustment parameter, and obtaining the adjusted difference degree includes: Acquire a floating ratio corresponding to the requesting end, and weight the standard adjustment parameter based on the floating ratio to obtain a target adjustment parameter; The ratio of the difference degree to the target adjustment parameter is calculated to obtain the adjusted difference degree.

5. The method according to claim 1, characterized in that: The step of interacting with the current target resource data corresponding to the target resource data identifier based on the resource data to be interacted with according to the second target interaction rate to obtain the interacted target resource data includes: Acquire historical service information corresponding to the requesting end, and determine the service type corresponding to the requesting end based on the historical service information and the resource data to be interacted; Acquire a service weight corresponding to the service type, and weight the second target interaction rate based on the service weight to obtain a weighted second target interaction rate; The interacted target resource data corresponding to the service type is obtained by interacting the to-be-interacted resource data with the current target resource data corresponding to the target resource data identifier according to the weighted second target interaction rate.

6. The method according to claim 1, characterized in that The acquiring the existing target resource data corresponding to the target resource data identifier based on the to-be-interacted resource data identifier and the target resource data identifier includes: Searching for a corresponding resource data storage space based on the resource data identifier to be interacted with and the target resource data identifier, and obtaining existing target resource data corresponding to the target resource data identifier in the resource data storage space; After the interacting with the current target resource data corresponding to the target resource data identifier based on the resource data to be interacted with according to the second target interaction rate to obtain the interacted target resource data, the method further includes: The resource data storage space is updated based on the to-be-interacted resource data and the interacted target resource data to obtain an updated resource data storage space.

7. The method according to claim 1, characterized in that The method of interacting with the current target resource data corresponding to the target resource data identifier based on the resource data to be interacted with according to the second target interaction rate to obtain the interacted target resource data, and returning the interacted target resource data and the second target interaction rate to the requesting end includes: generating an effective time period corresponding to a second target interaction rate, and returning the second target interaction rate and the effective time period to the requesting end; When obtaining the target interaction confirmation instruction sent by the requesting end within the effective time period, interacting with the current target resource data corresponding to the target resource data identifier based on the resource data to be interacted with according to the second target interaction rate, to obtain the interacted target resource data; The interacted target resource data and the second target interaction rate are returned to the requesting end.

8. The method according to claim 1, characterized in that The method further comprises: When the existing target resource data meets the preset offset condition, a first original interaction rate and a second original interaction rate are obtained, and the second original interaction rate is offset-adjusted based on the first original interaction rate, the second original interaction rate and the existing target resource data to obtain a second target interaction rate; When the existing target resource data does not meet the preset offset condition, a second original interaction rate is obtained, and the second original interaction rate is returned to the requesting end. When the original interaction confirmation instruction sent by the requesting end is obtained, the current target resource data corresponding to the target resource data identifier is interacted with according to the second original interaction rate based on the resource data to be interacted, the original target resource data is obtained, and the original target resource data is returned to the requesting end.

9. The method according to claim 1, characterized in that: The method further comprises: Obtaining an interaction rate query request, wherein the interaction rate query request carries a to-be-interacted resource data identifier and a query resource data identifier; Acquire at least two target resource data identifiers associated with the resource data identifier to be interacted with, wherein the at least two target resource data identifiers include the query resource data identifier; Based on the resource data identifier to be interacted with and the at least two associated target resource data identifiers, obtaining the existing target resource data corresponding to the at least two target resource data identifiers respectively; According to the existing target resource data, the corresponding first original interaction rate and the corresponding second original interaction rate respectively corresponding to the at least two target resource data identifiers, an offset adjustment is performed on the corresponding second original interaction rate to obtain the second target interaction rates respectively corresponding to the at least two target resource data identifiers; The to-be-interacted resource data identifier, the at least two target resource data identifiers, and the second target interaction rates respectively corresponding to the at least two target resource data identifiers are returned to the request end corresponding to the interaction rate query request.

10. The method according to claim 1, characterized in that The resource data interaction request also carries a target interaction date, and the existing target resource data is obtained based on the existing target resource data corresponding to each preset interaction date; The step of interacting with the current target resource data corresponding to the target resource data identifier based on the resource data to be interacted with according to the second target interaction rate to obtain the interacted target resource data includes: On the target interaction date, based on the to-be-interacted resource data identifier and the target resource data identifier, acquiring the interaction date target resource data corresponding to the target resource data identifier; The interacted target resource data is obtained by interacting with the interaction date target resource data according to the second target interaction rate based on the resource data to be interacted.

11. The method according to claim 10, characterized in that The step of interacting with the target resource data on the interaction date according to the second target interaction rate based on the resource data to be interacted with to obtain the target resource data that has been interacted with includes: Performing interaction calculation based on the resource data to be interacted according to the second target interaction rate to obtain target resource data to be confirmed as having been interacted; When the interactive date target resource data exceeds the to-be-confirmed interacted target resource data, acquiring the to-be-confirmed interacted target resource data from the interactive date target resource data to obtain the interacted target resource data; When the target resource data of the interaction date does not exceed the target resource data to be confirmed, an original interaction request is sent to the original interaction server according to the resource data to be interacted, and the original interaction server interacts with the original target resource data corresponding to the target resource data identifier based on the resource data to be interacted according to the second original interaction rate corresponding to the target interaction date to obtain the original target resource data; The original target resource data returned by the original interaction server is obtained, and the total target resource data is obtained based on the original target resource data and the interaction date target resource data, and the to-be-confirmed interacted target resource data is obtained from the total target resource data to obtain the interacted target resource data.

12. A resource data interaction device, characterized in that: The device comprises: A request acquisition module, used to acquire a resource data interaction request, wherein the resource data interaction request carries a to-be-interacted resource data identifier, a target resource data identifier, and the to-be-interacted resource data corresponding to the to-be-interacted resource data identifier; A resource acquisition module, configured to acquire existing target resource data corresponding to the target resource data identifier based on the resource data identifier to be interacted with and the target resource data identifier, wherein the existing target resource data is used to interact with the resource data to be interacted with corresponding to the resource data identifier to be interacted with; an interaction rate adjustment module, configured to obtain a first original interaction rate and a second original interaction rate, and to offset-adjust the second original interaction rate based on the first original interaction rate, the second original interaction rate and the existing target resource data to obtain a second target interaction rate, wherein the first original interaction rate is used to characterize a standard interaction rate for interacting with the target resource data using the target resource data, and the second original interaction rate is used to characterize a standard interaction rate for interacting with the target resource data using the target resource data; An interaction module is used to interact with the current target resource data corresponding to the target resource data identifier based on the resource data to be interacted according to the second target interaction rate, obtain the interacted target resource data, and return the interacted target resource data and the second target interaction rate to the request end corresponding to the resource data interaction request.

13. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 11 are implemented.

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

15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.