Transaction processing method and device, equipment and medium
By dividing the resource set into a business resource set and a transaction resource set, and calculating the resource difference, the problem of resource set redundancy and low correlation of business transaction objects in the transaction scenario is solved, and resource management is refined and efficiency is improved.
Patent Information
- Application Number
- CN202310245738.3
- 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
In complex transaction scenarios, existing technology results in redundant resource sets, and the correlation between business and transaction objects results in low resource management efficiency.
By dividing the resource set into a business resource set and a transaction resource set, the resource balance is calculated based on the attributes of the business transaction order and the fluctuation of the resource conversion ratio, decoupling the correlation between the business and transaction objects, and reducing the redundancy of the resource set.
It achieves refined management of unprotected business resources and transaction objects, reduces the redundancy of resource sets, and improves transaction processing efficiency and management accuracy.
Smart Images

Figure CN118587007A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a transaction processing method, a transaction processing device, an electronic device, and a computer-readable storage medium. Background Art
[0002] Currently, the management of unprotected resource volume of resource sets is mostly associated with specific businesses. That is, when a new transaction channel is added, a resource set needs to be added for management of each business. In complex transaction scenarios, for the same transaction channel, multiple resource sets need to be configured for different businesses to process transactions. Due to the association between transaction channels and businesses, the number of resource sets is redundant. Summary of the invention
[0003] To solve the above technical problems, the embodiments of the present application provide a transaction processing method, a transaction processing device, an electronic device, a computer-readable storage medium and a computer program product, which can decouple the association between business and transaction objects and reduce the redundancy of resource sets.
[0004] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0005] According to one aspect of an embodiment of the present application, a transaction processing method is provided, the method comprising: writing the business transaction form into a corresponding business resource set according to the business attributes of the acquired business transaction form, and generating an unprotected resource amount of the business resource set according to the business transaction form, wherein different business attributes correspond to different business resource sets; obtaining the profit and loss of the business resource set according to the fluctuation of the resource conversion ratio of the transaction resource pair of the business transaction form; sending the unprotected resource amount of the business resource set to the corresponding target transaction resource set according to the profit and loss of the business resource set, and calculating the resource difference of the unprotected resource amount of the business resource set through the target transaction resource set; generating the unprotected resource amount of the target transaction resource set according to the resource difference calculation result corresponding to the unprotected resource amount of the business resource set; and sending the unprotected resource amount of the target transaction resource set to the transaction object of the target transaction resource set for transaction processing.
[0006] According to one aspect of an embodiment of the present application, a transaction processing device is provided, comprising: a writing module, used to write the business transaction form into a corresponding business resource set according to the business attributes of the acquired business transaction form, and generate the unprotected resource amount of the business resource set according to the business transaction form, wherein different business attributes correspond to different business resource sets; an acquisition module, used to acquire the profit and loss of the business resource set according to the fluctuation of the resource conversion ratio of the transaction resource pairs contained in the business transaction form; a calculation module, used to send the unprotected resource amount of the business resource set to the corresponding target transaction resource set according to the profit and loss of the business resource set, and perform resource difference calculation on the unprotected resource amount of the business resource set through the target transaction resource set; a generation module, used to generate the unprotected resource amount of the target transaction resource set according to the resource difference calculation result corresponding to the unprotected resource amount of the business resource set; and a transaction module, used to send the unprotected resource amount of the target transaction resource set to the transaction object of the target transaction resource set for transaction processing.
[0007] In one embodiment of the present application, the calculation module is further used to calculate the resource difference between the unprotected resource amount of the business resource set and the unprotected resource amount of the other business resource sets in the target transaction resource set if there are other business resource sets in the target transaction resource set that match the unprotected resource amount of the business resource set.
[0008] In one embodiment of the present application, the number of transaction resource sets includes multiple ones; the generation module is further used to generate the preliminary unprotected resource amount of the target transaction resource set according to the resource difference calculation result of the unprotected resource amount of the business resource set; if the unprotected resource amount of other transaction resource sets matches the preliminary unprotected resource amount of the target transaction resource set, the resource difference calculation is performed between the unprotected resource amount of the other transaction resource sets and the preliminary unprotected resource amount of the target transaction resource set to obtain the unprotected resource amount of the target transaction resource set.
[0009] In one embodiment of the present application, the calculation module is further used to calculate the resource difference between the unprotected resource amount of the business resource set in the target transaction resource set and the unprotected resource amount of other business resource sets included in the other target transaction resource sets when it is determined that there are other business resource sets in other transaction resource sets that match the unprotected resource amount of the business resource set.
[0010] In one embodiment of the present application, the device also includes a selection module, which is used to obtain the transaction resource pair of the business transaction order and the delivery date of the transaction resource pair; determine the transaction attributes of the business resource set based on the transaction resource pair and the delivery date of the transaction resource pair; and select the target transaction resource set from multiple transaction resource sets based on the transaction attributes of the business resource set.
[0011] In one embodiment of the present application, the acquisition module is further used to acquire a first resource conversion ratio corresponding to the business transaction order, and a second resource conversion ratio for sending the unprotected resource amount of the business resource set to the target transaction resource set; and determine the profit and loss of the business resource set based on the fluctuations of the first resource conversion ratio and the second resource conversion ratio, and the transaction volume corresponding to the transaction resource pair.
[0012] In one embodiment of the present application, the calculation module is further used to determine an unprotected resource quantity size threshold and a profit and loss size threshold according to the business configuration of the business resource set; if the profit and loss of the business resource set exceeds the profit and loss size threshold, the unprotected resource quantity of the business resource set is sent to the corresponding target transaction resource set; if the profit and loss of the business resource set does not exceed the profit and loss size threshold, and the unprotected resource quantity of the business resource set exceeds the unprotected resource quantity size threshold, the unprotected resource quantity of the business resource set is sent to the corresponding target transaction resource set.
[0013] In one embodiment of the present application, the device also includes a selection module for obtaining a transaction time window, a delivery amount, and at least one of a transaction method for each transaction object; and selecting a transaction object that meets the target transaction resource set from each transaction object based on the transaction time window, the transaction amount, and at least one of the transaction methods.
[0014] In one embodiment of the present application, the transaction module is further used to determine the profit and loss of the target transaction resource set based on the resource conversion ratio corresponding to the business transaction order and the resource conversion ratio corresponding to the transaction object in the transaction; obtain the current transaction configuration of the transaction object; and send the unprotected resource amount of the target transaction resource set to the transaction object for transaction processing based on the unprotected resource amount of the target transaction resource set, the profit and loss of the target transaction resource set and the current transaction configuration of the transaction object.
[0015] In one embodiment of the present application, each business resource set corresponds to a different owner and transaction resource pair; the writing module is further used to obtain the business owner of the business transaction form and the transaction resource pair of the business transaction form; determine the corresponding business resource set from multiple business resource sets according to the business owner and the transaction resource pair, and write the business transaction form into the determined business resource set.
[0016] In one embodiment of the present application, the writing module is further used to write the business transaction form into the target business resource folder of the corresponding business resource set according to the transaction resource pair and business type of the acquired business transaction form, the business resource set includes multiple business resource folders, different business resource folders correspond to different transaction resource pairs and business types, and the writing module is further used to generate the unprotected resource amount of the target business resource folder according to the business transaction form; if there are other business resource folders in other business resource sets that match the unprotected resource amount of the target business resource folder, then the unprotected resource amount of the target business resource folder contained in the business resource set is calculated with the other business resource folders contained in the other business resource sets; the unprotected resource amount of the business resource set is generated according to the resource difference calculation result corresponding to the unprotected resource amount of the target business resource folder.
[0017] According to one aspect of an embodiment of the present application, there is provided an electronic device, comprising one or more processors; and a storage device for storing one or more computer programs, wherein when the one or more computer programs are executed by the one or more processors, the electronic device implements the transaction processing method as described above.
[0018] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor of an electronic device, the electronic device executes the transaction processing method as described above.
[0019] According to one aspect of an embodiment of the present application, a computer program product is provided, including a computer program, wherein the computer program is stored in a computer-readable storage medium, and a processor of an electronic device reads and executes the computer program from the computer-readable storage medium, so that the electronic device performs the transaction processing method as described above.
[0020] In the technical solution provided in the embodiments of the present application, a resource set is divided into a business resource set and a transaction resource set, the acquired business transaction order is written into the corresponding business resource set, and the unprotected resource amount of the business resource set is generated, and the profit and loss of the business resource set is obtained according to the fluctuation of the resource conversion ratio of the transaction resource pair contained in the business transaction order, and then the unprotected resource amount of the business resource set is sent to the corresponding target transaction resource set according to the profit and loss of the business resource set, so as to realize the resource difference calculation processing of the unprotected resource amount of the business resource set, and generate the unprotected resource amount of the target transaction resource set based on the resource difference calculation result, and finally send the target transaction resource set to the target transaction resource set. The unprotected resource volume is sent to the transaction object of the target transaction resource set for transaction processing, that is, the technical solution of the present application completely distinguishes between business transactions and transaction object transactions, and realizes the refined management of the unprotected resource volume of the business and the unprotected resource volume for transaction processing of the transaction object, that is, based on the profit and loss of the business, the target transaction resource set is used to calculate the resource difference of the business resource set to generate the unprotected resource volume of the transaction resource set. For the transaction object, it is only necessary to partition the transaction resource set. Through the transaction processing of the unprotected resource volume of the transaction resource set, the association between the business and the transaction object is decoupled, and the redundancy of the resource set is reduced.
[0021] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0024] Figure 1 It is an implementation environment involved in this application;
[0025] Figure 2 is a flow chart of a transaction processing method shown in an exemplary embodiment of the present application;
[0026] Figure 3 is a flow chart of another transaction processing method shown in an exemplary embodiment of the present application;
[0027] Figure 4 is a flow chart of another transaction processing method shown in an exemplary embodiment of the present application;
[0028] Figure 5is a flow chart of another transaction processing method shown in an exemplary embodiment of the present application;
[0029] Figure 6 is a flow chart of another transaction processing method shown in an exemplary embodiment of the present application;
[0030] Figure 7 is a flow chart of another transaction processing method shown in an exemplary embodiment of the present application;
[0031] Figure 8 is a flow chart of another transaction processing method shown in an exemplary embodiment of the present application;
[0032] Fig. 9 is a flow chart of another transaction processing method shown in an exemplary embodiment of the present application;
[0033] Fig.10 is a flow chart of another transaction processing method shown in an exemplary embodiment of the present application;
[0034] Fig.11 is a flow chart of another transaction processing method shown in an exemplary embodiment of the present application;
[0035] Fig.12 is a flow chart of a transaction processing method shown in another exemplary embodiment of the present application;
[0036] Fig.13 is a schematic diagram of a resource set type shown in an exemplary embodiment of the present application;
[0037] Fig.14 is a schematic diagram of a resource set relationship shown in an exemplary embodiment of the present application;
[0038] Fig.15 is a flowchart of a transaction processing method shown in another exemplary embodiment of the present application;
[0039] Fig.16 is a schematic diagram of a flow of unprotected resources shown in another exemplary embodiment of the present application;
[0040] Fig.17 is a schematic diagram of transaction details of a transaction processing method shown in another exemplary embodiment of the present application;
[0041] Fig.18 is a structural block diagram of a transaction processing device shown in an exemplary embodiment of the present application;
[0042] Fig.19 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION
[0043] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0044] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0045] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0046] It should also be noted that the "multiple" mentioned in this application refers to two or more than two. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship.
[0047] See also Figure 1 , Figure 1 1 is a schematic diagram of an implementation environment involved in the present application. The implementation environment includes a business party 110, a server 120 and a transaction object 130. The business party 110 and the server 120 communicate with each other through a wired or wireless network, and the server 120 and the transaction object 130 communicate with each other through a wired or wireless network.
[0048] Among them, the business party 110 may include but is not limited to smart phones, tablets, laptops, computers, intelligent voice interaction devices, smart home appliances, terminals used in vehicles, aircraft, etc.
[0049] Server 120 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network) and big data and intelligent platforms. This is not restricted here.
[0050] The transaction object 130 is an institution that implements foreign exchange transactions, such as a bank or an exchange.
[0051] It should be noted that Figure 1 The number of business parties 110 and transaction objects 130 is only illustrative, and any number of terminal devices 110 and transaction objects 130 may be provided according to actual needs.
[0052] In an exemplary embodiment, the business party 110 is used to run a transaction service on the client side, and then the object places an order through the transaction service to generate a business transaction order, wherein the business transaction order includes a transaction resource pair and a transaction volume corresponding to the transaction resource pair, etc., wherein the transaction resource pair includes resources to be converted and resources after conversion.
[0053] The server 120 can obtain the business transaction form through the business party 110, write the business transaction form into the corresponding business resource set according to the business attributes of the obtained business transaction form, and generate the unprotected resource amount of the business resource set according to the business transaction form, wherein different business attributes correspond to different business resource sets; then, obtain the profit and loss of the business resource set according to the fluctuation of the resource conversion ratio of the transaction resource pair of the business transaction form; based on the profit and loss of the business resource set, send the unprotected resource amount of the business resource set to the corresponding target transaction resource set, and calculate the resource difference of the unprotected resource amount of the business resource set through the target transaction resource set, and generate the unprotected resource amount of the target transaction resource set according to the resource difference calculation result corresponding to the unprotected resource amount of the business resource set; finally, send the unprotected resource amount of the target transaction resource set to the transaction object 130 of the target transaction resource set for transaction processing.
[0054] In an exemplary embodiment, the server 120 may also obtain multiple business transaction forms by itself. For example, a service-side transaction service is running on the server, and thus the business transaction form of each business party may be obtained.
[0055] In another exemplary embodiment, the business party 110 may have functions similar to those of the server 120, so as to execute the transaction processing method provided in the embodiment of the present application. Exemplarily, after the business party 110 generates a business transaction form, it writes the business transaction form into the corresponding business resource set based on the business attributes of the business transaction form, and generates the unprotected resource amount of the business resource set, and sends the unprotected resource amount of the business resource set to the corresponding target transaction resource set to perform resource difference calculation, and generates the unprotected resource amount of the target transaction resource set according to the resource difference calculation result corresponding to the unprotected resource amount of the business resource set, and then sends it to the transaction object of the target transaction resource set, and the transaction object performs transaction processing on the unprotected resource amount of the target transaction resource set.
[0056] It should be noted that in the specific implementation of the present application, if the relevant data in the business transaction form, business resource set, and target transaction resource set are object-related, then when the embodiment of the present application is applied to a specific product or technology, it is necessary to obtain the object's permission or consent, and the collection, use and processing of the relevant data need to comply with the relevant regulations and standards of the relevant countries and regions.
[0057] The following is a detailed description of various implementation details of the technical solution of the embodiment of the present application:
[0058] like Figure 2 As shown, Figure 2 is a flowchart of a transaction processing method shown in an embodiment of the present application, which can be applied to Figure 1 In the implementation environment shown, the method can be executed by the server, or can be executed by the business party, the server and the transaction object together. In the embodiment of the present application, the method is described as being executed by the server. The transaction processing method may include steps S210 to S250, which are described in detail as follows:
[0059] S210. Write the business transaction form into a corresponding business resource set according to the business attributes of the acquired business transaction form, and generate an unprotected resource amount of the business resource set according to the business transaction form, wherein different business attributes correspond to different business resource sets.
[0060] In the embodiment of the present application, the business transaction form is a voucher for a business transaction, wherein the business transaction may be any type of business transaction involving resources, such as foreign exchange transactions, storage services, and the like.
[0061] Among them, the business transaction form is generated according to the transaction content, and the business transaction form includes information related to the transaction content. For example, the business transaction form includes a transaction resource pair, and the transaction resource pair includes a resource to be converted and a resource after conversion, that is, the resource to be converted is converted to obtain the converted resource, that is, the transaction resource pair AB, which means that the A resource needs to be converted into the B resource; in some scenarios, the A resource is a product used for commodity exchange in one country, and the B resource is a product used for commodity exchange in another country.
[0062] In an embodiment of the present application, a business transaction order may also include a transaction order number, transaction time, transaction party information, transaction direction of a transaction resource pair, and transaction volume of a transaction resource pair. Among them, the transaction order number is used to uniquely identify the business transaction order; the transaction time is the time when the transaction resource pair is traded; the transaction party information includes the transaction initiator information and the transaction beneficiary information. The transaction initiator information refers to the information of the party that initiated the reservation transaction order, including the identity information and contact information of the initiator; the beneficiary information refers to the information of the party that obtains the resource after the income conversion, including the identity information and contact information of the initiator. The transaction direction of the transaction resource pair includes buying the transaction resource pair and selling the transaction resource pair. The transaction resource pair AB and the transaction resource pair BA are two different transaction directions; the transaction volume of the transaction resource pair refers to the number of transaction resource pairs that need to be traded.
[0063] In an embodiment of the present application, a business resource set is used to undertake a business transaction form, and one business transaction form corresponds to one business resource set, wherein the business resource set is distinguished by the business attributes of the business transaction form, and different business attributes correspond to different business resource sets, wherein the business attributes can characterize the characteristics of the business.
[0064] In an embodiment of the present application, the business attributes of the business transaction form are first obtained. The obtained business transaction form may be one or more. Therefore, the business resource set corresponding to the business transaction form can be found according to the business attributes of the business transaction form, and then the business transaction form is written into the corresponding business resource set.
[0065] Among them, when obtaining a business transaction form, it is necessary to obtain the separate consent of the business party to which the business transaction form belongs. For example, the display interface will display "Confirm whether you agree to the server to obtain relevant information of the business transaction form". The business transaction form will only be obtained when the business party confirms their consent through the control, and the collection, use and processing of relevant information of the business transaction form need to comply with relevant regulations and standards of relevant countries and regions.
[0066] It should be noted that the unprotected resource volume in the embodiment of the present application is the resource volume that is unprotected and has a certain uncertainty, wherein the uncertainty includes the uncertainty of income, the uncertainty of cost or price. In one scenario, the unprotected resource volume is the exposure, which refers to the part where financial uncertainty exists in financial activities and the degree to which it is affected by financial uncertainty. For financial assets with large exposure, the uncertainty may not be very high. Since the business transaction form is generated based on the transaction content, and the transaction content contains the corresponding uncertainty of income, cost or price, the unprotected resource volume of the business resource set can be generated according to the transaction content of the business transaction form.
[0067] In an example, the unprotected resource amount of the service transaction list may be used as the unprotected resource amount of the service resource set.
[0068] S220. Obtain the profit and loss of the business resource set according to the fluctuation of the resource conversion ratio of the transaction resource pair of the business transaction order.
[0069] In an embodiment of the present application, the business transaction form also includes a resource conversion ratio corresponding to the transaction resource pair, and the resource conversion ratio is used to determine how many B resources can be converted from one A resource to be converted when performing resource conversion.
[0070] It is understandable that the resource conversion ratio varies according to different transaction resource pairs, for example, the resource conversion ratios corresponding to transaction resource pair AB and transaction resource pair CD are different. In the embodiment of the present application, the resource conversion ratio may change with time. For example, for transaction resource pair AB, the transaction resource conversion ratios at time t1 and time t2 may be different or the same, so the fluctuation of the resource conversion ratio of the transaction resource pair of the business transaction order can be obtained, and then the profit and loss of the business resource set can be obtained through the fluctuation of the resource conversion ratio.
[0071] S230: Send the unprotected resource amount of the business resource set to the corresponding target transaction resource set according to the profit or loss of the business resource set, and calculate the resource difference of the unprotected resource amount of the business resource set through the target transaction resource set.
[0072] In the embodiment of the present application, a plurality of transaction resource sets are stored in the server, wherein in some scenarios, the transaction resource set can be used as a hedging resource set, and hedging is to simultaneously conduct two transactions with related market conditions, opposite directions, equivalent quantities, and offsetting profits and losses. The transaction resource set is used to undertake the unprotected resource volume of the business resource set, and perform resource difference calculation on the unprotected resource volume of the business resource set. The resource difference calculation is the difference, such as offsetting the two unprotected resource volumes by transactions.
[0073] In an embodiment of the present application, different business resource sets may correspond to different transaction resource sets, so it is necessary to first determine the target transaction resource set corresponding to the business resource set, wherein the correspondence between the business resource set and the transaction resource set can be determined in advance, for example, a transaction resource pair corresponds to a transaction resource set, so the target transaction resource set can be determined based on the transaction resource pair corresponding to the business resource set.
[0074] The business resource set is also stored in the server, and the server internally forwards the unprotected resource amount of the business resource set to the corresponding target transaction resource set. The target transaction resource set can be used to calculate the resource difference between the unprotected resource amount of the business resource set and the unprotected resource amount of other resource sets. For example, there may be multiple transactions with the same resources but opposite directions between other resource sets and the business resource set. Therefore, the unprotected resource amounts of each party can be offset within equal amounts to calculate the resource difference.
[0075] In an embodiment of the present application, after obtaining the profit and loss of a business resource set, the unprotected resource amount of the business resource set is sent to the corresponding target transaction resource set based on the profit and loss of the business resource set, wherein a transaction strategy for the business resource set can be determined based on the profit and loss of the business resource set, and whether to send the unprotected resource amount of the business resource set to the target transaction resource set is determined based on the transaction strategy, wherein the transaction strategy is pre-set by the server, and the sending time, sending method, etc. of sending the unprotected resource amount of the business resource set can be determined based on the transaction strategy.
[0076] In one embodiment, the unprotected resource amount of the business resource set can also be sent to the corresponding target transaction resource set based on the unprotected resource amount of the business resource set and the profit and loss of the business resource set, that is, the corresponding transaction strategy is determined based on the size of the unprotected resource amount and the size of the profit and loss.
[0077] It is understandable that different business resource sets correspond to different transaction strategies, which can be flexibly adjusted according to actual conditions.
[0078] S240: Generate the unprotected resource amount of the target transaction resource set according to the resource difference calculation result corresponding to the unprotected resource amount of the business resource set.
[0079] In an embodiment of the present application, a resource difference calculation is performed on the unprotected resource amount of the business resource set through the target transaction resource set, and a resource difference calculation result can be obtained. The resource difference calculation result includes successful transaction offset or successful transaction offset. If the transaction offset is unsuccessful, the unprotected resource amount of the target transaction resource set is the unprotected resource amount of the business resource set; if the transaction offset is successful, the unprotected resource amount of the target transaction resource set is the unprotected resource amount that remains unoffset after the resource difference calculation.
[0080] S250: Send the unprotected resource quantity of the target transaction resource set to the transaction object of the target transaction resource set for transaction processing.
[0081] In an embodiment of the present application, the server does not have the ability to process transactions. After generating the unprotected resource volume of the target transaction resource set, the unprotected resource volume of the target impact resource set needs to be sent to the corresponding transaction object, and the transaction object will perform transaction processing on the unprotected resource volume of the target transaction resource set, such as performing transaction closing processing.
[0082] In one example, the unprotected resource volume of the target transaction resource set is sent to the corresponding transaction object. It can be sent directly after the unprotected resource volume of the target transaction resource set is generated, or it can be sent after certain conditions are met, such as after the size of the unprotected resource volume meets a preset unprotected resource volume threshold, which is not limited here.
[0083] In the technical solution provided in the embodiments of the present application, a resource set is divided into a business resource set and a transaction resource set, the acquired business transaction order is written into the corresponding business resource set, and the unprotected resource amount of the business resource set is generated, and the profit and loss of the business resource set is obtained according to the fluctuation of the resource conversion ratio of the transaction resource pair contained in the business transaction order, and then the unprotected resource amount of the business resource set is sent to the corresponding target transaction resource set according to the profit and loss of the business resource set, so as to realize the resource difference calculation processing of the unprotected resource amount of the business resource set, and generate the unprotected resource amount of the target transaction resource set based on the resource difference calculation result, and finally send the target transaction resource set to the target transaction resource set. The unprotected resource volume of the easy resource set is sent to the transaction object of the target transaction resource set for transaction processing, that is, the technical solution of the present application completely distinguishes between business transactions and transaction object transactions, and realizes the refined management of the unprotected resource volume of the business and the unprotected resource volume for transaction processing of the transaction object. The resource difference calculation and processing of the business resource set is performed through the target transaction resource set to generate the unprotected resource volume of the transaction resource set. For the transaction object, it is only necessary to partition the transaction resource set. Through the transaction processing of the unprotected resource volume of the transaction resource set, the association between the business and the transaction object is decoupled, and the redundancy of the resource set is reduced.
[0084] In one embodiment of the present application, another transaction processing method is provided, which can be applied to Figure 1 In the implementation environment shown, the method can be executed by the server, or can be executed by the business party, the server and the transaction object together. In the embodiment of the present application, the method is described as being executed by the server. Figure 3 As shown, the transaction processing method is Figure 2 Based on the shown Figure 2As shown in FIG. 1 , S230 is expanded into steps S310 to S320, and steps S310 to S320 are described in detail as follows:
[0085] S310: Send the unprotected resource amount of the business resource set to the corresponding target transaction resource set according to the profit or loss of the business resource set.
[0086] S320: If there are other business resource sets in the target transaction resource set that match the unprotected resource amount of the business resource set, calculate the resource difference between the unprotected resource amount of the business resource set and the unprotected resource amount of the other business resource sets in the target transaction resource set.
[0087] It can be understood that the target transaction resource set can accommodate the unprotected resource amounts of multiple business resource sets. Therefore, after the unprotected resource amounts of a business resource set are sent to the corresponding target transaction resource set, the target transaction resource set may also store the unprotected resource amounts of other business resource sets. Since the resource difference calculation action requires two parties to perform, the unprotected resource amounts of the business resource set can be matched with other business resources in the target transaction resource set. Matching means that the transaction resource pairs of other business resources and the business resource set are the same, but the transaction directions are opposite. If there are other matching business resource sets, the unprotected resource amounts of the business resource set and the unprotected resource amounts of other business resource sets can be used for resource difference calculation processing.
[0088] For example, the target transaction resource set includes the unprotected resource amount x of business resource set 1 and the unprotected resource amount y of business resource set 2, and the transaction resource pair of business resource set 1 is AB, and the transaction resource pair of business resource set 2 is BA, and the transaction directions of the two are opposite, then in the target transaction resource set, the resource difference between the unprotected resource amount x and the unprotected resource amount y is calculated, that is, xy.
[0089] It should be noted that Figure 3 For other detailed descriptions of steps S210 to S220 and S240 to S250 shown in Figure 2 The steps S210 to S220 and S240 to S250 shown are not described in detail here.
[0090] In the embodiment of the present application, a transaction resource set can take over the unprotected resource amounts of multiple business resource sets, and then the resource difference calculation and processing can be performed on the unprotected resource amounts of two matching business resource sets in the transaction resource set to realize internal transactions, thereby reducing resource occupancy as much as possible while ensuring liquidity and avoiding idle resource waste.
[0091] The present application embodiment provides another transaction processing method, which can be applied to Figure 1In the implementation environment shown, the method can be executed by the server, or can be executed by the business party, the server and the transaction object together. In the embodiment of the present application, the method is described as being executed by the server. Figure 4 As shown, the transaction processing method will Figure 3 S240 is expanded to S410-S420. The number of transaction resource sets in the server includes multiple, and steps S410-S420 are described in detail as follows:
[0092] S410: Generate a preliminary unprotected resource amount of a target transaction resource set according to a resource difference calculation result of an unprotected resource amount of a business resource set.
[0093] In an embodiment of the present application, the unprotected resource amount of the business resource set and the unprotected resource amounts of other business resource sets in the target transaction resource set are subjected to resource difference calculation processing, and the remaining unoffset unprotected resource amount is the initial unprotected resource amount of the target transaction resource set. Continuing with the above example, the unprotected resource amount of the target transaction resource set is (xy).
[0094] S420. If the unprotected resource amount of other trading resource sets matches the preliminary unprotected resource amount of the target trading resource set, a resource difference calculation is performed between the unprotected resource amount of other trading resource sets and the preliminary unprotected resource amount of the target trading resource set to obtain the unprotected resource amount of the target trading resource set.
[0095] It should be noted that in the embodiment of the present application, in addition to the resource difference calculation between business resource sets, the resource difference calculation can also be performed between transaction resource sets. Therefore, the server can also match other transaction resource sets with the target transaction resource set. If the transaction resource pairs of the unprotected resource amount of other transaction resource sets and the preliminary unprotected resource amount of the target transaction resource set are the same, but the transaction directions are opposite, then the resource difference calculation is performed between the unprotected resource amount of other transaction resource sets and the preliminary unprotected resource amount of the target transaction resource set. For example, if the unprotected resource amount of other transaction resource sets is z, after the resource difference calculation is performed with the preliminary unprotected resource amount of the target transaction resource set, the unprotected resource amount of the target transaction resource set is (xyz).
[0096] In one example, the server may match the preliminary unprotected resource amounts of the target trading resource set with other trading resource sets one by one. If there is a match, the unprotected resource amounts of other trading resource sets are internally forwarded to the target trading resource set, and the resource difference calculation is performed in the target trading resource set.
[0097] In one example, after the preliminary unprotected resource amount of the target trading resource set is matched one by one with other trading resource sets, if they match, the unprotected resource amount of other trading resource sets and the unprotected resource amount of the target trading resource set can also be compared. If the unprotected resource amount of the target trading resource set is larger than the unprotected resource amount of other trading resource sets, the resource difference calculation is performed in the target trading resource set; if the unprotected resource amount of the target trading resource set is smaller than the unprotected resource amount of other trading resource sets, the unprotected resource amount of the target trading resource set is sent to other trading resource sets, and then the resource difference calculation is performed in the other trading resource sets. At this time, since the unprotected resource amount of the target trading resource set can be completely offset, the unprotected resource amount of the target trading resource set is 0, and the remaining unprotected resource amount of other trading resource sets after offset needs to be sent to the trading objects corresponding to the other trading resource sets for trading processing.
[0098] It should be noted that Figure 4 For a detailed description of steps S210 to S220, S310 to S320, and S250, see Figure 3 The steps S210 to S220, S310 to S320, and S250 shown are not repeated here.
[0099] In the embodiment of the present application, a preliminary unprotected resource amount of a target transaction resource set is generated through the resource difference calculation result of the unprotected resource amount of a business resource set, and then the preliminary unprotected resource amount is processed with the unprotected resource amounts that match other transaction resource sets through resource difference calculation. This can not only realize the resource difference calculation between business resource sets, but also realize the resource difference calculation between transaction resource sets, thereby reducing resource occupation as much as possible while ensuring liquidity, and further avoiding idle resources and waste.
[0100] The present application also provides another transaction processing method, which can be applied to Figure 1 In the implementation environment shown, the method can be executed by the server, or can be executed by the business party, the server and the transaction object together. In the embodiment of the present application, the method is described as being executed by the server. Figure 5 As shown, the transaction processing method is Figure 2 Based on the above, S230 is expanded into steps S510 to S520. Steps S510 to S520 are described in detail as follows:
[0101] S510: Send the unprotected resource amount of the business resource set to the corresponding target transaction resource set according to the profit or loss of the business resource set.
[0102] S520. If there are no other business resource sets in the target transaction resource set that match the unprotected resource amount of the business resource set, when it is determined that there are other business resource sets in other transaction resource sets that match the unprotected resource amount of the business resource set, the resource difference between the unprotected resource amount of the business resource set in the target transaction resource set and the unprotected resource amount of other business resource sets included in the other target transaction resource sets is calculated.
[0103] In an embodiment of the present application, if there are no other business resource sets in the target transaction resource set that match the unprotected resource amount of the business resource set, it means that internal resource difference calculation cannot be performed in the target transaction resource set. Since there are multiple transaction resource sets, it is necessary to determine whether there are other business resource sets in other transaction resources that match the unprotected resource amount of the business resource set. If so, it means that resource difference calculation processing can be performed between transaction resource sets, that is, the unprotected resource amount of the business resource set in the target transaction resource set and the unprotected resource amount of other business resource sets included in other target transaction resource sets are calculated and processed to reduce resource occupation as much as possible while ensuring liquidity and avoid idle resource waste.
[0104] It should be noted that Figure 5 For other detailed descriptions of steps S210 to S220 and S240 to S250 shown in Figure 2 Steps S210-S220, S240-S250 shown in FIG. 1 are not described in detail here.
[0105] The present application also provides another transaction processing method, which can be applied to Figure 1 In the implementation environment shown, the method can be executed by the server, or can be executed by the business party, the server and the transaction object together. In the embodiment of the present application, the method is described as being executed by the server. Figure 6 As shown, the transaction processing method is Figure 2 Based on the above, steps S610 to S630 are added before S230, i.e., the process of selecting the target transaction resource set. Steps S610 to S630 are described in detail as follows:
[0106] S610: Obtain the transaction resource pair and the settlement date of the transaction resource pair of the business transaction order.
[0107] As mentioned above, the business transaction form is generated based on the transaction content. In order to successfully conduct the transaction, the transaction content includes the transaction resource pair and the delivery date of the transaction resource pair. Therefore, the transaction resource pair and the delivery date of the transaction resource pair can be extracted from the business transaction form.
[0108] S620: Determine the transaction attribute of the business resource set according to the transaction resource pair and the settlement date of the transaction resource pair.
[0109] In an embodiment of the present application, since the business transaction form is written into the business resource set, the transaction attribute of the business resource set can be determined based on the transaction resource pair and the delivery date of the transaction resource pair. The transaction attribute refers to the transaction nature of the business resource set, including emergency transactions, non-emergency transactions, major transactions and minor transactions; wherein, the closer the delivery date of the transaction resource pair is to the current date, the more urgent the transaction is. In one example, the time from the transaction date to the current date can be compared with a preset time threshold. If the time from the transaction date to the current date is greater than the preset time threshold, the transaction attribute of the business resource set is a non-emergency transaction; if the time from the transaction date to the current date is less than or equal to the preset time threshold, the transaction attribute of the business resource set is an emergency transaction.
[0110] In an embodiment of the present application, whether the transaction attribute of the business resource set is a primary transaction or a secondary transaction is determined according to the type of the transaction resource pair. For example, if the transaction resource pair includes at least one of the euro, pound sterling and dollar, the transaction attribute of the business resource set is a primary transaction, and other types of resources are secondary transactions.
[0111] S630: Select a target transaction resource set from multiple transaction resource sets according to the transaction attributes of the business resource set.
[0112] The server pre-sets the association relationship between various transaction attributes of the resource set and the transaction resource set, as shown in Table 1 below. Table 1 is an exemplary association relationship table between business attributes and transaction resource sets provided in an embodiment of the present application.
[0113] Business attributes Trading Resource Set urgent Trading Resource Set 1 main Trading Resource Set 2 Non-urgent or minor Trading Resource Set 3
[0114] Table 1
[0115] Therefore, after determining the transaction attribute of the business resource set, one is selected from multiple transaction resource sets as a target transaction resource set based on the preset association relationship. For example, if the business attribute of the business resource set is emergency, then transaction resource set 1 is determined as the target transaction resource set.
[0116] It should be noted that Figure 6 For more detailed description of steps S210 to S250 shown in Figure 2 Steps S210 to S250 are shown and will not be described in detail here.
[0117] In the embodiment of the present application, the transaction attributes of the business resource set are determined through the transaction resource pairs and corresponding delivery dates of the business transaction orders, and then a target transaction resource set is selected from multiple transaction resource sets to ensure that the target transaction resource set conforms to the business resource set.
[0118] The present application also provides another transaction processing method, which can be applied to Figure 1 In the implementation environment shown, the method can be executed by the server, or can be executed by the business party, the server and the transaction object together. In the embodiment of the present application, the method is described as being executed by the server. Figure 7 As shown, the transaction processing method is Figure 2 Based on the information shown in , S220 is expanded into steps S710 to S720; steps S710 to S720 are described in detail as follows:
[0119] S710: Acquire a first resource conversion ratio corresponding to the service transaction order, and a second resource conversion ratio for sending the unprotected resource amount of the service resource set to the target transaction resource set.
[0120] In an embodiment of the present application, the first resource conversion ratio corresponding to the business transaction order refers to the resource conversion ratio of the transaction resource pair quoted by the server to the business party to which the business transaction order belongs, and the second resource conversion ratio refers to the resource conversion ratio of the unprotected resource volume of the business resource set that the server wants to forward to the target transaction resource set. For example, after obtaining the business transaction order, the server can give the resource conversion ratio x1 of the transaction resource pair CD quoted to the business party. When the server wants to forward the unprotected resource volume of the business resource set to the target transaction resource set, due to the different time points of obtaining the business transaction order and forwarding, the resource conversion ratio of CD has changed due to the change in time. At this time, the resource conversion ratio is x2.
[0121] In one example, the first resource conversion ratio and the second resource conversion ratio can be obtained from a professional financial institution at a specific time point, or can be a ratio that the service provider itself can provide.
[0122] S720: Determine the profit or loss of the business resource set according to the fluctuations of the first resource conversion ratio and the second resource conversion ratio, and the transaction volume corresponding to the transaction resource pair.
[0123] In an embodiment of the present application, the difference between the first resource conversion ratio and the second resource conversion ratio can be calculated, and the profit and loss of the business resource set can be obtained by multiplying the difference in resource conversion ratios by the transaction volume corresponding to the transaction resource pair. The profit and loss of the business resource set is the price difference between the server and the business party, and the profit and loss caused by the server to the business party.
[0124] It should be noted that Figure 7 For other detailed descriptions of steps S210, S230 to S250 shown in Figure 2 Steps S210, S230-S250 shown in FIG. 1 are not described in detail here.
[0125] In the embodiment of the present application, a trading strategy can be implemented based on the profit and loss of a specific business by quantifying the specific profit and loss of the business resource set through the first resource conversion ratio corresponding to the business transaction order, the second resource conversion ratio for sending the unprotected resource amount of the business resource set to the target transaction resource set, and the transaction volume of the transaction resource pair.
[0126] The present application embodiment provides another transaction processing method, which can be applied to Figure 1 In the implementation environment shown, the method can be executed by the server, or can be executed by the business party, the server and the transaction object together. In the embodiment of the present application, the method is described as being executed by the server. Figure 8 As shown, the transaction processing method is Figure 2 Based on the above, S230 is expanded into steps S810 to S830. Steps S810 to S830 are described in detail as follows:
[0127] S810: Determine an unprotected resource amount threshold and a profit and loss threshold according to a service configuration of a service resource set.
[0128] In an embodiment of the present application, the business configuration of a business resource set refers to a set of predefined configuration options that affect the functions and behaviors of the business resource set. The business configuration of the business resource set corresponds to an unprotected resource quantity threshold and a profit and loss threshold. Different business resource sets have different characteristics and thus have corresponding different business configurations. Therefore, based on the business configuration of the business resource set, the unprotected resource quantity threshold and the profit and loss threshold corresponding to the business resource set can be determined, wherein the unprotected resource quantity threshold refers to the maximum unprotected resource quantity uncertainty that the business resource set can bear; the profit and loss threshold refers to the maximum profit and loss that the business resource set can bear.
[0129] S820: If the profit or loss of the business resource set exceeds the profit or loss threshold, the unprotected resource amount of the business resource set is sent to the corresponding target transaction resource set.
[0130] In an embodiment of the present application, if the profit or loss of a business resource set exceeds the profit or loss greater than a threshold, it means that the business resource set has exceeded the maximum profit or loss it can bear and can no longer withstand any uncertainty. The unprotected resource amount of the business resource set needs to be sent to the corresponding target transaction resource set. Even if the transaction conditions of the business transaction order are not met, such as the second resource conversion ratio does not reach the reference resource conversion ratio of the transaction resource pair, the unprotected resource amount of the business resource set will be sent to the corresponding target transaction resource set.
[0131] S830: If the profit or loss of the business resource set does not exceed the profit or loss size threshold, and the unprotected resource amount of the business resource set exceeds the unprotected resource amount size threshold, the unprotected resource amount of the business resource set is sent to the corresponding target transaction resource set.
[0132] In an embodiment of the present application, when the profit or loss of a business resource set does not exceed the profit or loss greater than a threshold, the size of the unprotected resource amount of the business resource set must also be determined. When the unprotected resource amount of the business resource set exceeds the unprotected resource amount size threshold, it means that the maximum unprotected resource amount uncertainty that the business resource set can bear has been exceeded, and the unprotected resource amount of the business resource set needs to be sent to the target transaction resource set corresponding to the receipt for resource difference calculation processing.
[0133] If the amount of unprotected resources in the business resource set does not exceed the unprotected resource amount greater than the threshold, and the profit or loss of the business resource set does not exceed the profit or loss size threshold, you can continue to wait, such as waiting for the second resource conversion ratio to reach the reference resource conversion ratio of the transaction resource pair, or for example waiting to receive instructions from the corresponding business party before sending the unprotected resource amount of the business resource set to the target transaction resource set.
[0134] It should be noted that Figure 8 For a detailed description of steps S210 to S220 and S240 to S250 shown in Figure 2 Steps S210-S220, S240-S250 shown in FIG. 1 are not described in detail here.
[0135] In an embodiment of the present application, the unprotected resource amount threshold and the profit and loss threshold are determined through the business configuration of the business resource set, and then the unprotected resource amount and the profit and loss of the business resource set are compared accordingly to determine whether to send the unprotected resource amount of the business resource set to the transaction resource set. While meeting business needs, transaction strategies can be implemented based on the unprotected resource amount and profit and loss of specific businesses.
[0136] It is worth noting that the present application embodiment provides another transaction processing method, which can be applied to Figure 1 In the implementation environment shown, the method can be executed by the server, or can be executed by the business party, the server and the transaction object together. In the embodiment of the present application, the method is described as being executed by the server. Fig. 9 As shown, the transaction processing method is Figure 2 Based on the above, steps S910 to S920 are added before S250. Steps S910 to S920 are described in detail as follows:
[0137] S910: Obtain at least one of a transaction time window, a delivery amount, and a transaction method for each transaction object.
[0138] In the embodiment of the present application, different transaction objects have different transaction time windows, transaction amounts and transaction methods, where the transaction time window refers to the time at which the transaction is conducted, for example, trading resource pair AB at 3 pm every day; the transaction amount refers to the maximum amount that can be traded; and the transaction methods include streaming transactions, inquiry transactions, etc.
[0139] S920: Select a transaction object that meets the target transaction resource set from various transaction objects according to at least one of a transaction time window, a transaction amount, and a transaction method.
[0140] In an embodiment of the present application, a transaction object that meets the target transaction resource set can be selected from multiple transaction objects, wherein the target transaction resource set corresponds to a transaction strategy, which includes an expected transaction time window, an expected transaction amount, and an expected transaction method. By comparing the transaction time window, transaction amount, and transaction method of each transaction object with the expected transaction time window, expected transaction amount, and expected transaction method, the transaction object that best meets the target transaction resource set is selected.
[0141] In one example, among the transaction time window, transaction amount and transaction method, it is preferred to select the transaction object whose transaction amount meets the expected transaction amount. If it meets the expected transaction amount, the transaction object whose transaction time window meets the expected transaction amount is selected next. For example, the expected transaction time of the target transaction resource set is 3 pm, the expected transaction amount is 10 million, and the expected transaction method is streaming transaction. Assuming that there are transaction objects 1, 2, and 3, their transaction time windows for transaction resource pair AB are 2 pm, 3 pm and 3 pm respectively, the transaction amounts are 10 million, 50 million and 15 million respectively, and the transaction methods are supporting streaming transaction, not supporting streaming transaction, and supporting streaming transaction respectively; then it is preferred to select transaction objects 1 and 3 that meet the expected transaction amount, and the transaction time window of transaction object 3 meets the expected transaction time, then transaction object 3 is selected as the transaction object that meets the target transaction resource set.
[0142] In one example, the time of transaction object 1 and transaction object 3 do not meet the expected transaction time. For example, the transaction time of transaction object 3 is 4 pm, then the transaction object with a transaction time earlier than the expected transaction time is preferentially selected, that is, transaction object 1 is selected as the transaction object that meets the target transaction resource set.
[0143] It should be noted that Fig. 9 For a detailed description of steps S210 to S250, see Figure 2 Steps S210 to S250 shown in FIG. 1 are not described in detail here.
[0144] In an embodiment of the present application, based on the transaction time window of each transaction object, at least one of the delivery amount and transaction method is selected from each transaction object that meets the target transaction resource set, so as to meet the transaction needs and implement diversified transaction strategies based on different delivery amounts and delivery times.
[0145] It is worth noting that the present application embodiment provides another transaction processing method, which can be applied to Figure 1 In the implementation environment shown, the method can be executed by the server, or can be executed by the business party, the server and the transaction object together. In the embodiment of the present application, the method is described as being executed by the server. Fig.10 As shown, the transaction processing method is Figure 2 Based on the above, S250 is expanded into steps S1010 to S1030. Steps S1010 to S1030 are described in detail as follows:
[0146] S1010: Determine the profit or loss of the target transaction resource set according to the resource conversion ratio corresponding to the business transaction order and the resource conversion ratio corresponding to the transaction object in the transaction.
[0147] In an embodiment of the present application, the resource conversion ratio corresponding to a business transaction order refers to the resource conversion ratio of the transaction resource pair quoted by the server to the business party to which the business transaction order belongs, that is, the resource conversion ratio currently given by the server to the business party after the unprotected resource amount of the business resources is sent to the target transaction resource set; the resource conversion ratio corresponding to the transaction object in the transaction transaction refers to the current transaction resource conversion ratio of the transaction object for the transaction resource pair.
[0148] The profit and loss of the target transaction resource set can be calculated through the resource conversion ratio corresponding to the business transaction order, the resource conversion ratio corresponding to the transaction object in the transaction, and the transaction volume corresponding to the transaction resource pair. The profit and loss of the target transaction resource set is the price difference between the transaction object and the server, which is the profit and loss caused by the transaction price of the transaction object and the price given by the server.
[0149] S1020. Obtain the current transaction configuration of the transaction object.
[0150] In an embodiment of the present application, the current transaction configuration of the transaction object refers to the configuration of whether the transaction object supports transactions for the target transaction resource set, such as the remaining transaction amount of the transaction object for the target transaction resource set; the transaction object can perform transactions on the unprotected resource amounts of multiple transaction resource sets, and the current transaction configuration of the transaction object may also include the transaction time set by the transaction object for the target transaction resource set.
[0151] S1030. According to the unprotected resource quantity of the target transaction resource set, the profit and loss of the target transaction resource set, and the current transaction configuration of the transaction object, the unprotected resource quantity of the target transaction resource set is sent to the transaction object for transaction processing.
[0152] In the embodiment of the present application, the trading strategy for the target trading resource set is determined according to the unprotected resource amount of the target trading resource set, the profit and loss of the target trading resource set, and the current trading configuration of the trading object, and whether to send the target trading resource set to the trading object for processing is determined based on the trading strategy. The trading strategy for the target trading resource set is set by the server, and different trading resource sets have different trading strategies.
[0153] In one example, the trading strategy for the target trading resource set includes an unprotected resource quantity size threshold and a profit and loss size threshold of the target trading resource set. If the unprotected resource quantity of the target trading resource set exceeds the unprotected resource quantity size threshold, and / or the profit and loss of the target trading resource set exceeds the profit and loss size threshold, then it is determined whether the current configuration of the trading object supports trading of the unprotected resource quantity of the target trading resource set. If the current configuration of the trading object supports it, the unprotected resource quantity of the target trading resource set is sent to the trading object.
[0154] If the unprotected resource volume of the target transaction resource set does not exceed the unprotected resource volume size threshold, and the profit and loss of the target transaction resource set does not exceed the profit and loss size threshold, or the current configuration of the transaction object does not support transaction processing, continue waiting.
[0155] It should be noted that Fig.10 For a detailed description of steps S210 to S240 shown in Figure 2 Steps S210 to S240 shown in FIG. 1 are not described in detail here.
[0156] The embodiment of the present application realizes accurate identification of the profit and loss of specific transaction objects in platform transactions. According to the unprotected resource amount of the target transaction resource set, the profit and loss of the target transaction resource set and the current transaction configuration of the transaction object, the unprotected resource amount of the target transaction resource set is sent to the transaction object for transaction processing, thereby refining the management of the unprotected resource amount.
[0157] It is worth noting that the present application embodiment provides another transaction processing method, which can be applied to Figure 1 In the implementation environment shown, the method can be executed by the server, or can be executed by the business party, the server and the transaction object together. In the embodiment of the present application, the method is described as being executed by the server. Fig.11 As shown, the transaction processing method is Figure 2Based on the example shown in , S210 is expanded into steps S1110 to S1120. Each business resource set corresponds to a different owner and transaction resource pair. Steps S1110 to S1120 are described in detail as follows:
[0158] S1110. Obtain the owner of the business transaction form and the transaction resource pair of the business transaction form.
[0159] S1120: Determine a corresponding business resource set from multiple business resource sets according to the owner and the transaction resource pair, write the business transaction sheet into the determined business resource set, and generate an unprotected resource amount of the business resource set according to the business transaction sheet.
[0160] In an embodiment of the present application, an association relationship between a business owner, a transaction resource pair, and a business resource set is set in the server. Since the business transaction form is generated based on the transaction content, and the transaction content includes the transaction owner and the transaction resource pair, the business owner and the transaction resource pair can be extracted from the business transaction form, and the extracted business owner and the transaction resource pair can be compared with the established association relationship, thereby determining the corresponding business resource set from multiple business resource sets.
[0161] In one example, if the business party and the transaction resource pair completely match the established association relationship, the corresponding business resource set is determined; if the business party and the transaction resource pair do not completely match the established association relationship, if the established association relationship includes the association relationship of business party A-transaction resource pair AB-business resource set 1, the business party A-transaction resource pair CD of the business transaction form is obtained, and the corresponding business resource set cannot be determined at this time. A new business resource set can be created in the server, and a new association relationship of business resource party A-transaction resource pair CD-new business resource set is established, and the business transaction form is written into the new business resource set.
[0162] In one example, if the business party and the transaction resource pair do not fully match the established association relationship, only the transaction resource pair matches. Continuing with the above example, if the business party B-transaction resource pair AB of the business transaction order is obtained, the business transaction order can be written into the business resource set 1 corresponding to the transaction resource pair AB.
[0163] It should be noted that Fig.11 For a detailed description of steps S220 to S250 shown in Figure 2 Steps S220 to S250 shown in FIG. 1 are not described in detail here.
[0164] In an embodiment of the present application, a corresponding business resource set is determined from multiple business resource sets according to the party and the transaction resource pair, and a business transaction form is written into the determined business resource set, so that different business transaction forms are written into the corresponding business resource set.
[0165] It is worth noting that the present application embodiment provides another transaction processing method, which can be applied to Figure 1 In the implementation environment shown, the method can be executed by the server, or can be executed by the business party, the server and the transaction object together. In the embodiment of the present application, the method is described as being executed by the server. Figures 2 to 11 Based on the example shown in FIG. 1 , S210 is expanded to steps S1210 to S1240. Fig.12 As shown, here we use Figure 2 Based on the above, the following description is given by taking steps S1210 to S1240 as an example. Steps S1210 to S1240 are described in detail as follows:
[0166] S1210. According to the acquired transaction resource pair and business type of the business transaction sheet, write the business transaction sheet into a target business resource folder of a corresponding business resource set. The business resource set includes multiple business resource folders. Different business resource folders correspond to different transaction resource pairs and business types.
[0167] In an embodiment of the present application, the server further provides multiple business resource folders under the business resource set, and different business resource folders correspond to different transaction resource pairs and business types, that is, transaction resource pairs and business types are used as distinguishing dimensions in the business resource set.
[0168] In an embodiment of the present application, the business attributes of a business transaction form include a transaction resource pair and a business type, and the business type includes cross-border acquiring business, foreign exchange transaction business, etc. The business attributes also include the business owner. The corresponding business resource set can be selected from multiple business resource sets based on the business owner and the transaction resource pair, and then based on the business resource pair and the business type, a target business resource folder is selected from the business resource set including multiple business resource folders, and then the business transaction form is written into the target business resource folder.
[0169] S1220. Generate the unprotected resource amount of the target business resource folder according to the business transaction order.
[0170] The server may use the unprotected resource volume of the business transaction sheet as the unprotected resource volume of the target business resource folder.
[0171] S1230. If there are other business resource folders in the other business resource sets that match the unprotected resource amount of the target business resource folder, calculate the resource difference between the unprotected resource amount of the target business resource folder included in the business resource set and the other business resource folders included in the other business resource sets.
[0172] In an embodiment of the present application, resource difference calculation processing can be performed at the resource set level, that is, taking the business resource set as a unit, if there are other business resource folders in other business resource sets that match the unprotected resource amount of the target business resource folder included in the business resource set and the resource difference calculation can be performed on the unprotected resource amount of the target business resource folder included in the business resource set and the other business resource folders included in the other business resource sets.
[0173] It should be noted that multiple business resource folders under the same business resource set correspond to different transaction resource pairs, so resource difference calculation cannot be performed.
[0174] S1240: Generate the unprotected resource amount of the service resource set according to the resource difference calculation result corresponding to the unprotected resource amount of the target service resource folder.
[0175] In the embodiment of the present application, the unprotected resource amount of the service resource set is the unprotected resource amount of the target service resource set that remains unoffset after the resource difference calculation of the unprotected resource amount of the target service resource set.
[0176] It should be noted that Fig.12 For a detailed description of steps S220 to S250 shown in Figure 2 Steps S220 to S250 shown in FIG. 1 are not described in detail here.
[0177] In an embodiment of the present application, the business resource set is expanded into a two-layer result of a business resource folder and a business resource set. Different business resource folders correspond to different transaction resource pairs and business types. In the dimension of the business resource set, it is possible to quickly check whether there is a matching amount of unprotected resources, and then calculate the resource difference of the unprotected resource amount of the business resource folder.
[0178] For ease of understanding, the transaction processing method provided in the embodiment of the present application is described below, wherein the transaction processing method involves foreign exchange transactions, such as Fig.13 As shown, Fig.13 A schematic diagram of a resource set type provided in an embodiment of the present application, which divides the resource set type into a business resource set and a transaction resource set. Fig.14 As shown, Fig.14A schematic diagram of a resource set relationship provided for an embodiment of the present application; including business resource sets 1 to 3, which are used to undertake business transaction orders, and the business transaction orders fall into the corresponding business resource sets; also including transaction resource sets 1 to 2, which are used to realize resource difference calculation between different businesses, that is, the business resource set can initiate internal transactions to the transaction resource set to internally forward the unprotected resource amounts of different business resource sets to the corresponding transaction resource set, for example, business resource set 2 and business resource set 3, send their respective unprotected resource amounts to transaction resource set 2, and transaction resource set 2 performs resource difference calculation processing between the unprotected resource amounts of business resource set 2 and business resource set 3.
[0179] In an embodiment of the present application, resource difference calculation processing can also be performed before trading resource sets. For example, after trading resource set 2 performs resource difference calculation processing between the unprotected resource amounts of business resource set 2 and business resource set 3, the unprotected resource amount of trading resource set 2 is generated, and the resource difference calculation is performed with the unprotected resource amount of trading resource set 1. Finally, the remaining unprotected resource amount of trading resource set 1 that cannot be calculated for resource difference is sent to the trading object for closing the position.
[0180] There are multiple transaction objects. According to the configuration of different transaction objects, the transaction resource sets are differentiated, that is, different transaction resource sets can correspond to different transaction objects, aiming to achieve diversified configuration of transaction object closing strategies.
[0181] like Fig.13 As shown, the resource set in the embodiment of the present application adds a type attribute and adds internal offset transactions, such as resource difference calculation between business resource sets and resource difference calculation between transaction resource sets.
[0182] In addition, in the embodiment of the present application, resource difference calculation rules can be set for business resource sets and transaction resource sets respectively, so as to realize independent and synchronous operation of multiple resource difference calculation rule sets. As shown in Table 2 below, Table 2 is a resource difference calculation rule for a business resource set and a transaction resource set proposed in the embodiment of the present application.
[0183]
[0184] Table 2
[0185] In the embodiment of the present application, a specific example of the content included in the resource set structure is shown in Table 3 below.
[0186]
[0187]
[0188] Table 3
[0189] As shown in Table 3, the resource set includes a name and a category, which includes a business resource set and a transaction resource set. The resource set also includes a transaction resource pair, such as USDCNH, which is to convert USD into CNH, and the delivery date of the transaction resource pair, the benchmark resource is USD, the pricing resource is CNH, the reference price is the reference resource conversion ratio required to convert one USD into one CNH, the cost price is the transaction resource conversion ratio of one USD into one CNH, and the current profit and loss is obtained based on the realized profit and loss and the unrealized profit and loss. In Table 3, the resource set includes real-time unprotected resource quantity data and real-time profit and loss data, the real-time unprotected resource quantity data is the benchmark resource balance and the pricing resource balance, and the real-time profit and loss data includes realized profit and loss, unrealized profit and loss, and profit and loss.
[0190] In the embodiment of the present application, business resources are collected in a one-to-one correspondence with business attributes, and transaction resources are collected in a one-to-one correspondence with transaction objects. Resource management is performed based on business / transaction object attributes + transaction resource pairs + delivery dates. Through this model, refined resource management of multiple businesses and multiple transaction channels is achieved.
[0191] Here, the routing configuration of the business transaction order, business resource set and transaction resource set is explained.
[0192] In an embodiment of the present application, a business transaction form falls into a business resource set, wherein the business transaction form can be routed to fall into the business resource set according to the transaction situation of the business transaction form, such as a transaction resource pair based on the business transaction form falls into the business resource set corresponding to the transaction resource pair.
[0193] The business resource set transaction can initiate an internal transaction to the transaction resource set, wherein the transaction resource set to be forwarded can be determined based on the transaction resource pair and the delivery date dimension.
[0194] The transaction resource set can initiate transaction processing to the transaction object, wherein a specific transaction object can be selected from multiple transaction objects as the transaction object of the transaction resource set based on the transaction time window, delivery amount, whether streaming transaction is supported, etc.
[0195] like Fig.15 As shown, Fig.15 It is a flow chart of a transaction processing method provided in an embodiment of the present application. The server accepts a business transaction order and enters the business transaction order into a business resource set, then initiates a transaction from the business resource set to the transaction resource set to manage the unprotected resource volume, and finally initiates a foreign exchange purchase transaction for the unprotected resource volume of the transaction resource set to the bank for closing the position.
[0196] Among them, the business transaction form acceptance includes: business transaction form→business resource set, that is, routing the business transaction form to the corresponding business resource set according to the routing configuration of the aforementioned business transaction form, and generating the unprotected resource volume of the business resource set.
[0197] The resource difference calculation of the unprotected resource volume of the business includes: business resource set → transaction resource set. The transaction strategy configured by the server determines whether to send the unprotected resource volume of the business resource set to the corresponding transaction resource set for netting according to the unprotected resource volume, profit and loss, and transaction attributes. At this time, the profit and loss of the business resource set is reflected in the fluctuation between the resource conversion ratio quoted to the business party of the business transaction order and the resource conversion ratio forwarded by the platform to the transaction resource set.
[0198] Transaction processing: Transaction resource set → Bank. The transaction strategy configured by the platform configures the unprotected resource volume, profit and loss, and transaction object, and sends the unprotected resource volume of the transaction resource set to the bank for closing. At this time, the profit and loss of the transaction resource set is reflected in the fluctuation between the platform exchange rate and the bank transaction exchange rate.
[0199] like Fig.16 As shown, Fig.16 A schematic diagram of the flow of unprotected resource volume after distinguishing between business resource sets and transaction resource sets is provided for the embodiment of the present application. Each business transaction sheet is received through the transaction sheet entry interface, and the business transaction sheet is routed to the corresponding business resource set. Based on the business resource difference calculation rule set, the business resource set initiates internal resource difference calculation processing to the transaction resource set, and performs resource difference calculation on the unprotected resource volumes of different business resource sets in the transaction resource set. Then, based on the transaction resource difference calculation rule set, the bank corresponding to the transaction resource set is determined, and finally the unprotected resource volume of the transaction resource set is sent to the bank for transaction processing, wherein the business resource difference calculation rule set may include determining whether to send the unprotected resource volume of the business resource set to the corresponding transaction resource set according to the unprotected resource volume, profit and loss, and transaction attributes, and the transaction resource difference calculation rule set may include sending the unprotected resource volume of the transaction resource set to the bank for liquidation according to the unprotected resource volume, profit and loss, and transaction object configuration.
[0200] like Fig.17 As shown, Fig.17 A schematic diagram of transaction details of a transaction processing method provided in an embodiment of the present application. The transaction orders from the cross-border acquiring business and the corporate foreign exchange business are written into the cross-border acquiring business resource set and the corporate foreign exchange business resource set respectively, wherein Fig.17 The basic resource quantity refers to the resource quantity of the resources to be converted in the transaction resources, and the pricing resource quantity refers to the converted resource quantity in the transaction resource pair; according to the transaction resource pair and delivery date of the business resource set, the two business resource sets containing two HKDCNH transactions in opposite directions are forwarded to the same transaction resource set for resource difference calculation, so that the transaction status of each business can be perceived.
[0201] The trading resource set closes the positions of the trading objects corresponding to the trading resource pair configuration. For the HKDCNH resource pair transaction, the most appropriate trading object can be selected to close the unprotected resource volume of the trading resource set according to the tradable time window and deliverable amount in the current system trading object list, such as Fig.17 In the example, choose to send to the transaction object W to close the position. Based on the transaction resource set, the profit and loss situation of each type of transaction object can be perceived.
[0202] The transaction processing method provided in the embodiment of the present application can accurately identify the profit and loss of a specific business by independently separating the concept of a business resource set, and can implement a transaction strategy based on the profit and loss of a specific business. For example, different business resource sets have different tolerance levels for profit and loss, and when the profit and loss of a business resource set is greater than a certain level, the business resource set performs resource difference calculation processing. By independently separating the concept of a transaction resource set, it can accurately identify the profit and loss of a transaction object, and can implement a variety of transaction closing strategies based on the delivery amount and delivery time of different transaction objects. Through the double-layer resource set structure of the business resource set and the transaction resource set, the correlation between the business and counterparty configurations is decoupled, the redundancy of the automatic closing strategy configuration is greatly reduced, and the operational risk is reduced.
[0203] Here, the device embodiment of the present application is introduced, which can be used to execute the transaction processing method in the above embodiment of the present application. For details not disclosed in the device embodiment of the present application, please refer to the above embodiment of the transaction processing method of the present application.
[0204] The present application embodiment provides a transaction processing device, such as Fig.18 As shown, the device can be deployed in a server, and the device includes:
[0205] The writing module 1810 is used to write the business transaction form into the corresponding business resource set according to the business attribute of the acquired business transaction form, and generate the unprotected resource amount of the business resource set according to the business transaction form, wherein different business attributes correspond to different business resource sets;
[0206] An acquisition module 1820, configured to acquire the profit and loss of the business resource set according to the fluctuation of the resource conversion ratio of the transaction resource pair included in the business transaction order;
[0207] A calculation module 1830, configured to send the unprotected resource amount of the business resource set to the corresponding target transaction resource set according to the profit and loss of the business resource set, and perform resource difference calculation on the unprotected resource amount of the business resource set through the target transaction resource set;
[0208] A generating module 1840, configured to generate the unprotected resource amount of the target transaction resource set according to the resource difference calculation result corresponding to the unprotected resource amount of the business resource set;
[0209] The transaction module 1850 is used to send the unprotected resource quantity of the target transaction resource set to the transaction object of the target transaction resource set for transaction processing.
[0210] In one embodiment of the present application, based on the aforementioned scheme, the calculation module 1830 is further used to calculate the resource difference between the unprotected resource amount of the business resource set and the unprotected resource amount of the other business resource sets in the target transaction resource set if there are other business resource sets in the target transaction resource set that match the unprotected resource amount of the business resource set.
[0211] In one embodiment of the present application, based on the aforementioned scheme, the number of trading resource sets includes multiple ones; the generation module 1840 is further used to generate a preliminary unprotected resource amount of the target trading resource set based on the resource difference calculation result of the unprotected resource amount of the business resource set; if the unprotected resource amount of other trading resource sets matches the preliminary unprotected resource amount of the target trading resource set, the unprotected resource amount of the other trading resource sets is calculated with the preliminary unprotected resource amount of the target trading resource set to obtain the unprotected resource amount of the target trading resource set.
[0212] In one embodiment of the present application, based on the aforementioned scheme, the calculation module 1830 is further used to calculate the resource difference between the unprotected resource amount of the business resource set in the target transaction resource set and the unprotected resource amount of other business resource sets contained in the other target transaction resource sets when it is determined that there are other business resource sets in other transaction resource sets that match the unprotected resource amount of the business resource set.
[0213] In one embodiment of the present application, based on the aforementioned scheme, the device also includes a selection module for obtaining a transaction resource pair and a delivery date of the transaction resource pair of a business transaction order; determining the transaction attributes of a business resource set based on the transaction resource pair and the delivery date of the transaction resource pair; and selecting a target transaction resource set from multiple transaction resource sets based on the transaction attributes of the business resource set.
[0214] In one embodiment of the present application, based on the aforementioned scheme, the acquisition module 1820 is further used to obtain a first resource conversion ratio corresponding to the business transaction order, and a second resource conversion ratio for sending the unprotected resource amount of the business resource set to the target transaction resource set; the profit and loss of the business resource set is determined according to the fluctuations of the first resource conversion ratio and the second resource conversion ratio, and the transaction volume corresponding to the transaction resource pair.
[0215] In one embodiment of the present application, based on the aforementioned scheme, the calculation module 1830 is further used to determine the unprotected resource quantity size threshold and the profit and loss size threshold according to the business configuration of the business resource set; if the unprotected resource quantity of the business resource set exceeds the unprotected resource quantity size threshold, or the profit and loss of the business resource set exceeds the profit and loss size threshold, the unprotected resource quantity of the business resource set is sent to the corresponding target transaction resource set.
[0216] In one embodiment of the present application, based on the aforementioned scheme, the device also includes a selection module for obtaining a transaction time window, a delivery amount, and at least one of a transaction method for each transaction object; and selecting a transaction object that meets the target transaction resource set from each transaction object based on at least one of the transaction time window, transaction amount, and transaction method.
[0217] In one embodiment of the present application, based on the aforementioned scheme, the transaction module 1850 is further used to determine the profit and loss of the target transaction resource set according to the resource conversion ratio corresponding to the business transaction order and the resource conversion ratio corresponding to the transaction object in the transaction; obtain the current transaction configuration of the transaction object; and send the unprotected resource amount of the target transaction resource set to the transaction object for transaction processing according to the unprotected resource amount of the target transaction resource set, the profit and loss of the target transaction resource set and the current transaction configuration of the transaction object.
[0218] In one embodiment of the present application, based on the aforementioned scheme, each business resource set corresponds to a different owner and transaction resource pair; the writing module 1810 is further used to obtain the business owner of the business transaction form, and the transaction resource pair of the business transaction form; determine the corresponding business resource set from multiple business resource sets according to the business owner and the transaction resource pair, and write the business transaction form into the determined business resource set.
[0219] In one embodiment of the present application, based on the aforementioned scheme, the writing module 1810 is further used to write the business transaction form into the target business resource folder of the corresponding business resource set according to the acquired transaction resource pair and business type of the business transaction form, the business resource set includes multiple business resource folders, different business resource folders correspond to different transaction resource pairs and business types, and the writing module 1810 is further used to generate the unprotected resource amount of the target business resource folder according to the business transaction form; if there are other business resource folders in other business resource sets that match the unprotected resource amount of the target business resource folder, the unprotected resource amount of the target business resource folder contained in the business resource set is calculated with the other business resource folders contained in the other business resource sets; the unprotected resource amount of the business resource set is generated according to the resource difference calculation result corresponding to the unprotected resource amount of the target business resource folder.
[0220] It should be noted that the device provided in the above embodiment and the method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment and will not be repeated here.
[0221] An embodiment of the present application also provides an electronic device, comprising one or more processors and a storage device, wherein the storage device is used to store one or more computer programs, and when the one or more computer programs are executed by one or more processors, the electronic device implements the above transaction processing method.
[0222] Fig.19 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.
[0223] It should be noted that Fig.19 The computer system 1900 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application. The electronic device may be a terminal or a server.
[0224] like Fig.19 As shown, the computer system 1900 includes a processor (Central Processing Unit, CPU) 1901, which can perform various appropriate actions and processes according to the program stored in the read-only memory (Read-Only Memory, ROM) 1902 or the program loaded from the storage part 1908 to the random access memory (Random Access Memory, RAM) 1903, such as executing the method in the above embodiment. In RAM 1903, various programs and data required for system operation are also stored. CPU 1901, ROM 1902 and RAM 1903 are connected to each other through bus 1904. Input / output (Input / Output, I / O) interface 1905 is also connected to bus 1904.
[0225] In some embodiments, the following components are connected to the I / O interface 1905: an input section 1906 including a keyboard, a mouse, etc.; an output section 1907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 1908 including a hard disk, etc.; and a communication section 1909 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1909 performs communication processing via a network such as the Internet. A drive 1910 is also connected to the I / O interface 1905 as needed. A removable medium 1911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1910 as needed, so that a computer program read therefrom is installed into the storage section 1908 as needed.
[0226] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 1909, and / or installed from a removable medium 1911. When the computer program is executed by a processor (CPU) 1901, various functions defined in the system of the present application are executed.
[0227] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (Erasable Programmable Read Only Memory), a flash memory, an optical fiber, a portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0228] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the devices, methods and computer program products according to various embodiments of the present application. Among them, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and a computer program.
[0229] The units or modules involved in the embodiments described in this application may be implemented by software or hardware, and the units or modules described may also be set in a processor. The names of these units or modules do not, in some cases, constitute limitations on the units or modules themselves.
[0230] Another aspect of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the method described above is implemented. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.
[0231] Another aspect of the present application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. A processor of an electronic device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the electronic device executes the method provided in the above-mentioned embodiments.
[0232] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0233] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.
[0234] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. A person of ordinary skill in the art can easily make corresponding changes or modifications based on the main concept and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.
Claims
1. A transaction processing method, It is characterized in that include: Writing the business transaction sheet into a corresponding business resource set according to the business attributes of the acquired business transaction sheet, and generating an unprotected resource amount of the business resource set according to the business transaction sheet, wherein different business attributes correspond to different business resource sets; Obtaining the profit and loss of the business resource set according to fluctuations in the resource conversion ratio of the transaction resource pair of the business transaction order; Sending the unprotected resource amount of the business resource set to the corresponding target transaction resource set according to the profit and loss of the business resource set, and performing resource difference calculation on the unprotected resource amount of the business resource set through the target transaction resource set; Generating the unprotected resource amount of the target transaction resource set according to the resource difference calculation result corresponding to the unprotected resource amount of the business resource set; The unprotected resource amount of the target transaction resource set is sent to the transaction object of the target transaction resource set for transaction processing.
2. The method according to claim 1, It is characterized in that The calculating the resource difference of the unprotected resource amount of the service resource set by using the target transaction resource set includes: If there are other business resource sets in the target transaction resource set that match the unprotected resource amount of the business resource set, the resource difference between the unprotected resource amount of the business resource set and the unprotected resource amount of the other business resource sets in the target transaction resource set is calculated.
3. The method according to claim 2, It is characterized in that The number of transaction resource sets includes multiple ones; the unprotected resource amount of the target transaction resource set is generated according to the resource difference calculation result of the unprotected resource amount of the business resource set, including: Generating a preliminary unprotected resource amount of the target transaction resource set according to a resource difference calculation result of the unprotected resource amount of the business resource set; If the unprotected resource amount of other trading resource sets matches the preliminary unprotected resource amount of the target trading resource set, a resource difference calculation is performed between the unprotected resource amount of the other trading resource sets and the preliminary unprotected resource amount of the target trading resource set to obtain the unprotected resource amount of the target trading resource set.
4. The method according to claim 1, It is characterized in that The number of transaction resource sets includes multiple ones; the resource difference calculation of the unprotected resource amount of the business resource set by using the target transaction resource set includes: If there are no other business resource sets in the target transaction resource set that match the unprotected resource amount of the business resource set, when it is determined that there are other business resource sets in other transaction resource sets that match the unprotected resource amount of the business resource set, the resource difference between the unprotected resource amount of the business resource set in the target transaction resource set and the unprotected resource amount of other business resource sets included in the other target transaction resource sets is calculated.
5. The method according to claim 1, It is characterized in that Before sending the unprotected resource amount of the business resource set to the corresponding target transaction resource set according to the profit and loss of the business resource set, the method further includes: Obtaining the transaction resource pair of the business transaction order and the settlement date of the transaction resource pair; Determining a transaction attribute of the business resource set according to the transaction resource pair and a settlement date of the transaction resource pair; The target transaction resource set is selected from a plurality of transaction resource sets according to the transaction attribute of the business resource set.
6. The method according to claim 1, It is characterized in that The obtaining the profit and loss of the business resource set according to the fluctuation of the resource conversion ratio of the transaction resource pair of the business transaction order includes: Acquire a first resource conversion ratio corresponding to the business transaction order, and a second resource conversion ratio for sending the unprotected resource amount of the business resource set to the target transaction resource set; The profit or loss of the business resource set is determined according to fluctuations of the first resource conversion ratio and the second resource conversion ratio, and a transaction volume corresponding to the transaction resource pair.
7. The method according to claim 1, It is characterized in that The sending the unprotected resource amount of the business resource set to the corresponding target transaction resource set according to the profit and loss of the business resource set includes: Determining an unprotected resource amount threshold and a profit and loss threshold according to the service configuration of the service resource set; If the profit or loss of the business resource set exceeds the profit or loss threshold, sending the unprotected resource amount of the business resource set to the corresponding target transaction resource set; If the profit or loss of the business resource set does not exceed the profit or loss size threshold, and the unprotected resource amount of the business resource set exceeds the unprotected resource amount size threshold, the unprotected resource amount of the business resource set is sent to the corresponding target transaction resource set.
8. The method according to claim 1, before sending the unprotected resource amount of the target transaction resource set to the transaction object of the target transaction resource set for transaction processing, the method further include: Obtain at least one of the transaction time window, delivery amount, and transaction method of each transaction object; According to at least one of the transaction time window, the transaction amount and the transaction mode, a transaction object that meets the target transaction resource set is selected from various transaction objects.
9. The method according to claim 1, It is characterized in that The sending of the unprotected resource amount of the target transaction resource set to the transaction object of the target transaction resource set for transaction processing includes: Determine the profit and loss of the target transaction resource set according to the resource conversion ratio corresponding to the business transaction order and the resource conversion ratio corresponding to the transaction object in the transaction completion; Obtain the current transaction configuration of the transaction object; According to the unprotected resource amount of the target transaction resource set, the profit and loss of the target transaction resource set and the current transaction configuration of the transaction object, the unprotected resource amount of the target transaction resource set is sent to the transaction object for transaction processing.
10. The method according to any one of claims 1 to 9, It is characterized in that Each business resource set corresponds to a different owner and transaction resource pair; the writing of the business transaction form into the corresponding business resource set according to the business attribute of the acquired business transaction form includes: Acquire the business owner of the business transaction form and the transaction resource pair of the business transaction form; A corresponding business resource set is determined from a plurality of business resource sets according to the business owner and the transaction resource pair, and the business transaction form is written into the determined business resource set.
11. The method according to any one of claims 1 to 9, It is characterized in that The step of writing the transaction form into a corresponding business resource set according to the business attribute of the acquired business transaction form includes: According to the acquired transaction resource pair and business type of the business transaction sheet, the business transaction sheet is written into a target business resource folder of the corresponding business resource set, wherein the business resource set includes a plurality of business resource folders, and different business resource folders correspond to different transaction resource pairs and business types; Generating the unprotected resource amount of the service resource set according to the service transaction list includes: Generating the unprotected resource amount of the target business resource folder according to the business transaction sheet; If there are other business resource folders in the other business resource sets that match the unprotected resource amount of the target business resource folder, then the unprotected resource amount of the target business resource folder included in the business resource set and the other business resource folders included in the other business resource sets are calculated for resource difference; The unprotected resource amount of the service resource set is generated according to the resource difference calculation result corresponding to the unprotected resource amount of the target service resource folder.
12. A transaction processing device, It is characterized in that include: A writing module, used to write the business transaction form into a corresponding business resource set according to the business attributes of the acquired business transaction form, and generate an unprotected resource amount of the business resource set according to the business transaction form, wherein different business attributes correspond to different business resource sets; An acquisition module, configured to acquire the profit and loss of the business resource set according to the fluctuation of the resource conversion ratio of the transaction resource pair included in the business transaction order; A calculation module, configured to send the unprotected resource amount of the business resource set to a corresponding target transaction resource set according to the profit or loss of the business resource set, and perform resource difference calculation on the unprotected resource amount of the business resource set through the target transaction resource set; A generating module, configured to generate the unprotected resource amount of the target transaction resource set according to the resource difference calculation result corresponding to the unprotected resource amount of the business resource set; The transaction module is used to send the unprotected resource quantity of the target transaction resource set to the transaction object of the target transaction resource set for transaction processing.
13. An electronic device, It is characterized in that include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to execute the method according to any one of claims 1 to 11.
14. A computer-readable storage medium, It is characterized in that A computer program is stored thereon, and when the computer program is executed by a processor of an electronic device, the electronic device executes the method according to any one of claims 1 to 11.
15. A computer program product, It is characterized in that The computer program product comprises a computer program, wherein the computer program is stored in a computer-readable storage medium, and a processor of an electronic device reads and executes the computer program from the computer-readable storage medium, so that the electronic device executes the method according to any one of claims 1 to 11.
