Data processing method and device, computer, readable storage medium and program product
By obtaining and processing historical transaction information of trading institutions, statistics and optimization of resource transaction costs, the problem of accuracy and efficiency of resource transfer price estimation during the rest period of the foreign exchange market is solved, and the complexity of foreign exchange risk and transaction cost estimation is reduced.
Patent Information
- Application Number
- CN202310245750.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-03
- Publication Date
- 2024-09-03
AI Technical Summary
Trading institutions are unable to obtain accurate resource transfer prices during market breaks in the foreign exchange market, resulting in poor resource cost determination and high foreign exchange risks. The existing method requires self-estimated prices and is inefficient.
By obtaining the transaction information of trading institutions in historical time periods, counting the resource transaction volume, performing unit processing, optimizing and estimating the unit transaction cost, and determining the resource transaction cost of pre-transferred transaction resources for resource transactions.
It achieves more objective and accurate foreign exchange quotations, reduces the foreign exchange risks of trading institutions, improves the accuracy and efficiency of resource transaction cost estimates, and avoids consideration of the range of price increases.
Smart Images

Figure CN118587008A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a data processing method, device, computer, readable storage medium and program product. Background Art
[0002] At present, trading institutions have the ability to quote and trade foreign exchange for some business scenarios, but the foreign exchange market between resource management institutions often has a market operation time period, such as 5*24 hours in normal times, that is, resource management institutions cannot trade or provide foreign exchange quotes during the market rest period of the foreign exchange market. Therefore, trading institutions cannot obtain accurate resource transfer prices during the market rest period, and they need to estimate prices for trading. At present, under normal circumstances, trading institutions will use the last effective resource conversion ratio before the market rest period as the basis, add a relatively large price increase, and then determine the resource transfer price during the market rest period. However, since the amount of price increase will directly affect the resource cost determination quality of the trading institution and the risk tolerance of the trading institution itself, when this method is adopted, if the resource cost adjustment amount (i.e. price increase) is too much, the resource cost determination quality of the trading institution will be poor; if the resource cost adjustment amount is small or even no adjustment, the resource transfer price provided by the trading institution will be better, but when the market price in the foreign exchange market changes, it will generate greater foreign exchange risks. This leads to low accuracy, low efficiency and high complexity of resource transfer price estimation. Summary of the invention
[0003] The embodiments of the present application provide a data processing method, device, computer, readable storage medium and program product, which can improve the accuracy and efficiency of data processing.
[0004] On the one hand, an embodiment of the present application provides a data processing method, the method comprising:
[0005] Obtain historical transaction information generated by the trading institution in the first type of historical time period; the historical transaction information includes the historical resource transaction volume and historical resource conversion ratio of the resource pair; the first type of historical time period refers to the time period when the resource management institution does not provide the resource conversion ratio;
[0006] According to the time characteristics of the first type of time period, the historical resource transaction volume of the resource pair is counted, the estimated resource transaction volume of the resource pair in the first type of time period is determined, and the resource transaction is conducted with the resource management agency based on the estimated resource transaction volume of the resource pair; the first type of historical time period and the first type of time period have the same time period type;
[0007] The data associated with the resource exchange is unitized to determine the estimated unit transaction cost of the resource pair in the first type of time period, the estimated unit transaction cost is cost optimized, and the resource transaction cost of the pre-transferred transaction resources of the resource transaction is determined.
[0008] An embodiment of the present application provides a data processing device, the device comprising:
[0009] A transaction acquisition module is used to acquire historical transaction information generated by a transaction institution in a first type of historical time period; the historical transaction information includes the historical resource transaction volume and historical resource conversion ratio of a resource pair; the first type of historical time period refers to a time period in which the resource management institution does not provide a resource conversion ratio;
[0010] A transaction volume determination module, configured to perform transaction volume statistics on the historical resource transaction volume of the resource pair according to the time characteristics of the first type of time period, and determine the estimated resource transaction volume of the resource pair in the first type of time period; the first type of historical time period and the first type of time period have the same time period type;
[0011] A pre-trading module is used to trade resources with resource management agencies based on the estimated resource trading volume of resource pairs;
[0012] A cost estimation module, used to unitize the data associated with the resource exchange and determine the estimated unit transaction cost of the resource pair in the first type of time period;
[0013] The cost determination module is used to optimize the estimated unit transaction cost and determine the resource transaction cost of the pre-transferred transaction resources of the resource transaction.
[0014] The transaction acquisition module includes:
[0015] A data collection unit is used to collect historical transaction data generated by the transaction institution in the first type of historical time period; the historical transaction data is associated with historical transaction time and resource pairs;
[0016] The data integration unit is used to divide the historical transaction data into M historical transaction sets based on the historical transaction time, and integrate the data of the M historical transaction sets based on the resource pairs to obtain the historical transaction information corresponding to the M historical transaction sets respectively; M is a positive integer; the historical transaction time associated with the historical transaction data in a historical transaction set belongs to the same historical transaction time period.
[0017] Among them, the number of historical transaction information is N, and N is a positive integer;
[0018] The transaction volume determination module includes:
[0019] A transaction statistics unit, configured to obtain a transaction volume statistic value of a historical resource transaction volume of the resource pair in N historical transaction information according to a time feature of the first type of time period, and determine the transaction volume statistic value as an estimated resource transaction volume of the resource pair in the first type of time period;
[0020] The cost estimation module includes:
[0021] A historical statistics unit, used to determine the total historical transaction cost of the resource pair based on the historical resource transaction volume and the historical resource conversion ratio respectively corresponding to the resource pair in N historical transaction information; data associated with the resource transaction, including the historical resource transaction volume and the historical resource conversion ratio respectively corresponding to the resource pair in the N historical transaction information;
[0022] The cost estimation unit is used to unitize the total historical transaction cost based on the historical resource transaction volume of the resource pair in N historical transaction information, and determine the estimated unit transaction cost of the resource pair in the first type of time period.
[0023] The number of the first type of historical time periods is K, where K is a positive integer; the time characteristics of the first type of time periods include an estimated number of trading time periods included in the first type of time periods;
[0024] The transaction volume determination module includes:
[0025] A transaction collection unit, used to obtain historical resource transaction volumes corresponding to resource pairs in K first-type historical time periods, and obtain the first time period number of historical transaction time periods included in the K first-type historical time periods;
[0026] A time period estimation unit, configured to unitize the historical resource transaction volumes corresponding to the K first-type historical time periods based on the number of first time periods, and determine the unit time period transaction cost of the resource pair;
[0027] The transaction volume determination unit is used to obtain the estimated number of transaction time periods included in the first type of time period, and determine the estimated resource transaction volume of the resource pair in the first type of time period based on the unit time period transaction cost and the estimated number.
[0028] The number of the first type of historical time periods is K, and K is a positive integer; the time characteristics of the first type of time periods are used to characterize the time distribution of the first type of time periods;
[0029] The transaction volume determination module includes:
[0030] A distribution construction unit, used to obtain historical resource transaction volumes corresponding to resource pairs in K first-type historical time periods, and to construct a transaction volume change curve based on the historical resource transaction volumes corresponding to the K first-type historical time periods;
[0031] The transaction volume determination unit is also used to obtain the time distribution position of the first type time period in K first type historical time periods, map the time distribution position to the transaction volume change curve, and obtain the estimated resource transaction volume of the resource pair in the first type time period.
[0032] The pre-transaction module includes:
[0033] A transaction splitting unit, for dividing the estimated resource transaction volume of the resource pair into p estimated sub-transaction volumes based on the unit transaction threshold if the estimated resource transaction volume is greater than the unit transaction threshold; p is a positive integer, and each estimated sub-transaction volume is less than or equal to the unit transaction threshold;
[0034] The resource transaction unit is used to conduct resource transactions with the resource management agency for p estimated sub-transaction volumes respectively.
[0035] The cost determination module includes:
[0036] an actual acquisition unit, configured to acquire a second type target time period adjacent to the first type time period, and acquire the actual historical transaction cost generated in the second type target time period; the second type target time period is different from the first type time period in time period type;
[0037] an actual estimation unit, configured to estimate actual estimated transaction costs of the resource pair in a first type of time period based on actual historical transaction costs;
[0038] The cost adjustment unit is used to adjust the estimated unit transaction cost by using the actual estimated transaction cost to obtain the resource transaction cost of the pre-transferred transaction resources of the resource transaction.
[0039] The cost determination module includes:
[0040] An accurate determination unit, configured to obtain a historical estimated transaction volume for a first type of historical time period, and determine a transaction volume estimation accuracy rate based on the historical estimated transaction volume for the first type of historical time period and the historical resource transaction volume;
[0041] The cost adjustment unit is also used to determine the resource cost adjustment amount of the resource pair based on the transaction volume estimation accuracy, and to adjust the estimated unit transaction cost based on the resource cost adjustment amount to obtain the resource transaction cost of the pre-transferred transaction resources of the resource transaction.
[0042] The cost determination module includes:
[0043] The preferential adjustment unit is used to find the transaction preferential activities associated with the first type of time period. If there are transaction preferential activities, the estimated unit transaction cost is adjusted based on the preferential degree of the transaction preferential activities to obtain the resource transaction cost of the pre-transferred transaction resources of the resource transaction.
[0044] The device further comprises:
[0045] A transaction comparison module, used to obtain a first actual resource transaction volume that has been generated within a first type of time period, and compare the first actual resource transaction volume with the estimated resource transaction volume;
[0046] A cost reduction module, configured to reduce a resource transaction cost of a resource pair if the estimated resource transaction volume is greater than the first actual resource transaction volume;
[0047] The cost increasing module is used to increase the resource transaction cost of the resource pair based on the transaction volume difference between the estimated resource transaction volume and the first actual resource transaction volume if the estimated resource transaction volume is less than the first actual resource transaction volume.
[0048] The device further comprises:
[0049] A resource transfer-out module is used to transfer out the untraded resources by using the resource transaction cost if there are untraded resources in the pre-transferred transaction resources at the end of the first type of time period, until the untraded resources are processed;
[0050] The resource transfer module is used to determine the resource missing transaction volume based on the second actual resource transaction volume and the estimated resource transaction volume if the second actual resource transaction volume generated in the first type of time period is greater than the estimated resource transaction volume. When the resource conversion ratio changes stably in the second type of time period after the first type of time period, the supplementary transaction resources corresponding to the resource missing transaction volume are transferred.
[0051] On the one hand, an embodiment of the present application provides a computer device, including a processor, a memory, and an input and output interface;
[0052] The processor is connected to the memory and the input / output interface respectively, wherein the input / output interface is used to receive and output data, the memory is used to store a computer program, and the processor is used to call the computer program so that a computer device including the processor executes the data processing method in one aspect of an embodiment of the present application.
[0053] On the one hand, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and the computer program is suitable for being loaded and executed by a processor so that a computer device having the processor executes the data processing method in one aspect of the embodiment of the present application.
[0054] In one aspect, an embodiment of the present application provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in various optional ways in one aspect of the embodiment of the present application. In other words, when the computer instruction is executed by the processor, the method provided in various optional ways in one aspect of the embodiment of the present application is implemented.
[0055] Implementing the embodiments of the present application will have the following beneficial effects: in the embodiments of the present application, historical transaction information generated by the trading agency in the first type of historical time period is obtained; the historical transaction information includes the historical resource transaction volume and the historical resource conversion ratio of the resource pair; the first type of historical time period refers to the time period in which the resource management agency does not provide the resource conversion ratio; according to the time characteristics of the first type of time period, the transaction volume statistics of the historical resource transaction volume of the resource pair are performed, and the estimated resource transaction volume of the resource pair in the first type of time period is determined, and based on the estimated resource transaction volume of the resource pair, resource transactions are conducted with the resource management agency; the first type of historical time period is the same time period type as the first type of time period; the data associated with the resource transaction is unitized, the estimated unit transaction cost of the resource pair in the first type of time period is determined, the estimated unit transaction cost is cost-optimized, and the resource transaction cost of the pre-transferred transaction resources of the resource transaction is determined. Through the above process, the historical transaction information generated in the first type of historical time period can be used as the latest estimated resource transaction volume in the first type of time period, and further, the estimated unit transaction cost can be determined so that the estimated unit transaction cost can reflect the real transaction cost, thereby achieving a more objective and accurate foreign exchange quotation, so that the resource transaction cost can provide a more favorable resource transfer price for the trading institution, and reduce the foreign exchange risk of the trading institution, thereby improving the accuracy and efficiency of the resource transaction cost estimation. Moreover, the estimation of the resource transaction cost has a more realistic estimation basis (i.e., historical transaction information), so that when estimating the resource transaction cost, there is no need to consider the range of price increase, thereby improving the estimation efficiency of the resource transaction cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be 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.
[0057] Figure 1 This is a network interaction architecture diagram for data processing provided by an embodiment of the present application;
[0058] Figure 2 This is a schematic diagram of a data processing scenario provided by an embodiment of the present application;
[0059] Figure 3 is a flow chart of a data processing method provided by an embodiment of the present application;
[0060] Figure 4 This is a schematic diagram of an information aggregation scenario provided by an embodiment of the present application;
[0061] Figure 5 This is a transaction volume determination scenario provided by an embodiment of the present application;
[0062] Figure 6 It is a flow chart of a pre-flattening method provided in an embodiment of the present application;
[0063] Figure 7 This is a flow chart of a foreign exchange quotation method provided in an embodiment of the present application;
[0064] Figure 8 is a schematic diagram of a data processing device provided in an embodiment of the present application;
[0065] Fig. 9 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0066] 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.
[0067] Among them, if it is necessary to collect the data of the object (such as users, etc.) in this application, a prompt interface or pop-up window will be displayed before and during the collection. The prompt interface or pop-up window is used to prompt the user that XXXX data is currently being collected. Only after the user issues a confirmation operation on the prompt interface or pop-up window, the relevant steps of data acquisition will be executed, otherwise it will end. Moreover, the acquired user data will be used in reasonable and legal scenarios or purposes. Optionally, in some scenarios where user data needs to be used but the user’s authorization is not obtained, authorization can be requested from the user, and the user data can be used when the authorization is passed. For example, when a trading institution generates historical transaction information, it will maintain the historical transaction information itself, and can hide the user information associated with the historical transaction information, etc., and only obtain data that does not involve privacy, etc., or it can obtain historical transaction information and related data after obtaining the user’s authorization.
[0068] Optionally, some of the terms used in this application may be explained as follows:
[0069] Resources: Resources with value, such as currency or virtual resources in game applications. Any two resources can be called a resource pair, and the conversion ratio of one resource in a resource pair to another resource can be called a resource conversion ratio. For example, currency can serve as a medium of exchange and is the product of commodity exchange. The currencies used in different regions may be different, such as RMB, Hong Kong dollars or US dollars. At this time, when exchanging commodities or converting resources through different currencies, it is necessary to determine the resource conversion ratio between different currencies; for example, virtual resources in game applications can include but are not limited to game coins, gold coins and game silver.
[0070] Resource conversion ratio: refers to the conversion ratio between different types of resources, that is, the conversion ratio of different types of resources under the same resource value, which can be considered as the value of one resource relative to another resource. For example, when the resource is currency, the resource conversion ratio can be considered as the exchange rate; when the resource is a virtual resource in a game application, the resource conversion ratio can be considered as the game conversion ratio, etc. For example, 1 game coin = 100 game silver, which means that the resource conversion ratio of the resource pair consisting of game coins and game silver is 100, and there is no restriction here.
[0071] Foreign exchange trading: refers to the transaction of transferring one resource in a pair of resource combinations (i.e. resource pair) and transferring another resource out at the same time, such as buying one currency and selling another currency, which means the exchange between one currency and another currency. Among them, the foreign exchange market for foreign exchange trading has no specific location, nor does it have a central trading venue, but rather it is traded through electronic networks between trading institutions. Foreign exchange trading refers to the transaction between different resources in a resource pair, including but not limited to the transaction between currencies, or the transaction between virtual resources in game applications, etc.; the foreign exchange market refers to a trading venue that provides transfers between different resources, including but not limited to the currency foreign exchange market and the game foreign exchange market, etc.
[0072] Trading Institution: refers to an institution that can conduct foreign exchange transactions, including but not limited to resource management institutions (such as banks, etc.) and regular trading institutions (such as financial institutions, game resource management institutions, corporate institutions or individual users, etc.).
[0073] Pre-settlement: Before the start of the first type of time period, based on the estimated resource trading volume that may be generated in the first type of time period, initiate resource transactions with the trading institution in advance.
[0074] In the examples of this application, see Figure 1 , Figure 1is a network interaction architecture diagram of data processing provided by an embodiment of the present application, such as Figure 1 As shown, any computer device (such as computer device 102a, computer device 102b or computer device 102c, etc.) can obtain historical transaction information generated in the first type of historical time period, determine the estimated resource transaction volume of the resource pair in the first type of time period based on the historical transaction information, and conduct resource transactions from the resource management agency 101, that is, conduct pre-settlement. Further, the resource transaction cost of the pre-transferred transaction resources of the resource transaction can be estimated based on the historical transaction information.
[0075] For details, see Figure 2 , Figure 2 Schematic diagram of a data processing scenario provided by an embodiment of the present application. Figure 2 As shown, the trading market can be considered to be in the transition between the second type of time period and the first type of time period, wherein the first type of time period refers to the time period during which the resource management agency does not provide a resource conversion ratio, that is, the time period during which the standard resource conversion ratio cannot be obtained in the trading market (such as the foreign exchange market, etc.), which can be used to indicate the time period during which the resource management agency does not provide foreign exchange quotations to the outside world; the second type of time period refers to the time period during which the resource management agency can provide a resource conversion ratio, that is, the time period during which the standard resource conversion ratio can be obtained in the trading market can be used to indicate the time period during which the resource management agency can conduct resource transactions and foreign exchange quotations. For example, assuming that the first type of time period is a holiday and the second type of time period is a working day, for example, there are no other holidays from February 6 to February 19, and February 6 is Monday, then February 6 to February 10 can be considered as the second type of time period, February 11 to February 12 as the first type of time period, February 13 to February 17 as the second type of time period, February 18 to February 19 as the first type of time period, etc.; for example, in a game application, assuming that from 11 pm to 7 am the next day, no resource conversion ratio is provided for the trading market (such as the game market, etc.), then it can be considered that from 11 pm to 7 am the next day is the first type of time period (such as 23:00 on February 6 to 7 am on February 7), and from 7 am to 11 pm every day is the second type of time period (such as 7 am on February 7 to 23:00 on February 7), etc. Among them, the foreign exchange quotation refers to the transfer-in price and transfer-out price of the two resources in the resource pair, which is equivalent to the resource conversion ratio of the resource pair. Among them, taking the first type time period 201 as an example, that is, taking the first type time period 201 as the upcoming first type time period as an example, the second type time period located before the first type time period 201 can be recorded as the second type candidate time period, and the first type time period located before the first type time period 201 can be recorded as the first type candidate time period.
[0076] The computer device can obtain the historical transaction information generated by the trading institution in the first type of historical time period, and the first type of historical time period can be any one of the first type of candidate time periods or multiple consecutive first type time periods, etc., which is not limited here. Among them, the computer device refers to the device associated with the trading institution. Among them, the historical transaction information may include the historical resource transaction volume and historical resource conversion ratio of the resource pair. The computer device can perform transaction volume statistics on the historical resource transaction volume of the resource pair according to the time characteristics of the first type of time period, and determine the estimated resource transaction volume of the resource pair in the first type of time period. Based on the estimated resource transaction volume, resource transactions can be conducted with the resource management agency, that is, pre-settlement can be conducted. Specifically, based on the estimated resource transaction volume, resource transactions can be initiated to the resource management agency (such as a bank or a game server, etc.). Further, the data associated with the resource transaction can be unitized to determine the estimated unit transaction cost of the resource pair in the first type of time period, that is, the estimated resource conversion ratio, and the resource transaction cost of the pre-transferred transaction resources of the resource transaction can be predicted based on the estimated unit transaction cost. The estimated resource transaction volume and estimated unit transaction cost in this application are estimated on the basis of relevant data of real and effective resource transactions, so that the estimated resource transaction volume and estimated unit transaction cost can be used to represent the real data that may be generated in the first type of time period, thereby improving the accuracy of data processing. Moreover, on this basis, the estimated unit transaction cost can be directly not adjusted or only slightly adjusted, that is, a more accurate resource transaction cost can be obtained, simplifying the process of determining the resource transaction cost and improving the efficiency of data processing.
[0077] Among them, the first type of time period can be a market rest period in the foreign exchange market, etc., or a free trading period for games in the game market, etc. The free trading period for games refers to a time period during which the game server does not provide a standard resource conversion ratio to the outside world, and illegal transactions cannot be conducted; the second type of time period can be a market operation time period in the foreign exchange market, etc., or a game transaction maintenance period in the game market, etc.
[0078] It is understandable that the computer devices mentioned in the embodiments of the present application include but are not limited to terminal devices or servers. In other words, the computer device can be a server or a terminal device, or it can be a system composed of a server and a terminal device. Among them, the terminal device mentioned above can be an electronic device, including but not limited to mobile phones, tablet computers, desktop computers, laptop computers, PDAs, vehicle-mounted devices, augmented reality / virtual reality (Augmented Reality / Virtual Reality, AR / VR) devices, helmet displays, smart TVs, wearable devices, smart speakers, digital cameras, cameras and other mobile Internet devices (mobile internet device, MID) with network access capabilities, or terminal devices in scenarios such as trains, ships, and flights. Figure 1 As shown in , the terminal device may be a laptop computer (as shown in computer device 102b), a mobile phone (as shown in computer device 102c), or a vehicle-mounted device (as shown in computer device 102a), etc. Figure 1 Only some of the devices are listed, and optionally, the computer device 102a refers to a device located in the vehicle 103, and the computer device 102a can be used for resource transactions, etc. Among them, the server mentioned above 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, vehicle-road collaboration, content delivery networks (CDN), and big data and artificial intelligence platforms.
[0079] Optionally, the data involved in the embodiments of the present application can be stored in a computer device, or the data can be stored based on cloud storage technology or a blockchain network, which is not limited here.
[0080] 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. Figure 3 As shown, the data processing process includes the following steps:
[0081] Step S301, obtaining historical transaction information generated by a transaction institution in a first type of historical time period.
[0082] In the embodiment of the present application, the computer device can obtain the historical transaction information generated by the trading institution in the first type of historical time period, and the historical transaction information includes the historical resource transaction volume and the historical resource conversion ratio of the resource pair, and the historical resource conversion ratio refers to the resource conversion ratio used when the historical resource transaction indicated by the historical transaction information occurs. Among them, the computer device can determine the first type candidate time period adjacent to the current second type time period (which can be called the second type target time period) as the first type historical time period, such as Figure 2 As shown, it is necessary to make a foreign exchange quotation for the first type time period 201, that is, the second type time period 202 is currently in the first type time period, and the previous first type time period of the second type time period 202 (which can be called the first type candidate time period) can be determined as the first type historical time period, that is, based on the previous first type time period of the first type time period to be predicted, the data of the first type time period to be predicted is estimated. Alternatively, the computer device can obtain the market collection quantity K, and based on the second type target time period, the K first type candidate time periods adjacent to the second type target time period are used as the first type historical time period, such as Figure 2 The first type time period 203 and the first type time period 204 shown in , K is a positive integer, the second type target time period refers to the second type time period currently in, the first type candidate time period refers to the first type time period that has been experienced, that is, the K first type candidate time periods located before the second type target time period are used as the first type historical time period. Alternatively, the computer device can obtain the cycle position of the first type time period (i.e., the first type time period for which foreign exchange quotation is required) in the first market adjustment cycle, obtain the reference market adjustment cycle from the historical market adjustment cycle, and obtain the first type historical time period from the first market adjustment cycle and the reference market adjustment cycle based on the cycle position, etc. The first market adjustment cycle refers to the market adjustment cycle in which the second type target time period is located, for example, the historical cycle position in the reference market adjustment cycle is determined based on the cycle position, the first type historical time period is obtained from the reference market adjustment cycle based on the historical cycle position, and the first type historical time period is obtained from the first market adjustment cycle based on the cycle position. For example, a market adjustment cycle is one year, and the change trend of resource transactions in each year may be similar. Therefore, the reference market adjustment cycle can be used as a basis for the prediction of the first type time period this time to improve the accuracy of the prediction of resources in the first type time period.
[0083] Furthermore, historical transaction information generated in the first type of historical time period may be obtained. The historical transaction information may be in any format such as a chart or text. For example, in one possible case, the historical transaction information may be shown in Table 1:
[0084] Table 1
[0085] Transaction summary ID Resource pair First Resource Price Second resource price 101 CNYUSD CNY1 USD1 102 CNYHKD CNY2 HKD2 XXX CNYXXX CNY3 XXX3
[0086] As shown in Table 1, each row represents a historical transaction information. For example, the historical transaction information "transaction summary identifier: 101; resource pair: CNYUSD; first resource price: CNY1; second resource price: USD1" indicates that the resource pair "RMB CNY and USD USD" is traded with the first resource price "CNY1" and the second resource price "USD1". At this time, the resource conversion ratio of the resource pair "CNYUSD" can be considered as "USD1 / CNY1". Similarly, there are also historical transaction information "transaction summary identifier: 102; resource pair: CNYHKD; first resource price: CNY2; second resource price: HKD2"; historical transaction information "transaction summary identifier: XXX; resource pair: CNYXXX; first resource price: CNY3; second resource price: XXX3" and so on.
[0087] Among them, under one information acquisition method ①, the computer device can collect historical transaction data generated by the trading institution in the first type of historical time period; the historical transaction data is associated with the historical transaction time and resource pair, and optionally, the historical transaction data includes the historical resource transaction sub-volume of the resource pair and the historical collection conversion ratio, etc. The historical collection conversion ratio is used to represent the resource conversion ratio in the collected historical transaction data, such as the historical transaction data can be recorded as "resource pair-historical resource transaction sub-volume-historical collection conversion ratio". The historical transaction data is divided into M historical transaction sets based on the historical transaction time, and the M historical transaction sets are respectively integrated based on the resource pair to obtain the historical transaction information corresponding to the M historical transaction sets; M is a positive integer; the historical transaction time associated with the historical transaction data in a historical transaction set belongs to the same historical transaction time period. Among them, the historical transaction time period is used to indicate the duration of a summary. For example, if the data of resource transactions on each day are summarized, the historical transaction time period can be considered to be one day, etc., and no restriction is made here. Among them, the historical transaction data is divided based on the historical transaction time, mainly because under normal circumstances, the resource conversion ratio of resources used in the same historical transaction time period is generally the same. Therefore, data integration is performed based on the historical transaction time to reduce the amount of data processing and improve subsequent processing efficiency.
[0088] For example, see Figure 4 , Figure 4 Schematic diagram of an information aggregation scenario provided by an embodiment of the present application. Figure 4As shown, the computer device can collect historical transaction data generated in the first type of historical time period. The historical transaction data is used to represent the relevant data generated by the corresponding resource transaction. The historical transaction data is classified and summarized by resource pair to obtain the historical transaction information corresponding to each resource pair. Specifically, the computer device can collect historical transaction data 401 generated in the first type of historical time period, such as historical transaction data 1, historical transaction data 2, and historical transaction data 3; based on the historical transaction time associated with each historical transaction data, the historical transaction data 401 can be divided into M historical transaction sets 402. The historical transaction time of the historical transaction data included in each historical transaction set belongs to the same historical transaction time period. That is, a historical transaction set is used to maintain historical transaction data that occurred in the same historical transaction time period, such as Figure 4 As shown in , assuming that a historical transaction time period represents a day, the historical transaction data 401 is divided into a historical transaction set of the historical transaction time period "date XXX", a historical transaction set of the historical transaction time period "October 6, 2022", and a historical transaction set of the historical transaction time period "October 7, 2022", etc. Further, data integration can be performed on the M historical transaction sets based on the resource pairs to obtain historical transaction information 403 corresponding to the M historical transaction sets, such as the historical transaction information "historical transaction information of resource pair 1" included in "date XXX", and the historical transaction information "historical transaction information of resource pair 2", etc.; such as the historical transaction information "historical transaction information of resource pair 1" included in "October 6, 2022", and the historical transaction information "historical transaction information of resource pair 2", etc., which will not be repeated here.
[0089] For example, taking the historical transaction time period 1 as an example, assuming that in the historical transaction time period 1, the historical transaction data 1 of the resource pair "CNYUSD" is generated, the historical resource transaction sub-amount included in the historical transaction data 1 is amount1, and the historical resource conversion ratio is price1, and the historical transaction data 1 is written into the transaction information management database. At this time, the transaction information management database can refer to Table 2. At this time, the transaction information management database includes the historical transaction data 1:
[0090] Table 2
[0091] Transaction summary ID Resource pair First Resource Price Second resource price 101 CNYUSD amount1 amount1*price1 102 CNYHKD 0 0 XXX CNYXXX 0 0
[0092] As shown in Table 2, in the historical transaction data 1, for the resource pair "CNYUSD", the first resource is transferred in at the price of "amount1", and the second resource is transferred out at "amount1*price1"; or, the first resource is transferred out at the price of "amount1", and the second resource is transferred in at "amount1*price1", etc., that is, it includes the historical resource transaction sub-volume amount1, and the historical acquisition conversion ratio price1, etc. Among them, a resource pair can be considered to include the first resource and the second resource, and the resource conversion ratio of the resource pair is used to indicate the exchange ratio between the first resource and the second resource at the same resource value.
[0093] Among them, under one information acquisition method ②, the computer device can collect historical transaction data generated in the first type of historical time period; the historical transaction data is associated with the historical transaction time and the resource pair, and optionally, the historical transaction data includes the historical resource transaction sub-volume of the resource pair and the historical collection conversion ratio, etc. The historical transaction data is divided based on the resource pair to obtain the resource pair summary data, and the resource pair summary data is integrated to obtain the historical transaction information, that is, the historical transaction data is directly integrated according to the resource pair. For example, in some resource trading (that is, foreign exchange market) scenarios, the resource conversion ratio may change. For example, in game applications, the resource conversion ratio of resource pairs may change as the resource trading proceeds. For example, at the beginning, 1 game coin can be exchanged for 100 game silver taels. As the number of resource transactions increases, the resource conversion ratio may be reduced, so that 1 game coin can only be exchanged for 98 game silver taels, etc. At this time, the historical transaction data can be directly integrated to obtain the historical transaction information. For example, an optional historical transaction information can be shown in Table 3:
[0094] Table 3
[0095]
[0096] As shown in Table 3, assuming that the historical transaction data 1 "historical resource transaction sub-volume amount1, historical acquisition conversion ratio price1" and the historical transaction data 2 "historical resource transaction sub-volume amount2, historical acquisition conversion ratio price2" of the resource pair "CNYUSD" are obtained, the historical transaction data 1 and the historical transaction data 2 can be integrated to obtain the historical transaction information of the resource pair "CNYUSD". At this time, the historical resource transaction sub-volume included in the historical transaction data can be used to determine the historical resource conversion ratio of the resource pair for the historical acquisition conversion ratio in the historical transaction data, such as price = (amount1*price1+amount2*price2) / (amount1+amount2). At this time, the historical resource transaction volume of the resource pair is "amount1+amount2".
[0097] Optionally, when there are K first-type historical time periods, the above-mentioned information acquisition method ① or information acquisition method ② can be used for each first-type historical time period to determine the historical transaction information generated by each first-type historical time period. Alternatively, the information acquisition method ① or information acquisition method ② can be directly used to integrate data for K first-type historical time periods to obtain historical transaction information.
[0098] Step S302, according to the time characteristics of the first type of time period, the historical resource transaction volume of the resource pair is counted, the estimated resource transaction volume of the resource pair in the first type of time period is determined, and based on the estimated resource transaction volume of the resource pair, resource transactions are conducted with the resource management agency.
[0099] In an embodiment of the present application, a computer device may integrate the historical resource transaction volume of a resource pair to determine the estimated resource transaction volume of the resource pair in a first type of time period, and the first type of historical time period is the same as the time period type of the first type of time period. Among them, the time period type includes a first time period type and a second time period type, the time period of the first time period type refers to the first type of time period, and the time period of the second time period type refers to the second type of time period. Optionally, under a transaction volume determination method ①, the number of historical transaction information is N, N is a positive integer, such as the historical transaction information obtained by the information acquisition method ① in step S301, or the historical transaction information obtained by integrating K first type of historical time periods, etc. Obtain the transaction volume statistics of the historical resource transaction volume of the resource pair in the N historical transaction information, and determine the transaction volume statistics as the estimated resource transaction volume of the resource pair in the first type of time period, wherein the transaction volume statistics may be the mean, median, or the largest number of historical resource transaction volumes, etc. Alternatively, a statistical method may be determined according to the time characteristics of the first type of time period, and based on the statistical method, a transaction volume statistical value of the historical resource transaction volume of the resource pair in N historical transaction information is obtained, and the transaction volume statistical value is determined as the estimated resource transaction volume of the resource pair in the first type of time period, etc. Among them, it can be considered that the time characteristics of the first type of time period include time distribution characteristics and time statistical characteristics. The time distribution characteristics are used to represent the time distribution of the first type of time period, such as the location and transaction volume characteristics of the first type of time period, etc.; the time statistical characteristics are used to represent the time composition of the first type of time period, such as the estimated number of transaction time periods included in the first type of time period, etc. For example, if the first type of time period is located during high-frequency trading, that is, the peak trading period of each market adjustment cycle, the statistical method may be determined as peak statistics, and the peak value statistics of the historical resource transaction volume of the resource pair in N historical transaction information are performed to determine the transaction volume statistical value, and the transaction volume statistical value is determined as the estimated resource transaction volume of the resource pair in the first type of time period. At this time, the transaction volume statistical value is the peak value of the historical resource transaction volume in the N historical transaction information, etc.
[0100] Alternatively, the number of second time periods corresponding to the historical resource transaction volume of the resource pair in N historical transaction information can be obtained, and based on the number of second time periods, the historical resource transaction volumes in the N historical transaction information are averaged to obtain the time period transaction volume; the estimated number of transaction time periods included in the first type of time period is obtained, and the estimated resource transaction volume of the resource pair in the first type of time period is determined based on the time period transaction volume and the estimated number.
[0101] In a transaction volume determination method ②, the number of first-type historical time periods is K, K is a positive integer, and the time characteristics of the first-type time period include the estimated number of transaction time periods included in the first-type time period. The historical resource transaction volumes corresponding to the resource pair in the K first-type historical time periods are obtained, and the first time period number of the historical transaction time periods included in the K first-type historical time periods is obtained. Based on the first time period number, the historical resource transaction volumes corresponding to the K first-type historical time periods are unitized to determine the unit time period transaction cost of the resource pair; the estimated number of transaction time periods included in the first-type time period is obtained, and based on the unit time period transaction cost and the estimated number, the estimated resource transaction volume of the resource pair in the first-type time period is determined.
[0102] In a transaction volume determination method ③, the number of first-type historical time periods is K, K is a positive integer, and the time characteristics of the first-type time periods are used to characterize the time distribution of the first-type time periods. The historical resource transaction volumes corresponding to the resource pair in the K first-type historical time periods are obtained, and a transaction volume change curve is constructed based on the historical resource transaction volumes corresponding to the K first-type historical time periods. The time distribution position of the first-type time period in the K first-type historical time periods is obtained, and the time distribution position is mapped to the transaction volume change curve to obtain the estimated resource transaction volume of the resource pair in the first-type time period.
[0103] In a transaction volume determination method ④, assuming that the first type of historical time period is determined by the market adjustment cycle, the computer device can construct a first cycle transaction volume curve based on the historical transaction information of the first type of historical time period included in the reference market adjustment cycle; and construct a second cycle transaction volume curve based on the historical transaction information of the first type of historical time period within the first market adjustment cycle. Based on the first cycle transaction volume curve and the second cycle transaction volume curve, determine the periodic transaction change information between the first market adjustment cycle and the reference market adjustment cycle; determine the estimated resource transaction volume of the resource pair in the first type of time period based on the periodic transaction change information. For example, see Figure 5 , Figure 5 This is a transaction volume determination scenario provided by the embodiment of the present application. Figure 5As shown, it is assumed that the computer device obtains the historical transaction information of the first type historical time period A1 to the first type historical time period A6 in the reference market adjustment cycle "such as 2022", and the historical transaction information of the first type historical time period B1 to the first type historical time period B5 in the first market adjustment cycle "such as 2023". A first cycle transaction volume curve 501 can be constructed based on the historical transaction information of the first type historical time period in the reference market adjustment cycle. A second cycle transaction volume curve 502 is constructed based on the historical transaction information of the first type historical time period in the first market adjustment cycle. According to the first cycle transaction volume curve 501 and the second cycle transaction volume curve 502, the periodic transaction change information 503 between the first market adjustment cycle and the reference market adjustment cycle is determined, wherein the periodic transaction change information 503 can be a numerical value, or a difference change curve of the change difference of each first type historical time period, etc. Further, based on the periodic transaction change information 503, the estimated resource transaction volume of the first type time period can be determined. For example, obtain the change difference between the first type historical time period A1 and the first type historical time period B1, ..., and the change difference between the first type historical time period A5 and the first type historical time period B5, construct a difference change curve, determine the target change difference between the first type time period and the first type historical time period A6 based on the difference change curve, and determine the estimated resource transaction volume of the resource pair in the first type time period based on the target change difference and the historical resource transaction volume of the first type historical time period A6.
[0104] The above are several possible methods for determining the transaction volume, that is, the computer device can obtain the first type of historical time period adjacent to the second type of target time period, and determine the historical resource transaction volume in the historical transaction information generated by the resource pair in the first type of historical time period as the estimated resource transaction volume of the resource pair in the first type of time period. Alternatively, K first type of historical time periods can be obtained, and the statistical value of the historical resource transaction volume of the resource pair in the K first type of historical time periods can be determined as the estimated resource transaction volume of the resource pair in the first type of time period. Alternatively, based on the historical resource transaction volume of the resource pair in the historical transaction information obtained, the unit transaction volume corresponding to the resource pair in a transaction time period can be determined, such as the time period transaction volume in the transaction volume determination method ①, or the unit time period transaction cost in the transaction volume determination method ②, etc., to obtain the estimated number of transaction time periods included in the first type of time period, and based on the unit transaction volume and the estimated number, determine the estimated resource transaction volume of the resource pair in the first type of time period, etc.
[0105] Optionally, when any of the transaction volume determination methods are adopted, effective transaction information in the target transaction time period in the second type target time period may also be obtained, and the effective transaction information may include effective resource transaction volume and effective resource conversion ratio, etc. The estimated resource transaction volume obtained by adopting any of the transaction volume determination methods may be adjusted based on the effective transaction information, and the adjusted estimated resource transaction volume may be determined as the estimated resource transaction volume of the resource pair, etc. For example, if the effective resource transaction volume is greater than the estimated resource transaction volume, the estimated resource transaction volume may be increased; if the effective resource transaction volume is less than the estimated resource transaction volume, the estimated resource transaction volume may be decreased, or the estimated resource transaction volume may not be processed, etc.
[0106] Optionally, when any of the transaction volume determination methods are used, the transaction preferential activities associated with the first type of time period may also be searched. If there are transaction preferential activities, based on the preferential degree of the transaction preferential activities, the estimated resource transaction volume obtained by using any of the transaction volume determination methods is adjusted to be larger, and the adjusted estimated resource transaction volume is determined as the estimated resource transaction volume of the resource pair, etc. This is because, in general, when there are transaction preferential activities, such as promotional activities, the resource transaction volume of resource transactions will often increase. In this case, the estimated resource transaction volume can be appropriately enlarged and estimated, thereby improving the accuracy of foreign exchange quotations.
[0107] Furthermore, based on the estimated resource transaction volume of the resource pair, resource transactions can be conducted with the resource management agency. Specifically, the estimated resource transaction volume of the resource pair can be sent to the resource management agency, and resource transactions can be conducted based on the estimated resource transaction volume to achieve the estimated settlement of the resource pair. Optionally, one or more resource transactions can also be conducted based on the estimated resource transaction volume of the resource pair. Specifically, if the estimated resource transaction volume of the resource pair is greater than the unit transaction threshold, the estimated resource transaction volume is divided into p estimated sub-transaction volumes based on the unit transaction threshold; p is a positive integer, and each estimated sub-transaction volume is less than or equal to the unit transaction threshold; resource transactions are conducted with the resource management agency for each of the p estimated sub-transaction volumes. Through this optional solution, when the estimated resource transaction volume of a single transaction is too large, the estimated resource transaction volume can be split and then the resource transaction can be carried out. This is because when the single transaction volume is too large, the transaction cost may be relatively poor. For example, when the amount of data of a product that needs to be obtained is too much, the price of the product will have a corresponding discount. However, for current computer equipment, data statistics will be poor. By splitting, the data generated in the resource transaction process can be more real and effective.
[0108] Wherein, when the resource transaction is conducted as described above, or when any one of the p resource transactions is conducted, the computer device may send the estimated resource transaction volume of the resource pair to the resource management agency, and transfer the pre-transfer transaction resource from the resource management agency, and the pre-transfer transaction resource refers to the target resource corresponding to the estimated resource transaction volume, so as to realize the pre-settlement of the resource pair. Wherein, the target resource refers to the resource for which the computer device provides a resource transfer service to the outside, for example, the resource pair includes a first resource and a second resource, and the computer device provides a resource transfer service for the first resource to the outside, at this time, the target resource is the first resource, then the computer device may transfer the first resource corresponding to the estimated resource transaction volume (i.e., the pre-transfer transaction resource) from the resource management agency, and the resource transfer service refers to a service that can transfer the corresponding resource to other objects (such as individuals, enterprises or institutions, etc.). For example, if the target resource is US dollars and the estimated resource transaction volume of the resource pair is 3000, then the computer device may transfer 3000 US dollars from the resource management agency, that is, the pre-transfer transaction resource is 3000 US dollars. Optionally, the computer device may conduct a resource negotiation transaction with the resource management agency to achieve the resource negotiation transaction, which refers to the resource negotiation transfer between the computer device and the resource management agency in the current foreign exchange market, but the negotiated resources do not necessarily need to be obtained in real time. For example, a resource negotiation transaction of US$3,000 is conducted between the computer device and the resource management agency. Assuming that the resource negotiation transaction is "a transaction of US$3,000 is reached with the computer device at a resource conversion ratio of 6", the computer device can transfer US$3,000 from the resource management agency at a resource conversion ratio of 6 when needed.
[0109] Step S303, unitizing the data associated with the resource transaction, determining the estimated unit transaction cost of the resource pair in the first type of time period, optimizing the estimated unit transaction cost, and determining the resource transaction cost of the pre-transferred transaction resources of the resource transaction.
[0110] In an embodiment of the present application, a computer device may obtain data associated with resource exchange, such as data generated during the resource transaction process, or data based on which resource exchange is conducted. Specifically, under a cost determination method ①, the number of historical transaction information is N, where N is a positive integer. The computer device may determine the total historical transaction cost of the resource pair based on the historical resource transaction volume and historical resource conversion ratio corresponding to the resource pair in the N historical transaction information. At this time, the data associated with resource exchange include the historical resource transaction volume and historical resource conversion ratio corresponding to the resource pair in the N historical transaction information. Based on the total historical transaction cost and the historical resource transaction volume of the resource pair in the N historical transaction information, determine the estimated unit transaction cost of the resource pair in the first type of time period. For example, N historical transaction information include "historical resource transaction volume 1, historical resource conversion ratio 1;...; historical resource transaction volume N, historical resource conversion ratio N", and the total historical transaction cost can be recorded as "historical resource transaction volume 1*historical resource conversion ratio 1+...+historical resource transaction volume N*historical resource conversion ratio N", and the estimated unit transaction cost can be recorded as "total historical transaction cost / (historical resource transaction volume 1+...+historical resource transaction volume N)".
[0111] Optionally, under a cost determination method ②, the computer device can obtain resource transaction data generated by the resource pair during the resource transaction process, the resource transaction data including the pre-transferred transaction volume and pre-transferred transaction cost of the resource pair, the pre-transferred transaction cost refers to the resource conversion ratio used in the resource transaction process; based on the pre-transferred transaction volume and the pre-transferred transaction cost, determine the estimated unit transaction cost of the resource pair in the first type of time period. For example, the number of resource transaction data is d, d is a positive integer, then based on the pre-transferred transaction volume in the d resource transaction data, the pre-transferred transaction cost in the d resource transaction data can be weighted to obtain the estimated unit transaction cost of the resource pair in the first type of time period, the estimated unit transaction cost can be recorded as "(pre-transferred transaction volume 1*pre-transferred transaction cost 1+…+pre-transferred transaction volume d*pre-transferred transaction cost d) / (pre-transferred transaction volume 1+…+pre-transferred transaction volume d)". That is, when d is one, the pre-transferred transaction cost can be determined as the estimated unit transaction cost, etc.
[0112] Furthermore, the resource transaction cost of the pre-transferred transaction resources of the resource transaction can be determined based on the estimated unit transaction cost, and the resource transaction cost is used to represent the resource conversion ratio estimated for the resource pair in the first type of time period. Specifically, the estimated unit transaction cost can be determined as the resource transaction cost of the pre-transferred transaction resources, such as the estimated unit transaction cost obtained under the above cost determination method ①.
[0113] Alternatively, the computer device may obtain a second type target time period adjacent to the first type time period, and obtain the actual historical transaction cost generated in the second type target time period, wherein the second type target time period refers to the second type time period currently in which the second type target time period is different from the first type time period in time period type. Optionally, the historical transaction cost may be a resource conversion ratio used by the resource pair in the current transaction time period in the second type target time period, or may be a plurality of resource conversion ratios used by the resource pair in the second type target time period, etc. Based on the actual historical transaction cost, the actual estimated transaction cost of the resource pair in the first type time period is estimated, for example, the actual historical transaction cost is determined as the actual estimated transaction cost of the resource pair in the first type time period; or the statistical value of the plurality of resource conversion ratios may be determined as the actual estimated transaction cost of the resource pair in the first type time period, etc., and the statistical value may be a mean, a median, a resource conversion ratio with the most usage times, or a peak value, etc. Further, the estimated unit transaction cost is adjusted using the actual estimated transaction cost to obtain the resource transaction cost of the pre-transferred transaction resource of the resource transaction. For example, if the actual estimated transaction cost is less than the estimated unit transaction cost, the estimated unit transaction cost is determined as the resource transaction cost of the pre-transferred transaction resources of the resource transaction; if the actual estimated transaction cost is greater than the estimated unit transaction cost, the first type of actual cost and the second type of actual cost can be determined based on the actual estimated transaction cost, and the transaction adjustment ratio can be determined based on the first type of actual cost and the second type of actual cost. Based on the transaction adjustment ratio, the estimated unit transaction cost is adjusted to obtain the resource transaction cost of the pre-transferred transaction resources of the resource transaction. The first type of actual cost refers to the resource conversion ratio that is greater than or equal to the actual estimated transaction cost among the multiple resource conversion ratios used by the resource pair in the second type of target time period; the second type of actual cost refers to the resource conversion ratio that is less than the actual estimated transaction cost among the multiple resource conversion ratios used by the resource pair in the second type of target time period. For example, the first category actual cost and the second category actual cost can be obtained, and the cost ratios of multiple resource conversion ratios used by the resource pair in the second type target time period can be respectively obtained. According to the cost ratio of the first category actual cost and the cost ratio of the second category actual cost, the transaction adjustment ratio can be determined, such as, transaction adjustment ratio = cost ratio of the first category actual cost / cost ratio of the second category actual cost, or, transaction adjustment ratio = | cost ratio of the first category actual cost - cost ratio of the second category actual cost | / cost ratio of the second category actual cost, etc.
[0114] Alternatively, the computer device may obtain the historical estimated transaction volume of the first type of historical time period, and determine the transaction volume estimation accuracy based on the historical estimated transaction volume of the first type of historical time period and the historical resource transaction volume. The transaction estimation accuracy is used to indicate the accuracy of resource transaction volume estimation when the historical transaction information of the first type of historical time period is used to predict the flat price. Since the present application is used to estimate the resource transaction volume, it can be considered that each first type time period is the first type of historical time period of the first type time period to estimate the resource transaction volume, such as Figure 2 As shown in , the first type of historical time period of the first type of time period 203 can be used to estimate the resource transaction volume that may be generated in the first type of time period 203, and the first type of historical time period of the first type of time period 201 can be used to estimate the resource transaction volume that may be generated in the first type of time period 201, etc. Therefore, the actual transaction volume corresponding to the first type of historical time period that has been experienced (i.e., the historical resource transaction volume) and the estimated transaction volume (i.e., the historical estimated transaction volume) estimation accuracy can be used as the transaction volume estimation accuracy of the first type of time period currently estimated in this application. For example, the actual growth ratio between the historical estimated transaction volume and the historical resource transaction volume can be determined as the transaction volume estimation accuracy. At this time, it can be considered that the transaction volume estimation accuracy = (historical resource transaction volume-historical estimated transaction volume) / historical estimated transaction volume; or, the transaction volume ratio between the historical estimated transaction volume and the historical resource transaction volume can be determined as the transaction volume estimation accuracy, etc., without limitation here. Furthermore, the resource cost adjustment amount of the resource pair can be determined based on the transaction volume estimation accuracy, and the estimated unit transaction cost can be adjusted based on the resource cost adjustment amount to obtain the resource transaction cost of the resource transaction's pre-transferred transaction resources. Alternatively, the estimated unit transaction cost can be adjusted directly based on the transaction volume estimation accuracy to obtain the resource transaction cost of the resource transaction's pre-transferred transaction resources. For example, when the transaction volume estimation accuracy is the actual growth ratio, it can be considered that the resource transaction cost = (1 + transaction volume estimation accuracy) * estimated unit transaction cost; when the transaction volume estimation accuracy is the transaction volume ratio, it can be considered that the resource transaction cost = estimated unit transaction cost * transaction volume estimation accuracy, etc. This allows the foreign exchange quotation to take into account the accuracy of the resource transaction volume estimation, further improving the accuracy of the foreign exchange quotation.
[0115] Alternatively, the computer device may search for transaction promotion activities associated with the first type of time period. If there are transaction promotion activities, the estimated unit transaction cost is adjusted based on the degree of promotion of the transaction promotion activities to obtain the resource transaction cost of the pre-transferred transaction resources of the resource transaction.
[0116] Alternatively, the computer device may further adjust the resource transaction cost of the resource pair based on the resource transactions that have occurred in the first type of time period, thereby dynamically adjusting the resource transaction cost and improving the flexibility, real-time performance and accuracy of foreign exchange quotations. Specifically, the first actual resource transaction volume that has been generated may be obtained in the first type of time period, and the first actual resource transaction volume may be compared with the estimated resource transaction volume. If the estimated resource transaction volume is greater than the first actual resource transaction volume, the resource transaction cost of the resource pair is reduced; if the estimated resource transaction volume is less than the first actual resource transaction volume, the resource transaction cost of the resource pair is increased based on the transaction volume difference between the estimated resource transaction volume and the first actual resource transaction volume.
[0117] Further optionally, at the end of the first type of time period, if there are untraded resources in the pre-transferred transaction resources, the current resource conversion ratio of the resource pair can be obtained, and the untraded resources can be transferred out using the current resource conversion ratio. Alternatively, if there are untraded resources in the pre-transferred transaction resources, the untraded resources can be transferred out using the resource transaction cost until the untraded resources are processed. Alternatively, if there are untraded resources in the pre-transferred transaction resources, the first resource conversion ratio used by the resource pair at the end of the first type of time period can be obtained, and the untraded resources can be transferred out using the first resource conversion ratio until the untraded resources are processed. Alternatively, if there are untraded resources in the pre-transferred trading resources, the current resource conversion ratio of the resource pair and the first resource conversion ratio used at the end of the first type of time period can be obtained, and the second resource conversion ratio is obtained from the current resource conversion ratio and the first resource conversion ratio, and the second resource conversion ratio is used to transfer out the untraded resources. The second resource conversion ratio refers to the larger of the current resource conversion ratio and the first resource conversion ratio. If the current resource conversion ratio is greater than the first resource conversion ratio, the second resource conversion ratio is the current resource conversion ratio. If the current resource conversion ratio is less than the first resource conversion ratio, the second resource conversion ratio is the first resource conversion ratio. If the current resource conversion ratio is equal to the first resource conversion ratio, the second resource conversion ratio can be any one of the current resource conversion ratio and the first resource conversion ratio, etc.
[0118] If the second actual resource trading volume generated in the first type of time period is greater than the estimated resource trading volume, the resource missing trading volume is determined based on the second actual resource trading volume and the estimated resource trading volume. When the resource conversion ratio changes stably in the second type of time period after the first type of time period, the supplementary trading resources corresponding to the resource missing trading volume are transferred.
[0119] Among them, the number of resource pairs can be one or more, and the computer device can execute the relevant processes of the above steps S301 to S303 for any resource pair to realize the estimation of the estimated resource transaction volume and resource transaction cost of the resource pair, among which it can be considered that the number of resource pairs is not limited in steps S301 to S303.
[0120] Further optionally, the computer device may provide an object value based on the resource transaction cost, such as making a foreign exchange quotation. For example, the computer device acquires the target object (such as a commodity, etc.) with the first resource of the first resource data volume (as assumed), and determines the second resource data volume of the target object (that is, the purchase price after conversion into the second resource) based on the resource transaction cost. For example, the computer device purchases the target object at a price of 300 US dollars (that is, the first resource is US dollars and the first resource data volume is 300), and determines the second resource data volume of the target object based on the resource transaction cost. Assuming that the resource transaction cost is 6.5 and the second resource is RMB, the second resource data volume can be determined as "300*6.5=1950". The computer device can determine the object value of the target object based on the second resource data volume. At this time, the object value refers to the data volume of the second resource that can be obtained when the computer device transfers the target object with the second resource. For example, assuming that the computer device needs to obtain a 10% profit, the object value of the target object can be considered as "1950*(1+10%)=2145 yuan". Of course, the above is only an example of a possible foreign exchange quotation scenario. The present application can be applied to any foreign exchange quotation scenario to make foreign exchange quotations based on the resource transaction costs determined by the present application.
[0121] In an embodiment of the present application, historical transaction information generated by a trading agency in a first type of historical time period is obtained; the historical transaction information includes a historical resource transaction volume and a historical resource conversion ratio of a resource pair; the first type of historical time period refers to a time period in which the resource management agency does not provide a resource conversion ratio; according to the time characteristics of the first type of time period, transaction volume statistics are performed on the historical resource transaction volume of the resource pair, and an estimated resource transaction volume of the resource pair in the first type of time period is determined, and based on the estimated resource transaction volume of the resource pair, resource transactions are conducted with the resource management agency; the first type of historical time period is the same time period type as the first type of time period; data associated with the resource transaction is unitized, an estimated unit transaction cost of the resource pair in the first type of time period is determined, cost optimization is performed on the estimated unit transaction cost, and the resource transaction cost of the pre-transferred transaction resources of the resource transaction is determined. Through the above process, the historical transaction information generated in the first type of historical time period can be used as the latest estimated resource transaction volume in the first type of time period, and further, the estimated unit transaction cost can be determined so that the estimated unit transaction cost can reflect the real transaction cost, thereby achieving a more objective and accurate foreign exchange quotation, so that the resource transaction cost can provide a more favorable resource transfer price for the trading institution, and reduce the foreign exchange risk of the trading institution, thereby improving the accuracy and efficiency of the resource transaction cost estimation. Moreover, the estimation of the resource transaction cost has a more realistic estimation basis (i.e., historical transaction information), so that when estimating the resource transaction cost, there is no need to consider the range of price increase, thereby improving the estimation efficiency of the resource transaction cost.
[0122] Optional, see Figure 6 , Figure 6 This is a flow chart of a pre-flattening method provided in an embodiment of the present application. Figure 6 As shown, it is a possible implementation method of pre-flattening the plate in the above steps S301 to S302. The method may include the following steps:
[0123] Step S601, querying the historical resource transaction volume generated in the i-th historical transaction time period of the first type of historical time period.
[0124] In the embodiment of the present application, the computer device can obtain the historical transaction information generated by the resource pair in the first type of historical time period through the rest transaction summary module, and the historical transaction information includes the historical resource transaction volume and historical resource conversion ratio of the resource pair. Specifically, the computer device can query the historical resource transaction volume generated by the resource pair in the i-th historical transaction time period of the first type of historical time period, where i is a positive integer. For example, assuming that the first type of historical time period includes October 1 to October 7, at the beginning, it can be considered that the historical resource transaction volume generated by the resource pair on October 1 is queried.
[0125] Step S602: Conduct resource transactions based on the estimated resource transaction volume estimated from the historical resource transaction volume.
[0126] In the embodiment of the present application, the computer device can estimate the estimated resource transaction volume of the resource pair in the first type of time period based on the historical resource transaction volume generated by the resource pair in the i-th historical transaction time period, and perform resource transactions based on the estimated resource transaction volume of the resource pair. Figure 3 See the relevant description of step S302 in .
[0127] Step S603, writing the estimated resource transaction volume and the resource transaction data generated by the resource transaction into the transaction management module.
[0128] In an embodiment of the present application, the computer device may write the estimated resource transaction volume and the resource transaction data generated by the resource transaction into the transaction management module.
[0129] Step S604, recording the resource transaction data corresponding to the resource pair of each resource transaction.
[0130] In an embodiment of the present application, the transaction management module records the resource transaction data of the resource pair generated by each resource transaction, and the resource transaction data includes the pre-transfer transaction volume and pre-transfer transaction cost of the resource pair, or the resource transaction data may include the transfer quantity of the first resource in the resource pair, and the transfer quantity of the second resource, etc.
[0131] Step S605: whether there are other historical transaction time periods.
[0132] In the embodiment of the present application, it is detected whether there are other unprocessed historical trading time periods in the first type of historical time period. If there are no unprocessed historical trading time periods, the pre-leveling process is terminated; if there are unprocessed historical trading time periods, i++ is performed and the process returns to step S601, that is, pre-leveling is performed on the next historical trading time period.
[0133] Optionally, step S601, step S603, step S604 and step S605 may be executed until it is detected in step S605 that there is no unprocessed historical transaction time period, and step S602 is executed to perform resource transactions for the estimated resource transaction volumes of all historical transaction time periods included in the first type of historical time period. That is, the computer device may obtain the historical transaction information generated in the i-th historical transaction time period of the first type of historical time period; integrate the historical resource transaction volumes in the historical transaction information generated in the i-th historical transaction time period, determine the estimated resource transaction volume of the resource pair in the i-th historical transaction time period, and perform resource transactions based on the estimated resource transaction volume of the resource pair; if there is an unprocessed historical transaction time period in the first type of historical time period, then perform a self-increment process on i, and return to the process of obtaining the historical transaction information generated in the i-th historical transaction time period of the first type of historical time period; if there is no unprocessed historical transaction time period in the first type of historical time period, then determine the estimated unit transaction cost of the resource pair in the first type of time period based on the data associated with the resource transaction, and determine the resource transaction cost of the pre-transferred transaction resources of the resource transaction based on the estimated unit transaction cost.
[0134] Optional, see Figure 7 , Figure 7 This is a flow chart of a foreign exchange quotation method provided in an embodiment of the present application. Figure 7 As shown, the method may include the following steps:
[0135] Step S701: perform pre-flattening processing on h resource pairs respectively.
[0136] In the embodiment of the present application, the computer device can perform pre-flattening processing on h resource pairs through the rest transaction aggregation module, where h is a positive integer. Figure 3 Steps S301 to S302 in Figure 6 The related description shown will not be repeated here.
[0137] Step S702, recording the data associated with each of the h resource pairs during the resource transaction process.
[0138] In the embodiment of the present application, the computer device may record the data associated with the resource transaction process of the h resource pairs, such as the historical transaction information generated by the h resource pairs in the first type of historical time period, or the resource transaction data generated by the h resource pairs in the resource transaction process may be obtained. For details, see Figure 3 The relevant description in step S303 will not be repeated here. Specifically, the data associated with each other in the resource transaction process of the h resource pairs can be recorded in the transaction management module.
[0139] Step S703 : determining estimated unit transaction costs of the h resource pairs in a first type of time period based on the data respectively associated with the resource transaction processes of the h resource pairs.
[0140] In the embodiment of the present application, the computer device can determine the estimated unit transaction costs of the h resource pairs in the first type of time period respectively through the transaction management module based on the data respectively associated in the resource transaction process of the h resource pairs. For details, see Figure 3 The relevant description in step S303 will not be repeated here.
[0141] Step S704: storing the estimated unit transaction costs corresponding to the h resource pairs.
[0142] In an embodiment of the present application, a computer device may store the estimated unit transaction costs corresponding to h resource pairs. For example, the estimated unit transaction costs corresponding to h resource pairs may be stored in a cost management database. Optionally, the cost management database may be recorded in a computer device or stored in a cloud storage space or a blockchain network, which is not limited here.
[0143] Step S705, whether pre-flattening has been completed.
[0144] In the embodiment of the present application, the computer device can detect whether the h resource pairs have completed the pre-leveling. If the pre-leveling has not been completed, step S707 is executed; if the pre-leveling has been completed, step S706 is executed. Optionally, some of the h resource pairs may have completed the pre-leveling and some have not completed the pre-leveling. In this case, step S706 may be executed for the resource pairs that have completed the pre-leveling, and step S707 may be executed for the resource pairs that have not completed the pre-leveling.
[0145] Step S706: Determine the resource transaction costs corresponding to the h1 resource pairs based on the estimated unit transaction costs corresponding to the h1 resource pairs.
[0146] In the embodiment of the present application, the computer device may determine the resource transaction costs corresponding to the h1 resource pairs based on the estimated unit transaction costs corresponding to the h1 resource pairs. For details, see Figure 3 The relevant description in step S303 will not be repeated here. Wherein, h1 is a positive integer less than or equal to h, and h1 resource pairs are resource pairs that have completed pre-leveling. Since in step S705, if h resource pairs have not completed pre-leveling, step S707 will be executed, that is, this step (i.e., step S706) will not be triggered, therefore, the case where h1 is 0 can be ignored.
[0147] Step S707: adopt the existing quotation scheme.
[0148] In the embodiment of the present application, the existing quotation scheme can be adopted to make foreign exchange quotations for the (h-h1) resource pairs respectively, which will not be explained in detail here.
[0149] For further information, see Figure 8 , Figure 8 Schematic diagram of a data processing device provided in an embodiment of the present application. The data processing device may be a computer program (including program code, etc.) running in a computer device, for example, the data processing device may be an application software; the device may be used to execute the corresponding steps in the method provided in an embodiment of the present application. Figure 8 As shown, the data processing device 800 can be used to Figure 3 The computer device in the corresponding embodiment, specifically, the device may include: a transaction acquisition module 11, a transaction volume determination module 12, a pre-transaction module 13, a cost estimation module 14 and a cost determination module 15.
[0150] The transaction acquisition module 11 is used to acquire historical transaction information generated by the transaction institution in the first type of historical time period; the historical transaction information includes the historical resource transaction volume and historical resource conversion ratio of the resource pair; the first type of historical time period refers to the time period in which the resource management institution does not provide the resource conversion ratio;
[0151] The transaction volume determination module 12 is used to perform transaction volume statistics on the historical resource transaction volume of the resource pair according to the time characteristics of the first type of time period, and determine the estimated resource transaction volume of the resource pair in the first type of time period; the first type of historical time period and the first type of time period are of the same time period type;
[0152] A pre-transaction module 13, used to conduct resource transactions with a resource management agency based on the estimated resource transaction volume of the resource pair;
[0153] The cost estimation module 14 is used to unitize the data associated with the resource exchange and determine the estimated unit transaction cost of the resource pair in the first type of time period;
[0154] The cost determination module 15 is used to optimize the estimated unit transaction cost and determine the resource transaction cost of the pre-transferred transaction resources of the resource transaction.
[0155] The transaction acquisition module 11 includes:
[0156] The data collection unit 111 is used to collect historical transaction data generated by the transaction institution in the first type of historical time period; the historical transaction data is associated with historical transaction time and resource pairs;
[0157] The data integration unit 112 is used to divide the historical transaction data into M historical transaction sets based on the historical transaction time, and integrate the data of the M historical transaction sets based on the resource pairs to obtain the historical transaction information corresponding to the M historical transaction sets respectively; M is a positive integer; the historical transaction time associated with the historical transaction data in a historical transaction set belongs to the same historical transaction time period.
[0158] Among them, the number of historical transaction information is N, and N is a positive integer;
[0159] The transaction volume determination module 12 includes:
[0160] The transaction statistics unit 121 is used to obtain a transaction volume statistic value of a historical resource transaction volume of the resource pair in N historical transaction information according to a time feature of the first type of time period, and determine the transaction volume statistic value as an estimated resource transaction volume of the resource pair in the first type of time period;
[0161] The cost estimation module 14 includes:
[0162] The historical statistics unit 141 is used to determine the total historical transaction cost of the resource pair based on the historical resource transaction volume and the historical resource conversion ratio respectively corresponding to the resource pair in the N historical transaction information; the data associated with the resource transaction includes the historical resource transaction volume and the historical resource conversion ratio respectively corresponding to the resource pair in the N historical transaction information;
[0163] The cost estimation unit 142 is used to unitize the total historical transaction cost based on the historical resource transaction volume of the resource pair in the N historical transaction information, and determine the estimated unit transaction cost of the resource pair in the first type of time period.
[0164] The number of the first type of historical time periods is K, where K is a positive integer; the time characteristics of the first type of time periods include an estimated number of trading time periods included in the first type of time periods;
[0165] The transaction volume determination module 12 includes:
[0166] The transaction collection unit 122 is used to obtain the historical resource transaction volumes corresponding to the resource pairs in K first-type historical time periods, and obtain the first time period number of the historical transaction time periods included in the K first-type historical time periods;
[0167] The time period estimation unit 123 is used to unitize the historical resource transaction volumes corresponding to the K first-type historical time periods based on the number of first time periods, and determine the unit time period transaction cost of the resource pair;
[0168] The transaction volume determination unit 124 is configured to obtain the estimated number of transaction time periods included in the first type of time period, and determine the estimated resource transaction volume of the resource pair in the first type of time period based on the transaction cost per unit time period and the estimated number.
[0169] The number of the first type of historical time periods is K, and K is a positive integer; the time characteristics of the first type of time periods are used to characterize the time distribution of the first type of time periods;
[0170] The transaction volume determination module 12 includes:
[0171] A distribution construction unit 125 is used to obtain historical resource transaction volumes corresponding to the resource pair in K first-type historical time periods, and to construct a transaction volume change curve based on the historical resource transaction volumes corresponding to the K first-type historical time periods;
[0172] The transaction volume determination unit 124 is further configured to obtain the time distribution position of the first type time period in K first type historical time periods, map the time distribution position to the transaction volume change curve, and obtain the estimated resource transaction volume of the resource pair in the first type time period.
[0173] The pre-transaction module 13 includes:
[0174] The transaction splitting unit 131 is used for dividing the estimated resource transaction volume of the resource pair into p estimated sub-transaction volumes based on the unit transaction threshold if the estimated resource transaction volume of the resource pair is greater than the unit transaction threshold; p is a positive integer, and each estimated sub-transaction volume is less than or equal to the unit transaction threshold;
[0175] The resource transaction unit 132 is used to conduct resource transactions with the resource management agency for each of the p estimated sub-transaction volumes.
[0176] The cost determination module 15 includes:
[0177] The actual acquisition unit 151 is used to acquire a second type target time period adjacent to the first type time period, and acquire the actual historical transaction cost generated in the second type target time period; the second type target time period is different from the first type time period in time period type;
[0178] An actual estimation unit 152, configured to estimate an actual estimated transaction cost of the resource pair in a first type of time period based on the actual historical transaction cost;
[0179] The cost adjustment unit 153 is used to adjust the estimated unit transaction cost by using the actual estimated transaction cost to obtain the resource transaction cost of the pre-transferred transaction resources of the resource transaction.
[0180] The cost determination module 15 includes:
[0181] An accuracy determination unit 154 is used to obtain the historical estimated transaction volume of the first type of historical time period, and determine the transaction volume estimation accuracy based on the historical estimated transaction volume of the first type of historical time period and the historical resource transaction volume;
[0182] The cost adjustment unit 153 is further used to determine the resource cost adjustment amount of the resource pair based on the transaction volume estimation accuracy, and to adjust the estimated unit transaction cost based on the resource cost adjustment amount to obtain the resource transaction cost of the pre-transferred transaction resource of the resource transaction.
[0183] The cost determination module 15 includes:
[0184] The preferential adjustment unit 155 is used to search for transaction preferential activities associated with the first type of time period. If there are transaction preferential activities, the estimated unit transaction cost is adjusted based on the preferential degree of the transaction preferential activities to obtain the resource transaction cost of the pre-transferred transaction resources of the resource transaction.
[0185] The device 800 further includes:
[0186] The transaction comparison module 16 is used to obtain the first actual resource transaction volume that has been generated within the first type of time period, and compare the first actual resource transaction volume with the estimated resource transaction volume;
[0187] A cost reduction module 17, configured to reduce the resource transaction cost of the resource pair if the estimated resource transaction volume is greater than the first actual resource transaction volume;
[0188] The cost increasing module 18 is configured to increase the resource transaction cost of the resource pair based on the transaction volume difference between the estimated resource transaction volume and the first actual resource transaction volume if the estimated resource transaction volume is less than the first actual resource transaction volume.
[0189] The device 800 further includes:
[0190] The resource transfer module 19 is used to transfer out the untraded resources by using the resource transaction cost when the first type of time period ends, if there are untraded resources in the pre-transferred transaction resources, until the untraded resources are processed;
[0191] The resource transfer module 20 is used to determine the resource missing transaction volume based on the second actual resource transaction volume and the estimated resource transaction volume if the second actual resource transaction volume generated in the first type of time period is greater than the estimated resource transaction volume. When the resource conversion ratio changes stably in the second type of time period after the first type of time period, the supplementary transaction resources corresponding to the resource missing transaction volume are transferred.
[0192] An embodiment of the present application provides a data processing device, which can obtain historical transaction information generated by a trading agency in a first type of historical time period; the historical transaction information includes the historical resource transaction volume and historical resource conversion ratio of a resource pair; the first type of historical time period refers to a time period in which the resource management agency does not provide a resource conversion ratio; according to the time characteristics of the first type of time period, the historical resource transaction volume of the resource pair is statistically analyzed to determine the estimated resource transaction volume of the resource pair in the first type of time period, and based on the estimated resource transaction volume of the resource pair, a resource transaction is conducted with the resource management agency; the first type of historical time period is the same time period type as the first type of time period; the data associated with the resource transaction is unitized to determine the estimated unit transaction cost of the resource pair in the first type of time period, the estimated unit transaction cost is optimized, and the resource transaction cost of the pre-transferred transaction resources of the resource transaction is determined. Through the above process, the historical transaction information generated in the first type of historical time period can be used as the latest estimated resource transaction volume in the first type of time period, and further, the estimated unit transaction cost can be determined so that the estimated unit transaction cost can reflect the real transaction cost, thereby achieving a more objective and accurate foreign exchange quotation, so that the resource transaction cost can provide a more favorable resource transfer price for the trading institution, and reduce the foreign exchange risk of the trading institution, thereby improving the accuracy and efficiency of the resource transaction cost estimation. Moreover, the estimation of the resource transaction cost has a more realistic estimation basis (i.e., historical transaction information), so that when estimating the resource transaction cost, there is no need to consider the range of price increase, thereby improving the estimation efficiency of the resource transaction cost.
[0193] See also Fig. 9 , Fig. 9 Schematic diagram of the structure of a computer device provided in an embodiment of the present application. Fig. 9 As shown, the computer device in the embodiment of the present application may include: one or more processors 901, a memory 902, and an input-output interface 903. The processor 901, the memory 902, and the input-output interface 903 are connected via a bus 904. The memory 902 is used to store a computer program, which includes program instructions, and the input-output interface 903 is used to receive and output data, such as for data interaction between the computer device and a resource management agency, etc.; the processor 901 is used to execute the program instructions stored in the memory 902.
[0194] The processor 901 may perform the following operations:
[0195] Obtain historical transaction information generated by the trading institution in the first type of historical time period; the historical transaction information includes the historical resource transaction volume and historical resource conversion ratio of the resource pair; the first type of historical time period refers to the time period when the resource management institution does not provide the resource conversion ratio;
[0196] According to the time characteristics of the first type of time period, the historical resource transaction volume of the resource pair is counted, the estimated resource transaction volume of the resource pair in the first type of time period is determined, and the resource transaction is conducted with the resource management agency based on the estimated resource transaction volume of the resource pair; the first type of historical time period and the first type of time period have the same time period type;
[0197] The data associated with the resource exchange is unitized to determine the estimated unit transaction cost of the resource pair in the first type of time period, the estimated unit transaction cost is cost optimized, and the resource transaction cost of the pre-transferred transaction resources of the resource transaction is determined.
[0198] In some feasible implementations, the processor 901 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0199] The memory 902 may include a read-only memory and a random access memory, and provide instructions and data to the processor 901 and the input / output interface 903. A portion of the memory 902 may also include a non-volatile random access memory. For example, the memory 902 may also store information about the device type.
[0200] In a specific implementation, the computer device can execute the following operations through its built-in functional modules: Figure 3 For details on the implementation methods provided in each step, please refer to the Figure 3 The implementation methods provided in each step will not be repeated here.
[0201] The embodiment of the present application provides a computer device, including: a processor, an input / output interface, and a memory, wherein the processor obtains a computer program in the memory and executes the computer program. Figure 3Each step of the method shown in is used to perform data processing operations. The embodiment of the present application realizes obtaining the historical transaction information generated by the trading agency in the first type of historical time period; the historical transaction information includes the historical resource transaction volume and the historical resource conversion ratio of the resource pair; the first type of historical time period refers to the time period when the resource management agency does not provide the resource conversion ratio; according to the time characteristics of the first type of time period, the historical resource transaction volume of the resource pair is statistically analyzed, the estimated resource transaction volume of the resource pair in the first type of time period is determined, and based on the estimated resource transaction volume of the resource pair, the resource transaction is conducted with the resource management agency; the first type of historical time period is the same as the time period type of the first type of time period; the data associated with the resource transaction is unitized, the estimated unit transaction cost of the resource pair in the first type of time period is determined, the estimated unit transaction cost is optimized, and the resource transaction cost of the pre-transferred transaction resources of the resource transaction is determined. Through the above process, the historical transaction information generated in the first type of historical time period can be used as the latest estimated resource transaction volume in the first type of time period, and further, the estimated unit transaction cost can be determined so that the estimated unit transaction cost can reflect the real transaction cost, thereby achieving a more objective and accurate foreign exchange quotation, so that the resource transaction cost can provide a more favorable resource transfer price for the trading institution, and reduce the foreign exchange risk of the trading institution, thereby improving the accuracy and efficiency of the resource transaction cost estimation. Moreover, the estimation of the resource transaction cost has a more realistic estimation basis (i.e., historical transaction information), so that when estimating the resource transaction cost, there is no need to consider the range of price increase, thereby improving the estimation efficiency of the resource transaction cost.
[0202] The present application also provides a computer-readable storage medium storing a computer program suitable for being loaded and executed by the processor. Figure 3 For details on the data processing methods provided in each step, please refer to the Figure 3 The implementation methods provided in each step are not repeated here. In addition, the description of the beneficial effects of adopting the same method is not 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. As an example, the computer program can be deployed to execute on one computer device, or on multiple computer devices located in one place, or on multiple computer devices distributed in multiple locations and interconnected by a communication network.
[0203] The computer-readable storage medium may be a data processing device provided in any of the aforementioned embodiments or an internal storage unit of the computer device, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart memory card (smart media card, SMC), a secure digital (secure digital, SD) card, a flash card (flash card), etc. equipped on the computer device. Further, the computer-readable storage medium may also include both an internal storage unit of the computer device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
[0204] The present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes Figure 3 The method provided in the various optional methods realizes the use of historical transaction information generated in the first type of historical time period as the latest estimated resource transaction volume of the first type of time period, and further, determines the estimated unit transaction cost, so that the estimated unit transaction cost can reflect the actual transaction cost, thereby achieving a more objective and accurate foreign exchange quotation, so that the resource transaction cost can provide a more favorable resource transfer price for the trading institution, and reduce the foreign exchange risk of the trading institution, thereby improving the accuracy and efficiency of the resource transaction cost estimation. Moreover, the estimation of the resource transaction cost has a more realistic estimation basis (i.e., historical transaction information), so that when estimating the resource transaction cost, there is no need to consider the range of price increase, thereby improving the estimation efficiency of the resource transaction cost.
[0205] The terms "first", "second", etc. in the description, claims, and drawings of the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, device, product, or equipment that includes a series of steps or units is not limited to the listed steps or modules, but optionally includes steps or modules that are not listed, or optionally includes other step units inherent to these processes, methods, devices, products, or equipment.
[0206] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in this description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0207] The method and related apparatus provided by the embodiment of the present application are described with reference to the method flow chart and / or structural diagram provided by the embodiment of the present application. Specifically, each process and / or box in the method flow chart and / or structural diagram, as well as the combination of the processes and / or boxes in the flow chart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the process. Figure 1 Schematic diagram of one or more processes and / or structures Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 Schematic diagram of one or more processes and / or structures Figure 1 These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide for implementing the process in the process. Figure 1 A flow or multiple flows and / or structures illustrate the steps of the functions specified in one block or multiple blocks.
[0208] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs.
[0209] The modules in the device of the embodiment of the present application can be merged, divided and deleted according to actual needs.
[0210] 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: The method comprises: Acquire historical transaction information generated by the transaction institution in a first type of historical time period; the historical transaction information includes historical resource transaction volume and historical resource conversion ratio of resource pairs; the first type of historical time period refers to a time period in which the resource management institution does not provide a resource conversion ratio; According to the time characteristics of the first type of time period, the historical resource transaction volume of the resource pair is counted, the estimated resource transaction volume of the resource pair in the first type of time period is determined, and the resource transaction is conducted with the resource management agency based on the estimated resource transaction volume of the resource pair; the first type of historical time period and the first type of time period are of the same time period type; Unitize the data associated with the resource transaction to determine an estimated unit transaction cost of the resource pair in the first type of time period, perform cost optimization on the estimated unit transaction cost, and determine the resource transaction cost of the pre-transferred transaction resources of the resource transaction.
2. The method according to claim 1, characterized in that The obtaining of historical transaction information generated by the transaction institution in the first type of historical time period includes: Collecting historical transaction data generated by the transaction institution during the first type of historical time period; the historical transaction data is associated with historical transaction time and resource pairs; The historical transaction data is divided into M historical transaction sets based on the historical transaction time, and the M historical transaction sets are respectively integrated based on the resource pairs to obtain historical transaction information corresponding to the M historical transaction sets respectively; M is a positive integer; the historical transaction time associated with the historical transaction data in a historical transaction set belongs to the same historical transaction time period.
3. The method according to claim 1, characterized in that The number of historical transaction information is N, where N is a positive integer; The performing transaction volume statistics on the historical resource transaction volume of the resource pair according to the time characteristics of the first type of time period to determine the estimated resource transaction volume of the resource pair in the first type of time period includes: According to the time characteristics of the first type of time period, obtaining a transaction volume statistic value of the historical resource transaction volume of the resource pair in N historical transaction information, and determining the transaction volume statistic value as the estimated resource transaction volume of the resource pair in the first type of time period; The unitizing of the data associated with the resource transaction to determine the estimated unit transaction cost of the resource pair in the first type of time period includes: Determine the total historical transaction cost of the resource pair based on the historical resource transaction volume and the historical resource conversion ratio respectively corresponding to the resource pair in the N historical transaction information; the data associated with the resource transaction includes the historical resource transaction volume and the historical resource conversion ratio respectively corresponding to the resource pair in the N historical transaction information; Based on the historical resource transaction volume of the resource pair in the N historical transaction information, the total historical transaction cost is unitized to determine the estimated unit transaction cost of the resource pair in the first type of time period.
4. The method according to claim 1, characterized in that The number of the first type of historical time periods is K, where K is a positive integer; the time characteristics of the first type of time periods include an estimated number of trading time periods included in the first type of time periods; The performing transaction volume statistics on the historical resource transaction volume of the resource pair according to the time characteristics of the first type of time period to determine the estimated resource transaction volume of the resource pair in the first type of time period includes: Obtaining historical resource transaction volumes corresponding to the resource pair in K first-type historical time periods, and obtaining the number of first time periods of historical transaction time periods included in the K first-type historical time periods; Based on the number of the first time periods, unitizing the historical resource transaction volumes corresponding to the K first-type historical time periods to determine the unit time period transaction cost of the resource pair; An estimated number of transaction time periods included in the first type of time period is obtained, and an estimated resource transaction volume of the resource pair in the first type of time period is determined based on the unit time period transaction cost and the estimated number.
5. The method according to claim 1, characterized in that The number of the first type of historical time periods is K, where K is a positive integer; the time characteristics of the first type of time periods are used to characterize the time distribution of the first type of time periods; The performing transaction volume statistics on the historical resource transaction volume of the resource pair according to the time characteristics of the first type of time period to determine the estimated resource transaction volume of the resource pair in the first type of time period includes: Obtaining historical resource transaction volumes corresponding to the resource pair in K first-type historical time periods, and constructing a transaction volume change curve based on the historical resource transaction volumes corresponding to the K first-type historical time periods; The time distribution position of the first type time period in the K first type historical time periods is obtained, and the time distribution position is mapped to the transaction volume change curve to obtain the estimated resource transaction volume of the resource pair in the first type time period.
6. The method according to claim 1, characterized in that The performing resource transaction with the resource management agency based on the estimated resource transaction volume of the resource pair includes: If the estimated resource transaction volume of the resource pair is greater than the unit transaction threshold, then based on the unit transaction threshold, the estimated resource transaction volume is divided into p estimated sub-transaction volumes; p is a positive integer, and each estimated sub-transaction volume is less than or equal to the unit transaction threshold; Resource transactions are conducted with resource management agencies respectively for the p estimated sub-transaction volumes.
7. The method according to claim 1, characterized in that The cost optimization of the estimated unit transaction cost to determine the resource transaction cost of the pre-transferred transaction resources of the resource transaction includes: Acquire a second type target time period adjacent to the first type time period, and acquire the actual historical transaction cost generated in the second type target time period; the second type target time period and the first type time period are of different time period types; estimating an actual estimated transaction cost of the resource pair in the first type of time period based on the actual historical transaction cost; The estimated unit transaction cost is adjusted by using the actual estimated transaction cost to obtain the resource transaction cost of the pre-transferred transaction resources of the resource transaction.
8. The method according to claim 1, characterized in that The cost optimization of the estimated unit transaction cost to determine the resource transaction cost of the pre-transferred transaction resources of the resource transaction includes: Obtaining the historical estimated transaction volume of the first type of historical time period, and determining the transaction volume estimation accuracy rate based on the historical estimated transaction volume of the first type of historical time period and the historical resource transaction volume; Based on the transaction volume estimation accuracy, a resource cost adjustment amount of the resource pair is determined, and based on the resource cost adjustment amount, a cost adjustment is performed on the estimated unit transaction cost to obtain a resource transaction cost of the pre-transferred transaction resources of the resource transaction.
9. The method according to claim 1, characterized in that The cost optimization of the estimated unit transaction cost to determine the resource transaction cost of the pre-transferred transaction resources of the resource transaction includes: Find the transaction preferential activities associated with the first type of time period. If the transaction preferential activities exist, adjust the estimated unit transaction cost based on the preferential degree of the transaction preferential activities to obtain the resource transaction cost of the pre-transferred transaction resources of the resource transaction.
10. The method according to claim 1, characterized in that The method further comprises: In the first type of time period, obtaining a first actual resource transaction volume that has been generated, and comparing the first actual resource transaction volume with the estimated resource transaction volume; If the estimated resource transaction volume is greater than the first actual resource transaction volume, reducing the resource transaction cost of the resource pair; If the estimated resource transaction volume is less than the first actual resource transaction volume, the resource transaction cost of the resource pair is increased based on the transaction volume difference between the estimated resource transaction volume and the first actual resource transaction volume.
11. The method according to claim 1, characterized in that The method further comprises: At the end of the first type of time period, if there are untraded resources in the pre-transferred transaction resources, the untraded resources are transferred out using the resource transaction cost until the processing of the untraded resources is completed; If the second actual resource transaction volume generated in the first type of time period is greater than the estimated resource transaction volume, the resource missing transaction volume is determined based on the second actual resource transaction volume and the estimated resource transaction volume. When the resource conversion ratio changes stably in the second type of time period after the first type of time period, the supplementary transaction resources corresponding to the resource missing transaction volume are transferred.
12. A data processing device, characterized in that: The device comprises: A transaction acquisition module, used to acquire historical transaction information generated by a transaction institution in a first type of historical time period; the historical transaction information includes a historical resource transaction volume and a historical resource conversion ratio of a resource pair; the first type of historical time period refers to a time period in which the resource management institution does not provide a resource conversion ratio; a transaction volume determination module, configured to perform transaction volume statistics on the historical resource transaction volume of the resource pair according to the time characteristics of the first type of time period, and determine the estimated resource transaction volume of the resource pair in the first type of time period; the first type of historical time period and the first type of time period are of the same time period type; A pre-transaction module, used to conduct resource transactions with the resource management agency based on the estimated resource transaction volume of the resource pair; A cost estimation module, configured to unitize the data associated with the resource transaction to determine an estimated unit transaction cost of the resource pair in the first type of time period; The cost determination module is used to perform cost optimization on the estimated unit transaction cost to determine the resource transaction cost of the pre-transferred transaction resources of the resource transaction.
13. A computer device, characterized in that: Includes processor, memory, input and output interfaces; The processor is connected to the memory and the input / output interface respectively, wherein the input / output interface is used to receive and output data, 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 described in any one of claims 1-11.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program 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 11.
15. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the method according to any one of claims 1 to 11 is implemented.
