Data processing method and device, computer equipment and readable storage medium

By obtaining and trending the multiple asset conversion rates of digital asset pairs, and automatically processing transaction records, the problem of manual experience affecting the stability of asset processing in the existing technology is solved, and the stability and consistency of processing is improved.

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

Patent Information

Application Number
CN202310708697.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-14
Publication Date
2024-12-17

AI Technical Summary

Technical Problem

When existing third-party payment institutions process digital asset transaction records, they rely on manual experience to lead to poor asset processing stability. Managers handle transaction records in different ways, which affects the consistency and accuracy of processing results.

Method used

By obtaining the conversion rates of multiple assets associated with digital asset pairs, performing trend testing to generate conversion trends, automating transaction records, and reducing dependence on manual experience.

Benefits of technology

It improves the stability and consistency of asset processing, reduces the risk of manual intervention, and achieves more accurate and reliable transaction record processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119151528A_ABST
    Figure CN119151528A_ABST
Patent Text Reader

Abstract

Embodiments of the invention provide a data processing method and apparatus, a computer device and a readable storage medium. The method comprises the steps of obtaining S asset conversion rates associated with a digital asset pair; the digital asset pair comprises a first digital asset and a second digital asset; the first digital asset is different from the second digital asset; each asset conversion rate in the S asset conversion rates is used for representing a conversion rate for exchanging the first digital asset for the second digital asset; s is a positive integer; performing trend inspection on the S asset conversion rates, and generating a conversion change trend for the digital asset pair; and obtaining a transaction record for the digital asset pair from the transaction record set, and performing asset processing on the transaction record according to the conversion change trend to obtain a processing result corresponding to the transaction record. According to the invention, the stability of asset processing can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] After obtaining a digital asset transaction request for a digital asset pair, an existing third-party payment institution can directly store the transaction record corresponding to the digital asset transaction request into a transaction record set, and then manually perform asset processing on the transaction records in the transaction record set, for example, manually obtain the asset conversion rate, and use the manually obtained asset conversion rate to realize the exchange of the first digital asset in the digital asset pair for the second digital asset in the digital asset pair. However, manual asset processing of transaction records depends on the experience of managers, who need to manually determine how to process assets on transaction records. Since different managers have different experiences, the manual management method will cause different managers to perform different asset processing methods for the same transaction record, thereby reducing the stability of asset processing. Summary of the invention

[0003] The embodiments of the present application provide a data processing method, apparatus, computer equipment, and readable storage medium, which can improve the stability of asset processing.

[0004] On the one hand, an embodiment of the present application provides a data processing method, including:

[0005] Obtain S asset conversion rates associated with a digital asset pair; the digital asset pair includes a first digital asset and a second digital asset; the first digital asset is different from the second digital asset; each of the S asset conversion rates is used to characterize a conversion rate of exchanging the first digital asset for the second digital asset; S is a positive integer;

[0006] Perform trend tests on the conversion rates of S assets to generate conversion change trends for digital asset pairs;

[0007] The transaction records for the digital asset pair are obtained from the transaction record set, and asset processing is performed on the transaction records according to the conversion change trend to obtain the processing results corresponding to the transaction records.

[0008] An embodiment of the present application provides a data processing device, including:

[0009] A conversion rate acquisition module, used to acquire S asset conversion rates associated with a digital asset pair; the digital asset pair includes a first digital asset and a second digital asset; the first digital asset is different from the second digital asset; each of the S asset conversion rates is used to characterize the conversion rate of exchanging the first digital asset for the second digital asset; S is a positive integer;

[0010] A trend test module is used to perform trend tests on the conversion rates of S assets and generate conversion change trends for digital asset pairs;

[0011] The asset processing module is used to obtain transaction records for digital asset pairs from the transaction record set, perform asset processing on the transaction records according to the conversion change trend, and obtain the processing results corresponding to the transaction records.

[0012] The conversion rate acquisition module is specifically used to send a conversion rate subscription request for a digital asset pair to a conversion rate subscription platform through a streaming conversion rate receiving service;

[0013] The conversion rate acquisition module is specifically used to receive S asset conversion rates associated with digital asset pairs pushed by the conversion rate subscription platform; the S asset conversion rates are continuously acquired by the conversion rate subscription platform based on the conversion rate subscription request.

[0014] The conversion rate acquisition module is specifically used to poll and send Q conversion rate acquisition requests for the digital asset pair to the conversion rate subscription platform through the streaming conversion rate receiving service; Q is a positive integer;

[0015] The conversion rate acquisition module is specifically used to receive S asset conversion rates associated with digital asset pairs returned by the conversion rate subscription platform; the S asset conversion rates are acquired by the conversion rate subscription platform based on Q conversion rate acquisition requests.

[0016] The conversion rate acquisition module is specifically used to acquire S first candidate asset conversion rates associated with the first candidate digital asset pair; the first candidate digital asset pair includes a first digital asset and a third digital asset; the first digital asset is different from the third digital asset; each of the S first candidate asset conversion rates is used to characterize the conversion rate of exchanging the first digital asset for the third digital asset;

[0017] The conversion rate acquisition module is specifically used to acquire S second candidate asset conversion rates associated with the second candidate digital asset pair; the first candidate digital asset pair includes the second digital asset and the third digital asset; the second digital asset is different from the third digital asset; each of the S second candidate asset conversion rates is used to characterize the conversion rate of exchanging the second digital asset for the third digital asset;

[0018] The conversion rate acquisition module is specifically used to perform cross operations on the S first candidate asset conversion rates and the S second candidate asset conversion rates to generate S asset conversion rates associated with the first digital asset and the second digital asset.

[0019] Among them, the trend test module includes:

[0020] A first sorting unit is used to sort the S asset conversion rates according to the conversion timestamps respectively corresponding to the S asset conversion rates to obtain sorted S asset conversion rates;

[0021] A first generating unit is used to generate S / 2 conversion rate operation parameters associated with the sorted S asset conversion rates according to the sorted S asset conversion rates;

[0022] The parameter statistics unit is used to perform parameter statistics on S / 2 conversion rate calculation parameters to determine the conversion change trend for the digital asset pair.

[0023] Among them, the sorted S asset conversion rates include asset conversion rate R i and asset conversion rate R j ; i is a positive integer less than or equal to S / 2, the sum of i and S / 2 is equal to j; asset conversion rate R i The corresponding conversion timestamp is later than the asset conversion rate R j The corresponding conversion timestamp;

[0024] The first generation unit is specifically used to calculate the asset conversion rate R i and asset conversion rate R j Perform subtraction to generate the asset conversion rate R i and asset conversion rate R j Commonly associated conversion rate calculation parameters.

[0025] The parameter statistics unit is specifically used to obtain P conversion rate calculation parameters greater than the parameter threshold from S / 2 conversion rate calculation parameters; P is a non-negative integer;

[0026] The parameter statistics unit is specifically used to obtain H conversion rate calculation parameters that are less than the parameter threshold from the S / 2 conversion rate calculation parameters; H is a non-negative integer;

[0027] The parameter statistics unit is specifically used to perform a subtraction operation on P and H to generate a conversion change parameter corresponding to S / 2 conversion rate operation parameters;

[0028] The parameter statistics unit is specifically used to obtain the trend rule interval to which the conversion change parameter belongs, and determine the conversion change trend corresponding to the strategy label of the trend rule interval as the conversion change trend for the digital asset pair.

[0029] Among them, the trend test module includes:

[0030] The second sorting unit is used to sort the S asset conversion rates according to the conversion timestamps respectively corresponding to the S asset conversion rates to obtain the sorted S asset conversion rates;

[0031] The second generating unit is used to generate test statistical parameters corresponding to S-1 candidate asset conversion rates in the sorted S asset conversion rates according to the sorted S asset conversion rates; the S-1 candidate asset conversion rate is the asset conversion rate other than the first asset conversion rate in the S asset conversion rates; the conversion timestamp of the first asset conversion rate is earlier than the conversion timestamps corresponding to the S-1 candidate asset conversion rates;

[0032] A summing processing unit, used for summing S-1 test statistical parameters to obtain a test statistic associated with the sorted S asset conversion rates;

[0033] The trend generating unit is used to generate a conversion change trend for the digital asset pair according to the arithmetic relationship between the test statistic and the statistic threshold.

[0034] Among them, the S-1 candidate asset conversion rates among the sorted S asset conversion rates include the asset conversion rate R k , k is a positive integer less than S;

[0035] The second generating unit is specifically used to obtain the conversion timestamp earlier than the asset conversion rate R from the sorted S asset conversion rates. k The conversion rate of Sk assets;

[0036] The second generation unit is specifically used to calculate the asset conversion rate R k Subtract the Sk asset conversion rates from each other to generate auxiliary calculation parameters corresponding to the Sk asset conversion rates;

[0037] The second generating unit is specifically used to determine the symbolic operation parameters corresponding to the Sk asset conversion rates respectively according to the Sk auxiliary operation parameters;

[0038] The second generating unit is specifically used to sum the Sk symbol operation parameters to generate the asset conversion rate R k The corresponding test statistic parameter.

[0039] The trend generation unit is specifically used to perform parameter changes on the test statistic according to the statistic threshold value, and generate a transformation change parameter corresponding to the test statistic;

[0040] A trend generating unit, specifically configured to determine the steady change trend as the conversion change trend for the digital asset pair if the conversion change parameter is equal to the statistical threshold;

[0041] A trend generating unit, specifically configured to determine the increasing change trend as the conversion change trend for the digital asset pair if the conversion change parameter is greater than a statistical threshold;

[0042] The trend generating unit is specifically configured to determine the decreasing change trend as the conversion change trend for the digital asset pair if the conversion change parameter is less than a statistical threshold.

[0043] Among them, the asset processing module includes:

[0044] A record acquisition unit, used to acquire a transaction record for a digital asset pair from a transaction record set; the transaction record includes an operation amount of a first digital asset;

[0045] A range acquisition unit is used to acquire the amount holding range corresponding to the conversion change trend; the amount holding range includes an amount holding upper limit and an amount holding lower limit; the amount holding lower limit is less than the amount holding upper limit;

[0046] The asset processing unit is used to perform asset processing on the operation amount of the first digital asset according to the upper limit of the amount held and the lower limit of the amount held, and obtain a processing result corresponding to the transaction record.

[0047] Among them, the asset processing unit includes:

[0048] A first determining subunit, configured to determine the operation amount of the first digital asset as a processing result corresponding to the transaction record if the operation amount of the first digital asset is greater than or equal to the lower limit of the amount held and less than or equal to the upper limit of the amount held;

[0049] A second determining subunit is configured to, if the operation amount of the first digital asset is less than the lower limit of the amount held, exchange the first digital asset with the second digital asset to obtain the operation amount of the first digital asset after the asset processing, and determine the operation amount of the first digital asset after the asset processing as the processing result corresponding to the transaction record;

[0050] The third determining subunit is used for, if the operation amount of the first digital asset is greater than the upper limit of the amount held, exchanging the first digital asset for the second digital asset to obtain the operation amount of the first digital asset after the asset processing, and determining the operation amount of the first digital asset after the asset processing as the processing result corresponding to the transaction record.

[0051] The second determining subunit is specifically configured to, if the conversion change trend is the first type of change trend, perform inversion processing on the operation amount of the first digital asset to obtain the inverted operation amount, and exchange the first digital asset with the inverted operation amount through the second digital asset to obtain the operation amount of the first digital asset after asset processing;

[0052] The second determining subunit is specifically configured to, if the conversion change trend is a second type of change trend, perform inversion processing on the operation amount of the first digital asset to obtain the inverted operation amount, perform operation processing on the inverted operation amount and the first reserved amount corresponding to the first digital asset to obtain the first operation amount, and exchange the first digital asset with the first operation amount through the second digital asset to obtain the operation amount of the first digital asset after the asset processing; the first reserved amount is the amount of the first digital asset retained after the exchange operation.

[0053] The third determining subunit is specifically used for, if the conversion change trend is the third type of change trend, performing calculation processing on the operation amount of the first digital asset and the second reserved amount corresponding to the first digital asset to obtain the second operation amount, exchanging the first digital asset with the second operation amount for the second digital asset to obtain the operation amount of the first digital asset after the asset processing; the second reserved amount is the amount of the first digital asset retained after the exchange operation;

[0054] The third determining subunit is specifically configured to, if the conversion change trend is a fourth type of change trend, exchange the first digital asset having the operation amount of the first digital asset for the second digital asset to obtain the operation amount of the first digital asset after asset processing.

[0055] An embodiment of the present application provides a computer device, including: a processor and a memory;

[0056] The processor is connected to the memory, wherein the memory is used to store a computer program. When the computer program is executed by the processor, the computer device executes the method provided in the embodiment of the present application.

[0057] On the one hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. The computer program is suitable for being loaded and executed by a processor so that a computer device having the processor executes the method provided by the embodiment of the present application.

[0058] In one aspect, an embodiment of the present application provides a computer program product, which includes a computer program stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the method provided in the embodiment of the present application.

[0059] In an embodiment of the present application, a computer device can obtain S asset conversion rates associated with a digital asset pair, and then perform a trend test on the S asset conversion rates to generate a conversion change trend for the digital asset pair. Wherein, the digital asset pair includes a first digital asset and a second digital asset, and the first digital asset is different from the second digital asset; each of the S asset conversion rates is used to characterize the conversion rate of exchanging the first digital asset for the second digital asset, and S here can be a positive integer. Further, the computer device can obtain transaction records for the digital asset pair from a transaction record set, perform asset processing on the transaction record according to the conversion change trend, and obtain the processing result corresponding to the transaction record. It can be seen that the embodiment of the present application proposes a digital asset management method based on asset conversion rate trend judgment, which method does not require manual direct asset processing of the transaction records in the transaction record set (i.e., there is no need to rely on the experience of managers to process the transaction records), but determines the conversion change trend of the asset conversion rate according to the constantly changing asset conversion rate, and then automatically processes the transaction records according to the conversion change trend, thereby improving the stability of asset processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0061] Figure 1 It is a structural diagram of a network architecture provided by an embodiment of the present application;

[0062] Figure 2 This is a schematic diagram of a scenario for data interaction provided by an embodiment of the present application;

[0063] Figure 3 It is a flowchart of a data processing method provided in an embodiment of the present application;

[0064] Figure 4a It is a flow chart of obtaining asset conversion rate provided by an embodiment of the present application;

[0065] Figure 4b It is a flow chart of obtaining asset conversion rate provided by an embodiment of the present application;

[0066] Figure 5 It is a flow chart of a trend test provided by an embodiment of the present application;

[0067] Figure 6It is a flowchart of asset processing provided by an embodiment of the present application;

[0068] Figure 7 It is a flowchart of a data processing method provided in an embodiment of the present application;

[0069] Figure 8 It is a flowchart of a data processing method provided in an embodiment of the present application;

[0070] Fig. 9 is a structural schematic diagram of a data processing device provided in an embodiment of the present application;

[0071] Fig.10 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0072] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0073] For details, see Figure 1 , Figure 1 Schematic diagram of a network architecture provided by an embodiment of the present application. Figure 1 As shown, the network architecture may include a server 2000 and a terminal device cluster. The terminal device cluster may specifically include one or more terminal devices, and the number of terminal devices in the terminal device cluster is not limited here. Figure 1 As shown, the multiple terminal devices may specifically include terminal device 3000a, terminal device 3000b, terminal device 3000c, ..., terminal device 3000n; terminal device 3000a, terminal device 3000b, terminal device 3000c, ..., terminal device 3000n may respectively be directly or indirectly connected to the server 2000 via wired or wireless communication, so that each terminal device may exchange data with the server 2000 via the network connection.

[0074] Each terminal device in the terminal device cluster may include: smart phones, tablet computers, laptop computers, desktop computers, intelligent voice interaction devices, smart home appliances (e.g., smart TVs), wearable devices, vehicle terminals, aircraft, and other smart terminals with data processing functions. Figure 1Each terminal device in the terminal device cluster shown in the figure can be installed with an application client having a data processing function. When the application client runs in each terminal device, it can be respectively connected to the above Figure 1 Data is exchanged between the servers 2000 shown. Among them, the application client may specifically include: a car client, a smart home client, an entertainment client (e.g., a game client), a multimedia client (e.g., a video client), a payment client (i.e., a payment application), and an information client (e.g., a news client). Among them, the application client in the embodiment of the present application may be a sub-client integrated in a client (e.g., a game client), and the application client may also be an independent client (e.g., a payment client). The embodiment of the present application does not limit the type of the application client.

[0075] For ease of understanding, the embodiments of the present application can be Figure 1 Select one terminal device from the multiple terminal devices shown as the target terminal device. Figure 1 The terminal device 3000a shown is used as a target terminal device, and an application client with data processing function can be installed in the target terminal device. At this time, the target terminal device can realize data interaction with the server 2000 through the application client.

[0076] Among them, server 2000 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), as well as big data and artificial intelligence platforms.

[0077] It should be understood that the server 2000 may be a server corresponding to a third-party payment institution, and the application client may be a client corresponding to the third-party payment institution. A third-party payment institution may provide third-party payment, which refers to an independent institution with certain strength and credibility, which signs contracts with major banks and provides a network payment model of a transaction payment platform that interfaces with the bank payment and settlement system. In the third-party payment model, after the buyer selects and purchases transaction resources (commodities, services, etc.), he / she uses the account provided by the third-party platform to pay for the goods (i.e., the buyer pays the payment to the third-party payment institution), and the third-party payment institution notifies the seller of the receipt of the payment and requests delivery; after receiving the transaction resources, the buyer inspects the transaction resources, and after confirming receipt, notifies the third-party payment institution to pay; the third-party payment institution then transfers the funds to the seller's account.

[0078] Among them, the seller in the third-party payment can also be called a merchant. Merchants refer to B (Business) end users who sign contracts after being authenticated on the third-party payment platform and are providers of transaction resources to ordinary users. Buyers in third-party payment can be users corresponding to the target terminal device, and buyers can purchase transaction resources through the application client in the target terminal device. For ease of understanding, the embodiment of the present application can refer to users corresponding to the target terminal device as objects.

[0079] It should be understood that the above network framework can be applied to foreign exchange transaction scenarios (for example, paying tuition fees for studying abroad, purchasing goods on e-commerce platforms, purchasing air tickets, purchasing game equipment in games, etc.). For example, in a foreign exchange transaction scenario, before the buyer places an order, the third-party payment institution needs to convert the operation amount of the transaction resource (i.e., the second digital asset) to the operation amount of the first digital asset corresponding to the operation amount of the transaction resource (i.e., the second digital asset) based on the asset conversion rate (i.e., the exchange rate), and use it to display it to the buyer to facilitate the order, and then purchase foreign exchange in the interbank market based on the operation amount of the first digital asset used to purchase the transaction resource, so as to prepare the first digital asset for the subsequent payment to the merchant.

[0080] For example, when purchasing game equipment in the game, the object corresponding to the target terminal device can exchange the first digital asset (for example, the first digital asset can be the shells collected in the game client, and the operation amount of the first digital asset can be the number of shells) for the second digital asset (for example, the second digital asset can be the game helmet sold by the equipment seller in the game client, and the operation amount of the second digital asset can be the number of game helmets) in the game client; at this time, the first digital asset and the second digital asset are both virtual props in the game client. For example, the asset conversion rate can be represented by 80 shells being exchanged for 1 game helmet; different asset conversion rates can be represented by the fact that the same number of shells can be exchanged for different numbers of game helmets at different times.

[0081] Therefore, third-party payment institutions can be used to provide foreign exchange transactions, which are the simultaneous purchase of one digital asset (e.g., the second digital asset) in a pair of digital asset combinations (i.e., digital asset pairs) and the sale of another digital asset (e.g., the first digital asset), and the exchange of one digital asset for another digital asset. Unlike other financial markets, the foreign exchange market for foreign exchange transactions has no specific location or central exchange, but rather is traded through electronic networks between banks, enterprises and individuals.

[0082] It should be understood that the computer device in the embodiment of the present application can obtain S asset conversion rates associated with the digital asset pair, and each of the S asset conversion rates is used to characterize the conversion rate of exchanging the first digital asset for the second digital asset. Among them, S here can be a positive integer. Further, the computer device can perform a trend test on the S asset conversion rates, generate a conversion change trend for the digital asset pair, and then when the transaction record for the digital asset pair is obtained, the transaction record is processed according to the conversion change trend to obtain the processing result corresponding to the transaction record.

[0083] Among them, the data processing method provided in the embodiment of the present application can be executed by the server 2000 (that is, the above-mentioned computer device can be the server 2000), can also be executed by the target terminal device (that is, the above-mentioned computer device can be the target terminal device), and can also be executed by the server 2000 and the target terminal device together. For example, when the data processing method is executed by the server 2000, the server 2000 can perform a trend test on the S asset conversion rates associated with the digital asset pair, generate a conversion change trend for the digital asset pair, and then obtain the transaction record for the digital asset pair sent by the target terminal device, and perform asset processing on the transaction record according to the conversion change trend. For another example, when the data processing method is executed by the target terminal device, the target terminal device can perform a trend test on the S asset conversion rates associated with the digital asset pair, generate a conversion change trend for the digital asset pair, and then perform asset processing on the transaction record for the digital asset pair according to the conversion change trend. For another example, when the data processing method is jointly executed by the server 2000 and the target terminal device, the server 2000 can perform a trend check on the S asset conversion rates associated with the digital asset pair, generate a conversion change trend for the digital asset pair, and then send the conversion change trend to the target terminal device. In this way, the target terminal device can perform asset processing on the transaction records for the digital asset pair according to the conversion change trend sent by the server 2000.

[0084] It should be understood that the data processing method involved in the present application can be applied to a blockchain system. The packaging node in the blockchain system can package the transaction records to obtain a block containing the transaction records, and then broadcast the block containing the transaction records to the consensus node in the blockchain network. In this way, the packaging node can write the block containing the transaction record into the blockchain when the consensus nodes in the blockchain network reach a block consensus. At this time, the server 2000 can be a blockchain node in the blockchain system. When generating the conversion change trend for the digital asset pair, the server 2000 can obtain the transaction record for the digital asset pair from the blockchain.

[0085] For further understanding, please refer to Figure 2 , Figure 2 Schematic diagram of a scenario for data interaction provided by an embodiment of the present application. Figure 2 The server 20a shown may be the above Figure 1 The server 2000 in the corresponding embodiment is as follows: Figure 2 The terminal device 20b shown may be the above Figure 1 The target terminal device in the corresponding embodiment, the object corresponding to the terminal device 20b may be the object 20c. For ease of understanding, the embodiment of the present application is described by taking the data processing method executed by the server 20a as an example.

[0086] like Figure 2 As shown, object 20c can send a digital asset transaction request to server 20a through the application client in terminal device 20b, so that server 20a can obtain the transaction record for the digital asset pair from the digital asset transaction request, and store the transaction record for the digital asset pair in a transaction record set (i.e., position set, also known as exposure set, indicating a bookkeeping for recording foreign exchange exposure); in other words, server 20a can record the received foreign exchange transactions for customers (i.e., transaction records for digital asset pairs) in the exposure management system to form the stored foreign exchange exposure data. Among them, the exposure management system can be a system used in a third-party payment institution to aggregate foreign exchange exposures and then manage exposures according to strategies; the digital asset pair can include a first digital asset and a second digital asset, the first digital asset is different from the second digital asset, and the transaction record set can record transaction records in the form of digital asset pairs.

[0087] The transaction record set may include, but is not limited to, transaction records for a digital asset pair consisting of a first digital asset and a second digital asset, and may also include transaction records for other digital asset pairs. For example, the transaction record set may also include transaction records for a first candidate digital asset pair consisting of a first digital asset and a third digital asset, where the first digital asset is different from the third digital asset; for another example, the transaction record set may also include transaction records for a second candidate digital asset pair consisting of a second digital asset and a third digital asset, where the second digital asset is different from the third digital asset. In addition, the transaction record set may include transaction records corresponding to object 20c, and may also include transaction records corresponding to other objects other than object 20c.

[0088] It is understandable that the collection and processing of relevant data in this application (for example, the first digital asset, the second digital asset, etc. in the transaction record) should be strictly in accordance with the requirements of relevant national laws and regulations when applied in examples, and the informed consent or separate consent of the personal information subject should be obtained. Subsequent data use and processing should be carried out within the scope of authorization of laws and regulations and the personal information subject.

[0089] Among them, Figure 2 The asset conversion rate set 21a (i.e., the conversion rate database 21a) shown may include multiple databases, and the multiple databases may specifically include Figure 2 The databases 21b, ..., and 21c shown in the figure can be used to store asset conversion rates associated with different digital asset pairs. Among them, the conversion rate database 21a can be set up separately, or integrated on the server 20a, or integrated on other devices or clouds, which is not limited here.

[0090] For example, database 21a can be used to store asset conversion rates associated with a digital asset pair consisting of a first digital asset and a second digital asset, and database 21c can be used to store asset conversion rates associated with a first candidate digital asset pair consisting of a first digital asset and a third digital asset. The asset conversion rates in asset conversion rate set 21a are cached by server 20a after receiving the asset conversion rates sent by the conversion rate subscription platform. For example, the storage of asset conversion rates in asset conversion rate set 21a can be sorted in chronological order.

[0091] like Figure 2 As shown, the server 20a can obtain S asset conversion rates associated with the digital asset pair from the asset conversion rate set 21a. Since the digital asset pair includes the first digital asset and the second digital asset, the server 20a can obtain the S asset conversion rates associated with the digital asset pair from the database 21a. Among them, the S asset conversion rates obtained by the server 20a are the latest asset conversion rates (i.e., the most recent asset conversion rates) in the database 21a, that is, the asset conversion rates obtained by the server 20a are the S asset conversion rates with the latest conversion timestamp in the database 21a.

[0092] Here, S can be a positive integer, and the S asset conversion rates can specifically include asset conversion rate 22a, asset conversion rate 22b, ..., asset conversion rate 22c, and each of the asset conversion rates 22a, asset conversion rate 22b, ..., and asset conversion rate 22c is used to characterize the conversion rate of exchanging the first digital asset for the second digital asset. In addition, the S asset conversion rates can also be called fair exchange rates, which refer to the exchange rates of the most recent transactions in the current foreign exchange market, which are released by a third-party trading platform (i.e., a conversion rate subscription platform) and can be observed by other financial institutions and used as a reference exchange rate.

[0093] like Figure 2As shown, the server 20a can perform trend tests on S asset conversion rates (i.e., asset conversion rate 22a, asset conversion rate 22b, ..., asset conversion rate 22c) to generate a conversion change trend (i.e., exchange rate trend) for the digital asset pair. The conversion change trend can be used to characterize the change trend of the S asset conversion rates, i.e., the conversion change trend can represent the recent exchange rate trend (i.e., exchange rate trend). For example, the conversion change trend can be an increasing change trend (i.e., an upward trend), a decreasing change trend (i.e., a downward trend), etc.

[0094] like Figure 2 As shown, the server 20a can obtain the transaction record for the digital asset pair from the transaction record set, perform asset processing on the transaction record according to the conversion change trend, and obtain the processing result corresponding to the transaction record. Among them, the number of transaction records for the digital asset pair in the transaction record set can be one or more, and the server 20a can perform asset processing on one or more transaction records according to the conversion change trend, and obtain the processing results corresponding to the one or more transaction records.

[0095] Among them, the asset processing may be without processing the first digital asset and the second digital asset; optionally, the asset processing may also be exchanging the second digital asset through the first digital asset, and the asset processing may also be exchanging the first digital asset through the second digital asset.

[0096] It can be seen from this that the embodiments of the present application do not require manual asset processing of the transaction records for the digital asset pairs in the transaction record set. Instead, the transaction records are automatically processed based on the conversion change trend generated by trend testing the S asset conversion rates associated with the digital asset pairs. This allows stable asset processing of the transaction records when the asset conversion rate is on an upward or downward trend, thereby improving the stability of asset processing.

[0097] For further information, see Figure 3 , Figure 3 This is a flow chart of a data processing method provided by an embodiment of the present application. The method can be executed by a server, or by a terminal device, or by both a server and a terminal device. The server can be the above-mentioned Figure 2 The server 20a in the corresponding embodiment, the terminal device can be the above Figure 2 The terminal device 20b of the corresponding embodiment. For ease of understanding, the embodiment of the present application takes the method executed by the server as an example for explanation. Among them, the data processing method may include the following steps S101-S103:

[0098] Step S101, obtaining S asset conversion rates associated with the digital asset pair;

[0099] Specifically, the server may send a conversion rate subscription request for a digital asset pair to a conversion rate subscription platform through a streaming conversion rate acceptance service. The digital asset pair includes a first digital asset and a second digital asset, and the first digital asset is different from the second digital asset. Further, the server may receive S asset conversion rates associated with the digital asset pair pushed by the conversion rate subscription platform. The S asset conversion rates are continuously obtained by the conversion rate subscription platform based on the conversion rate subscription request; each of the S asset conversion rates is used to characterize the conversion rate (i.e., ratio) of exchanging the first digital asset for the second digital asset, and S here may be a positive integer.

[0100] The server may continuously receive the asset conversion rates associated with the digital asset pair pushed by the conversion rate subscription platform, and then store the received asset conversion rates in the asset conversion rate set, and obtain S asset conversion rates associated with the digital asset pair from the asset conversion rate set. The S asset conversion rates are the latest asset conversion rates in the asset conversion rate set.

[0101] In other words, the exchange rate provider (i.e., the conversion rate subscription platform) can actively and continuously push the latest exchange rate information (i.e., the asset conversion rate) to the customer (i.e., the third-party payment institution) through the Financial Information eXchange (FIX) protocol. At this time, the asset conversion rate obtained by the third-party payment institution can be called a streaming exchange rate, which has the characteristics of high frequency, timeliness, and huge data volume.

[0102] The specific process of the server obtaining S asset conversion rates based on the conversion rate subscription request can be found in Figure 4a , Figure 4a : is a flow chart of obtaining asset conversion rate provided by the embodiment of the present application. Figure 4a As shown, the server may include a streaming conversion rate receiving service (i.e., a streaming exchange rate receiving service) and a conversion rate trend judgment service (i.e., an exchange rate trend judgment service). The streaming conversion rate receiving service, the conversion rate trend judgment service, and the conversion rate subscription platform may jointly execute steps S11 to S13.

[0103] like Figure 4aAs shown, the server can execute step S11 through the streaming conversion rate receiving service, and subscribe to the asset conversion rate associated with the digital asset pair through step S11, that is, send a conversion rate subscription request for the digital asset pair to the conversion rate subscription platform. In this way, the conversion rate subscription platform can execute step S12, and push the latest asset conversion rate through step S12, that is, continuously obtain the asset conversion rate associated with the digital asset pair, and then continuously push the obtained asset conversion rate to the streaming conversion rate receiving service of the server; in other words, the conversion rate subscription platform will push the asset conversion rate to the server once every time it obtains one or more asset conversion rates.

[0104] like Figure 4a As shown, after receiving the latest asset conversion rate pushed by the conversion rate subscription platform, the server can execute step S13 through the streaming conversion rate receiving service, and send the asset conversion rate through step S13, that is, send the asset conversion rate (i.e., the streaming fair exchange rate) obtained from the conversion rate subscription platform to the conversion rate trend judgment service of the server, so that the server executes the following step S102 through the conversion rate trend judgment service.

[0105] Optionally, the server may poll and send Q conversion rate acquisition requests for digital asset pairs to the conversion rate subscription platform through a streaming conversion rate acceptance service. Here, Q may be a positive integer. Further, the server may receive S asset conversion rates associated with the digital asset pair returned by the conversion rate subscription platform. The S asset conversion rates are obtained by the conversion rate subscription platform based on Q conversion rate acquisition requests; each conversion rate acquisition request may obtain zero (i.e., 0), one or more asset conversion rates. To ensure that the server can quickly obtain the asset conversion rates associated with the digital asset pairs, the server may increase the frequency of polling and sending conversion rate acquisition requests, and timely obtain the latest asset conversion rates from the conversion rate subscription platform.

[0106] The server may receive the asset conversion rate returned by the conversion rate subscription platform based on each conversion rate acquisition request, and then store the received asset conversion rate into an asset conversion rate set, and obtain S asset conversion rates associated with the digital asset pair from the asset conversion rate set. The S asset conversion rates are the latest asset conversion rates in the asset conversion rate set.

[0107] The specific process of the server obtaining S asset conversion rates based on the conversion rate acquisition request can be found in Figure 4b , Figure 4b : is a flow chart of obtaining asset conversion rate provided by the embodiment of the present application. Figure 4bAs shown, the server may include a streaming conversion rate receiving service (i.e., a streaming exchange rate receiving service) and a conversion rate trend judgment service (i.e., an exchange rate trend judgment service). The streaming conversion rate receiving service, the conversion rate trend judgment service, and the conversion rate subscription platform may jointly execute steps S21-S23.

[0108] like Figure 4b As shown, the server can execute step S21 through the streaming conversion rate receiving service, and poll the asset conversion rate associated with the digital asset pair through step S21, that is, poll and send a conversion rate acquisition request for the digital asset pair to the conversion rate subscription platform. In this way, the conversion rate subscription platform can execute step S22, and return the polled asset conversion rate through step S22, that is, when receiving the conversion rate acquisition request, the asset conversion rate associated with the digital asset pair is acquired, and then the asset conversion rate corresponding to the conversion rate acquisition request is returned to the streaming conversion rate receiving service of the server.

[0109] like Figure 4b As shown, after receiving the polled asset conversion rate returned by the conversion rate subscription platform, the server can execute step S23 through the streaming conversion rate receiving service, and send the asset conversion rate through step S13, that is, send the asset conversion rate obtained from the conversion rate subscription platform to the conversion rate trend judgment service of the server, so that the server executes the following step S102 through the conversion rate trend judgment service.

[0110] It should be understood that the conversion rate subscription platform in the embodiment of the present application can be different financial institutions, third-party foreign exchange trading platforms, banks (for example, game banks in game clients), etc., and the number of conversion rate subscription platforms can be one or more, and the server can obtain S asset conversion rates associated with digital asset pairs from one or more conversion rate subscription platforms. Therefore, by obtaining asset conversion rates from one or more conversion rate subscription platforms, the probability of a third-party payment institution obtaining the latest market exchange rate can be increased, thereby increasing the sensitivity of the third-party payment institution to market sensing (i.e., ensuring that the third-party payment institution can quickly obtain and perceive changes in the exchange rate market).

[0111] Optionally, when the server cannot directly obtain the asset conversion rate associated with the digital asset pair, the server can obtain S first candidate asset conversion rates associated with the first candidate digital asset pair. Among them, the first candidate digital asset pair includes a first digital asset and a third digital asset, and the first digital asset is different from the third digital asset; each of the S first candidate asset conversion rates is used to characterize the conversion rate (i.e., ratio) of exchanging the first digital asset for the third digital asset. At the same time, the server can obtain S second candidate asset conversion rates associated with the second candidate digital asset pair. Among them, the first candidate digital asset pair includes a second digital asset and a third digital asset, and the second digital asset is different from the third digital asset; each of the S second candidate asset conversion rates is used to characterize the conversion rate (i.e., ratio) of exchanging the second digital asset for the third digital asset. Further, the server can perform cross operations on the S first candidate asset conversion rates and the S second candidate asset conversion rates to generate S asset conversion rates associated with the first digital asset and the second digital asset.

[0112] Among them, the specific process of the server obtaining the S first candidate asset conversion rates can refer to the description of obtaining the S asset conversion rates above, which will not be repeated here; the specific process of the server obtaining the S second candidate asset conversion rates can refer to the description of obtaining the S asset conversion rates above, which will not be repeated here.

[0113] The specific process of the server performing cross-calculation on the S first candidate asset conversion rates and the S second candidate asset conversion rates can be described as follows: the server can obtain the associated first candidate asset conversion rate and the second candidate asset conversion rate from the S first candidate asset conversion rates and the S second candidate asset conversion rates, and then perform cross-calculation on the associated first candidate asset conversion rate and the second candidate asset conversion rate to generate asset conversion rates associated with the first digital asset and the second digital asset. The associated first candidate asset conversion rate and the second candidate asset conversion rate can indicate that the obtained first candidate asset conversion rate and the obtained second candidate asset conversion rate have the same conversion timestamp, and each two first candidate asset conversion rates and the second candidate asset conversion rates in the S first candidate asset conversion rates and the S second candidate asset conversion rates are associated. Therefore, by performing cross-calculation on each two first candidate asset conversion rates and the second candidate asset conversion rates in the S first candidate asset conversion rates and the S second candidate asset conversion rates, S asset conversion rates associated with the first digital asset and the second digital asset can be generated.

[0114] Optionally, if the asset conversion rate associated with the digital asset pair is not easily available in the foreign exchange market, the server may use other digital asset pairs to replace the digital asset pair consisting of the first digital asset and the second digital asset. For example, the market change frequency of the digital asset pair F1 (e.g., the first candidate digital asset pair) is significantly faster than the market change frequency of the digital asset pair F2 (e.g., the digital asset pair), and the digital asset pair F1 and the digital asset pair F2 are highly correlated, so the server may use the asset conversion rate associated with the digital asset pair F1 to replace the asset conversion rate associated with the digital asset pair F2.

[0115] Step S102, performing a trend test on the S asset conversion rates to generate a conversion change trend for the digital asset pair;

[0116] It should be understood that the embodiment of the present application can determine the value of S by backtesting. For example, the server can obtain S1 asset conversion rates, S2 asset conversion rates, ..., S N asset conversion rates, determine S1 asset conversion rate, S2 asset conversion rate, …, S N The predicted conversion trends corresponding to the asset conversion rates are calculated based on the S1 asset conversion rate, S2 asset conversion rate, …, S N The predicted conversion trends corresponding to the asset conversion rates are used to determine the S1 asset conversion rate, S2 asset conversion rate, …, S N The server determines the accuracy rates corresponding to the asset conversion rates respectively, thereby determining the number of asset conversion rates with the highest accuracy rate as S (for example, when the accuracy rate corresponding to S1 asset conversion rates is the highest accuracy rate, the server can determine S1 as S).

[0117] Here, S1 (for example, 10), S2 (for example, 20), ..., S N (for example, 30) can all be positive integers; the embodiment of the present application does not limit the specific period length of the historical time period. For example, the historical time period can be 1 day (for example, the day before the current day), 1 week (for example, 7 days before the current day), etc.

[0118] For easier understanding, see Figure 5 , Figure 5 1 is a flow chart of a trend test provided by an embodiment of the present application. Figure 5 As shown, the server may include an exposure management system, a streaming conversion rate acceptance service (i.e., a streaming exchange rate acceptance service) and a conversion rate trend judgment service (i.e., an exchange rate trend judgment service). The streaming conversion rate acceptance service, the conversion rate trend judgment service and the exposure management system may jointly execute steps S31 to S35.

[0119] like Figure 5As shown, the server can receive the service through the streaming conversion rate and execute step S31, and send the asset conversion rate through step S31. Among them, step S31 can be the above Figure 4a Step S13 in the corresponding embodiment may also be the above Figure 4b The corresponding embodiment of step S23. In this way, the server can receive the asset conversion rate through the conversion rate trend judgment service, and then execute step S32, and store the latest asset conversion rate through step S32, that is, store the received asset conversion rate into the asset conversion rate set.

[0120] like Figure 5 As shown, the server can execute step S33 through the conversion rate trend judgment service, and take out the latest S asset conversion rates from the asset conversion rate set through step S33, that is, obtain the S asset conversion rates associated with the digital asset pair from the asset conversion rate set, and then execute step S34, calculate the conversion change trend through step S34, generate strategy tags (that is, liquidation strategy tags of different gears), that is, perform trend inspection on the S asset conversion rates, and generate the conversion change trend for the digital asset pair. Among them, the conversion change trend can be represented by a strategy tag, and different strategy tags can represent different conversion change trends.

[0121] like Figure 5 As shown, the server can execute step S35 through the conversion rate trend judgment service, and send the policy tag through step S35, that is, send the conversion change trend represented by the policy tag to the exposure management system of the server, so that the server executes the following step S103 through the exposure management system. Among them, the server can execute step S102 once when receiving an asset conversion rate, thereby realizing the refresh calculation of the conversion change trend, that is, refreshing the calculation policy tag.

[0122] It should be understood that the server can perform a trend test on the S asset conversion rates by using a trend test method, and the present application embodiment does not limit the specific trend test method used for the trend test. For example, the server can determine the conversion change trend for the digital asset pair by using the Cox-Stuart (sign test) trend test method. The specific process of the Cox-Stuart trend test method for the trend test can be found in the following Figure 7 The description of steps S201 to S203 in the corresponding embodiment; for another example, the server can use the Mann-Kendall trend test method to determine the conversion change trend for the digital asset pair. The specific process of the Mann-Kendall trend test method for trend testing can be found in the following Figure 8 The description of steps S301 to S304 in the corresponding embodiment.

[0123] Step S103, obtaining the transaction record for the digital asset pair from the transaction record set, performing asset processing on the transaction record according to the conversion change trend, and obtaining the processing result corresponding to the transaction record.

[0124] Specifically, the server can obtain the transaction record for the digital asset pair from the transaction record set. Among them, the transaction record may include the operation amount of the first digital asset, and the transaction record may also include the operation amount of the second digital asset. Further, the server can obtain the amount holding range corresponding to the conversion change trend. Among them, the amount holding range includes the amount holding upper limit and the amount holding lower limit, and the amount holding lower limit is less than the amount holding upper limit. The embodiment of the present application does not limit the specific values ​​of the amount holding upper limit and the amount holding lower limit. Further, the server can perform asset processing on the operation amount of the first digital asset according to the amount holding upper limit and the amount holding lower limit, and obtain the processing result corresponding to the transaction record.

[0125] Optionally, the server may also perform asset processing on the operation amount of the second digital asset according to the upper limit and the lower limit of the amount held, and obtain a processing result corresponding to the transaction record. The specific process of the server performing asset processing on the operation amount of the second digital asset according to the upper limit and the lower limit of the amount held can be referred to the description of the asset processing on the operation amount of the first digital asset according to the upper limit and the lower limit of the amount held, which will not be repeated here.

[0126] Among them, the server can obtain the amount holding range corresponding to the conversion change trend (i.e., the amount holding range corresponding to the strategy tag) according to the strategy tag corresponding to the conversion change trend. Different strategy tags can correspond to different amount holding ranges, i.e., different conversion change trends can correspond to different amount holding ranges, different amount holding ranges can correspond to different amount holding upper limits, and different amount holding ranges can correspond to different amount holding lower limits. Therefore, the exposure management system of the server can continuously adjust the execution of the liquidation strategy according to the strategy tag, and go to the bank to execute the corresponding liquidation transaction (i.e., perform the corresponding asset processing), i.e., the exposure management system can perform exposure management after obtaining the strategy tag.

[0127] In addition, the embodiment of the present application does not limit the number of strategy tags (for example, 5), that is, the embodiment of the present application does not limit the division granularity of the conversion change trend; the more strategy tags there are, the smaller the division granularity of the conversion change trend is, and the fewer strategy tags there are, the larger the division granularity of the conversion change trend is; different numbers of strategy tags can correspond to different position risks, the fewer the number of strategy tags, the smaller the position risk is, and the more the number of strategy tags, the greater the position risk is.

[0128] For example, in the embodiment of the present application, the digital asset pair may be referred to as AAABBB, and the policy tag may be represented as AAABBB_flag, where AAA may represent the first digital asset and BBB may represent the second digital asset.

[0129] For ease of understanding, please refer to Table 1, which is a transaction record list provided in an embodiment of the present application. The transaction record list may store transaction records in a transaction record set (transaction records may also be referred to as position records). As shown in Table 1:

[0130] Table 1

[0131] Transaction record ID Digital Assets 1 Amount of digital asset 1 Digital Assets 2 Amount of digital assets 2 101 First Digital Asset Amount 1 Second digital asset Amount 2 102 The third digital asset Amount 3 Second digital asset Amount 4

[0132] Among them, as shown in Table 1, the transaction record identifier (the transaction record identifier may also be referred to as a position identifier) ​​may be used to uniquely identify the transaction record, and the embodiment of the present application does not limit the specific form of the transaction record identifier; digital asset 1 and digital asset 2 may be used to represent the two digital assets corresponding to the transaction record, the amount of digital asset 1 may represent the operation amount of digital asset 1, and the amount of digital asset 2 may represent the operation amount of digital asset 2.

[0133] As shown in Table 1, for example, the two digital assets corresponding to the transaction record with the transaction record identifier 101 may be the first digital asset and the second digital asset, the operation amount of the first digital asset may be amount 1 (i.e., amount1), and the operation amount of the second digital asset may be amount 2 (i.e., amount2). Wherein, if the first digital asset is a negative number and the second digital asset is a positive number, the transaction record indicates that the first digital asset is exchanged through the second digital asset; optionally, if the first digital asset is a positive number and the second digital asset is a negative number, the transaction record indicates that the second digital asset is exchanged through the first digital asset. For another example, the two digital assets corresponding to the transaction record with the transaction record identifier 102 may be the third digital asset and the second digital asset, the operation amount of the third digital asset may be amount 3 (i.e., amount3), and the operation amount of the second digital asset may be amount 4 (i.e., amount4). Wherein, if the third digital asset is a negative number and the second digital asset is a positive number, the transaction record indicates that the third digital asset is exchanged through the second digital asset; optionally, if the third digital asset is a positive number and the second digital asset is a negative number, the transaction record indicates that the second digital asset is exchanged through the third digital asset. Therefore, the transaction record with the transaction record identifier 101 may be a transaction record for the digital asset pair, that is, the server may obtain the transaction record with the transaction record identifier 101 from the transaction record set.

[0134] It should be understood that if the operation amount of the first digital asset is greater than or equal to the lower limit of the amount held and less than or equal to the upper limit of the amount held, the server can determine the operation amount of the first digital asset as the processing result corresponding to the transaction record, that is, no transaction action is performed (i.e., holding). Optionally, if the operation amount of the first digital asset is less than the lower limit of the amount held, the server can exchange the first digital asset through the second digital asset to obtain the operation amount of the first digital asset after the asset processing, and determine the operation amount of the first digital asset after the asset processing as the processing result corresponding to the transaction record (i.e., closing the position). Optionally, if the operation amount of the first digital asset is greater than the upper limit of the amount held, the server can exchange the first digital asset through the second digital asset to obtain the operation amount of the first digital asset after the asset processing, and determine the operation amount of the first digital asset after the asset processing as the processing result corresponding to the transaction record (i.e., closing the position).

[0135] Wherein, the specific process of exchanging the first digital asset for the first digital asset and obtaining the operation amount of the first digital asset after asset processing can be described as follows: if the conversion change trend is the first type of change trend, the server can perform a reverse processing on the operation amount of the first digital asset to obtain the reversed operation amount, and exchange the first digital asset with the reversed operation amount through the second digital asset to obtain the operation amount of the first digital asset after asset processing. Optionally, if the conversion change trend is the second type of change trend, the server can perform a reverse processing on the operation amount of the first digital asset to obtain the reversed operation amount, perform a calculation on the reversed operation amount and the first reserved amount corresponding to the first digital asset to obtain the first operation amount, and exchange the first digital asset with the first operation amount through the second digital asset to obtain the operation amount of the first digital asset after asset processing. Wherein, the first reserved amount is the amount of the first digital asset retained after the exchange operation (i.e., the partial exposure left after closing the position), and the embodiment of the present application does not limit the specific value of the first reserved amount. Wherein, the first type of digital assets and the second type of digital assets can be used to distinguish whether to retain after closing the position.

[0136] Among them, the specific process of exchanging the first digital asset for the second digital asset to obtain the operating amount of the first digital asset after asset processing can be described as follows: if the conversion change trend is the third type of change trend, the server can perform calculations on the operating amount of the first digital asset and the second reserved amount corresponding to the first digital asset to obtain the second operating amount, and exchange the second digital asset with the first digital asset having the second operating amount to obtain the operating amount of the first digital asset after asset processing. Among them, the second reserved amount is the amount of the first digital asset retained after the exchange operation (i.e., the partial exposure left after closing the position), and the embodiment of the present application does not limit the specific value of the second reserved amount. Optionally, if the conversion change trend is the fourth type of change trend, the server can exchange the second digital asset with the first digital asset having the operating amount of the first digital asset to obtain the operating amount of the first digital asset after asset processing. Among them, the third type of digital assets and the fourth type of digital assets can be used to distinguish whether to retain after closing the position.

[0137] For ease of understanding, please refer to Table 2, which is an asset processing list provided in an embodiment of the present application. The asset processing list may store the amount holding range (i.e., the allowed holding range) corresponding to the policy tag and the reserved amount (i.e., the first digital asset reserved holding amount after closing the position, which may also be referred to as the position reserved amount) corresponding to the policy tag. Table 2 takes the number of policy tags as 5 as an example for explanation. As shown in Table 2:

[0138] Table 2

[0139] Strategy Tags Amount holding range Reserve amount 2 0 < Open Interest < 100,000,000 1,000,000 1 0 < Open Interest < 1,000,000 0 0 -500,000 < Open Interest < 500,000 0 -1 0>Position>-1,000,000 0 -2 0>Position>-100,000,000 -1,000,000

[0140] As shown in Table 2, the five policy tags may specifically include policy tag 2, policy tag 1, policy tag 0, policy tag-1 and policy tag-2. The embodiment of the present application does not limit the specific form of the policy tags; if the operation amount of the first digital asset is less than the lower limit of the amount held, the conversion change trends corresponding to policy tag 2, policy tag 1, policy tag 0 and policy tag-1 respectively may be the first type of change trend, and the conversion change trend corresponding to policy tag-2 may be the second type of change trend; if the operation amount of the first digital asset is greater than the upper limit of the amount held, the conversion change trend corresponding to policy tag 2 may be the third type of change trend, and the conversion change trends corresponding to policy tag 1, policy tag 0, policy tag-1 and policy tag-2 may be the fourth type of change trend.

[0141] Among them, if the policy label is equal to 2, the server can divide the holding range of the operation amount (i.e., amount) of the first digital asset into three cases: (1) When amount < 0, exchange the second digital asset for the first digital asset with the amount of -amount (i.e., the operation amount after negation processing), that is, close the exposure of the digital asset pair; (2) When 0 < amount < 100,000,000, do not perform any trading actions and end; (3) When 100,000,000 < amount, exchange the first digital asset with the amount of amount - 1,000,000 (i.e., the second operation amount) for the second digital asset, indicating that there is still a holding position of 1,000,000 after exchanging the first digital asset. Among them, 100,000,000 can be the upper limit of the holding range of 0 < amount < 100,000,000, and 0 can be the lower limit of the holding range of 0 < amount < 100,000,000.

[0142] Optionally, if the policy label is equal to 1, the server can divide the holding range of the operation amount (i.e., amount) of the first digital asset into three cases: (1) When amount < 0, exchange the second digital asset for the first digital asset with the amount of -amount (i.e., the operation amount after negation processing), that is, close the exposure of the digital asset pair; (2) When 0 < amount < 1,000,000, do not perform any trading actions and end; (3) When 1,000,000 < amount, exchange the first digital asset with the amount of amount for the second digital asset, that is, close the exposure of the digital asset pair. Among them, 1,000,000 can be the upper limit of the holding range of 0 < amount < 1,000,000, and 0 can be the lower limit of the holding range of 0 < amount < 1,000,000.

[0143] Optionally, if the policy label is equal to 0, the server can divide the holding range of the operation amount (i.e., amount) of the first digital asset into three cases: (1) When amount < -500,000, exchange the second digital asset for the first digital asset with the amount of -amount (i.e., the operation amount after negation processing), that is, close the exposure of the digital asset pair; (2) When -500,000 < amount < 500,000, do not perform any trading actions and end; (3) When 500,000 < amount, exchange the first digital asset with the amount of amount for the second digital asset, that is, close the exposure of the digital asset pair. Among them, 500,000 can be the upper limit of the holding range of -500,000 < amount < 500,000, and -500,000 can be the lower limit of the holding range of -500,000 < amount < 500,000.

[0144] Optionally, if the policy label is equal to -1, the server can divide the holding range of the operation amount (i.e., amount) of the first digital asset into three cases: (1) amount < -1,000,000, exchange the second digital asset for the first digital asset in the amount of -amount (i.e., the operation amount after taking the inverse), that is, close the exposure of the digital asset pair; (2) -1,000,000 < amount < 0, do not perform any trading actions and end; (3) 0 < amount, exchange the first digital asset in the amount of amount for the second digital asset, that is, close the exposure of the digital asset pair. Among them, 0 can be the upper limit of the holding amount of the holding range -1,000,000 < amount < 0, and -1,000,000 can be the lower limit of the holding amount of the holding range -1,000,000 < amount < 0.

[0145] Optionally, if the policy label is equal to -2, the server can divide the holding range of the operation amount (i.e., amount) of the first digital asset into three cases: (1) amount < -100,000,000, exchange the second digital asset for the first digital asset in the amount of -amount - 1,000,000 (i.e., the first operation amount), indicating that there is still a position of -1,000,000 after exchanging the first digital asset; (2) -100,000,000 < amount < 0, do not perform any trading actions and end; (3) 0 < amount, exchange the first digital asset in the amount of amount for the second digital asset, that is, close the exposure of the digital asset pair. Among them, 0 can be the upper limit of the holding amount of the holding range -100,000,000 < amount < 0, and -100,000,000 can be the lower limit of the holding amount of the holding range -100,000,000 < amount < 0.

[0146] Therefore, if the exchange rate trend is favorable for holding the first digital resource (i.e., the asset conversion rate is on an upward trend), the permitted amount for widening the exposure is increased, and the more obvious the trend, the larger the permitted amount; optionally, if the exchange rate trend is unfavorable for holding the first digital resource (i.e., the asset conversion rate is on a downward trend), then close the position immediately to avoid risks. In other words, the server can quickly close the position when the exchange rate trend is unfavorable, and slowly close the position when the exchange rate trend is favorable, thereby reducing transaction costs and expanding profits, that is, enhancing the appreciation opportunity during the appreciation trend and avoiding risks and reducing the loss scale during the depreciation trend.

[0147] Optionally, for ease of understanding, please refer to Table 3, which is an asset processing list provided in an embodiment of the present application. The asset processing list may store the amount holding range (i.e., the allowed holding range) corresponding to the policy tag and the reserved amount (i.e., the first digital asset reserved holding amount after closing the position, which may also be referred to as the holding reserved amount) corresponding to the policy tag. Table 3 takes the number of policy tags as 3 as an example for explanation. As shown in Table 3:

[0148] Table 3

[0149] Strategy Tags Amount holding range Reserve amount 1 0 < Open Interest < 100,000,000 1,000,000 0 -500,000 < Open Interest < 500,000 0 -1 0>Position>-100,000,000 -1,000,000

[0150] As shown in Table 3, the three policy tags may specifically include policy tag 1, policy tag 0, and policy tag -1. The embodiment of the present application does not limit the specific form of the policy tags; if the operation amount of the first digital asset is less than the lower limit of the amount held, the conversion change trend corresponding to policy tag 1 and policy tag 0 may be the first type of change trend, and the conversion change trend corresponding to policy tag -1 may be the second type of change trend; if the operation amount of the first digital asset is greater than the upper limit of the amount held, the conversion change trend corresponding to policy tag 1 may be the third type of change trend, and the conversion change trend corresponding to policy tag 0 and policy tag -1 may be the fourth type of change trend. Among them, the specific process of exchanging the first digital asset through the second digital asset or exchanging the second digital asset through the first digital asset can refer to the description of Table 2 above, which will not be repeated here.

[0151] Optionally, for ease of understanding, please refer to Table 4, which is an asset processing list provided in an embodiment of the present application. The asset processing list may store the amount holding range (i.e., the allowed holding range) corresponding to the policy tag and the reserved amount (i.e., the first digital asset reserved holding amount after closing the position, which may also be referred to as the holding reserved amount) corresponding to the policy tag. Table 4 takes the number of policy tags as 7 as an example for explanation. As shown in Table 4:

[0152] Table 4

[0153] Strategy Tags Amount holding range Reserve amount 3 0 < Open Interest < 100,000,000 1,000,000 2 0 < Open Interest < 10,000,000 500,000 1 0 < Open Interest < 1,000,000 0 0 -500,000 < Open Interest < 500,000 0 -1 0>Position>-1,000,000 0 -2 0>Position>-10,000,000 -500,000 -3 0>Position>-100,000,000 -1,000,000

[0154] As shown in Table 4, the seven policy tags may specifically include policy tag 3, policy tag 2, policy tag 1, policy tag 0, policy tag-1, policy tag-2 and policy tag-3. The embodiment of the present application does not limit the specific form of the policy tag; if the operation amount of the first digital asset is less than the lower limit of the amount held, the conversion change trend corresponding to policy tag 3, policy tag 2, policy tag 1, policy tag 0 and policy tag-1 can be the first type of change trend, and the conversion change trend corresponding to policy tag-2 and policy tag-3 can be the second type of change trend; if the operation amount of the first digital asset is greater than the upper limit of the amount held, the conversion change trend corresponding to policy tag 3 and policy tag 2 can be the third type of change trend, and the conversion change trend corresponding to policy tag 1, policy tag 0, policy tag-1, policy tag-2 and policy tag-3 can be the fourth type of change trend. Among them, the specific process of exchanging the first digital asset through the second digital asset or exchanging the second digital asset through the first digital asset can refer to the description of the above Table 2, which will not be repeated here.

[0155] For easier understanding, see Figure 6 , Figure 6 It is a flowchart of asset processing provided in an embodiment of the present application. Figure 6 Taking the number of policy labels as 5 as an example, the 5 policy labels may specifically include policy label 2, policy label 1, policy label 0, policy label -1 and policy label -2 in Table 2 above. Figure 6 The flowchart shown may include steps S41 to S51.

[0156] like Figure 6As shown, at the beginning of the process, the server can execute step S41 through the exposure management system, and obtain the operation amount of the first digital asset in the transaction record through step S41. Further, the server can execute step S42, and determine whether the policy tag corresponding to the conversion change trend is equal to 2 through step S42. If the policy tag is equal to 2, step S47 is further executed; optionally, if the policy tag is not equal to 2, step S43 is further executed. Further, the server can determine whether the policy tag corresponding to the conversion change trend is equal to 1 through step S43, and if the policy tag is equal to 1, step S47 is further executed; optionally, if the policy tag is not equal to 1, step S44 is further executed. Further, the server can determine whether the policy tag corresponding to the conversion change trend is equal to 0 through step S44, and if the policy tag is equal to 0, step S47 is further executed; optionally, if the policy tag is not equal to 0, step S45 is further executed. Further, the server can determine whether the policy tag corresponding to the conversion change trend is equal to -1 through step S45, and if the policy tag is equal to -1, further execute step S47; optionally, if the policy tag is not equal to -1, further execute step S46. Further, the server can determine whether the policy tag corresponding to the conversion change trend is equal to -2 through step S46, and if the policy tag is equal to -2, further execute step S47; optionally, if the policy tag is not equal to -2, the process ends.

[0157] like Figure 6 As shown, the server can obtain the execution strategy corresponding to the strategy tag through step S47 (the execution strategy may include the amount holding range and the reserved amount, and the execution strategy may also be called the position strategy), that is, obtain the amount holding range corresponding to the conversion change trend and the reserved amount corresponding to the conversion change trend (the reserved amount may include the first reserved amount and the second reserved amount). In addition, before executing step S47, the server can execute step S48 through the exposure management system, and execute the strategy data through step S48, that is, set the processing strategy for the exchange rate trend of different digital asset pairs for the exposure management system, that is, the specific execution strategy for different strategy tags. For example, the server can set the processing strategy of Table 2, Table 3 or Table 4 for the digital asset pairs. Among them, different digital asset pairs can correspond to the same processing strategy or different processing strategies.

[0158] like Figure 6As shown, the server can execute step S49 through the exposure management system, and determine whether the operation amount is within the amount holding range through step S49, that is, determine whether the operation amount of the first digital asset is greater than or equal to the amount holding lower limit and less than or equal to the amount holding upper limit. Among them, if the operation amount is within the amount holding range (that is, the operation amount is greater than or equal to the amount holding lower limit and less than or equal to the amount holding upper limit), the process ends; optionally, if the operation amount is within the amount holding range (that is, the operation amount is less than the amount holding lower limit or the operation amount is greater than the amount holding upper limit), the server can execute step S50, and calculate the closing transaction volume to be executed through step S50, that is, determine the operation amount of the digital asset (that is, the first digital asset or the second digital asset) to be exchanged according to the amount holding range and the reserved amount. Further, the server can execute step S51, and close the position through step S51, that is, exchange the second digital asset through the first digital asset or exchange the first digital asset through the second digital asset, and the process ends.

[0159] In step S51, the server may exchange the first digital asset with the second digital asset when the operation amount of the first digital asset is less than the lower limit of the amount held; optionally, the server may exchange the second digital asset with the first digital asset when the operation amount of the first digital asset is greater than the upper limit of the amount held.

[0160] It should be understood that the server can execute step S103 after obtaining the conversion change trend represented by the strategy tag; optionally, the server can also execute step S103 after receiving the customer foreign exchange transaction, that is, the server can execute step S103 after receiving the new digital asset transaction request sent by the terminal device. For example, the new digital asset transaction request can be a first digital asset with a new operation amount. At this time, the new operation amount of the first digital asset can be the sum of the new operation amount and the operation amount of the first digital asset (that is, the exposure size has changed). Therefore, the server needs to re-compare the new operation amount of the first digital asset with the amount holding range.

[0161] In an embodiment of the present application, a computer device can obtain S asset conversion rates associated with a digital asset pair, and then perform a trend test on the S asset conversion rates to generate a conversion change trend for the digital asset pair. Wherein, the digital asset pair includes a first digital asset and a second digital asset, and the first digital asset is different from the second digital asset; each of the S asset conversion rates is used to characterize the conversion rate of exchanging the first digital asset for the second digital asset, and S here can be a positive integer. Further, the computer device can obtain transaction records for the digital asset pair from a transaction record set, perform asset processing on the transaction record according to the conversion change trend, and obtain the processing result corresponding to the transaction record. It can be seen that the embodiment of the present application proposes a digital asset management method based on asset conversion rate trend judgment, which method does not require manual direct asset processing of the transaction records in the transaction record set (i.e., there is no need to rely on the experience of managers to process the transaction records), but determines the conversion change trend of the asset conversion rate according to the constantly changing asset conversion rate, and then automatically processes the transaction records according to the conversion change trend, thereby improving the stability of asset processing.

[0162] For further information, see Figure 7 , Figure 7 is a flow chart of a data processing method provided in an embodiment of the present application. The data processing method may include the following steps S201 to S203, and steps S201 to S203 are Figure 3 A specific embodiment of step S102 in the corresponding embodiment.

[0163] Step S201, sorting the S asset conversion rates according to the conversion timestamps respectively corresponding to the S asset conversion rates to obtain the sorted S asset conversion rates;

[0164] Among them, the conversion timestamp can indicate the moment when the asset conversion rate changes (i.e., the time of occurrence), and the asset conversion rate is constantly changing and unpredictable. The change of the asset conversion rate does not depend on fixed rules, and different asset conversion rates can correspond to different conversion timestamps. However, certain market reasons can cause changes in the asset conversion rate, and this change often shows a trend over a period of time. For example, an interest rate hike often causes the asset conversion rate to increase in value in a short period of time.

[0165] Among them, the sorted S asset conversion rates may include the asset conversion rate R i and asset conversion rate R j , where i can be a positive integer less than or equal to S / 2, and the sum of i and S / 2 can be equal to j; asset conversion rate R i The corresponding conversion timestamp is later than the asset conversion rate R jThe corresponding conversion timestamp. Asset conversion rate R i and asset conversion rate R j Can be used to form a pair of data (R i ,R j ).

[0166] For ease of understanding, the present application embodiment is described by taking S as an even number as an example. Here, S is 20 as an example. For example, the sorted S asset conversion rates may include {x1, x2, …, x20} (i.e. {R1, R2, …, R 20}), where x1 is the latest asset conversion rate (i.e., the asset conversion rate with the latest conversion timestamp). Therefore, the 20 asset conversion rates can be used to form 10 pairs of data: (x1, x11), (x2, x12), …, (x10, x20).

[0167] Optionally, if S is an odd number, then i here can be a positive integer less than or equal to S / 2, and the sum of i and S / 2 can be equal to j-1. Here, S is equal to 21 as an example. For example, the sorted S asset conversion rates may include {x1, x2, …, x21} (i.e. {R1, R2, …, R 21}), where x1 is the latest asset conversion rate (i.e., the asset conversion rate with the latest conversion timestamp). Therefore, the 21 asset conversion rates can be used to form 10 pairs of data: (x1, x12), (x2, x13), …, (x10, x21).

[0168] Step S202, generating S / 2 conversion rate calculation parameters associated with the sorted S asset conversion rates according to the sorted S asset conversion rates;

[0169] Specifically, the server can calculate the asset conversion rate R i and asset conversion rate R j Perform subtraction to generate the asset conversion rate R i and asset conversion rate R j Therefore, a pair of data (R i ,R j ) can be used to generate a conversion rate calculation parameter; S asset conversion rates can generate S / 2 pairs of data, thereby generating S / 2 conversion rate calculation parameters.

[0170] Among them, the subtraction operation can be expressed by the asset conversion rate R i Subtract the asset conversion rate R j , and the asset conversion rate R i and asset conversion rate R j Commonly associated conversion rate calculation parameters (i.e. D i =R i -Rj ); when S is equal to 20, and the asset conversion rate R i and asset conversion rate R j The commonly associated conversion rate calculation parameter is D i =x i -x i+10 For example, the conversion rate calculation parameter associated with the asset conversion rate R1 (i.e., x1) and the asset conversion rate R2 (i.e., x11) is D1=x1-x11. 10 (i.e. x10) and asset conversion rate R 20 (i.e. x20) The conversion rate calculation parameter associated with it is D 10 =x10-x20.

[0171] Step S203, performing parameter statistics on S / 2 conversion rate calculation parameters to determine the conversion change trend for the digital asset pair.

[0172] Specifically, the server can obtain P conversion rate operation parameters greater than the parameter threshold from S / 2 conversion rate operation parameters, that is, obtain the number of conversion rate operation parameters greater than the parameter threshold (ie, P). Here, P (ie, S_positive) can be a non-negative integer, and P can record D i is the number of positive numbers. At the same time, the server can obtain H conversion rate calculation parameters that are less than the parameter threshold from the S / 2 conversion rate calculation parameters, that is, obtain the number of conversion rate calculation parameters that are less than the parameter threshold (ie, H). Here, H (ie, S_negative) can be a non-negative integer, and H can record D i is the number of negative numbers. Further, the server can perform a subtraction operation on P and H to generate conversion change parameters corresponding to S / 2 conversion rate operation parameters. Among them, the subtraction operation can be represented by subtracting H from P to obtain the conversion change parameter (i.e., S_positive-S_negative). Further, the server can obtain the trend rule interval to which the conversion change parameter belongs, and determine the conversion change trend corresponding to the policy label of the trend rule interval as the conversion change trend for the digital asset pair; in other words, the server can determine the conversion change trend for the digital asset pair according to the trend judgment rule.

[0173] The number of trend rule intervals is the same as the number of policy tags, and the embodiment of the present application does not limit the number of trend rule intervals. In addition, the embodiment of the present application does not limit the specific value of the parameter threshold, for example, the parameter threshold can be equal to 0.

[0174] For ease of understanding, here we take the number of trend rule intervals as 5 as an example for explanation. For example, the 5 trend rule intervals may specifically include: (-∞,-6), [-6,-3], (-3,3), [3,6] and (6,∞). Among them, the policy label of the trend rule interval (-∞,-6) (i.e. -6>S_positive-S_negative) can be AAABBB_flag=-2, indicating that the conversion change trend corresponding to the policy label is a rapid depreciation of AAA to BBB; the policy label of the trend rule interval [-6,-3] (i.e. -3>=S_positive-S_negative>=-6) can be AAABBB_flag=-1, indicating that the conversion change trend corresponding to the policy label is a slow depreciation of AAA to BBB; the policy label of the trend rule interval (-3,3) (i.e. 3>S_positive-S_negative>-3) can be AAABBB_flag=-1, indicating that the conversion change trend corresponding to the policy label is a slow depreciation of AAA to BBB; The strategy label can be AAABBB_flag=0, indicating that the conversion change trend corresponding to the strategy label is AAABBB, and the asset conversion rate has no obvious trend; the strategy label in the trend rule interval [3,6] (i.e., 6>=S_positive-S_negative>=3) can be AAABBB_flag=1, indicating that the conversion change trend corresponding to the strategy label is a slow appreciation of AAA to BBB; the strategy label in the trend rule interval (6,∞) (i.e., S_positive-S_negative>6) can be AAABBB_flag=2, indicating that the conversion change trend corresponding to the strategy label is a rapid appreciation of AAA to BBB.

[0175] It can be seen that the embodiment of the present application proposes a method for quickly determining whether a trend exists without relying on a trend structure. The method can generate S / 2 conversion rate operation parameters associated with the sorted S asset conversion rates based on the sorted S asset conversion rates, and then perform parameter statistics on the S / 2 conversion rate operation parameters to determine the conversion change trend for the digital asset pair, thereby accurately generating the conversion change trend for the digital asset pair.

[0176] For further information, see Figure 8 , Figure 8 is a flow chart of a data processing method provided in an embodiment of the present application. The data processing method may include the following steps S301-S304, and steps S301-S304 are Figure 3 A specific embodiment of step S102 in the corresponding embodiment.

[0177] Step S301, sorting the S asset conversion rates according to the conversion timestamps corresponding to the S asset conversion rates, to obtain the sorted S asset conversion rates;

[0178] Among them, the conversion timestamp can indicate the moment when the asset conversion rate changes (i.e., the time of occurrence), and the asset conversion rate is constantly changing and unpredictable. The change of the asset conversion rate does not depend on fixed rules, and different asset conversion rates can correspond to different conversion timestamps. However, certain market reasons can cause changes in the asset conversion rate, and this change often shows a trend over a period of time. For example, an interest rate hike often causes the asset conversion rate to increase in value in a short period of time.

[0179] Among them, the S-1 candidate asset conversion rates among the sorted S asset conversion rates may include the asset conversion rate R k , where k can be a positive integer less than S; the S-1 candidate asset conversion rates are the asset conversion rates except the first asset conversion rate among the S asset conversion rates, and the conversion timestamp of the first asset conversion rate is earlier than the conversion timestamps corresponding to the S-1 candidate asset conversion rates, that is, the first asset conversion rate is the asset conversion rate with the earliest conversion timestamp among the S asset conversion rates.

[0180] For ease of understanding, here we take S equal to 20 as an example. For example, the sorted S asset conversion rates may include {x1, x2, …, x20} (i.e. {R1, R2, …, R 20}), where asset conversion rate R 20 (i.e. x20) can be the first asset conversion rate, asset conversion rate R1, asset conversion rate R2, ..., asset conversion rate R 19 Can be S-1 candidate asset conversion rate.

[0181] Step S302, generating test statistical parameters corresponding to S-1 candidate asset conversion rates in the sorted S asset conversion rates according to the sorted S asset conversion rates;

[0182] Specifically, the server can obtain the conversion timestamp earlier than the asset conversion rate R from the sorted S asset conversion rates. k The server can further calculate the asset conversion rate R k Subtract the Sk asset conversion rates from each other to generate auxiliary operation parameters corresponding to the Sk asset conversion rates. k Subtract the Sk asset conversion rates respectively to generate the auxiliary operation parameters corresponding to the Sk asset conversion rates. Further, the server can determine the symbol operation parameters corresponding to the Sk asset conversion rates respectively according to the Sk auxiliary operation parameters. Further, the server can sum the Sk symbol operation parameters to generate the asset conversion rate R kThe corresponding test statistic parameter is the sum of Sk symbolic operation parameters, which is determined as the asset conversion rate R k Corresponding test statistical parameters. Therefore, one candidate asset conversion rate can correspond to one test statistical parameter, and S-1 candidate asset conversion rates can correspond to S-1 test statistical parameters.

[0183] Among them, the Sk auxiliary operation parameters may include the target auxiliary operation parameters, and the server may determine the symbol operation parameters corresponding to the target auxiliary operation parameters according to the target auxiliary operation parameters and the parameter threshold. Among them, the embodiment of the present application does not limit the specific value of the parameter threshold, for example, the parameter threshold may be equal to 0. It can be understood that if the target auxiliary operation parameter is greater than the parameter threshold, the server may determine the first symbol parameter (for example, the first symbol parameter may be equal to 1) as the symbol operation parameter corresponding to the target auxiliary operation parameter; optionally, if the target auxiliary operation parameter is equal to the parameter threshold, the server may determine the second symbol parameter (for example, the second symbol parameter may be equal to 0) as the symbol operation parameter corresponding to the target auxiliary operation parameter; optionally, if the target auxiliary operation parameter is less than the parameter threshold, the server may determine the third symbol parameter (for example, the third symbol parameter may be equal to -1) as the symbol operation parameter corresponding to the target auxiliary operation parameter.

[0184] For example, the asset conversion rate R k can be {R1,R2,…,R 20 The asset conversion rate R in 18 (i.e. k is equal to 18), the conversion timestamp of the sorted S asset conversion rates is earlier than the asset conversion rate R 18 The asset conversion rate can include the asset conversion rate R 19 and asset conversion rate R 20 Among them, the asset conversion rate R 19 and asset conversion rate R 20 It can be collectively referred to as the conversion timestamp of the S asset conversion rates after sorting that is earlier than the asset conversion rate R 18 The server can further calculate the asset conversion rate R 18 and asset conversion rate R 19 Perform subtraction to generate the asset conversion rate R 19 Corresponding auxiliary operation parameters; the server can calculate the asset conversion rate R 18 and asset conversion rate R 20 Perform subtraction to generate the asset conversion rate R 20 Corresponding auxiliary operation parameters. Further, the server can calculate the asset conversion rate R 19 The corresponding auxiliary operation parameters generate the asset conversion rate R 19 Corresponding symbolic operation parameters; the server can be based on the asset conversion rate R20 The corresponding auxiliary operation parameters generate the asset conversion rate R 20 Corresponding symbolic operation parameters. Further, the server can calculate the Sk symbolic operation parameters (i.e., asset conversion rate R 19 Corresponding symbolic operation parameters and asset conversion rate R 20 The corresponding symbolic operation parameters) are summed to generate the asset conversion rate R 18 The corresponding test statistic parameter.

[0185] Step S303, summing up the S-1 test statistical parameters to obtain a test statistic associated with the sorted S asset conversion rates;

[0186] When S is equal to 20, S-1 test statistical parameters may include the test statistical parameter corresponding to the asset conversion rate R1, the test statistical parameter corresponding to the asset conversion rate R2, ..., the asset conversion rate R 19 Therefore, the server can calculate the test statistical parameters corresponding to the asset conversion rate R1, the test statistical parameters corresponding to the asset conversion rate R2, ..., the asset conversion rate R 19 The corresponding test statistic parameters are summed to obtain the test statistic.

[0187] Step S304: Generate a conversion change trend for the digital asset pair based on the arithmetic relationship between the test statistic and the statistic threshold.

[0188] Specifically, the server may perform parameter changes on the test statistic according to the statistical threshold value, and generate a conversion change parameter corresponding to the test statistic. Among them, the embodiment of the present application does not limit the specific value of the statistical threshold value, for example, the statistical threshold value may be equal to 0. Further, if the conversion change parameter is equal to the statistical threshold value, the server may determine the steady change trend as the conversion change trend for the digital asset pair; optionally, if the conversion change parameter is greater than the statistical threshold value, the server may determine the increasing change trend (i.e., the rising trend) as the conversion change trend for the digital asset pair; optionally, if the conversion change parameter is less than the statistical threshold value, the server may determine the decreasing change trend (i.e., the falling trend) as the conversion change trend for the digital asset pair.

[0189] For ease of understanding, here we take the case where the number of conversion trends is 3 (i.e., the number of strategy tags is 3) as an example for explanation. For example, when the conversion trend is a stable trend (i.e., there is no obvious trend in the asset conversion rate of the first digital asset to the second digital asset), the strategy tag corresponding to the conversion trend can be equal to 0; when the conversion trend is an increasing trend (i.e., the first digital asset has an appreciation trend to the second digital asset), the strategy tag corresponding to the conversion trend can be equal to 1; when the conversion trend is a decreasing trend (i.e., the first digital asset has a depreciation trend to the second digital asset), the strategy tag corresponding to the conversion trend can be equal to -1.

[0190] It can be understood that the specific process of the server performing parameter changes on the test statistic according to the statistical threshold can be described as follows: if the test statistic is greater than the statistical threshold, the server can perform a first parameter change on the test statistic and S to generate a transformation change parameter corresponding to the test statistic (for example, the first parameter change can be expressed as: L may represent a test statistic, and Z may represent a transformation change parameter); optionally, if the test statistic is equal to a statistical threshold, the server may determine the statistical threshold as a transformation change parameter corresponding to the test statistic (i.e., Z=0, and Z may represent a transformation change parameter); if the test statistic is less than the statistical threshold, the server may perform a second parameter change on the test statistic and S to generate a transformation change parameter corresponding to the test statistic (for example, the second parameter change may be represented as: L can represent the test statistic and Z can represent the transformation change parameter).

[0191] Optionally, the server may also set other thresholds in addition to the statistical threshold (for example, a first statistical threshold and a second statistical threshold, the first statistical threshold being greater than the statistical threshold, and the second statistical threshold being less than the statistical threshold). At this time, if the conversion change parameter is equal to the statistical threshold, the server may determine the steady change trend as the conversion change trend for the digital asset pair; optionally, if the conversion change parameter is greater than the first statistical threshold, the server may determine the rapid appreciation of the first digital asset against the second digital asset as the conversion change trend for the digital asset pair; optionally, if the conversion change parameter is less than the first statistical threshold and greater than the statistical threshold, the server may determine the slow appreciation of the first digital asset against the second digital asset as the conversion change trend for the digital asset pair; optionally, if the conversion change parameter is less than the statistical threshold and greater than the second statistical threshold, the server may determine the slow depreciation of the first digital asset against the second digital asset as the conversion change trend for the digital asset pair; optionally, if the conversion change parameter is less than the statistical threshold and greater than the second statistical threshold, the server may determine the rapid depreciation of the first digital asset against the second digital asset as the conversion change trend for the digital asset pair. Among them, rapid depreciation and slow depreciation can be collectively referred to as a decreasing trend, and rapid appreciation and slow increase can be collectively referred to as an increasing trend.

[0192] It can be seen that the embodiment of the present application proposes a method for quickly determining whether a trend exists for all distributions. The method can generate test statistical parameters corresponding to the S-1 candidate asset conversion rates in the sorted S asset conversion rates based on the sorted S asset conversion rates, and then generate conversion change parameters for the digital asset pair based on the S-1 test statistical parameters and the statistical threshold, so as to accurately generate the conversion change trend for the digital asset pair.

[0193] For further information, see Fig. 9 , Fig. 9 1 is a structural diagram of a data processing device provided in an embodiment of the present application. The data processing device 1 may include: a conversion rate acquisition module 11, a trend inspection module 12, and an asset processing module 13;

[0194] The conversion rate acquisition module 11 is used to acquire S asset conversion rates associated with a digital asset pair; the digital asset pair includes a first digital asset and a second digital asset; the first digital asset is different from the second digital asset; each of the S asset conversion rates is used to characterize the conversion rate of exchanging the first digital asset for the second digital asset; S is a positive integer;

[0195] The conversion rate acquisition module 11 is specifically used to send a conversion rate subscription request for the digital asset pair to the conversion rate subscription platform through a streaming conversion rate receiving service;

[0196] The conversion rate acquisition module 11 is specifically used to receive S asset conversion rates associated with digital asset pairs pushed by the conversion rate subscription platform; the S asset conversion rates are continuously acquired by the conversion rate subscription platform based on the conversion rate subscription request.

[0197] The conversion rate acquisition module 11 is specifically used to poll and send Q conversion rate acquisition requests for the digital asset pair to the conversion rate subscription platform through the streaming conversion rate receiving service; Q is a positive integer;

[0198] The conversion rate acquisition module 11 is specifically used to receive S asset conversion rates associated with the digital asset pair returned by the conversion rate subscription platform; the S asset conversion rates are acquired by the conversion rate subscription platform based on Q conversion rate acquisition requests.

[0199] The conversion rate acquisition module 11 is specifically used to acquire S first candidate asset conversion rates associated with the first candidate digital asset pair; the first candidate digital asset pair includes a first digital asset and a third digital asset; the first digital asset is different from the third digital asset; each of the S first candidate asset conversion rates is used to characterize the conversion rate of exchanging the first digital asset for the third digital asset;

[0200] The conversion rate acquisition module 11 is specifically used to acquire S second candidate asset conversion rates associated with the second candidate digital asset pair; the first candidate digital asset pair includes a second digital asset and a third digital asset; the second digital asset is different from the third digital asset; each of the S second candidate asset conversion rates is used to characterize the conversion rate of exchanging the second digital asset for the third digital asset;

[0201] The conversion rate acquisition module 11 is specifically used to perform cross calculations on the S first candidate asset conversion rates and the S second candidate asset conversion rates to generate S asset conversion rates associated with the first digital asset and the second digital asset.

[0202] A trend test module 12, used to perform a trend test on the S asset conversion rates and generate a conversion change trend for the digital asset pair;

[0203] The trend inspection module 12 includes: a first sorting unit 121, a first generating unit 122, a parameter statistics unit 123, a second sorting unit 124, a second generating unit 125, a summing processing unit 126, and a trend generating unit 127;

[0204] The first sorting unit 121 is used to sort the S asset conversion rates according to the conversion timestamps respectively corresponding to the S asset conversion rates to obtain sorted S asset conversion rates;

[0205] The first generating unit 122 is used to generate S / 2 conversion rate calculation parameters associated with the sorted S asset conversion rates according to the sorted S asset conversion rates;

[0206] Among them, the sorted S asset conversion rates include asset conversion rate R i and asset conversion rate R j ; i is a positive integer less than or equal to S / 2, the sum of i and S / 2 is equal to j; asset conversion rate R i The corresponding conversion timestamp is later than the asset conversion rate R j The corresponding conversion timestamp;

[0207] The first generating unit 122 is specifically used to calculate the asset conversion rate R i and asset conversion rate R j Perform subtraction to generate the asset conversion rate R i and asset conversion rate R j Commonly associated conversion rate calculation parameters.

[0208] The parameter statistics unit 123 is used to perform parameter statistics on S / 2 conversion rate calculation parameters to determine the conversion change trend for the digital asset pair.

[0209] The parameter statistics unit 123 is specifically used to obtain P conversion rate calculation parameters greater than the parameter threshold from the S / 2 conversion rate calculation parameters; P is a non-negative integer;

[0210] The parameter statistics unit 123 is specifically used to obtain H conversion rate operation parameters that are less than the parameter threshold from the S / 2 conversion rate operation parameters; H is a non-negative integer;

[0211] The parameter statistics unit 123 is specifically used to perform a subtraction operation on P and H to generate a conversion change parameter corresponding to S / 2 conversion rate operation parameters;

[0212] The parameter statistics unit 123 is specifically used to obtain the trend rule interval to which the conversion change parameter belongs, and determine the conversion change trend corresponding to the policy label of the trend rule interval as the conversion change trend for the digital asset pair.

[0213] The second sorting unit 124 is used to sort the S asset conversion rates according to the conversion timestamps respectively corresponding to the S asset conversion rates to obtain sorted S asset conversion rates;

[0214] The second generating unit 125 is used to generate test statistical parameters corresponding to S-1 candidate asset conversion rates in the sorted S asset conversion rates according to the sorted S asset conversion rates; the S-1 candidate asset conversion rate is the asset conversion rate other than the first asset conversion rate in the S asset conversion rates; the conversion timestamp of the first asset conversion rate is earlier than the conversion timestamps corresponding to the S-1 candidate asset conversion rates;

[0215] Among them, the S-1 candidate asset conversion rates among the sorted S asset conversion rates include the asset conversion rate R k , k is a positive integer less than S;

[0216] The second generating unit 125 is specifically configured to obtain, from the sorted S asset conversion rates, the asset conversion rates whose conversion timestamps are earlier than the asset conversion rate R. k The conversion rate of Sk assets;

[0217] The second generating unit 125 is specifically used to generate the asset conversion rate R k Subtract the Sk asset conversion rates from each other to generate auxiliary calculation parameters corresponding to the Sk asset conversion rates;

[0218] The second generating unit 125 is specifically used to determine the symbolic operation parameters corresponding to the Sk asset conversion rates according to the Sk auxiliary operation parameters;

[0219] The second generating unit 125 is specifically used to sum the Sk symbol operation parameters to generate the asset conversion rate R k The corresponding test statistic parameter.

[0220] A summing processing unit 126 is used to sum the S-1 test statistical parameters to obtain a test statistic associated with the sorted S asset conversion rates;

[0221] The trend generating unit 127 is used to generate a conversion change trend for the digital asset pair according to the arithmetic relationship between the test statistic and the statistic threshold.

[0222] The trend generating unit 127 is specifically used to perform parameter changes on the test statistic according to the statistic threshold value, and generate a transformation change parameter corresponding to the test statistic;

[0223] The trend generating unit 127 is specifically configured to determine the stable change trend as the conversion change trend for the digital asset pair if the conversion change parameter is equal to the statistical threshold;

[0224] The trend generating unit 127 is specifically configured to determine the increasing change trend as the conversion change trend for the digital asset pair if the conversion change parameter is greater than the statistical threshold;

[0225] The trend generating unit 127 is specifically configured to determine the decreasing change trend as the conversion change trend for the digital asset pair if the conversion change parameter is less than the statistical threshold.

[0226] The specific implementation of the first sorting unit 121, the first generating unit 122 and the parameter statistics unit 123 can be found in the above Figure 7 The description of steps S201 to S203 in the corresponding embodiment will not be repeated here. The specific implementation of the second sorting unit 124, the second generating unit 125, the summing processing unit 126 and the trend generating unit 127 can be found in the above Figure 8 The description of steps S301 to S304 in the corresponding embodiment will not be repeated here.

[0227] The asset processing module 13 is used to obtain transaction records for digital asset pairs from the transaction record set, perform asset processing on the transaction records according to the conversion change trend, and obtain processing results corresponding to the transaction records.

[0228] The asset processing module 13 includes: a record acquisition unit 131, a range acquisition unit 132, and an asset processing unit 133;

[0229] The record acquisition unit 131 is used to acquire a transaction record for a digital asset pair from a transaction record set; the transaction record includes an operation amount of the first digital asset;

[0230] The range acquisition unit 132 is used to acquire the amount holding range corresponding to the conversion change trend; the amount holding range includes an amount holding upper limit and an amount holding lower limit; the amount holding lower limit is less than the amount holding upper limit;

[0231] The asset processing unit 133 is used to perform asset processing on the operation amount of the first digital asset according to the upper limit of the amount held and the lower limit of the amount held, and obtain a processing result corresponding to the transaction record.

[0232] The asset processing unit 133 includes: a first determining subunit 1331, a second determining subunit 1332, and a third determining subunit 1333;

[0233] The first determining subunit 1331 is configured to determine the operation amount of the first digital asset as a processing result corresponding to the transaction record if the operation amount of the first digital asset is greater than or equal to the lower limit of the amount held and less than or equal to the upper limit of the amount held;

[0234] The second determining subunit 1332 is used to, if the operation amount of the first digital asset is less than the lower limit of the amount held, exchange the first digital asset with the second digital asset to obtain the operation amount of the first digital asset after the asset processing, and determine the operation amount of the first digital asset after the asset processing as the processing result corresponding to the transaction record;

[0235] The second determining subunit 1332 is specifically configured to, if the conversion change trend is the first type of change trend, perform inversion processing on the operation amount of the first digital asset to obtain the inverted operation amount, and exchange the first digital asset with the inverted operation amount through the second digital asset to obtain the operation amount of the first digital asset after asset processing;

[0236] The second determining subunit 1332 is specifically used to, if the conversion change trend is the second type of change trend, perform inversion processing on the operation amount of the first digital asset to obtain the inverted operation amount, perform operation processing on the inverted operation amount and the first reserved amount corresponding to the first digital asset to obtain the first operation amount, and exchange the first digital asset with the first operation amount through the second digital asset to obtain the operation amount of the first digital asset after the asset processing; the first reserved amount is the amount of the first digital asset retained after the exchange operation.

[0237] The third determining subunit 1333 is used to, if the operation amount of the first digital asset is greater than the upper limit of the amount held, exchange the first digital asset for the second digital asset to obtain the operation amount of the first digital asset after asset processing, and determine the operation amount of the first digital asset after asset processing as the processing result corresponding to the transaction record.

[0238] The third determining subunit 1333 is specifically used to, if the conversion change trend is the third type of change trend, perform calculation processing on the operation amount of the first digital asset and the second reserved amount corresponding to the first digital asset to obtain the second operation amount, and exchange the first digital asset with the second operation amount for the second digital asset to obtain the operation amount of the first digital asset after the asset processing; the second reserved amount is the amount of the first digital asset retained after the exchange operation;

[0239] The third determining subunit 1333 is specifically configured to, if the conversion change trend is the fourth type of change trend, exchange the first digital asset having the operation amount of the first digital asset for the second digital asset to obtain the operation amount of the first digital asset after asset processing.

[0240] The specific implementation of the first determining subunit 1331, the second determining subunit 1332 and the third determining subunit 1333 can be found in the above Figure 3 The description of step S103 in the corresponding embodiment will not be repeated here.

[0241] The specific implementation of the record acquisition unit 131, the range acquisition unit 132 and the asset processing unit 133 can be found in the above Figure 3 The description of step S103 in the corresponding embodiment will not be repeated here.

[0242] The specific implementation of the conversion rate acquisition module 11, the trend detection module 12 and the asset processing module 13 can be found in the above Figure 3 In the corresponding embodiment, steps S101 to S103, Figure 7 In the corresponding embodiment, steps S201 to S203 and Figure 8 The description of steps S301 to S304 in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated here either.

[0243] For further information, see Fig.10 , Fig.10 Schematic diagram of a computer device provided in an embodiment of the present application, the computer device may be a terminal device or a server. Fig.10 As shown, the computer device 1000 may include: a processor 1001, a network interface 1004 and a memory 1005. In addition, the above-mentioned computer device 1000 may also include: a user interface 1003, and at least one communication bus 1002. The communication bus 1002 is used to realize the connection and communication between these components. In some embodiments, the user interface 1003 may include a display screen (Display), a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. Optionally, the network interface 1004 may include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or it may be a non-volatile memory (non-volatile memory), such as at least one disk storage. Optionally, the memory 1005 may also be at least one storage device located away from the aforementioned processor 1001. As Fig.10 As shown, the memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a device control application program.

[0244] In such Fig.10 In the computer device 1000 shown, the network interface 1004 can provide a network communication function; the user interface 1003 is mainly used to provide an input interface for the user; and the processor 1001 can be used to call the device control application stored in the memory 1005 to achieve:

[0245] Obtain S asset conversion rates associated with a digital asset pair; the digital asset pair includes a first digital asset and a second digital asset; the first digital asset is different from the second digital asset; each of the S asset conversion rates is used to characterize a conversion rate of exchanging the first digital asset for the second digital asset; S is a positive integer;

[0246] Perform trend tests on the conversion rates of S assets to generate conversion change trends for digital asset pairs;

[0247] The transaction records for the digital asset pair are obtained from the transaction record set, and asset processing is performed on the transaction records according to the conversion change trend to obtain the processing results corresponding to the transaction records.

[0248] It should be understood that the computer device 1000 described in the embodiment of the present application can execute the above Figure 3 , Figure 7 and Figure 8 The description of the data processing method in the corresponding embodiment can also be performed as described above. Fig. 9 The description of the data processing device 1 in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated here either.

[0249] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program executed by the data processing device 1 mentioned above. When the processor executes the computer program, it can execute the above-mentioned Figure 3 , Figure 7 and Figure 8 The description of the data processing method in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application.

[0250] In addition, it should be noted that: the embodiment of the present application also provides a computer program product, which may include a computer program, and the computer program may be stored in a computer-readable storage medium. The processor of the computer device reads the computer program from the computer-readable storage medium, and the processor may execute the computer program, so that the computer device performs the above Figure 3 , Figure 7 and Figure 8 The description of the data processing method in the corresponding embodiment will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the computer program product embodiment involved in this application, please refer to the description of the method embodiment of this application.

[0251] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0252] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A data processing method, characterized in that: include: Obtain S asset conversion rates associated with the digital asset pair; The digital asset pair includes a first digital asset and a second digital asset; the first digital asset is different from the second digital asset; Each of the S asset conversion rates is used to represent the conversion rate of exchanging the first digital asset for the second digital asset; S is a positive integer; Performing a trend test on the S asset conversion rates to generate a conversion change trend for the digital asset pair; Acquire a transaction record for the digital asset pair from the transaction record set, perform asset processing on the transaction record according to the conversion change trend, and obtain a processing result corresponding to the transaction record.

2. The method according to claim 1, characterized in that The obtaining of S asset conversion rates associated with the digital asset pair includes: Sending a conversion rate subscription request for the digital asset pair to the conversion rate subscription platform via the streaming conversion rate acceptance service; Receive S asset conversion rates associated with the digital asset pair pushed by the conversion rate subscription platform; the S asset conversion rates are continuously acquired by the conversion rate subscription platform based on the conversion rate subscription request.

3. The method according to claim 1, characterized in that The obtaining of S asset conversion rates associated with the digital asset pair includes: Sending Q conversion rate acquisition requests for the digital asset pair to the conversion rate subscription platform in a polling manner through the streaming conversion rate receiving service; Q is a positive integer; Receive S asset conversion rates associated with the digital asset pair returned by the conversion rate subscription platform; the S asset conversion rates are obtained by the conversion rate subscription platform based on Q conversion rate acquisition requests.

4. The method according to claim 1, characterized in that: The obtaining of S asset conversion rates associated with the digital asset pair includes: Acquire S first candidate asset conversion rates associated with a first candidate digital asset pair; the first candidate digital asset pair includes a first digital asset and a third digital asset; the first digital asset is different from the third digital asset; each of the S first candidate asset conversion rates is used to characterize a conversion rate of exchanging the first digital asset for the third digital asset; Acquire S second candidate asset conversion rates associated with a second candidate digital asset pair; the first candidate digital asset pair includes a second digital asset and the third digital asset; the second digital asset is different from the third digital asset; each of the S second candidate asset conversion rates is used to characterize a conversion rate of exchanging the second digital asset for the third digital asset; A cross operation is performed on the S first candidate asset conversion rates and the S second candidate asset conversion rates to generate S asset conversion rates associated with the first digital asset and the second digital asset.

5. The method according to claim 1, characterized in that The performing trend test on the S asset conversion rates to generate a conversion change trend for the digital asset pair includes: Sorting the S asset conversion rates according to the conversion timestamps respectively corresponding to the S asset conversion rates to obtain the sorted S asset conversion rates; According to the sorted S asset conversion rates, generating S / 2 conversion rate calculation parameters associated with the sorted S asset conversion rates; Perform parameter statistics on S / 2 conversion rate calculation parameters to determine a conversion change trend for the digital asset pair.

6. The method according to claim 5, characterized in that The sorted S asset conversion rates include the asset conversion rate R i and asset conversion rate R j ; i is a positive integer less than or equal to S / 2, and the sum of i and S / 2 is equal to j; the asset conversion rate R i The corresponding conversion timestamp is later than the asset conversion rate R j The corresponding conversion timestamp; The step of generating S / 2 conversion rate calculation parameters associated with the sorted S asset conversion rates according to the sorted S asset conversion rates includes: The asset conversion rate R i and the asset conversion rate R j Perform subtraction to generate the asset conversion rate R i and the asset conversion rate R j Commonly associated conversion rate calculation parameters.

7. The method according to claim 5, characterized in that The performing parameter statistics on the S / 2 conversion rate calculation parameters to determine the conversion change trend for the digital asset pair includes: Obtaining P conversion rate calculation parameters greater than a parameter threshold from S / 2 conversion rate calculation parameters; P is a non-negative integer; Obtaining H conversion rate calculation parameters that are less than the parameter threshold from S / 2 conversion rate calculation parameters; wherein H is a non-negative integer; Performing a subtraction operation on the P and the H to generate S / 2 conversion change parameters corresponding to the conversion rate calculation parameters; The trend rule interval to which the conversion change parameter belongs is obtained, and the conversion change trend corresponding to the policy label of the trend rule interval is determined as the conversion change trend for the digital asset pair.

8. The method according to claim 1, characterized in that The performing trend test on the S asset conversion rates to generate a conversion change trend for the digital asset pair includes: Sorting the S asset conversion rates according to the conversion timestamps respectively corresponding to the S asset conversion rates to obtain the sorted S asset conversion rates; According to the sorted S asset conversion rates, test statistical parameters corresponding to S-1 candidate asset conversion rates in the sorted S asset conversion rates are generated; the S-1 candidate asset conversion rates are asset conversion rates other than the first asset conversion rate in the S asset conversion rates; the conversion timestamp of the first asset conversion rate is earlier than the conversion timestamps corresponding to the S-1 candidate asset conversion rates; S-1 test statistical parameters are summed to obtain a test statistic associated with the sorted S asset conversion rates; A conversion change trend for the digital asset pair is generated according to the arithmetic relationship between the test statistic and the statistic threshold.

9. The method according to claim 8, characterized in that The S-1 candidate asset conversion rates among the sorted S asset conversion rates include the asset conversion rate R k , k is a positive integer less than S; The generating, according to the sorted S asset conversion rates, test statistical parameters corresponding to S-1 candidate asset conversion rates in the sorted S asset conversion rates respectively include: Obtain from the sorted S asset conversion rates the conversion timestamp that is earlier than the asset conversion rate R k The conversion rate of Sk assets; The asset conversion rate R k Subtract the Sk asset conversion rates from each other to generate auxiliary operation parameters corresponding to the Sk asset conversion rates; Determine the symbolic operation parameters corresponding to the Sk asset conversion rates respectively according to the Sk auxiliary operation parameters; The sum of Sk of the symbolic operation parameters is performed to generate the asset conversion rate R k The corresponding test statistic parameter.

10. The method according to claim 8, characterized in that The step of generating a conversion change trend for the digital asset pair according to the arithmetic relationship between the test statistic and the statistic threshold comprises: Perform parameter changes on the test statistic according to the statistic threshold value to generate a transformation change parameter corresponding to the test statistic; If the conversion change parameter is equal to the statistical threshold, determining the stable change trend as the conversion change trend for the digital asset pair; If the conversion change parameter is greater than the statistical threshold, determining the increasing change trend as the conversion change trend for the digital asset pair; If the conversion change parameter is less than the statistical threshold, a decreasing change trend is determined as the conversion change trend for the digital asset pair.

11. The method according to claim 1, characterized in that: The acquiring of the transaction record for the digital asset pair from the transaction record set, performing asset processing on the transaction record according to the conversion change trend, and obtaining a processing result corresponding to the transaction record includes: Acquire a transaction record for the digital asset pair from a transaction record set; the transaction record includes an operation amount of the first digital asset; Obtaining the amount holding range corresponding to the conversion change trend; the amount holding range includes an amount holding upper limit and an amount holding lower limit; the amount holding lower limit is less than the amount holding upper limit; According to the upper limit of the amount held and the lower limit of the amount held, asset processing is performed on the operation amount of the first digital asset to obtain a processing result corresponding to the transaction record.

12. The method according to claim 11, characterized in that The performing asset processing on the operation amount of the first digital asset according to the upper limit of the amount held and the lower limit of the amount held to obtain a processing result corresponding to the transaction record includes: If the operation amount of the first digital asset is greater than or equal to the lower limit of the amount held and less than or equal to the upper limit of the amount held, the operation amount of the first digital asset is determined as the processing result corresponding to the transaction record; If the operation amount of the first digital asset is less than the lower limit of the amount held, the second digital asset is exchanged for the first digital asset to obtain the operation amount of the first digital asset after asset processing, and the operation amount of the first digital asset after asset processing is determined as the processing result corresponding to the transaction record; If the operation amount of the first digital asset is greater than the upper limit of the amount holding, the operation amount of the first digital asset after asset processing is obtained by exchanging the first digital asset for the second digital asset, and the operation amount of the first digital asset after asset processing is determined as the processing result corresponding to the transaction record.

13. The method according to claim 12, characterized in that The exchanging the first digital asset by the second digital asset to obtain the operation amount of the first digital asset after asset processing includes: If the conversion change trend is a first type of change trend, the operation amount of the first digital asset is inverted to obtain the inverted operation amount, and the second digital asset is exchanged for the first digital asset having the inverted operation amount to obtain the operation amount of the first digital asset after asset processing; If the conversion change trend is the second type of change trend, the operation amount of the first digital asset is negated to obtain the negated operation amount, the negated operation amount and the first reserved amount corresponding to the first digital asset are operated to obtain the first operation amount, and the first digital asset having the first operation amount is exchanged by the second digital asset to obtain the operation amount of the first digital asset after the asset processing; the first reserved amount is the amount of the first digital asset retained after the exchange operation.

14. The method according to claim 12, characterized in that The step of exchanging the first digital asset for the second digital asset to obtain the operation amount of the first digital asset after asset processing includes: If the conversion change trend is the third type of change trend, the operation amount of the first digital asset and the second reserved amount corresponding to the first digital asset are processed to obtain the second operation amount, and the first digital asset with the second operation amount is exchanged for the second digital asset to obtain the operation amount of the first digital asset after the asset processing; the second reserved amount is the amount of the first digital asset retained after the exchange operation; If the conversion change trend is the fourth type of change trend, the second digital asset is exchanged for the first digital asset having the operation amount of the first digital asset to obtain the operation amount of the first digital asset after asset processing.

15. A data processing device, characterized in that: include: A conversion rate acquisition module, used to acquire S asset conversion rates associated with a digital asset pair; The digital asset pair includes a first digital asset and a second digital asset; the first digital asset is different from the second digital asset; each of the S asset conversion rates is used to characterize the conversion rate of exchanging the first digital asset for the second digital asset; S is a positive integer; A trend test module, used to perform a trend test on the S asset conversion rates and generate a conversion change trend for the digital asset pair; The asset processing module is used to obtain the transaction record for the digital asset pair from the transaction record set, perform asset processing on the transaction record according to the conversion change trend, and obtain the processing result corresponding to the transaction record.

16. A computer device, characterized in that: include: Processor and memory; The processor is connected to the memory, wherein the memory is used to store a computer program, and the processor is used to call the computer program so that the computer device executes the method according to any one of claims 1 to 14.

17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which is suitable for being loaded and executed by a processor, so that a computer device having the processor executes the method according to any one of claims 1 to 14.

18. A computer program product, characterized in that The computer program product comprises a computer program, which is stored in a computer-readable storage medium and is suitable for being read and executed by a processor, so that a computer device having the processor executes the method according to any one of claims 1 to 14.