Method and apparatus for updating resource conversion ratio, computer device and storage medium

By updating the resource conversion ratio in the resource management platform and utilizing the reverse conversion events and cancellation amounts of historical conversion events, the problem of low accuracy of the resource conversion ratio was solved, and resource loss compensation and platform operation stability were achieved.

CN122434652APending Publication Date: 2026-07-21TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
TENCENT TECHNOLOGY (SHENZHEN) CO LTD
Filing Date
2025-01-20
Publication Date
2026-07-21

AI Technical Summary

Technical Problem

Traditional resource management platforms often fail to accurately calculate resource conversion ratios when resource conversion is cancelled, leading to increased resource losses and impacting the platform's healthy operation.

Method used

By obtaining the resource conversion ratio at the target time, reverse conversion events in historical conversion events are identified, the conversion cancellation volume and ratio fluctuations are statistically analyzed, and the resource conversion ratio is updated to compensate for the losses caused by reverse conversion.

Benefits of technology

This improved the accuracy of resource conversion ratios, reduced resource losses, and ensured the healthy operation of the resource management platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122434652A_ABST
    Figure CN122434652A_ABST
Patent Text Reader

Abstract

The application relates to a resource conversion ratio updating method and device, computer equipment, a computer readable storage medium and a computer program product. The method comprises the following steps: acquiring a resource conversion ratio of a first resource and a second resource at a target time; determining a plurality of reverse conversion events of the first resource and the second resource from a plurality of historical conversion events; counting a conversion cancellation amount corresponding to the first time interval in a second time interval between the first time interval and the target time; and updating the resource conversion ratio based on the conversion cancellation amount and the conversion ratio fluctuation of the second time interval relative to the first time interval to obtain an updated conversion ratio corresponding to the target time. The reverse conversion event is used to cancel the forward conversion event, and the initiation time of the forward conversion event canceled by each reverse conversion event is in the first time interval. The method can improve the accuracy of the resource conversion ratio.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet technology, and in particular to a method, apparatus, computer device, computer-readable storage medium, and computer program product for updating resource conversion ratios. Background Technology

[0002] With the rapid development of internet technology, resource conversion services have emerged. Resource management platforms can determine the conversion ratio between different resources, allowing platform users to perform resource conversions based on this ratio. In practice, resource management platforms typically allow users, under certain restrictions, to cancel resource conversions based on the established conversion ratio, thereby better serving users and increasing user engagement.

[0003] In traditional technologies, resource management platforms directly use the resource conversion ratios provided by the reference source. When a resource conversion is cancelled, the platform incurs a certain amount of resource loss because the conversion ratios at the time of execution and cancellation are different. This is detrimental to the healthy operation of the resource management platform, especially when there is a large volume of business activity cancellations.

[0004] Therefore, traditional technologies cannot meet the application needs of resource management platforms and have the disadvantage of low accuracy in resource conversion ratios. Summary of the Invention

[0005] Therefore, it is necessary to provide a method, apparatus, computer device, computer-readable storage medium, and computer program product for updating the resource conversion ratio that can improve the accuracy of the resource conversion ratio, in order to address the above-mentioned technical problems.

[0006] Firstly, this application provides a method for updating a resource conversion ratio. The method includes:

[0007] Obtain the resource conversion ratio between the first resource and the second resource at the target time for reference;

[0008] From a plurality of historical conversion events initiated before the target time, a plurality of reverse conversion events for the first resource and the second resource are determined; the reverse conversion events are used to cancel forward conversion events; the forward conversion events are used to convert one of the first resource and the second resource to the other; the initiation time of the forward conversion event canceled by each of the reverse conversion events is within a first time interval;

[0009] For the second time interval between the first time interval and the target time, the conversion cancellation amount corresponding to the first time interval in the second time interval is counted;

[0010] Based on the conversion cancellation amount and the fluctuation of the conversion ratio of the second time interval relative to the first time interval, the resource conversion ratio is updated to obtain the updated conversion ratio corresponding to the target time.

[0011] Secondly, this application also provides a resource conversion ratio updating device. The device includes:

[0012] The reference ratio acquisition module is used to obtain the resource conversion ratio between the first resource and the second resource at the target time for reference.

[0013] A reverse conversion event determination module is used to determine multiple reverse conversion events for the first resource and the second resource from multiple historical conversion events whose initiation time is before the target time; the reverse conversion events are used to cancel forward conversion events; the forward conversion events are used to convert one of the first resource and the second resource to the other; the initiation time of the forward conversion event canceled by each of the reverse conversion events is within a first time interval;

[0014] The conversion cancellation statistics module is used to count the conversion cancellations in the second time interval corresponding to the first time interval for the second time interval between the first time interval and the target time.

[0015] The conversion ratio update module is used to update the resource conversion ratio based on the conversion cancellation amount and the conversion ratio fluctuation of the second time interval relative to the first time interval, so as to obtain the updated conversion ratio corresponding to the target time.

[0016] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of the above-described method.

[0017] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, implements the steps of the above-described method.

[0018] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the steps of the above-described method.

[0019] The aforementioned method, apparatus, computer device, computer-readable storage medium, and computer program product for updating the resource conversion ratio obtain a resource conversion ratio between a first resource and a second resource for reference at a target time; determine multiple reverse conversion events for the first and second resources from multiple historical conversion events initiated before the target time; for a second time interval between the first time interval and the target time, count the conversion cancellation amount corresponding to the first time interval in the second time interval; update the resource conversion ratio based on the conversion cancellation amount and the fluctuation of the conversion ratio between the second time interval and the first time interval to obtain the updated conversion ratio corresponding to the target time. Specifically, a forward conversion event is used to convert one of the first resource and the second resource to the other; a reverse conversion event is used to cancel a forward conversion event; and the initiation time of the forward conversion event canceled by each reverse conversion event is within the first time interval. In the above process, it is equivalent to further identifying the reverse conversion events that have occurred based on the resource conversion ratio obtained for reference, and statistically analyzing the second time interval in which the reverse conversion events occurred and the first time interval corresponding to the canceled forward conversion events, to obtain the conversion cancellation amount in the second time interval corresponding to the first time interval. Since the conversion cancellation amount and the fluctuation of the conversion ratio in the second time interval corresponding to the first time interval can characterize the impact of resource reverse conversion on the resource conversion ratio to a certain extent, updating the resource conversion ratio based on the conversion cancellation amount and the fluctuation of the conversion ratio to obtain the updated conversion ratio corresponding to the target time can, to a certain extent, compensate for the resource loss caused by resource reverse conversion, which is conducive to improving the accuracy of the resource conversion ratio. Attached Figure Description

[0020] Figure 1 This is an application environment diagram of the resource conversion ratio update method in one embodiment;

[0021] Figure 2 This is a flowchart illustrating a method for updating the resource conversion ratio in one embodiment;

[0022] Figure 3 This is a schematic diagram of the event information storage process in one embodiment;

[0023] Figure 4 This is a schematic diagram illustrating the method for determining the conversion cancellation amount in one embodiment;

[0024] Figure 5 This is a schematic diagram illustrating the method for determining the conversion cancellation amount in another embodiment;

[0025] Figure 6 This is a schematic diagram illustrating the process of calculating the impact factor according to a period in one embodiment;

[0026] Figure 7This is a flowchart illustrating the method for updating the resource conversion ratio in another embodiment;

[0027] Figure 8 This is a schematic diagram illustrating the update process of the resource conversion ratio in one embodiment;

[0028] Figure 9 This is a structural block diagram of a resource conversion ratio update device in one embodiment;

[0029] Figure 10 This is an internal structural diagram of a computer device in one embodiment;

[0030] Figure 11 This is a diagram of the internal structure of a computer device in another embodiment. Detailed Implementation

[0031] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0032] The resource conversion ratio update method provided in this application embodiment can be applied to, for example, Figure 1 In the application environment shown, terminal 110 communicates with server 120 via a network. This communication network can be a wired network or a wireless network. Therefore, terminal 110 and server 120 can be directly or indirectly connected via wired or wireless communication. For example, terminal 110 can be indirectly connected to server 120 via a wireless access point, or terminal 110 can be directly connected to server 120 via the Internet; this application does not impose any limitations on this.

[0033] Terminal 110 can be, but is not limited to, various desktop computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, and smart in-vehicle systems. Portable wearable devices can include smartwatches, smart bracelets, and head-mounted devices. Terminal 110 can have a resource management client installed; this client can be software (such as a browser, video software, etc.), a webpage, or a mini-program. Server 120 is the backend server corresponding to the resource management client, or a server specifically designed to provide resource management services.

[0034] Furthermore, server 120 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The data storage system can store the data that server 120 needs to process. The data storage system can be set up independently, integrated into server 120, or placed in the cloud or on other servers.

[0035] In some embodiments, server 120 may specifically be a server corresponding to a resource management platform; terminal 110 may be held by a platform user of the resource management platform. Specifically, server 120 may provide the platform user with the resource conversion ratio of the first resource and the second resource through terminal 110. Thus, the platform user may, based on the resource conversion ratio, initiate a forward conversion event or a reverse conversion event to server 120 through terminal 110 to execute or cancel business activities.

[0036] It should be noted that, provided the terminal's computing power meets the requirements for updating the resource conversion ratio, the terminal can also perform the resource conversion ratio update. This terminal is the one providing the resource conversion service, not the terminal held by the platform user. Taking server 120 as an example of updating the resource conversion ratio, server 120, during the update process,: obtains the resource conversion ratio of the first resource and the second resource at the target time for reference; identifies multiple reverse conversion events for the first and second resources from multiple historical conversion events initiated before the target time; for the second time interval between the first time interval and the target time, counts the conversion cancellation amount corresponding to the first time interval in the second time interval; based on the conversion cancellation amount and the fluctuation of the conversion ratio in the second time interval relative to the first time interval, updates the resource conversion ratio to obtain the updated conversion ratio corresponding to the target time. Specifically, forward conversion events are used to convert one of the first and second resources to the other; reverse conversion events are used to cancel forward conversion events; the initiation time of the forward conversion events canceled by each reverse conversion event is within the first time interval.

[0037] It should be noted that the use of terms such as "first," "second," and similar terms in this application does not indicate any order, quantity, or importance, but is merely used to distinguish different components. Unless the context clearly indicates otherwise, the singular forms "a," "one," or "the," etc., do not indicate a quantity limitation, but rather indicate the presence of at least one. The quantities of "multiple" or "multiple copies" mentioned in the embodiments of this application all refer to a quantity of "at least two," for example, "multiple" means "at least two," and "multiple copies" means "at least two copies."

[0038] In one embodiment, such as Figure 2 As shown, a method for updating the resource conversion ratio is provided, which is then applied to... Figure 1 Taking server 120 as an example, the explanation includes the following steps:

[0039] Step S202: Obtain the resource conversion ratio between the first resource and the second resource at the target time for reference.

[0040] In this context, "resources" refers to physical resources that have been abstracted and simulated using technological means, existing in cyberspace in digital form. Specifically, these resources can refer to in-game items or virtual resources, where items can include skins, wearable devices, and medicines; virtual resources can include coupons, gold coins, and in-game currency. These resources can also refer to digital resources circulating on the internet or blockchain. These digital resources can be blockchain data. The first and second resources are two different types of resources, and resource conversion is supported between them. Resource conversion refers to transforming one type of resource into another.

[0041] A resource conversion ratio is an indicator used to measure the conversion rate between different resources during the resource conversion process. This resource conversion ratio characterizes the value of one resource relative to another. It can be understood that, for the first and second resources, the resource conversion ratios to be updated include the resource conversion ratio of the first resource relative to the second resource (denoted as resource conversion ratio A), and the resource conversion ratio of the second resource relative to the first resource (denoted as resource conversion ratio B). Resource conversion ratio A characterizes the value of the first resource relative to the second resource, and resource conversion ratio B characterizes the value of the second resource relative to the first resource. In practical applications, since resource conversion ratios A and B are reciprocals of each other, only the scheme of this application needs to be adopted to update one of the resource conversion ratios; the other resource conversion ratio can be obtained by taking its reciprocal. The resource conversion ratio for reference refers to a resource conversion ratio provided for server reference.

[0042] In practical applications, the resource conversion ratio typically fluctuates over time. The target time refers to the time when the resource management platform of the server publishes the resource conversion ratio between the first and second resources. For example, when the resource management platform publishes the resource conversion ratio hourly, the target time could be a specific hour of a day; when it publishes it daily, the target time could be a specific day; and when it publishes it monthly, the target time could be a specific month.

[0043] Specifically, the server can obtain the resource conversion ratio of the first resource and the second resource at a target time from a reference source. This reference source can be an authoritative institution with the capability to calculate resource conversion ratios and a certain level of credibility. In an optional embodiment, the server can obtain the resource conversion ratio of the first resource and the second resource at the target time provided by at least one reference source, and obtain the reference resource conversion ratio of the first resource and the second resource at the target time by statistically analyzing the resource conversion ratios provided by each reference source. The specific algorithm for this statistical process can be averaging or medianing. Furthermore, when the resource is currency, the reference resource conversion ratio can be a fair exchange rate.

[0044] Step S204: From multiple historical conversion events whose initiation time is before the target time, identify multiple reverse conversion events for the first resource and the second resource.

[0045] Among them, a forward conversion event is used to convert one of the first resource and the second resource into the other, specifically including converting the first resource into the second resource and vice versa. A reverse conversion event is used to cancel a forward conversion event, that is, to cancel the resource conversion operation performed by the forward conversion event. Historical conversion events refer to resource conversion events that were initiated before the target time. These historical conversion events can include both forward and reverse conversion events, and the resource types targeted by each forward and reverse conversion event can be the same or different.

[0046] In one embodiment, for each resource conversion event, the server can record it according to resource type and event type. The resource type refers to the digital resource undergoing the conversion during the resource conversion event, such as a first resource and a second resource. The event type can include forward conversion events and reverse conversion events. Figure 3As shown, the server can first determine whether the event is a forward conversion event. If so, the event information can be classified and stored according to the event initiation time. If not, it can further determine whether the event is a reverse conversion event. If not, it means that the event is not a resource conversion event and no processing is required. If so, it can further query the initiation time of the forward conversion event canceled by the reverse conversion event. Then, the event information is classified and stored according to the two dimensions of the initiation time of the reverse conversion event (reverse initiation time) and the initiation time of the forward conversion event canceled by the reverse conversion event (forward initiation time).

[0047] The initiation times of the positive conversion events canceled by each reverse conversion event fall within the first time interval. A time interval refers to a period of time, i.e., a continuous time from start time to end time. The first time interval refers to the time interval in which the initiation times of at least a portion of the positive conversion events canceled by the reverse conversion event fall within. There can be one or more first time intervals. It can be understood that if there is only one first time interval, it refers to the time interval in which the initiation times of all positive conversion events canceled by the reverse conversion event fall within; if there are multiple first time intervals, it refers to the time interval in which the initiation times of a portion of the positive conversion events canceled by the reverse conversion event fall within. During the update process of the resource conversion ratio, the initiation times of the canceled positive conversion events can be statistically analyzed according to the first statistical period, resulting in one or more first time intervals. This first statistical period can be, for example, a day, week, or month.

[0048] In one embodiment, the server can query multiple historical conversion events whose initiation time is before the target time from the historical records. By matching resource type and event type, it determines selected conversion events for the first and second resources from these historical conversion events. Then, based on the initiation time of the cancelled forward conversion events for each selected conversion event, it determines multiple reverse conversion events whose initiation time falls within a first time interval. Alternatively, it can statistically analyze the initiation times of the cancelled forward conversion events for each selected conversion event to determine multiple first time intervals and the corresponding reverse conversion events for each first time interval. The time interval between the initiation time of the historical conversion events and the target time is not unique; for example, it could be two days, one week, or one month. It is understood that the larger the time span corresponding to the historical conversion events, the more selected reverse conversion events are obtained, resulting in a better compensation effect for resource losses caused by resource reverse conversion in the final update conversion ratio. However, the computational load is also greater.

[0049] In one embodiment, the server may first determine a first time interval that matches the target time, then query historical transition events whose initiation time is between the target time and the end time of the first time interval from the historical records, and further determine multiple reverse transition events from each historical transition event whose initiation time is within the first time interval for the positive transition events that are for the first resource and the second resource and are canceled.

[0050] In an optional embodiment, the server can determine a first time interval based on the maximum time span between a forward conversion event and a reverse conversion event used to cancel the forward conversion event. The maximum time span is the time interval between the end time of the first time interval and the target time. Furthermore, the server can determine the reverse conversion events for the first and second resources from multiple historical conversion events initiated within this maximum time span to ensure the resource conversion ratio update method is well-suited to the actual application scenario, thereby improving the update effect of the resource conversion ratio.

[0051] For example, the server can determine from selected transition events occurring one week prior to the target time (denoted as Day T) multiple reverse transition events where the initiation time of the cancelled forward transition event is the eighth day prior to the target time (denoted as Day T-8). In this case, the first time interval is Day T-8. The server can also determine from selected transition events occurring one week prior to the target time (denoted as Day T) multiple reverse transition events where the initiation time of the cancelled forward transition event is the eighth day prior to the target time (denoted as Day T-8), and multiple reverse transition events where the initiation time of the cancelled forward transition event is the seventh day prior to the target time (denoted as Day T-7). In this case, the first time interval includes Day T-8 and Day T-7.

[0052] Step S206: For the second time interval between the first time interval and the target time, calculate the conversion cancellation amount corresponding to the first time interval in the second time interval.

[0053] The second time interval refers to the time interval in which at least a portion of the reverse conversion events originate. Located between the first time interval and the target time, the second time interval begins later than the end time of the first time interval, and ends earlier than the target time. Similar to the first time interval, the number of second time intervals can be one or more. It can be understood that when there is only one second time interval, it refers to the time interval in which all reverse conversion events originate; when there are multiple second time intervals, it refers to the time interval in which a portion of the reverse conversion events originate. During the update of the resource conversion ratio, the time intervals of the initiation times of the reverse conversion events can be statistically analyzed according to a second statistical period to obtain one or more second time intervals. This second statistical period can be, for example, daily, weekly, or monthly. Furthermore, the durations of the first and second time intervals can be the same or different. Taking the case where the first time interval and the second time interval are the same as an example, the first time interval can refer to day T-8, and the second time interval can include day T-1, day T-2, ..., day T-7.

[0054] In an optional embodiment, the duration of the second time interval is positively correlated with the reverse conversion period. The reverse conversion period refers to the maximum time span between the initiation times of the forward conversion event and the reverse conversion event used to cancel the forward conversion event. As mentioned earlier, to better serve users, resource management platforms typically allow users to cancel resource conversions that have already occurred under certain restrictions. In practical applications, these restrictions are usually represented by the reverse conversion period; that is, the resource management platform supports users canceling the forward conversion event within a certain period after initiating it. For example, if the reverse conversion period is 7 days, the second time interval can be 1 day, meaning the reverse conversion volume is counted on a daily basis; if the reverse conversion period is 1 year, the second time interval can be 1 month, meaning the resource conversion volume is counted on a monthly basis.

[0055] The conversion cancellation amount corresponding to the first time interval in the second time interval refers to the conversion cancellation amount of the reverse conversion event used to cancel the positive conversion event in the first time interval within the second time interval.

[0056] Specifically, the server can calculate the conversion cancellation amount corresponding to the first time interval based on the second statistical period, the second time interval between the first time interval and the target time, and then, for each reverse conversion event occurring in the second time interval, calculate the resource quantity of the first or second resource, and sum them up to obtain the conversion cancellation amount corresponding to the first time interval in the second time interval. For example, if the resource quantities corresponding to the first resource in each reverse conversion event occurring on day T-1 are Q1 and Q2 respectively, then the conversion cancellation amount corresponding to the first time interval in the second time interval is Q1+Q2.

[0057] It is understandable that, when there are multiple second time intervals, the server can separately count the conversion cancellations corresponding to the first time interval for each second time interval. For example... Figure 4 As shown, when the target time is day T, the first time interval is day T-8, and the second time interval includes day T-1, day T-2, ..., day T-7, the resulting conversion cancellation amount can include: the conversion cancellation amount of the positive conversion event from day Ti to day T-8. Where i = 1, 2, ..., 7.

[0058] When there are multiple first and second time intervals, the server can, for each combination of first and second time intervals, separately count the conversion cancellation rate of the second time interval corresponding to the first time interval in that combination. For example... Figure 5 As shown, when the target time is day T, the first time interval includes day T-7 and day T-8, and the second time interval includes day T-1, day T-2, ..., day T-7, the resulting conversion cancellation amount can include: the conversion cancellation amount for the positive conversion event from day Ti to day T-8, and the conversion cancellation amount for the positive conversion event from day Tj to day T-7. Where i = 1, 2, ..., 7; j = 1, 2, ..., 6.

[0059] Step S208: Based on the conversion cancellation amount and the fluctuation of the conversion ratio between the second time interval and the first time interval, update the resource conversion ratio to obtain the updated conversion ratio corresponding to the target time.

[0060] The conversion ratio fluctuation is used to characterize the change in the resource conversion ratio over a certain period. The conversion ratio fluctuation of the second time interval relative to the first time interval refers to the fluctuation of the conversion ratio in the second time interval calculated based on the resource conversion ratio of the first time interval. This conversion ratio fluctuation can be characterized by the difference between the resource conversion ratios of the first and second time intervals. This difference can be a differential value or a ratio. Furthermore, the resource conversion ratios of the first and second time intervals can be the resource conversion ratios corresponding to the end time of each time interval, that is, the last resource conversion ratio determined by the server in each time interval. The resource conversion ratios of the first and second time intervals can also refer to the maximum or minimum values ​​among the corresponding resource conversion ratios of the first and second time intervals.

[0061] In an optional embodiment, the fluctuation of the conversion ratio between the second time interval and the first time interval is represented as volatility. For example, this conversion ratio fluctuation can be expressed as: V2_1 = |P2 - P1| / P1. Wherein, V2_1 represents the fluctuation of the conversion ratio between the second time interval and the first time interval; P1 represents the resource conversion ratio between the first resource and the second resource in the first time interval; and P2 represents the resource conversion ratio between the first resource and the second resource in the second time interval.

[0062] Specifically, the server can update the resource conversion ratio based on the number of conversion cancellations and the fluctuation of the conversion ratio in the second time interval relative to the first time interval, obtaining an updated conversion ratio corresponding to the target time. This updated conversion ratio will be published to platform users so that they can perform resource conversions based on it. It can be understood that since the updated conversion ratio is used to compensate for resource losses caused by reverse resource conversions, the updated conversion ratio is greater than the reference resource conversion ratio. To a certain extent, the difference between the updated conversion ratio and the reference resource conversion ratio can serve as compensation for the service resources expended by the resource management platform in providing resource conversion services to platform users. Optionally, the server can use the resource conversion ratios published by the resource management platform in the first and second time intervals respectively to calculate the fluctuation of the conversion ratio in the second time interval relative to the first time interval, ensuring the effectiveness of the resource compensation based on the updated conversion ratio determined by the conversion ratio fluctuation.

[0063] In an optional embodiment, the server can update the resource conversion ratio based on the conversion cancellation amount, the total positive conversion amount of the first and second resources within the first time interval, and the fluctuation of the conversion ratio between the second and first time intervals, to obtain an updated conversion ratio corresponding to the target time. The difference between the updated conversion ratio and the reference resource conversion ratio is positively correlated with the conversion cancellation amount, inversely correlated with the total positive conversion amount, and positively correlated with the fluctuation of the conversion ratio. In other words, the higher the reverse conversion rate of the second time interval corresponding to the first time interval, and the greater the fluctuation of the conversion ratio between the second and first time intervals, the greater the actual resource loss caused by the reverse conversion, requiring an increase in the resource conversion ratio to compensate for this resource loss. It is understood that... Figure 4 The update conversion ratio determined in the given scenario is used to compensate for the resource loss caused by the reverse conversion event on day T-8 from day T-1 to day T-7. Figure 5 The update conversion ratio determined in the scenario is used to compensate for the resource loss caused by the reverse conversion events from day T-1 to day T-7 to day T-8, and the reverse conversion events from day T-1 to day T-6 to day T-7.

[0064] In an optional embodiment, considering the resource loss caused by the reverse conversion of resources in the second time interval, which will affect the resource conversion ratio in the second time interval to some extent, the server can also update the resource conversion ratio based on the conversion cancellation amount, the total forward conversion of the first resource and the second resource in the second time interval, and the fluctuation of the conversion ratio in the second time interval relative to the first time interval, to obtain the updated conversion ratio corresponding to the target time. The greater the correlation between the ratio of the conversion cancellation amount to the total forward conversion in the second time interval and the fluctuation of the conversion ratio, the greater the impact of the reverse conversion on the resource conversion ratio, and the greater the difference between the updated conversion ratio and the reference resource conversion ratio.

[0065] In the above method for updating the resource conversion ratio, the resource conversion ratio of the first resource and the second resource at the target time is obtained for reference; multiple reverse conversion events for the first and second resources are determined from multiple historical conversion events initiated before the target time; for the second time interval between the first time interval and the target time, the conversion cancellation amount corresponding to the first time interval is counted; based on the conversion cancellation amount and the fluctuation of the conversion ratio between the second time interval and the first time interval, the resource conversion ratio is updated to obtain the updated conversion ratio corresponding to the target time. Specifically, a forward conversion event is used to convert one of the first resource and the second resource to the other; a reverse conversion event is used to cancel a forward conversion event; and the initiation time of the forward conversion event canceled by each reverse conversion event is within the first time interval. In the above process, it is equivalent to further identifying the reverse conversion events that have occurred based on the resource conversion ratio obtained for reference, and statistically analyzing the second time interval in which the reverse conversion events occurred and the first time interval corresponding to the canceled forward conversion events, to obtain the conversion cancellation amount in the second time interval corresponding to the first time interval. Since the conversion cancellation amount and the fluctuation of the conversion ratio in the second time interval corresponding to the first time interval can characterize the impact of resource reverse conversion on the resource conversion ratio to a certain extent, updating the resource conversion ratio based on the conversion cancellation amount and the fluctuation of the conversion ratio to obtain the updated conversion ratio corresponding to the target time can, to a certain extent, compensate for the resource loss caused by resource reverse conversion, which is conducive to improving the accuracy of the resource conversion ratio.

[0066] In one embodiment, determining multiple reverse conversion events for a first resource and a second resource from multiple historical conversion events whose initiation time is before the target time includes: determining historical times whose time interval with the target time satisfies an interval condition; and determining multiple reverse conversion events whose initiation time is between the target time and the historical time from the multiple historical conversion events.

[0067] The interval condition is characterized by an interval threshold. There can be one or more interval thresholds. When there is only one interval threshold, the interval time satisfies the interval condition if the interval time is less than or equal to the threshold, or if the interval time is equal to the threshold. When there are multiple interval thresholds, the interval time satisfies the interval condition if the interval time is equal to any one of the thresholds, or if the interval time falls within the time interval defined by the multiple thresholds. Furthermore, the interval threshold can be determined based on the server's computing performance; the stronger the computing performance, the larger the interval threshold, to ensure that the server performance can meet the computational requirements during the resource conversion ratio update process.

[0068] In an optional embodiment, the method for updating the resource conversion ratio further includes: obtaining the reverse conversion period for the resource conversion configuration; determining an interval threshold positively correlated with the reverse conversion period, and an interval condition characterized by the interval threshold.

[0069] The reverse conversion period refers to the maximum time span between a forward conversion event and a reverse conversion event used to cancel the forward conversion event.

[0070] Specifically, the server can obtain the reverse conversion period configured for resource conversion and further determine the interval threshold positively correlated with the reverse conversion period, as well as the interval conditions represented by the interval threshold. In other words, the larger the maximum time span, the larger the interval threshold. Taking an interval threshold of one as an example, with a maximum time span of 7 days, the interval threshold can be 7, and the interval condition can be that the time interval is less than 7. That is, when the target time is day T, the determined initiation time of the reverse conversion event can include day Ti, where i = 1, 2, ..., 7. With a maximum time span of 7 days, the interval threshold can also be 6 or 8, and the interval condition can be that the time interval is less than the interval threshold.

[0071] Determining the interval conditions based on the reverse conversion period can ensure that the cancellation data used in the resource conversion ratio update process is adapted to the actual application scenario, which is conducive to improving the update effect of the resource conversion ratio.

[0072] In practical applications, there may be many reverse transition events whose initiation time is before the target time. To reduce the workload of subsequent processing, the server can determine the interval conditions according to the actual application requirements, then further determine the historical times whose time interval with the target time meets the interval conditions, and finally determine multiple reverse transition events for the first and second resources from the historical transition events whose initiation time is before the target time, and whose initiation time is between the target time and the historical time. For example, Figure 4 As shown, when the target time is day T, the server can determine day T-8 as a historical time that satisfies the interval condition with respect to the target time, and further determine multiple reverse conversion events initiated on day Ti from multiple historical conversion events. Where i=1,2,…,7.

[0073] In the above embodiments, historical times that meet the interval conditions with respect to the target time are first determined, and then the reverse conversion events between the target time and the historical time are further filtered. This can ensure that the resource conversion ratio update requirements are met while avoiding excessive consumption of computing resources due to the large number of reverse conversion events, which could cause server lag. This is beneficial to ensuring the timeliness of the obtained update conversion ratio.

[0074] In one embodiment, determining multiple reverse conversion events whose initiation time is between the target time and the historical time from multiple historical conversion events includes: determining multiple candidate reverse events whose initiation time is between the target time and the historical time from multiple historical conversion events; determining a first time interval that matches the historical time; and filtering from each candidate reverse event the reverse conversion events whose initiation time of the canceled forward conversion event is within the first time interval.

[0075] Among them, candidate reverse events refer to reverse transformation events that are candidates. Matching the first time interval with historical time includes: when the time span of the historical time is the same as the first statistical period, the historical time is the first time interval; when the time span of the historical time is greater than the first statistical period, the historical time is included in the first time interval; when the time span of the historical time is less than the first statistical period, the historical time belongs to the first time interval.

[0076] Specifically, the server can identify multiple candidate reverse events from a range of historical conversion events, with their initiation times falling between the target time and the historical time. Then, the server can determine a first time interval that matches the historical time. Finally, the server filters from these candidate reverse events, selecting those whose initiation times fall within the first time interval. For example, if the target time is day T and the historical time is day T-8, for each day between day T-8 and day T, the initiation time of the canceled forward conversion event among the candidate reverse events occurring on that day can be any time interval that satisfies the reverse conversion deadline. To reduce computation, the server can further filter from these candidate reverse events, selecting those whose initiation time is day T-8. That is, the filtered reverse conversion events include reverse conversion events from day Ti for the forward conversion event on day T-8, where i = 1, 2, ..., 7.

[0077] In a specific implementation, the server can obtain the reverse conversion period configured for the resource conversion; determine the interval threshold positively correlated with the reverse conversion period, and the interval conditions characterized by the interval threshold. Then, it determines historical times whose time intervals with the target time satisfy the interval conditions, and from historical conversion events whose initiation time is before the target time, it identifies multiple candidate conversion events for the first and second resources, with initiation times between the target time and historical times. Next, the server determines a first time interval matching the historical times, and from each candidate reverse event, filters out reverse conversion events whose initiation times fall within the first time interval.

[0078] In the above embodiments, the reverse conversion event used for updating the resource conversion ratio is selected based on the initiation time of the reverse conversion event and the initiation time of the forward conversion event canceled by the reverse conversion event. This can compensate for the resource loss caused by the reverse conversion while avoiding excessive computation for each update, thereby ensuring the timeliness of the obtained updated conversion ratio.

[0079] In one embodiment, for a second time interval between a first time interval and a target time, the conversion cancellation amount corresponding to the first time interval in the second time interval is calculated, including: for a second time interval between the first time interval and the target time, determining the total reverse conversion amount corresponding to the reverse conversion events occurring in the second time interval; if the total reverse conversion amount is less than or equal to the cancellation amount threshold, the cancellation amount threshold is determined as the conversion cancellation amount corresponding to the first time interval in the second time interval.

[0080] The cancellation threshold can be a fixed value or it can change with the total positive conversions in the second time interval. For example, it can be 10% of the total positive conversions in the second time interval.

[0081] In practical applications, there may be a second time interval where the conversion cancellation rate is very small or even zero. To avoid the failure of resource loss compensation based on conversion cancellation rate, the server can pre-configure a cancellation rate threshold and, for the second time interval between the first time interval and the target time, calculate the total reverse conversion amount corresponding to the reverse conversion events occurring in the second time interval according to the resource amount of the first or second resource involved in the reverse conversion. If the total reverse conversion amount is less than or equal to the cancellation rate threshold, the cancellation rate threshold is determined as the conversion cancellation amount of the second time interval corresponding to the first time interval. It is understood that the resource types used in this application are consistent when calculating resource amounts. For example, the total forward and reverse conversion amounts can be calculated based on the first resource, or the total forward and reverse conversion amounts can be calculated based on the second resource.

[0082] Taking the target time as day T and the first time interval as day T-8 as an example, the second time interval between the target time and the first time interval can include day T-1, day T-2, ..., day T-7. For example... Figure 4 As shown, if the total reverse conversion on day T-4 is less than or equal to 10% of the total forward conversion on day T-8, then 10% of the total forward conversion on day T-8 will be used as the conversion cancellation amount for day T-4 corresponding to day T-8.

[0083] In the above embodiments, when the total reverse conversion in the second time interval is less than or equal to the cancellation threshold, the cancellation threshold is determined as the conversion cancellation amount of the second time interval corresponding to the first time interval. This is equivalent to supplementing a certain amount of reverse cancellation when the total reverse cancellation amount is very small. This can avoid the failure of resource loss compensation due to the historically insufficient total reverse cancellation amount, and is conducive to further ensuring the accuracy of the updated conversion ratio.

[0084] In one embodiment, updating the resource conversion ratio based on the conversion cancellation amount and the conversion ratio fluctuation of the second time interval relative to the first time interval to obtain the updated conversion ratio corresponding to the target time includes: determining the influence factor of resource reverse conversion occurring in the second time interval on the conversion ratio based on the conversion cancellation amount and the conversion ratio fluctuation of the second time interval relative to the first time interval; and updating the resource conversion ratio using the influence factor to obtain the updated conversion ratio corresponding to the target time.

[0085] The impact factor is used to characterize the degree of influence of resource reversal during the second time interval on the conversion ratio.

[0086] Specifically, the server can determine the impact factor of resource reverse conversions occurring in the second time interval on the conversion ratio based on the conversion cancellation volume and the fluctuation of the conversion ratio in the second time interval relative to the first time interval. Then, it uses this impact factor to update the resource conversion ratio, obtaining the updated conversion ratio corresponding to the target time. Optionally, the updated conversion ratio PT can be expressed as PT = Pt * (1 + cost), or PT = Pt + cost. Here, Pt represents the resource conversion ratio for reference at the target time, and cost represents the impact factor of resource reverse conversions occurring in the second time interval on the conversion ratio. It can be understood that when there are multiple instances of either the second or first time interval, cost can represent the statistical value of the impact factor corresponding to the combinations of multiple first and second time intervals.

[0087] In the above embodiments, the influence factor of resource reverse conversion occurring in the second time interval on the conversion ratio is first determined, and then the resource conversion ratio is updated using the influence factor. This can ensure the resource compensation effect and help improve the accuracy of the updated conversion ratio.

[0088] In practical applications, the impact factor can be calculated for each release time of the resource conversion ratio. That is, for each resource conversion ratio obtained for reference, the method provided in this application is used to determine the impact factor that matches the resource conversion ratio, so as to achieve dynamic compensation for resource loss and improve the compensation effect. Alternatively, the impact factor can be calculated on a periodic basis. That is, multiple release times within a calculation period share the same impact factor to reduce workload.

[0089] In one embodiment, determining multiple reverse conversion events for a first resource and a second resource from multiple historical conversion events initiated before the target time includes: obtaining the reverse conversion period for the resource conversion configuration; determining the impact factor calculation period whose period length matches the reverse conversion period; if the resource conversion ratio is the first resource conversion ratio obtained in the current calculation period, then determining multiple reverse conversion events for the first resource and the second resource from multiple historical conversion events initiated before the target time. In this embodiment, the method for updating the resource conversion ratio further includes: if the resource conversion ratio is not the first resource conversion ratio obtained in the current calculation period, then updating the resource conversion ratio using the impact factors already determined in the current calculation period to obtain the updated conversion ratio corresponding to the target time.

[0090] The reverse conversion period refers to the maximum time span between the initiation of a positive conversion event and the reverse conversion event used to cancel the positive conversion event. The duration of the impact factor calculation cycle is positively correlated with the reverse conversion period. For example, with a reverse conversion period of 7 days, the duration of the impact factor calculation cycle can be 1 day, meaning that the impact factor is statistically analyzed on a daily basis; with a reverse conversion period of 1 year, the duration of the impact factor calculation cycle can be 1 month, meaning that the impact factor is statistically analyzed on a monthly basis.

[0091] Specifically, the server can obtain the reverse conversion period for the resource conversion configuration and determine the calculation period for influencing factors that are positively correlated with the cycle length and reverse conversion period. For example... Figure 6As shown, when the resource conversion ratio for the first and second resources at the target time is obtained, the server can determine whether this resource conversion ratio is the first resource conversion ratio obtained in the current calculation period. If the resource conversion ratio is the first resource conversion ratio obtained in the current calculation period, multiple reverse conversion events for the first and second resources are determined from multiple historical conversion events initiated before the target time, and the impact factor is calculated based on these reverse conversion events. If the resource conversion ratio is not the first resource conversion ratio obtained in the current calculation period, the reference resource conversion ratio at the target time is updated using the impact factor already determined before the current calculation period to obtain the updated conversion ratio corresponding to the target time.

[0092] In the above embodiments, by calculating the impact factor of resource reverse conversion on the conversion ratio according to the impact factor accounting cycle that matches the reverse conversion period, the impact factor of resource reverse conversion occurring in the second time interval can be statistically analyzed. This can ensure resource compensation while avoiding server lag or performance degradation due to excessive computation, and is conducive to improving the scientific nature of the resource conversion ratio update method.

[0093] It should be noted that there is no single method by which servers determine influencing factors.

[0094] In an optional embodiment, considering the resource loss caused by the reverse conversion of resources occurring in the second time interval, which will affect the resource conversion ratio in the second time interval to some extent, the server can also determine the conversion cancellation amount, the total forward conversion of the first resource and the second resource in the second time interval, and the fluctuation of the conversion ratio in the second time interval relative to the first time interval. Based on the correlation between the ratio of conversion cancellations to the total forward conversions and the fluctuation of the conversion ratio, the server can determine the influence factor of the reverse conversion of resources occurring in the second time interval on the conversion ratio. Specifically, the greater the correlation between the ratio of conversion cancellations to the total forward conversions in the second time interval and the fluctuation of the conversion ratio, the greater the impact of the reverse conversion on the resource conversion ratio, and the larger the influence factor.

[0095] In an optional embodiment, the influence factor of resource reverse conversions occurring in the second time interval on the conversion ratio is determined based on the conversion cancellation amount and the conversion ratio fluctuation of the second time interval relative to the first time interval. This includes: determining the total positive conversion amount of resource positive conversions occurring in the first time interval; determining the reverse conversion rate of the second time interval relative to the resource positive conversions occurring in the first time interval based on the conversion cancellation amount and the total positive conversion amount; and determining the influence factor of resource reverse conversions occurring in the second time interval on the conversion ratio based on the reverse conversion rate and the conversion ratio fluctuation of the second time interval relative to the first time interval.

[0096] Specifically, the server can statistically determine the total number of forward conversions of resources occurring within the first time interval. Then, the ratio of the number of conversion cancellations in the second time interval corresponding to the first time interval to the total number of forward conversions is determined as the reverse conversion rate of the second time interval relative to the forward conversions occurring in the first time interval. Finally, based on the reverse conversion rate and the fluctuation of the conversion ratio in the second time interval relative to the first time interval, the server determines the impact factor of reverse conversions of resources occurring in the second time interval on the conversion ratio.

[0097] In a specific implementation, if the number of first time intervals is one, the server can determine the product of the reverse conversion rate and the fluctuation of the conversion ratio in the second time interval relative to the first time interval as the influence factor of the resource reverse conversion occurring in the second time interval on the conversion ratio. This influence factor, cost, can be expressed as: cost = V2_1 * R2_1 / A1, where V2_1 represents the fluctuation of the conversion ratio in the second time interval relative to the first time interval, R2_1 represents the amount of conversion cancellation in the second time interval corresponding to the first time interval, and A1 represents the total amount of positive conversion of resources occurring in the first time interval.

[0098] In a specific implementation, when there are multiple first time intervals, the server can use the reverse conversion rate of each second time interval relative to each of the first time intervals as a weight to perform a weighted summation of the fluctuations in the conversion ratios of the second time intervals relative to the first time intervals, thus determining the influence factor of resource reverse conversions occurring within the second time interval on the conversion ratios. This influence factor, cost, can be expressed as: cost = V2_m * R2_m / Am, where m = 1, 2, ..., M; M is a positive integer representing the number of first time intervals; V2_m represents the fluctuation of the conversion ratio of the second time interval relative to the first time interval m; R2_m represents the amount of conversion cancellations in the second time interval corresponding to the first time interval m; and Am represents the total amount of positive conversions of resource forward conversions occurring within the first time interval m.

[0099] It can be understood that when there are multiple first and second time intervals, the impact factor cost can be expressed as: cost = Vn_m * Rn_m / Am, where m = 1, 2, ..., M; n = 1, 2, ..., N; M is a positive integer representing the number of first time intervals; N is a positive integer representing the number of second time intervals; Vn_m represents the fluctuation of the conversion ratio of the second time interval n relative to the first time interval m; Rn_m represents the amount of conversion cancellation in the second time interval n corresponding to the first time interval m; and Am represents the total amount of positive conversion of resources occurring in the first time interval m.

[0100] In the above embodiments, based on the reverse conversion rate of the resource forward conversion that occurred in the first time interval relative to the second time interval, and the fluctuation of the conversion ratio of the second time interval relative to the first time interval, the influence factor of the resource reverse conversion that occurred in the second time interval on the conversion ratio is determined. Since the higher the reverse conversion rate of the second time interval relative to the first time interval, and the greater the fluctuation of the conversion ratio of the second time interval relative to the first time interval, the greater the actual resource loss caused by the resource reverse conversion, the updated conversion ratio determined based on this influence factor has a high degree of fit with the actual resource loss that needs to be compensated, which is conducive to further improving the accuracy of the updated conversion ratio.

[0101] In one embodiment, there are multiple second time intervals. In this embodiment, updating the resource conversion ratio using an impact factor to obtain the updated conversion ratio corresponding to the target time includes: statistically analyzing the impact factors of each second time interval to obtain the comprehensive impact factor of resource reverse conversion occurring in each second time interval on the conversion ratio; and updating the resource conversion ratio based on the comprehensive impact factor to obtain the updated conversion ratio corresponding to the target time.

[0102] Specifically, when there are multiple second time intervals, multiple impact factors can be obtained for each second time interval. In this case, the server can statistically analyze the impact factors of each second time interval to obtain a comprehensive impact factor on the conversion ratio of resource reverse conversions occurring within each second time interval. This comprehensive impact factor is then used to update the resource conversion ratio to obtain the updated conversion ratio corresponding to the target time. The specific algorithm for obtaining the comprehensive impact factor from the statistical analysis of each impact factor is not unique and can include summation, averaging, weighted summation, etc. In the weighted summation process, the weight of each impact factor can be positively correlated with the conversion cancellation amount corresponding to the second time interval, or inversely correlated with the time interval between the second time interval and the target time; this is not limited here.

[0103] In a specific implementation, if there are multiple items in either the second or first time interval, the server can calculate the impact factor according to the impact factor calculation cycle that matches the reverse conversion period, and record the comprehensive impact factor determined for each calculation cycle. If the resource conversion ratio is not the first resource conversion ratio obtained in the current calculation cycle, the resource conversion ratio is updated using the comprehensive impact factor determined for the current calculation cycle to obtain the updated conversion ratio corresponding to the target time.

[0104] In the above embodiments, when there are multiple second time intervals, the influence factors of each second time interval are first counted to obtain a comprehensive influence factor. Then, the resource conversion ratio is updated based on the comprehensive influence factor to obtain the updated conversion ratio corresponding to the target time. This facilitates the reuse of the comprehensive influence factor and helps improve work efficiency.

[0105] In one embodiment, the resource conversion ratio is updated according to the accounting cycle. In this embodiment, updating the resource conversion ratio based on the comprehensive impact factor to obtain the updated conversion ratio corresponding to the target time includes: obtaining at least one historical comprehensive impact factor determined within a historical accounting cycle; updating the resource conversion ratio based on the historical comprehensive impact factor and the statistical value of the comprehensive impact factor determined in the current accounting cycle to obtain the updated conversion ratio corresponding to the target time.

[0106] While calculating impact factors cyclically can reduce workload, the resulting impact factors depend on the resource conversion ratio and reverse conversion amount of the current accounting period. Since the resource conversion amount of the current accounting period is also affected by other environmental factors, and the reverse conversion amount is affected by human factors, any anomaly in either of these will affect the compensation effect of the determined impact factors on resource losses. Therefore, the server can obtain at least one historical comprehensive impact factor determined within a historical accounting period. Then, by comprehensively considering the statistical values ​​of this historical comprehensive impact factor and the comprehensive impact factor determined in the current accounting period, the resource conversion ratio is updated to obtain the updated conversion ratio corresponding to the target time.

[0107] For example, the server updates the resource conversion ratio Pt using the historical comprehensive impact factor and the average value of the comprehensive impact factor determined in the current accounting period, obtaining the updated conversion ratio PT corresponding to the target time. That is: PT = Pt * (1 + (cost + cost') / 2), or PT = Pt + (cost + cost') / 2. Where cost represents the comprehensive impact factor determined in the current accounting period; cost' represents the historical comprehensive impact factor.

[0108] The server can also update the resource conversion ratio by taking a moving average of the historical comprehensive impact factors and the comprehensive impact factors determined in the current accounting period, thus obtaining the updated conversion ratio corresponding to the target time. In determining the moving average, the comprehensive impact factors determined in the current accounting period have the largest weight, and the weight of each historical comprehensive impact factor is inversely correlated with the time interval between the historical and current accounting periods. For example, consider the case where the historical comprehensive impact factors include those determined in the previous two historical accounting periods:

[0109] PT=Pt*(1+(k1cost+k2cost'1+k3cost'2) / ( k1+k2+k3));

[0110] or:

[0111] PT=Pt+(k1cost+k2cost'1+k3cost'2) / (k1+k2+k3).

[0112] Where k1 represents the weight of cost1; cost'1 represents the historical comprehensive impact factor determined in the previous historical accounting period of the current accounting period; k2 represents the weight of cost'1; cost'2 represents the historical comprehensive impact factor determined in the previous historical accounting period of the previous historical accounting period; and k3 represents the weight of cost'2; k1 > k2 > k3.

[0113] In the above embodiments, the resource conversion ratio is updated based on the historical comprehensive impact factor determined in at least one historical accounting period and the statistical value of the comprehensive impact factor determined in the current accounting period, so as to obtain the updated conversion ratio corresponding to the target time. This can avoid the abnormal impact caused by abnormal situations occurring in the current accounting period and help to further improve the accuracy of the updated conversion ratio.

[0114] The following describes the process of determining the fluctuation of the conversion ratio in the second time interval relative to the first time interval. Given that the first and second time intervals each correspond to a resource conversion ratio, the server can calculate the difference between these two resource conversion ratios to determine the fluctuation of the conversion ratio.

[0115] In one embodiment, the method for updating the resource conversion ratio further includes: obtaining multiple first conversion ratios of the first resource and the second resource in a first time interval, and multiple second conversion ratios of the first resource and the second resource in a second time interval; determining a first characteristic ratio from each first conversion ratio, and determining a second characteristic ratio from each second conversion ratio; and determining the conversion ratio fluctuation of the second time interval relative to the first time interval based on the fluctuation of the second characteristic ratio relative to the first characteristic ratio.

[0116] The characteristic ratio can refer to the resource conversion ratio at a specific time. This characteristic time could be, for example, the release time of the last resource conversion ratio within a time interval (i.e., the characteristic ratio is the last released resource conversion ratio within a time interval); or it could be the release time of the first resource conversion ratio within a time interval (i.e., the characteristic ratio is the first released resource conversion ratio within a time interval). The characteristic ratio can also refer to the maximum, minimum, or median value, and is not limited here. Optionally, the first and second characteristic values ​​are determined in the same way to ensure the accuracy of the conversion ratio fluctuations.

[0117] Specifically, the server can obtain multiple first conversion ratios between the first resource and the second resource in a first time interval, and multiple second conversion ratios between the first resource and the second resource in a second time interval. Then, it determines a first characteristic ratio from each first conversion ratio and a second characteristic ratio from each second conversion ratio. Finally, the server determines the fluctuation of the conversion ratio between the second time interval and the first time interval based on the fluctuation of the second characteristic ratio relative to the first characteristic ratio.

[0118] Furthermore, the number of both the first feature ratio and the second feature ratio can be multiple. When at least one of the first or second feature ratios is multiple, the server can obtain multiple sets of feature ratio pairs, each set including one first feature ratio and one second feature ratio. Then, for each set of feature ratio pairs, the server can determine the fluctuation of the second feature ratio relative to the first feature ratio. Finally, the server statistically analyzes the fluctuations corresponding to each set of feature ratio pairs to determine the fluctuation of the conversion ratio between the second time interval and the first time interval. The statistical algorithm can include averaging, taking the maximum value, etc.

[0119] In an optional embodiment, the server may determine the maximum and minimum values ​​among the first conversion ratios as first feature ratios, and determine the second feature ratio among the second conversion ratios whose publication time is closest to the current time; then determine the fluctuation of each first feature ratio relative to the second feature ratio; finally, the server may determine the maximum value among the fluctuations as the conversion ratio fluctuation of the first time interval relative to the second time interval.

[0120] In the above embodiments, when the first time interval and the second time interval correspond to multiple resource conversion ratios respectively, the fluctuation of the conversion ratio of the second time interval relative to the first time interval is determined based on the feature values ​​in each resource conversion ratio. This can reduce the amount of computation while ensuring that the fluctuation of the conversion ratio can represent the real fluctuation of the corresponding time area, which is conducive to further improving the accuracy of the updated conversion ratio determined based on the fluctuation of the conversion ratio.

[0121] In one embodiment, such as Figure 7 As shown, a method for updating a resource conversion ratio is provided. This method can be executed by a computer device, which can be a terminal or a server. The computer device is... Figure 1 Taking a server as an example, in this embodiment, the method includes the following steps:

[0122] Step S701: Obtain the reverse conversion period for the resource conversion configuration, and the resource conversion ratio of the first resource and the second resource for reference at the target time.

[0123] The reverse conversion period refers to the maximum time span between a forward conversion event and a reverse conversion event used to cancel the forward conversion event. The first resource and the second resource are two different types of resources, and resource conversion between them is supported. The target time refers to the time when the resource management platform of the server publishes the resource conversion ratio between the first and second resources. The resource conversion ratio is an indicator used to measure the conversion rate between different resources during the resource conversion process. This resource conversion ratio characterizes the value of one resource relative to another.

[0124] Step S702: Determine the impact factor accounting cycle that matches the cycle duration with the reverse conversion period.

[0125] The duration of the impact factor calculation cycle is positively correlated with the inverse conversion period. For example, when the inverse conversion period is 7 days, the duration of the impact factor calculation cycle can be 1 day, that is, the impact factor is statistically analyzed on a daily basis; when the inverse conversion period is 1 year, the duration of the impact factor calculation cycle can be 1 month, that is, the impact factor is statistically analyzed on a monthly basis.

[0126] Step S703: If the resource conversion ratio is the first resource conversion ratio obtained under the current accounting cycle, then determine that the time interval with the target time is equal to the historical time of the reverse conversion period.

[0127] Specifically, if the resource conversion ratio is the first one obtained in the current calculation period, it means that the resource conversion ratio has not been updated in the current calculation period, and the impact factor has not been calculated. Based on this, the server can calculate the impact factor.

[0128] Step S704: From multiple historical conversion events, identify multiple candidate reverse events whose initiation time is between the target time and the historical time.

[0129] Among them, the candidate reverse event refers to the reverse transformation event as a candidate; the reverse transformation event is used to cancel the forward transformation event; the forward transformation event is used to transform one of the first resource and the second resource into the other.

[0130] Step S705: Determine the first time interval that matches the historical time.

[0131] The matching of the first time interval with historical time includes: when the time span of the historical time is the same as the first statistical period, the historical time is the first time interval; when the time span of the historical time is greater than the first statistical period, the historical time is included in the first time interval; when the time span of the historical time is less than the first statistical period, the historical time belongs to the first time interval.

[0132] Step S706: From each candidate reverse event, filter the reverse conversion events whose initiation time is in the first time interval.

[0133] Step S707: For the second time interval between the first time interval and the target time, determine the total amount of reverse conversion corresponding to the reverse conversion events that occur in the second time interval.

[0134] Specifically, the server can calculate the total reverse conversion amount corresponding to the reverse conversion events that occur in the second time interval based on the resource amount of the first or second resource that participates in the reverse conversion.

[0135] Step S708: If the total reverse conversion amount is less than or equal to the cancellation amount threshold, the cancellation amount threshold is determined as the conversion cancellation amount of the second time interval corresponding to the first time interval.

[0136] In practical applications, there may be a second time interval where the number of conversion cancellations is very small or even zero. To avoid the failure of resource loss compensation based on the number of conversion cancellations, the server can pre-configure a cancellation threshold, and when the total number of reverse conversions is less than or equal to the cancellation threshold, the cancellation threshold is set as the number of conversion cancellations in the second time interval corresponding to the first time interval.

[0137] Step S709: Determine the total amount of positive resource conversions that occur within the first time interval.

[0138] Specifically, the server can calculate the total forward conversions occurring within the first time interval based on the resource quantity of the first or second resource participating in the forward conversion. It should be noted that the resource type used is consistent when calculating different resource quantities.

[0139] Step S710: Based on the conversion cancellation amount and the total amount of forward conversion, determine the reverse conversion rate of the second time interval for the forward conversion of resources that occurred in the first time interval.

[0140] Specifically, the server can determine the reverse conversion rate of the second time interval relative to the first time interval as the ratio of the number of conversion cancellations in the second time interval to the total number of forward conversions in the first time interval.

[0141] Step S711: Obtain multiple first conversion ratios of the first resource and the second resource in a first time interval, and multiple second conversion ratios of the first resource and the second resource in a second time interval.

[0142] Step S712: Determine the first feature ratio from each of the first conversion ratios, and determine the second feature ratio from each of the second conversion ratios.

[0143] The feature ratio is a representative transformation ratio, such as the maximum value, minimum value, or transformation ratio at a specific time. There can be multiple first and second feature ratios. When at least one of the first or second feature ratios is multiple, the server can obtain multiple sets of feature ratio pairs, each set including one first feature ratio and one second feature ratio.

[0144] Step S713: Based on the fluctuation of the second feature ratio relative to the first feature ratio, determine the fluctuation of the conversion ratio of the second time interval relative to the first time interval.

[0145] The fluctuation of the conversion ratio can be characterized by the difference between the first characteristic ratio and the second characteristic ratio. This difference can be either a difference or a ratio. Optionally, the fluctuation of the conversion ratio V2_1 can be expressed as: V2_1=|P2-P1| / P1. Where P1 represents the first characteristic ratio of the first resource and the second resource in the first time interval; P2 represents the second characteristic ratio of the first resource and the second resource in the second time interval.

[0146] It should be noted that when multiple feature ratio pairs exist, the server can determine the fluctuation of the second feature ratio relative to the first feature ratio in each pair. Finally, the server statistically analyzes the fluctuations of each feature ratio pair to determine the fluctuation of the transformation ratio between the second time interval and the first time interval. The statistical algorithm can include averaging, taking the maximum value, etc.

[0147] Step S714: Based on the reverse conversion rate and the fluctuation of the conversion ratio in the second time interval relative to the first time interval, determine the influence factor of the resource reverse conversion occurring in the second time interval on the conversion ratio.

[0148] There are multiple second time intervals. Taking the case where there is only one first time interval as an example, the server can determine the impact factor of resource reverse conversions occurring in the second time interval on the conversion ratio by multiplying the reverse conversion rate and the conversion ratio fluctuation of the second time interval relative to the first time interval. This impact factor, cost, can be expressed as: cost = V2_1 * R2_1 / A1. Where V2_1 represents the conversion ratio fluctuation of the second time interval relative to the first time interval, R2_1 represents the conversion cancellation amount of the second time interval corresponding to the first time interval, and A1 represents the total positive conversion of resource forward conversions occurring in the first time interval.

[0149] Step S715: Calculate the influencing factors for each second time interval to obtain the comprehensive influencing factor of the resource reverse conversion on the conversion ratio within each second time interval.

[0150] The specific algorithm for calculating the comprehensive impact factor from the various impact factors is not unique and may include summation, averaging, weighted summation, etc. In the weighted summation process, the weight of each impact factor may be positively correlated with the amount of conversion cancellation corresponding to the second time interval, or it may be negatively correlated with the time interval between the second time interval and the target time; no limitation is made here.

[0151] The server can also update the resource conversion ratio by taking a moving average of the historical comprehensive impact factors and the comprehensive impact factors determined in the current accounting period, thus obtaining the updated conversion ratio corresponding to the target time. Among these, in the process of determining the moving average, the comprehensive impact factors determined in the current accounting period have the largest weight, and the weight of each historical comprehensive impact factor is inversely correlated with the time interval between the historical accounting period and the current accounting period.

[0152] Step S716: If the resource conversion ratio is not the first resource conversion ratio obtained in the current accounting period, then obtain the comprehensive impact factor that has been determined in the current accounting period.

[0153] Specifically, if the resource conversion ratio is the first one obtained in the current accounting period, it means that the resource conversion ratio has already been updated in the current accounting period, and the comprehensive impact factor has been calculated. Based on this, the server can use the comprehensive impact factor determined in the current accounting period to update the resource conversion ratio and obtain the updated conversion ratio corresponding to the target time. That is, a single comprehensive impact factor is used within the same impact factor accounting period.

[0154] Step S717: Based on the historical comprehensive impact factors determined within at least one historical accounting period and the statistical values ​​of the comprehensive impact factors determined in the current accounting period, update the resource conversion ratio to obtain the updated conversion ratio corresponding to the target time.

[0155] Optionally, the server updates the resource conversion ratio Pt using the historical comprehensive impact factor and the average of the comprehensive impact factor determined in the current accounting period, obtaining the updated conversion ratio PT corresponding to the target time. That is: PT = Pt * (1 + (cost + cost') / 2), or PT = Pt + (cost + cost') / 2. Here, cost represents the comprehensive impact factor determined in the current accounting period; cost' represents the historical comprehensive impact factor.

[0156] In the above process, based on the resource conversion ratio obtained for reference, the reverse conversion events that have occurred are further identified. Statistics are then compiled based on the second time interval of the reverse conversion events and the first time interval corresponding to the canceled forward conversion events caused by the reverse conversion events. This yields the conversion cancellation amount corresponding to the first time interval in the second time interval. Since the conversion cancellation amount and conversion ratio fluctuations in the second time interval can characterize the impact of resource reverse conversion on the resource conversion ratio to a certain extent, updating the resource conversion ratio based on these cancellation amounts and fluctuations yields the updated conversion ratio corresponding to the target time. This can compensate for resource losses caused by resource reverse conversion to a certain extent, thus improving the accuracy of the resource conversion ratio.

[0157] The following is combined with Figure 8 This application provides a detailed description of the method for updating the resource conversion ratio.

[0158] In one embodiment, such as Figure 8 As shown, the server can obtain event information for positive conversion events from the past 8 days (denoted as day T-8), and sum up the total positive conversion amount A for day T-8 based on the resource quantity recorded in the event information. T-8 Then, query the resource conversion events initiated in the past 7 days, and filter out the reverse conversion events whose initiation time for canceled positive conversion events is day T-8. That is, the filtered reverse conversion events include reverse conversion events on day Ti related to positive conversion events on day T-8, i=1,2,…,7. Next, the server can summarize the daily conversion cancellation volume according to the initiation time of the reverse conversion events. The obtained conversion cancellation volume can include: the conversion cancellation volume R of positive conversion events on day Ti related to day T-8. T-i .

[0159] On the other hand, the server can obtain the conversion ratio of the last resource published for the first and second resources for each day of the past 8 days, denoted as P. T-1 ,P T-2 ,…,P T-8Next, using the aforementioned resource conversion ratio, the fluctuation of the conversion ratio from day T-7 to day T-1 relative to day T-8 is calculated. The fluctuation of the conversion ratio from day Ti to day T-8 can be represented by: Vi_8 = |P T-1 -P T-8 | / P T-8 Next, based on the proportion of daily conversion cancellations to the total number of forward conversions, and the daily fluctuations in the conversion ratio relative to T-8 days, the server determines the comprehensive impact factor COST of resource reverse conversion on the conversion ratio: COST = ∑(Vi_8*R T-i / A T-8 ), where i = 1, 2, ..., 7.

[0160] Finally, based on the resource conversion ratio Pt obtained by the server on day T for reference, the influence of the comprehensive impact factor COST is added to obtain the updated conversion ratio PT. Optionally, PT can be represented as: PT = Pt * (1 + COST).

[0161] By adopting the above solution, the resource management platform can provide users with the right to cancel forward resource conversions at the original conversion ratio. This allows users to cancel forward resource conversions smoothly without worrying about future changes in the conversion ratio. Since the market is constantly changing, compared to transactions that do not require resource conversion, institutions will inevitably bear the risk of cancelling transactions at the original conversion ratio due to fluctuations. Therefore, failing to take any measures would increase the institution's operational risk. The solution proposed in this application measures this risk quantitatively and incorporates it as part of the resource management platform's service cost, adding it to the publicly released updated conversion ratio. This improves the accuracy of the conversion ratio and ensures the stable operation of the resource management platform.

[0162] In one embodiment, this application also provides an application scenario in which the above-described resource conversion ratio update method is applied. This application scenario could be, for example, a cross-border trade scenario. In this scenario, the first resource and the second resource can be different types of currencies, and the resource conversion ratio is the exchange rate between these two different currencies. Users can conduct cross-border transactions through a third-party platform and cancel transactions after placing an order, receiving a refund at the original exchange rate. Specifically, the server of the third-party platform can obtain the fair exchange rate of the first resource and the second resource at a target time from a reference source. Then, from multiple historical conversion events initiated before the target time, multiple reverse conversion events for the first resource and the second resource are determined. For a second time interval between the first time interval and the target time, the conversion cancellation volume corresponding to the first time interval is statistically analyzed. Based on the conversion cancellation volume and the fluctuation of the conversion ratio between the second time interval and the first time interval, the fair exchange rate is updated to obtain the updated exchange rate corresponding to the target time, which is then published so that users can conduct cross-border transactions based on this updated exchange rate. Among them, the forward conversion event is used to convert one of the first resource and the second resource into the other; the reverse conversion event is used to cancel the forward conversion event; the initiation time of the forward conversion event canceled by each reverse conversion event is within the first time interval.

[0163] In one embodiment, this application also provides another application scenario in which the above-described resource conversion ratio update method is applied. This application scenario could be, for example, a game scenario. In this scenario, the first resource and the second resource can be different types of game items, and the resource conversion ratio is the conversion ratio between these two different items. Users can trade items through a game platform and cancel transactions after placing an order, receiving a refund based on the original conversion ratio. Specifically, the game platform's server can obtain the resource conversion ratio of the first resource and the second resource at a target time for reference. Then, from multiple historical conversion events initiated before the target time, multiple reverse conversion events for the first and second resources are determined. For a second time interval between the first time interval and the target time, the conversion cancellation volume corresponding to the first time interval is counted. Based on the conversion cancellation volume and the fluctuation of the conversion ratio between the second time interval and the first time interval, the resource conversion ratio is updated to obtain the updated conversion ratio corresponding to the target time and published externally, so that users can exchange game items based on the updated conversion ratio. Among them, the forward conversion event is used to convert one of the first resource and the second resource into the other; the reverse conversion event is used to cancel the forward conversion event; the initiation time of the forward conversion event canceled by each reverse conversion event is within the first time interval.

[0164] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0165] Based on the same inventive concept, this application also provides a resource conversion ratio updating apparatus for implementing the resource conversion ratio updating method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations in one or more resource conversion ratio updating apparatus embodiments provided below can be found in the limitations of the resource conversion ratio updating method described above, and will not be repeated here.

[0166] In one embodiment, such as Figure 9 As shown, a resource conversion ratio updating device is provided, including: a reference ratio acquisition module 901, a reverse conversion event determination module 902, a conversion cancellation amount statistics module 903, and a conversion ratio updating module 904, wherein:

[0167] The reference ratio acquisition module 901 is used to acquire the resource conversion ratio between the first resource and the second resource at a target time for reference.

[0168] The reverse conversion event determination module 902 is used to determine multiple reverse conversion events for the first resource and the second resource from multiple historical conversion events whose initiation time is before the target time; the reverse conversion events are used to cancel the forward conversion events; the forward conversion events are used to convert one of the first resource and the second resource into the other; the initiation time of the forward conversion event canceled by each reverse conversion event is within a first time interval;

[0169] The conversion cancellation statistics module 903 is used to count the conversion cancellations in the second time interval corresponding to the first time interval for the second time interval between the first time interval and the target time.

[0170] The conversion ratio update module 904 is used to update the resource conversion ratio based on the conversion cancellation amount and the conversion ratio fluctuation of the second time interval relative to the first time interval, so as to obtain the updated conversion ratio corresponding to the target time.

[0171] In one embodiment, the reverse conversion event determination module 902 includes: a historical time determination unit, used to determine historical times whose time interval with the target time meets the interval condition; and a reverse conversion event determination unit, used to determine multiple reverse conversion events whose initiation time is between the target time and the historical time from multiple historical conversion events.

[0172] In one embodiment, the reverse conversion event determination unit is specifically used to: determine multiple candidate reverse events from multiple historical conversion events whose initiation time is between the target time and the historical time; determine a first time interval that matches the historical time; and filter the reverse conversion events from each candidate reverse event whose initiation time of the canceled forward conversion event is within the first time interval.

[0173] In one embodiment, the conversion cancellation statistics module 903 is specifically used to: determine the total amount of reverse conversions corresponding to reverse conversion events occurring in the second time interval between the first time interval and the target time; and determine the cancellation threshold as the conversion cancellation amount of the second time interval corresponding to the first time interval if the total amount of reverse conversions is less than or equal to the cancellation amount threshold.

[0174] In one embodiment, the reverse conversion event determination module 902 further includes an interval condition determination unit, configured to: obtain the reverse conversion period for the resource conversion configuration; the reverse conversion period refers to the maximum time span between a forward conversion event and a reverse conversion event used to cancel the forward conversion event; determine an interval threshold positively correlated with the reverse conversion period, and an interval condition characterized by the interval threshold.

[0175] In one embodiment, the conversion ratio update module 904 includes: an impact factor determination unit, used to determine the impact factor of resource reverse conversion occurring in the second time interval on the conversion ratio based on the conversion cancellation amount and the conversion ratio fluctuation of the second time interval relative to the first time interval; and a conversion ratio update unit, used to update the resource conversion ratio using the impact factor to obtain the updated conversion ratio corresponding to the target time.

[0176] In one embodiment, the influence factor determination unit is specifically used to: determine the total amount of positive resource conversions occurring within a first time interval; determine the reverse conversion rate of the positive resource conversions occurring within the first time interval in a second time interval based on the conversion cancellation amount and the total amount of positive conversions; and determine the influence factor of the reverse resource conversions occurring within the second time interval on the conversion ratio based on the reverse conversion rate and the fluctuation of the conversion ratio between the second time interval and the first time interval.

[0177] In one embodiment, there are multiple second time intervals. In this embodiment, the conversion ratio update unit is specifically used to: statistically analyze the influence factors of each second time interval to obtain the comprehensive influence factor of resource reverse conversion on the conversion ratio occurring in each second time interval; and update the resource conversion ratio based on the comprehensive influence factor to obtain the updated conversion ratio corresponding to the target time.

[0178] In one embodiment, the resource conversion ratio is updated according to the accounting cycle. In this embodiment, the conversion ratio update unit is specifically used to: obtain the historical comprehensive impact factor determined within at least one historical accounting cycle; update the resource conversion ratio based on the historical comprehensive impact factor and the statistical value of the comprehensive impact factor determined in the current accounting cycle, to obtain the updated conversion ratio corresponding to the target time.

[0179] In one embodiment, the reverse conversion event determination module 902 is specifically used to: obtain the reverse conversion period for the resource conversion configuration; determine the impact factor calculation period whose period length matches the reverse conversion period; if the resource conversion ratio is the first resource conversion ratio obtained in the current calculation period, then determine multiple reverse conversion events for the first and second resources from multiple historical conversion events whose initiation time is before the target time. In this embodiment, the conversion ratio update module 904 is further used to: if the resource conversion ratio is not the first resource conversion ratio obtained in the current calculation period, then update the resource conversion ratio using the impact factors already determined in the current calculation period to obtain the updated conversion ratio corresponding to the target time. Here, the reverse conversion period refers to the maximum time span between the initiation times of the forward conversion event and the reverse conversion event used to cancel the forward conversion event.

[0180] In one embodiment, the resource conversion ratio updating device further includes a conversion ratio fluctuation determination module, configured to: acquire multiple first conversion ratios of the first resource and the second resource in a first time interval, and multiple second conversion ratios of the first resource and the second resource in a second time interval; determine a first feature ratio from each first conversion ratio, and determine a second feature ratio from each second conversion ratio; and determine the conversion ratio fluctuation of the second time interval relative to the first time interval based on the fluctuation of the second feature ratio relative to the first feature ratio.

[0181] Each module in the aforementioned resource conversion ratio update device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the operations corresponding to each module.

[0182] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 10 As shown, the computer device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database stores data involved in updating the resource conversion ratio. The network interface communicates with external terminals via a network connection. When executed by the processor, the computer program implements a method for updating the resource conversion ratio.

[0183] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 11 As shown, the computer device includes a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When the computer program is executed by the processor, it implements a method for updating resource conversion ratios. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the computer device casing, or an external keyboard, touchpad, or mouse.

[0184] Those skilled in the art will understand that Figure 10 or Figure 11 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0185] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the method embodiment described above.

[0186] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the method embodiment described above.

[0187] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of the method embodiments described above.

[0188] 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 related data must comply with the relevant laws, regulations and standards of the relevant regions and areas. Furthermore, the recipient may choose not to authorize the use of their information and related data, or may refuse or conveniently refuse to receive push notifications.

[0189] In this application, during the actual application of relevant data collection and processing, the informed consent or separate consent of the personal information subject should be obtained in strict accordance with the requirements of relevant local laws and regulations, and subsequent data use and processing should be carried out within the scope of laws and regulations and the authorization of the personal information subject.

[0190] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this 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), magnetic 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. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0191] The technical features of the above embodiments can be combined in any way. For the sake of brevity, 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.

[0192] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for updating a resource conversion ratio, characterized in that, The method includes: Obtain the resource conversion ratio between the first resource and the second resource at the target time for reference; From a plurality of historical conversion events whose initiation time is prior to the target time, a plurality of reverse conversion events for the first resource and the second resource are determined; the reverse conversion events are used to cancel forward conversion events; the forward conversion events are used to convert one of the first resource and the second resource to the other; the initiation time of the forward conversion event canceled by each of the reverse conversion events is within a first time interval; For the second time interval between the first time interval and the target time, the conversion cancellation amount corresponding to the first time interval in the second time interval is counted; Based on the conversion cancellation amount and the fluctuation of the conversion ratio of the second time interval relative to the first time interval, the resource conversion ratio is updated to obtain the updated conversion ratio corresponding to the target time.

2. The method according to claim 1, characterized in that, The step of determining multiple reverse conversion events for the first resource and the second resource from multiple historical conversion events whose initiation time precedes the target time includes: Determine historical times that satisfy the interval condition with respect to the target time; From multiple historical conversion events, identify multiple reverse conversion events whose initiation time is between the target time and the historical time.

3. The method according to claim 2, characterized in that, The process of determining multiple reverse transition events from multiple historical transition events, with the initiation time between the target time and the historical time, includes: From multiple historical conversion events, identify multiple candidate reverse events whose initiation time is between the target time and the historical time; Determine a first time interval that matches the historical time; From the candidate reverse events, filter out the reverse conversion events whose initiation time is within the first time interval.

4. The method according to claim 3, characterized in that, The step of calculating the conversion cancellation rate for the second time interval between the first time interval and the target time, corresponding to the first time interval, includes: For the second time interval between the first time interval and the target time, determine the total reverse conversion amount corresponding to the reverse conversion events that occur in the second time interval; If the total reverse conversion amount is less than or equal to the cancellation amount threshold, the cancellation amount threshold is determined as the conversion cancellation amount of the second time interval corresponding to the first time interval.

5. The method according to claim 2, characterized in that, The method further includes: Obtain the reverse conversion period for the resource conversion configuration; the reverse conversion period refers to the maximum time span between a forward conversion event and a reverse conversion event used to cancel the forward conversion event; Determine the interval threshold that is positively correlated with the reverse conversion period, and the interval conditions characterized by the interval threshold.

6. The method according to claim 1, characterized in that, The step of updating the resource conversion ratio based on the conversion cancellation amount and the fluctuation of the conversion ratio between the second time interval and the first time interval to obtain the updated conversion ratio corresponding to the target time includes: Based on the conversion cancellation amount and the fluctuation of the conversion ratio in the second time interval relative to the first time interval, the influence factor of resource reverse conversion occurring in the second time interval on the conversion ratio is determined; The resource conversion ratio is updated using the aforementioned impact factor to obtain the updated conversion ratio corresponding to the target time.

7. The method according to claim 6, characterized in that, The method of determining the impact factors of resource reverse conversions occurring within the second time interval on the conversion ratio based on the conversion cancellation amount and the conversion ratio fluctuation of the second time interval relative to the first time interval includes: Determine the total amount of positive resource conversions that occurred within the first time interval; Based on the conversion cancellation amount and the total positive conversion amount, determine the reverse conversion rate of the second time interval for the positive conversion of resources that occurred in the first time interval; Based on the reverse conversion rate and the fluctuation of the conversion ratio between the second time interval and the first time interval, the influence factor of resource reverse conversion occurring in the second time interval on the conversion ratio is determined.

8. The method according to claim 6, characterized in that, The number of second time intervals is multiple; the step of updating the resource conversion ratio using the influencing factor to obtain the updated conversion ratio corresponding to the target time includes: By statistically analyzing the respective influencing factors of each second time interval, the comprehensive influencing factor of the resource reverse conversion on the conversion ratio during each second time interval is obtained. The resource conversion ratio is updated based on the comprehensive impact factor to obtain the updated conversion ratio corresponding to the target time.

9. The method according to claim 8, characterized in that, The resource conversion ratio is updated according to the accounting cycle; The step of updating the resource conversion ratio based on the comprehensive impact factor to obtain the updated conversion ratio corresponding to the target time includes: Obtain the historical comprehensive impact factor determined within at least one historical accounting period; Based on the historical comprehensive impact factor and the statistical value of the comprehensive impact factor determined in the current accounting period, the resource conversion ratio is updated to obtain the updated conversion ratio corresponding to the target time.

10. The method according to claim 6, characterized in that, The step of determining multiple reverse conversion events for the first resource and the second resource from multiple historical conversion events whose initiation time precedes the target time includes: Obtain the reverse conversion period for the resource conversion configuration, and determine the impact factor calculation period that matches the period length; the reverse conversion period refers to the maximum time span of the initiation time of the forward conversion event and the reverse conversion event used to cancel the forward conversion event. If the resource conversion ratio is the first resource conversion ratio obtained in the current accounting cycle, then multiple reverse conversion events for the first resource and the second resource are determined from multiple historical conversion events initiated before the target time. The method further includes: If the resource conversion ratio is not the first resource conversion ratio obtained in the current accounting period, the resource conversion ratio is updated using the influence factors already determined in the current accounting period to obtain the updated conversion ratio corresponding to the target time.

11. The method according to any one of claims 1 to 10, characterized in that, The method further includes: Obtain multiple first conversion ratios between the first resource and the second resource in the first time interval, and multiple second conversion ratios between the first resource and the second resource in the second time interval; A first feature ratio is determined from each of the first conversion ratios, and a second feature ratio is determined from each of the second conversion ratios; Based on the fluctuation of the second feature ratio relative to the first feature ratio, the fluctuation of the conversion ratio of the second time interval relative to the first time interval is determined.

12. A resource conversion ratio updating device, characterized in that, The device includes: The reference ratio acquisition module is used to obtain the resource conversion ratio between the first resource and the second resource at the target time for reference. A reverse conversion event determination module is used to determine multiple reverse conversion events for the first resource and the second resource from multiple historical conversion events whose initiation time is before the target time; the reverse conversion events are used to cancel forward conversion events; the forward conversion events are used to convert one of the first resource and the second resource to the other; the initiation time of the forward conversion event canceled by each of the reverse conversion events is within a first time interval; The conversion cancellation statistics module is used to count the conversion cancellations in the second time interval corresponding to the first time interval for the second time interval between the first time interval and the target time. The conversion ratio update module is used to update the resource conversion ratio based on the conversion cancellation amount and the conversion ratio fluctuation of the second time interval relative to the first time interval, so as to obtain the updated conversion ratio corresponding to the target time.

13. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 11.

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

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