Transaction data processing method, device, equipment and storage medium
Locking in the future exchange rate by signing a target contract solves the risks and foreign exchange backlog caused by exchange rate fluctuations in cross-border payments, reduces costs and improves the efficiency of foreign exchange use.
Patent Information
- Application Number
- CN201910790866.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-08-26
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2039-08-26
AI Technical Summary
In cross-border payment scenarios, due to the rapid changes in real-time exchange rates, risks caused by exchange rate fluctuations are greater. The costs borne by e-commerce platforms are high, the foreign exchange backlog is long, and the use efficiency is poor.
By querying the correspondence between the time interval and the contract's identifier based on the time difference between the current time point and the settlement time point, the target contract is signed, the exchange rate at the future target time point is locked, the risk of exchange rate fluctuations is avoided, and the exchange is carried out at the target time point. foreign exchange.
It reduces the cost of cross-border payment business, shortens the foreign exchange backlog time, and improves the utilization rate of foreign exchange.
Smart Images

Figure CN110473107B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a transaction data processing method, device, equipment and storage medium. Background Art
[0002] Cross-border payment refers to a payment scenario where the payment currency is different from the settlement currency. For example, if a user purchases a product or service on an e-commerce platform, the user pays in currency X, and the merchant collects currency Y, then this payment scenario is a cross-border payment. In a cross-border payment scenario, the e-commerce platform needs to convert the user's payment amount from currency X to currency Y and settle the foreign exchange to the merchant on the settlement date, where currency X and currency Y represent two different currencies.
[0003] Taking the hotel booking scenario as an example, the current transaction data processing process includes: Assume that a user places an order on June 1st and books a hotel for October 15th. The amount of the order is M yuan, the payment currency is currency X, the settlement currency of the merchant of the order is currency Y, and the merchant and the e-commerce platform agree to settle on the 1st of each month. Then the e-commerce platform can exchange currency in real time with the server of the financial institution on June 1st, that is, convert M yuan from currency X to currency Y at the real-time exchange rate. Afterwards, when the user checks into the hotel on October 15th, the order is completed. On November 1st, the e-commerce platform will transfer the previously exchanged foreign currency to the merchant's account, where M represents a positive integer.
[0004] When the above method is adopted, due to the rapid changes in real-time exchange rates, the real-time exchange rate is likely to fluctuate significantly from the date the user places an order to the settlement date. Once the exchange rate fluctuates, it is easy to cause losses, resulting in great risks for the e-commerce platform, and thus resulting in high costs for providing cross-border payment services. In addition, foreign exchange has been accumulated on the e-commerce platform from the order date to the settlement date, resulting in a long backlog of foreign exchange on the e-commerce platform and poor efficiency in the use of foreign exchange. Summary of the invention
[0005] The embodiments of the present invention provide a transaction data processing method, device, equipment and storage medium, which can solve the problems in the related art that the risk caused by exchange rate fluctuations is relatively large, and the foreign exchange is accumulated on the platform for a long time, resulting in poor foreign exchange utilization efficiency. The technical solution is as follows:
[0006] In one aspect, a transaction data processing method is provided, which is applied to a computer device, and the method comprises:
[0007] Receiving an order sent by a user through an application, the order being used to instruct to transfer monetary resources in a first currency to an account of a payment object at a settlement time point;
[0008] Read the order to obtain the settlement time point and the monetary resources of the first currency;
[0009] According to the time difference between the current time point and the settlement time point, the correspondence between the time interval and the contract identifier is queried to obtain the identifier of the target contract corresponding to the time interval in which the time difference is located, the target contract represents the monetary resource of the first currency to be exchanged at the target time point according to the target exchange rate, and the target time point is separated from the current time point by a preset time length;
[0010] Generate a first signing request according to the identifier of the target contract, where the first signing request is used to request signing of the target contract;
[0011] Sending the first signing request to the target financial server through a network connection with the target financial server;
[0012] If the target time point is reached, the monetary resources of the second currency are transferred out from the target account to the account of the target financial service server, and the monetary resources of the first currency transferred to the target account are received from the account of the target financial service server, and the numerical relationship between the monetary resources of the second currency and the monetary resources of the first currency conforms to the target exchange rate, and the target account is an account associated with the computer device;
[0013] If the settlement time point is reached, the monetary resources of the first currency are transferred from the target account to the account of the payment object.
[0014] Optionally, the correspondence between the time interval and the identifier of the contract includes at least one of the following:
[0015] a correspondence between a first time interval and an identifier of a short-term exchange lock contract, wherein the short-term exchange lock contract indicates that the monetary resources of the first currency are exchanged at a first target exchange rate at a first target time point;
[0016] The corresponding relationship between the second time interval and the identifier of the forward foreign exchange purchase contract, the forward foreign exchange purchase contract indicates that the monetary resources of the first currency are exchanged at the second target exchange rate at the second target time point, the
[0017] The second time interval is greater than the first time interval, and the second target time point is later than the first target time point;
[0018] a correspondence between a third time interval and an identifier of a futures contract, wherein the futures contract indicates that the monetary resource of the first currency is exchanged at a third target exchange rate at a third target time point, the third time interval is greater than the second time interval, and the third target time point is later than the second target time point;
[0019] The correspondence between the fourth time interval and the identifier of the option contract, the option contract indicates that the monetary resources of the first currency will be exchanged at a fourth target exchange rate at a fourth target time point, the fourth time interval is greater than the second time interval, and the fourth target time point is later than the second target time point.
[0020] Optionally, after reading the order and obtaining the settlement time point and the monetary resources of the first currency, the method further includes any of the following:
[0021] If the time interval in which the time difference lies corresponds to multiple contracts, according to the target time point in each of the multiple contracts, a contract whose target time point is closest to the settlement time point is selected from the multiple contracts to obtain the target contract;
[0022] If the time interval in which the time difference lies corresponds to multiple contracts, a contract with the lowest target exchange rate is selected from the multiple contracts according to the target exchange rate in each of the multiple contracts to obtain the target contract.
[0023] Optionally, the order includes one or more payment orders and one or more refund orders, and the reading of the order to obtain the settlement time point and the monetary resources of the first currency includes any one of the following:
[0024] Reading the monetary resources in each payment order, adding the monetary resources in the one or more payment orders to obtain the monetary resources in the first currency;
[0025] Reading the monetary resources in each payment order and the monetary resources in each refund order, adding the monetary resources in the one or more payment orders to obtain a first sum value, adding the monetary resources in the one or more refund orders to obtain a second sum value, and subtracting the first sum value from the second sum value to obtain the monetary resources of the first currency;
[0026] Read the monetary resources in each payment order, the monetary resources in each refund order, and the balance of the monetary resources of the first currency in the target account, add the monetary resources in the one or more payment orders to obtain a first sum value, add the monetary resources in the one or more refund orders to obtain a second sum value, subtract the first sum value from the second sum value and the balance to obtain the monetary resources of the first currency.
[0027] Optionally, after reading the order and obtaining the settlement time point and the monetary resources of the first currency, the method further includes:
[0028] comparing the time difference with a first time threshold;
[0029] If the time difference is less than the first time threshold, reading an identifier of a real-time foreign exchange purchase contract, the real-time foreign exchange purchase contract indicating that the monetary resources of the first currency are exchanged at a real-time exchange rate;
[0030] Generate a second signing request according to the identifier of the real-time foreign exchange purchase contract, where the second signing request is used to request signing of the real-time foreign exchange purchase contract;
[0031] sending the second signing request to the target financial server through a network connection with the target financial server;
[0032] The monetary resources of the second currency are transferred from the target account to the account of the target financial service server, and the monetary resources of the first currency are received from the account of the target financial service server and transferred to the target account, and the numerical relationship between the monetary resources of the second currency and the monetary resources of the first currency conforms to the real-time exchange rate.
[0033] Optionally, after reading the order and obtaining the settlement time point and the monetary resources of the first currency, the method further includes:
[0034] comparing the monetary resources of the first currency with a monetary resource threshold;
[0035] If the monetary resource of the first currency is less than the monetary resource threshold, reading the identifier of the real-time foreign exchange purchase contract;
[0036] Generate a second signing request according to the identifier of the real-time foreign exchange purchase contract, where the second signing request is used to request signing of the real-time foreign exchange purchase contract;
[0037] sending the second signing request to the target financial server through a network connection with the target financial server;
[0038] The monetary resources of the second currency are transferred from the target account to the account of the target financial service server, and the monetary resources of the first currency are received from the account of the target financial service server and transferred to the target account, and the numerical relationship between the monetary resources of the second currency and the monetary resources of the first currency conforms to the real-time exchange rate.
[0039] Optionally, before generating the first signing request according to the identifier of the target contract, the method further includes:
[0040] receiving a query instruction, the query instruction being used to instruct to query a change in a balance of a monetary resource of the first currency in the target account;
[0041] According to the query instruction, query the change in the balance of the monetary resource of the first currency in the target account, and output the change in the balance;
[0042] receiving an adjustment instruction, wherein the adjustment instruction is used to instruct to adjust the amount of the target contract;
[0043] The amount of the target contract is adjusted according to the adjustment instruction.
[0044] In another aspect, a transaction data processing device is provided, the device comprising:
[0045] A receiving module, used to receive an order sent by a user through an application, wherein the order is used to instruct to transfer a monetary resource of the first currency to an account of a payment object at a settlement time point;
[0046] A reading module, used for reading the order and obtaining the settlement time point and the monetary resources of the first currency;
[0047] A query module, configured to query the correspondence between the time interval and the contract identifier according to the time difference between the current time point and the settlement time point, and obtain the identifier of the target contract corresponding to the time interval in which the time difference is located, wherein the target contract indicates that the monetary resources of the first currency are exchanged at a target exchange rate at a target time point, and the target time point is separated from the current time point by a preset time length;
[0048] A generating module, configured to generate a first signing request according to the identifier of the target contract, wherein the first signing request is used to request signing of the target contract;
[0049] A sending module, configured to send the first signing request to the target financial server through a network connection with the target financial server;
[0050] a transfer module, configured to transfer the monetary resources of the second currency from the target account to the account of the target financial service server if the target time point is reached, and receive the monetary resources of the first currency transferred to the target account from the account of the target financial service server, wherein the numerical relationship between the monetary resources of the second currency and the monetary resources of the first currency conforms to the target exchange rate, and the target account is an account associated with the computer device;
[0051] The transfer module is further configured to transfer the monetary resources of the first currency from the target account to the account of the payment object if the settlement time point is reached.
[0052] Optionally, the correspondence between the time interval and the identifier of the contract includes at least one of the following:
[0053] a correspondence between a first time interval and an identifier of a short-term exchange lock contract, wherein the short-term exchange lock contract indicates that the monetary resources of the first currency are exchanged at a first target exchange rate at a first target time point;
[0054] The corresponding relationship between the second time interval and the identifier of the forward foreign exchange purchase contract, the forward foreign exchange purchase contract indicates that the monetary resources of the first currency are exchanged at the second target exchange rate at the second target time point, the
[0055] The second time interval is greater than the first time interval, and the second target time point is later than the first target time point;
[0056] a correspondence between a third time interval and an identifier of a futures contract, wherein the futures contract indicates that the monetary resource of the first currency is exchanged at a third target exchange rate at a third target time point, the third time interval is greater than the second time interval, and the third target time point is later than the second target time point;
[0057] The correspondence between the fourth time interval and the identifier of the option contract, the option contract indicates that the monetary resources of the first currency will be exchanged at a fourth target exchange rate at a fourth target time point, the fourth time interval is greater than the second time interval, and the fourth target time point is later than the second target time point.
[0058] Optionally, the device further includes a selection module, and the selection module is used to perform any of the following:
[0059] If the time interval in which the time difference lies corresponds to multiple contracts, according to the target time point in each of the multiple contracts, a contract whose target time point is closest to the settlement time point is selected from the multiple contracts to obtain the target contract;
[0060] If the time interval in which the time difference lies corresponds to multiple contracts, a contract with the lowest target exchange rate is selected from the multiple contracts according to the target exchange rate in each of the multiple contracts to obtain the target contract.
[0061] Optionally, the order includes one or more payment orders and one or more refund orders, and the reading module is used to perform any one of the following:
[0062] Reading the monetary resources in each payment order, adding the monetary resources in the one or more payment orders to obtain the monetary resources in the first currency;
[0063] Reading the monetary resources in each payment order and the monetary resources in each refund order, adding the monetary resources in the one or more payment orders to obtain a first sum value, adding the monetary resources in the one or more refund orders to obtain a second sum value, and subtracting the first sum value from the second sum value to obtain the monetary resources of the first currency;
[0064] Read the monetary resources in each payment order, the monetary resources in each refund order, and the balance of the monetary resources of the first currency in the target account, add the monetary resources in the one or more payment orders to obtain a first sum value, add the monetary resources in the one or more refund orders to obtain a second sum value, subtract the first sum value from the second sum value and the balance to obtain the monetary resources of the first currency.
[0065] Optionally, the device further comprises: a comparison module, configured to compare the time difference with a first time threshold;
[0066] The reading module is further configured to read an identifier of a real-time foreign exchange purchase contract if the time difference is less than the first time threshold, wherein the real-time foreign exchange purchase contract indicates a monetary resource for exchanging the first currency at a real-time exchange rate;
[0067] The generating module is further used to generate a second signing request according to the identifier of the real-time foreign exchange purchase contract, wherein the second signing request is used to request the signing of the real-time foreign exchange purchase contract;
[0068] The sending module is further configured to send the second signing request to the target financial server through a network connection with the target financial server;
[0069] The transfer module is also used to transfer monetary resources of the second currency from the target account to the account of the target financial service server, and to receive monetary resources of the first currency transferred from the account of the target financial service server to the target account, and the numerical relationship between the monetary resources of the second currency and the monetary resources of the first currency conforms to the real-time exchange rate.
[0070] Optionally, the device further comprises: a comparison module, configured to compare the monetary resources of the first currency with a monetary resource threshold;
[0071] The reading module is further configured to read the identifier of the real-time foreign exchange purchase contract if the monetary resource of the first currency is less than the monetary resource threshold;
[0072] The generating module is further used to generate a second signing request according to the identifier of the real-time foreign exchange purchase contract, wherein the second signing request is used to request the signing of the real-time foreign exchange purchase contract;
[0073] The sending module is further configured to send the second signing request to the target financial server through a network connection with the target financial server;
[0074] The transfer module is also used to transfer monetary resources of the second currency from the target account to the account of the target financial service server, and to receive monetary resources of the first currency transferred from the account of the target financial service server to the target account, and the numerical relationship between the monetary resources of the second currency and the monetary resources of the first currency conforms to the real-time exchange rate.
[0075] Optionally, the receiving module is further used to receive a query instruction, wherein the query instruction is used to instruct to query the change in the balance of the monetary resource of the first currency in the target account;
[0076] The device further includes: a query module, configured to query the change in the balance of the monetary resource of the first currency in the target account according to the query instruction, and output the change in the balance;
[0077] The receiving module is further used to receive an adjustment instruction, where the adjustment instruction is used to instruct to adjust the amount of the target contract;
[0078] The device also includes: an adjustment module, configured to adjust the amount of the target contract according to the adjustment instruction.
[0079] On the other hand, a computer device is provided, which includes one or more processors and one or more memories, wherein at least one instruction is stored in the one or more memories, and the at least one instruction is loaded and executed by the one or more processors to implement the above-mentioned transaction data processing method.
[0080] On the other hand, a computer-readable storage medium is provided, wherein at least one instruction is stored in the storage medium, and the instruction is loaded and executed by a processor to implement the above-mentioned transaction data processing method.
[0081] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:
[0082] This embodiment provides a set of intelligent and automated solutions for purchasing foreign exchange. By querying the correspondence between the time interval and the contract identifier based on the time difference between the current time point and the settlement time point, the identifier of the target contract corresponding to the time interval where the time difference is located is obtained, and the target contract corresponding to the identifier is signed, thereby realizing the function of locking the exchange rate. The exchange rate for purchasing foreign exchange at the future target time point is pre-locked as the target exchange rate in the target contract. Therefore, when executing the target contract, the foreign exchange can be exchanged based on the target exchange rate pre-agreed in the target contract instead of the real-time exchange rate at the target time point. Therefore, the risk caused by the fluctuation of the exchange rate from the current time point to the target time point is avoided, thereby reducing the cost of providing cross-border payment services. In addition, since the foreign exchange is not exchanged immediately after the order is placed, but is actually exchanged at the target time point, the time that the foreign exchange is accumulated on the platform is shortened, and the utilization rate of the foreign exchange is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0083] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0084] Figure 1 is a structural block diagram of a transaction data processing system provided by an embodiment of the present invention;
[0085] Figure 2 is a flow chart of a transaction data processing method provided by an embodiment of the present invention;
[0086] Figure 3 is a flow chart of a transaction data processing method provided by an embodiment of the present invention;
[0087] Figure 4 It is a structural schematic diagram of a transaction data processing device provided by an embodiment of the present invention;
[0088] Figure 5 is a schematic diagram of the structure of a terminal provided by an embodiment of the present invention;
[0089] Figure 6 It is a structural diagram of a server provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0090] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0091] Before describing the embodiments of the present invention in detail, the concepts involved in the embodiments of the present invention are first explained as follows:
[0092] Monetary resources: digital assets provided by banks, enterprises and other financial institutions through the Internet, which can be exchanged for currencies used in real life. The amount of monetary resources can be expressed by the value stored in the account. If the currency of the monetary resources is inconsistent with the currency of the domestic currency, the monetary resources can be called foreign exchange.
[0093] Foreign exchange: Monetary resources expressed in foreign currency. Specifically, foreign exchange refers to the claims held by monetary authorities (such as central banks, monetary management institutions, foreign exchange stabilization funds and the Ministry of Finance) in the form of bank deposits, Treasury bills, long-term and short-term government securities, etc., which can be used in the event of a deficit in the balance of payments. Foreign exchange includes foreign currency, foreign currency deposits, foreign currency securities (government bonds, treasury bills, corporate bonds, stocks, etc.), and foreign currency payment certificates (bills, bank deposit certificates, postal savings certificates, etc.).
[0094] Exchange rate: The exchange rate between two currencies, specifically refers to the ratio or price of one country's currency to another country's currency, or the price of one country's currency expressed in another country's currency.
[0095] Currency lock: refers to the business of locking the exchange rate handled by financial institutions. After the currency lock is handled, the exchange rate determined before can be used to sell or settle the currency on the day of sale or settlement, rather than the exchange rate of the day.
[0096] Long-term foreign exchange purchase (also known as forward foreign exchange transaction or forward foreign exchange) means that the two parties of foreign exchange purchase and sale first sign a contract to stipulate the quantity, exchange rate and future delivery time of foreign exchange. When the stipulated delivery date comes, the two parties will conduct foreign exchange transactions of currency collection and payment according to the provisions of the contract. Through long-term foreign exchange purchase, the losses caused by exchange rate fluctuations can be controlled. For example, suppose the bank quotes the forward exchange rate of the US dollar to the RMB at 6.3 in three months, and Company A signs a three-month forward exchange rate sale agreement with the bank for US$1 billion and the signing exchange rate is 6.3. Three months later, the agreement with the bank expires, and Company A also receives the payment of US$1 billion as scheduled, and Company A delivers the US$1 billion to the bank. At this time, even if the exchange rate of the US dollar to the RMB drops to 6.2, because Company A has signed an agreement with the bank, the actual payment received is RMB 6.3 billion. Compared with not conducting forward foreign exchange transactions, the profit is RMB 100 million more.
[0097] Futures (Forex Futures, abbreviated as FxFut, is the abbreviation of "Forex Futures"): In a centralized futures exchange, the two parties to the transaction buy or sell a certain non-national currency through open outcry, and sign a contract to deliver a standard amount of foreign exchange at an agreed price on a certain date in the future. In a broad sense, foreign exchange futures trading includes foreign exchange futures contract trading and foreign exchange option contract trading, while in a narrow sense, foreign exchange futures specifically refer to foreign exchange futures contracts. The main contents of foreign exchange futures include: trading unit, minimum price change, daily price maximum fluctuation limit, contract month, trading time, last trading day, delivery date, and delivery location.
[0098] Option (foreign exchange option, also known as currency option, Currency Option): is a kind of option contract, its holder, the option buyer, has the right to buy or sell a certain amount of a certain foreign exchange asset at a specified price before or before the contract expires, and the option seller receives the option fee and is obliged to sell (or buy) the foreign exchange asset bought (or sold) by the option buyer when the buyer requests execution. Options can be protected when the spot market price rises and will not miss the opportunity to earn extra profits when the price falls.
[0099] Figure 1 1 is a structural block diagram of a transaction data processing system provided by an embodiment of the present invention. The transaction data processing system includes: an e-commerce platform 101, a first terminal 102 and a second terminal 103.
[0100] The first terminal 102 is connected to the e-commerce platform 101 through a wireless network or a wired network. The first terminal 102 can be a terminal used by a user, that is, a terminal of a buyer. The first terminal 102 can be at least one of a smart phone, a game console, a desktop computer, a tablet computer, an e-book reader, an MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert compression standard audio layer 3) player or an MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert compression standard audio layer 4) player and a laptop portable computer. The first terminal 102 installs and runs an application that supports payment functions. The application can be a buyer version of a shopping application or a life service application. The user's account is logged in to the application running on the first terminal 102. After the user purchases goods or services, the first terminal 102 will generate an order through the application based on the purchased goods or services, transaction amount, transaction time, merchant identification, user identification, delivery address and other transaction data, and send the order to the e-commerce platform 101. The e-commerce platform 101 will receive the order and transfer the monetary resources from the user's account to the account of the e-commerce platform 101 according to the monetary resources in the order.
[0101] The second terminal 103 is connected to the e-commerce platform 101 via a wireless network or a wired network. The second terminal 103 may be a terminal used by a merchant. The second terminal 103 may be at least one of a smart phone, a game console, a desktop computer, a tablet computer, an e-book reader, an MP3 player or an MP4 player, and a laptop. The second terminal 103 is installed and runs an application that supports settlement. The application may be a buyer version of a shopping application or a life service application. The merchant's account is logged into the application running on the second terminal 103. When the time reaches the settlement time point agreed upon by the e-commerce platform and the merchant, the e-commerce platform 101 will transfer the monetary resources from the account of the e-commerce platform 101 to the merchant's account.
[0102] The e-commerce platform 101 can sell goods or services through the Internet and can support the consumption mode of online purchase and offline consumption. The e-commerce platform 101 can be a computer device or a cluster composed of multiple computer devices. The computer device can be in the form of a terminal or a server. The e-commerce platform 101 is used to provide background services for user applications and merchant applications.
[0103] Optionally, the e-commerce platform 101 includes: a server 1011 and a database 1012. The server 1011 is used to process transaction data. The server 1011 can be one or more servers. When there are multiple servers 1011, there are at least two servers 1011 for providing different services, and / or there are at least two servers 1011 for providing the same service, such as providing the same service in a load balancing manner, which is not limited in this embodiment of the present invention. The database 1012 can be used to store orders sent by users through applications, and the server 1011 can receive orders from the database 1012 and process transaction data according to the orders.
[0104] Those skilled in the art can know that the number of the first terminal 102, the second terminal 103, and the server 1011 can be more or less. For example, the first terminal 102, the second terminal 103, and the server 1011 can be only one, or the first terminal 102, the second terminal 103, and the server 1011 can be dozens or hundreds, or more. In this case, the settlement system also includes other first terminals 102, second terminals 103, and servers 1011. The embodiment of the present invention does not limit the number and device type of the first terminal 102, the second terminal 103, and the server 1011.
[0105] Figure 2 1 is a flow chart of a transaction data processing method provided by an embodiment of the present invention. This embodiment of the invention is only described by taking a computer device as an example. The computer device can be implemented as a terminal or a server in the implementation environment. For example, it can be a settlement server 1011 of the e-commerce platform 101. Figure 2 , the method comprises the following steps:
[0106] Step 201: A computer device receives an order sent by a user through an application.
[0107] The order may be a cross-border payment order, which refers to an order in which the payment currency is different from the settlement currency. The order may include a payment order and a refund order. The order may contain transaction data. Specifically, the order is used to indicate the transfer of monetary resources in the first currency to the account of the payment object at the settlement time.
[0108] The payment object refers to the object to which the monetary resources are paid when purchasing goods or services. Generally speaking, the payment object can be a merchant or a seller. The payment object's account is used to store monetary resources, and the payment object can withdraw monetary resources from the account or transfer monetary resources out.
[0109] The first currency is the currency used when settling with the payment object. The order can carry the first currency, and the computer device can read the order to obtain the first currency. Alternatively, the order may not carry the first currency, but carry the merchant's identification, and the computer device can query the first currency corresponding to the merchant's identification based on the merchant's identification. The first currency can be pre-agreed by the payment object and the e-commerce platform. Schematically, when the merchant enters the e-commerce platform, it can sign a payment contract, and the payment contract will specify which currency to use for settlement. The computer device of the e-commerce platform can read the currency in the payment contract, obtain the first currency, record the mapping relationship between the first currency and the merchant's identification, and store the mapping relationship in the database. For example, when XX Beauty Store enters the e-commerce platform, it stipulates in the payment contract that the e-commerce platform will use US dollars to settle with the store. Then the computer device of the e-commerce platform can store the mapping relationship between XX Beauty Store and US dollars. When a user places an order at XX Beauty Store through an application, the order can carry US dollars, or carry "XX Beauty Store". The computer device of the e-commerce platform can query the mapping relationship based on "XX Beauty Store" to obtain US dollars.
[0110] The monetary resource of the first currency may be foreign exchange, and the computer device may obtain the monetary resource of the first currency by signing a target contract (purchasing a foreign exchange product).
[0111] The settlement time point refers to the time point of settlement with the payment object, that is, the time point when monetary resources are transferred to the payment object's account. The settlement time point can be determined based on the actual use time point of the goods or services and the settlement cycle. The actual use time point refers to the time point when the user actually uses the goods or services, for example, it can be the time point of consumption in the store, such as the time point of checking into a hotel. The actual use time point is usually later than the payment time point. The settlement cycle can be settled once a month, once a week, once a day, etc. The settlement time point can be later than the actual use time point. Specifically, the settlement time point can be the most recent settlement date after the actual use time point. For example, if the settlement cycle is settled once a month and the settlement date is the 1st of each month, the settlement time point can be the 1st of the next month after the actual use time point.
[0112] Of course, the order may also include other data in addition to the above data, for example, the order may include the identifier of the payment object, the payment time point, the payment currency, the identifier of the user, etc. Among them, the identifier of the payment object is used to identify the payment object, for example, it can be the number of the payment object, such as the merchant number, or the registered name, name, account, store name, etc. of the payment object.
[0113] The order can be generated by the terminal through the application. For example, when the user triggers an order operation or a return operation on the product or service through the terminal on the application, the application generates an order in response to the order operation or the return operation based on the price of the product or service, the merchant's identification, the user's identification and other transaction data, and sends the order to the computer device, which can receive the order sent by the application. Schematically, when a user purchases an item sold by an overseas merchant or books an overseas hotel, the computer device can receive a cross-border payment order.
[0114] For example, if a user places an order on June 1 using RMB A, and the order specifies that the user will check into a hotel in Country X on October 3, then the payment time is June 1, and the actual use time is October 3. The settlement currency of the payment object of the order is USD, and the settlement cycle of the payment object of the order is monthly, with the settlement date being the 1st of each month. Then, the order indicates that USD will be transferred to the merchant's account on November 1, the settlement time.
[0115] Step 202: The computer device reads the order and obtains the settlement time point and the monetary resources of the first currency.
[0116] In some embodiments, during the operation of the computer device, a large number of users can place orders for different goods or services at different merchants through the application program, and each user's application program will generate different orders corresponding to the first currency and the corresponding settlement time points. The computer device can read the order, obtain the settlement time point and the monetary resources of the first currency carried by each order, and filter out the orders of the same settlement currency at the same settlement time point (for example, the same settlement date) from the received orders according to the dimensions of the settlement time point and the first currency, and count the monetary resources corresponding to the filtered orders, so as to know how much monetary resources need to be paid to the merchant at the settlement time point.
[0117] Specifically, step 202 may include any one of the following methods 1 to 3.
[0118] Method 1: The computer device can read the monetary resources in each payment order, the monetary resources in each refund order, and the balance of the monetary resources of the first currency in the target account, add the monetary resources in the one or more payment orders to obtain a first sum value, add the monetary resources in the one or more refund orders to obtain a second sum value, and subtract the first sum value from the second sum value and the balance to obtain the monetary resources of the first currency.
[0119] The target account is an account associated with the computer device, such as an account of an e-commerce platform. The computer device can open the target account through a bank, store the monetary resources of the first currency in the target account, and transfer the monetary resources from the target account to the merchant's account when settling with the merchant.
[0120] Method 1 can be expressed by the following formula:
[0121] Monetary resources of the first currency = the sum of payment order amounts - the sum of refund order amounts - the current balance.
[0122] Method 2: The computer device can read the monetary resources in each payment order and the monetary resources in each refund order, add the monetary resources in the one or more payment orders to obtain a first sum value, add the monetary resources in the one or more refund orders to obtain a second sum value, and subtract the first sum value from the second sum value to obtain the monetary resources of the first currency.
[0123] Method 2 can be expressed by the following formula:
[0124] Monetary resources of the first currency = the sum of payment order amounts - the sum of refund order amounts.
[0125] Method three: the computer device reads the monetary resources in each payment order, adds the monetary resources in the one or more payment orders, and obtains the monetary resources of the first currency.
[0126] Method 3 can be expressed by the following formula:
[0127] Monetary resources of the first currency = the sum of payment order amounts.
[0128] Step 203: The computer device obtains the target exchange rate in one or more contracts of one or more financial institutions.
[0129] Generally speaking, a contract can be called a foreign exchange product. The contract is issued by a financial institution and can represent the exchange of the monetary resources of the first currency at a target time point at a target exchange rate. Through the contract, the target time point and the target exchange rate can be specified. When the e-commerce platform and the financial structure sign a contract, if the time reaches the target time point agreed in the contract, the e-commerce platform can buy and sell foreign exchange with the financial structure at the target exchange rate agreed in the contract. Among them, the contract can be, but not limited to, a real-time foreign exchange purchase contract, a short-term foreign exchange lock contract, a forward foreign exchange purchase contract, an option contract or a combination of one or more of futures contracts.
[0130] The target exchange rate refers to the exchange rate in the contract. Each financial institution can provide one or more contracts, and the target exchange rates in the contracts of different financial institutions can be different. For example, the exchange rates provided by Bank A and Bank B can be different. In addition, the target exchange rates in different contracts of the same financial institution can also be different. For example, the exchange rate of Bank A's one-month futures can be different from the exchange rate of a quarterly futures. The computer device can query the target exchange rate of each contract of each financial institution, so as to subsequently select the contract with the lowest target exchange rate from each contract of each financial institution, that is, the foreign exchange product with the best quotation.
[0131] The target time point refers to the exercise time agreed in the contract, that is, the time to execute the contract to exchange foreign exchange at the target exchange rate. The target time point is a preset time period away from the current time point. The target time point is later than the current time point and earlier than the settlement time point. The preset time period can be 1 day, 3 days, a week, a month, a quarter, etc. The target exchange rate can be the exchange rate between the first currency and the second currency, for example, the exchange rate of the first currency to the second currency, or the exchange rate of the second currency to the first currency. The second currency is the currency used by the computer device to pay the financial structure.
[0132] Indicatively, if the current time point is June 1, the preset duration is 1 month, the monetary resource of the first currency is the US dollar, the monetary resource of the second currency is the RMB, and the target exchange rate is US dollar: RMB = A, then the target contract can indicate that RMB will be used to exchange US dollars at the exchange rate A after 1 month (i.e. on July 1).
[0133] Generally speaking, a real-time foreign exchange purchase contract is to exchange foreign exchange in real time when the contract is successfully signed. Therefore, the time point of executing the real-time foreign exchange purchase contract is closest to the current time point. For short-term foreign exchange lock contracts, forward foreign exchange purchase contracts, option contracts and futures contracts, these contracts all exchange foreign exchange after a period of time after the successful signing of the contract. Among them, the time point of signing and the time point of executing the contract in the short-term foreign exchange lock contract is the closest, followed by the forward foreign exchange purchase contract, while the time point of signing and the time point of executing the contract in the option contract and futures contract is the farthest.
[0134] In some possible embodiments, the computer device may call the exchange rate query interface to send a query request to the financial server of one or more financial institutions, the query request is used to request the exchange rate of each contract of the first currency, for example, it can be used to query the real-time exchange rate of the US dollar, the short-term lock exchange rate from T+1 to T+N, the exchange rate of this month's futures, the exchange rate of this quarter's futures, and the exchange rate of this year's futures. After receiving the query request, the server of any financial institution may parse the query request, obtain the first currency, query the exchange rate of each contract of the first currency, generate a query response, the query response includes the exchange rate of each contract of the first currency, return the query response to the computer device, and the computer device parses the query response to obtain the exchange rate of each contract of the first currency carried in the query response. Wherein, T and N may represent working days.
[0135] Step 204: The computer device calculates the time difference between the current time point and the settlement time point.
[0136] The number of working days between the current time point and the settlement time point can be calculated as the time difference, or the number of natural days between the current time point and the settlement time point can be calculated as the time difference. For example, if the current time point is August 1 and the settlement time point is August 21, the time difference is 20 days. Of course, the time difference can also be expressed in time units other than working days or natural days, and this embodiment does not limit the calculation method of the time difference.
[0137] Step 205: The computer device queries the correspondence between the time interval and the contract identifier based on the time difference between the current time point and the settlement time point, and obtains the identifier of the target contract corresponding to the time interval where the time difference lies.
[0138] The target contract is a contract to be signed between the e-commerce platform and the financial institution. The target contract is a contract corresponding to the time interval in which the time difference is located in one or more contracts. The target contract represents the monetary resource of the first currency to be exchanged at the target exchange rate at the target time point. The target time point in the target contract can be the time point of actual foreign exchange purchase and sale. The target contract can be, but is not limited to, a combination of one or more of a real-time foreign exchange purchase contract, a short-term foreign exchange lock contract, a forward foreign exchange purchase contract, an option contract, or a futures contract.
[0139] The correspondence between the time interval and the identifier of the contract includes one or more time intervals and the identifier of the corresponding one or more contracts. In some embodiments, the correspondence may include one or more of the following (1) to (4):
[0140] (1) The correspondence between the first time interval and the identifier of the short-term exchange lock contract.
[0141] The short-term exchange lock contract indicates that the monetary resources of the first currency are exchanged at the first target exchange rate at the first target time point. The first target exchange rate refers to the exchange rate agreed in the short-term exchange lock contract. The first time interval can be set according to experience, experiment or demand, for example, it can be 3 working days to 7 working days, that is, if the time difference between the current time point and the settlement time point is between 3 working days and 7 working days, the short-term exchange lock can be used in full.
[0142] (2) The correspondence between the second time period and the identifier of the forward foreign exchange purchase contract.
[0143] The forward foreign exchange purchase contract indicates that the monetary resources of the first currency are exchanged at the second target exchange rate at the second target time point. The second target exchange rate refers to the exchange rate agreed in the forward foreign exchange purchase contract. The second time interval can be set according to experience, experiment or demand. The second time interval is greater than the first time interval, and the second target time point is later than the first target time point.
[0144] (3) The correspondence between the third time interval and the identifier of the futures contract.
[0145] The futures contract indicates that the monetary resources of the first currency will be exchanged at a third target exchange rate at a third target time point, the third time interval is greater than the second time interval, and the third target time point is later than the second target time point. The third target exchange rate refers to the exchange rate agreed in the futures contract. The third time interval can be set based on experience, experiment or demand, for example, it can be more than 7 working days, that is, if the time difference between the current time point and the settlement time point is more than 7 working days, the futures contract can be used.
[0146] Optionally, the computer device determines whether the time difference is in a third time interval and whether the monetary resources are less than the amount of one futures contract. If the time difference is in the third time interval and the monetary resources are less than the amount of one futures contract, the computer device reads the identifier of the real-time foreign exchange purchase contract. If the time difference is in the third time interval and the monetary resources are greater than or equal to the amount of one futures contract, the computer device reads the identifier of the futures contract.
[0147] (4) The correspondence between the fourth time period and the identifier of the option contract.
[0148] The option contract indicates that the monetary resources of the first currency will be exchanged at a fourth target exchange rate at a fourth target time point, the fourth time interval is greater than the second time interval, and the fourth target time point is later than the second target time point. The fourth target exchange rate refers to the exchange rate agreed in the option contract. The fourth time interval can be set based on experience, experimentation or demand, for example, it can be more than 7 working days, that is, if the time difference between the current time point and the settlement time point is more than 7 working days, the option contract can be used.
[0149] Optionally, the computer device determines whether the time difference is in a fourth time interval and whether the monetary resources are less than the amount of one option. If the time difference is in the fourth time interval and the monetary resources are less than the amount of one option, the computer device reads the identifier of the real-time foreign exchange purchase contract. If the time difference is in the fourth time interval and the monetary resources are greater than or equal to the amount of one option, the computer device reads the identifier of the option contract.
[0150] Through the corresponding relationships shown in (1) to (4) above, the computer device selects the target contract to be signed according to the distance between the settlement time point and the current time point, thereby realizing the foreign exchange purchase strategy.
[0151] In some possible embodiments, the time interval of the time difference may correspond to multiple contracts at the same time, and the computer device may further screen the multiple contracts to obtain the target contract, for example, including the following methods 1 and 2:
[0152] Method 1: If the time interval of the time difference corresponds to multiple contracts, the computer device can read the target time point in each of the multiple contracts, and select the contract with the closest target time point and settlement time point from the multiple contracts according to the target time point in each of the multiple contracts to obtain the target contract. For example, if the target time point is October 1, there is a contract A with a target time point of August 1, another contract B with a target time point of September 1, and another contract B with a target time point of September 15, then from among contracts A, B and C, contract C can be selected as the target contract.
[0153] Method 2: If the time interval of the time difference corresponds to multiple contracts, the computer device can read the target exchange rate in each of the multiple contracts, and the computer device can select the contract with the lowest target exchange rate from the multiple contracts according to the target exchange rate in each of the multiple contracts to obtain the target contract. Through method 2, considering that the quotations of different financial structures may be different, the cost of purchasing foreign exchange can be saved by selecting and purchasing the contract with the lowest exchange rate.
[0154] In conjunction with (3) in the above correspondence, if the time difference is in the third time interval and the monetary resource is greater than the monetary resource threshold, the computer device may select the futures contract with the lowest target exchange rate from the futures contracts of the multiple financial institutions as the target contract based on the target exchange rates in the futures contracts of the multiple financial institutions. In a schematic way, if the time difference between the current time point and the settlement time point is more than 7 working days and the amount exceeds 10 million US dollars, the computer device may select the futures contract with the lowest target exchange rate.
[0155] In some embodiments, the computer device may also select a real-time foreign exchange purchase contract. Specifically, the above
[0156] Step 205 may be replaced by the following alternative step 1 or alternative step 2:
[0157] In alternative step 1, the computer device may compare the time difference with the first time threshold, and if the time difference is less than the first time threshold, read the identifier of the real-time foreign exchange purchase contract, which indicates that the monetary resources of the first currency are exchanged at the real-time exchange rate. The time threshold may be set based on experience, experiment or demand, for example, 3 working days, that is, if the time difference between the current time point and the settlement time point is less than 3 working days, the real-time foreign exchange purchase may be carried out in full.
[0158] In alternative step 2, the computer device may compare the monetary resources of the first currency with the monetary resource threshold; if the monetary resources of the first currency are less than the monetary resource threshold, the identifier of the real-time foreign exchange purchase contract is read. The monetary resource threshold may be the amount of one option or one futures contract.
[0159] Step 206: The computer device generates a first signing request according to the identifier of the target contract.
[0160] The first signing request is used to request the signing of the target contract. The first signing request may carry the identifier of the target contract and may also carry other information, such as the amount of the target contract, that is, the specific amount of foreign exchange to be bought or sold.
[0161] Step 207: The computer device sends the first signing request to the target financial server through the network connection between the computer device and the target financial server.
[0162] The target financial server is a server that provides the target contract among one or more financial servers.
[0163] Step 208: The computer device receives a confirmation message from the target financial server through the network connection between the computer device and the target financial server.
[0164] The target financial server can receive the signing request through the network connection between the computer device; the target financial server can determine that the computer device is to sign the target contract based on the signing request, and the target financial server can query the balance of the monetary resources of the first currency stored in the target account of the e-commerce platform, and compare the balance of the monetary resources of the first currency with the amount of the target contract. When the balance of the monetary resources of the first currency is greater than or equal to the amount of the target contract, it is determined that the signing of the target contract is successful, and the target financial server generates a confirmation message and sends the confirmation message to the computer device through the network connection between the computer device. The confirmation message may include the exercisable time, that is, the target time point; the computer device can receive the confirmation message through the network connection between the target financial server.
[0165] In some possible embodiments, the above steps 201 to 208 may be a periodically executed process. Specifically, the computer device may execute the above steps 201 to 208 at each time period, thereby signing a target contract for each order received within the time period. Taking the time period as a day as an example, the computer device may purchase foreign exchange for all cross-border payment orders generated on that day every day.
[0166] Optionally, if in the above process, the computer device selects a real-time foreign exchange purchase contract, then step 206 can be replaced by: the computer device generates a second signing request based on the identifier of the real-time foreign exchange purchase contract, and the second signing request is used to request the signing of the real-time foreign exchange purchase contract; the second signing request can carry the identifier of the real-time foreign exchange purchase contract and the amount of the real-time foreign exchange purchase contract, and step 207 can be replaced by: the computer device sends the second signing request to the target financial server through the network connection between the computer device and the target financial server; in step 208, the target financial server can receive the second signing request, compare the balance of the monetary resources of the first currency with the amount of the real-time foreign exchange purchase contract, and when the balance of the monetary resources of the first currency is greater than or equal to the amount of the real-time foreign exchange purchase contract, it is determined that the signing of the real-time foreign exchange purchase contract is successful, and the target financial server generates a confirmation message and sends the confirmation message to the computer device through the network connection between the computer device and the computer device.
[0167] Optionally, the computer device may adjust the amount of the target contract according to the change in the balance of the monetary resource. Specifically, the implementation of this function may include the following steps 1 to 4:
[0168] Step 1: The computer device receives the query instruction.
[0169] The query instruction is used to instruct to query the change in the balance of the first currency in the target account, such as how much foreign exchange is added to the account, or how much foreign exchange is reduced in the account. The query instruction can be triggered by the operation of the financial staff.
[0170] Step 2: The computer device queries the change in the balance of the monetary resource of the first currency in the target account according to the query instruction, and outputs the change in the balance.
[0171] Step 3: The computer device receives the adjustment instruction.
[0172] The adjustment instruction is used to instruct to adjust the amount of the target contract. Specifically, the adjustment instruction may include a first adjustment instruction and a second adjustment instruction, wherein the first adjustment instruction is used to instruct to reduce the amount of the target contract, i.e., to purchase less foreign exchange; and the second adjustment instruction is used to instruct to increase the amount of the target contract, i.e., to purchase more foreign exchange.
[0173] Step 4: The computer device adjusts the amount of the target contract according to the adjustment instruction.
[0174] If the computer device receives the first adjustment instruction, the computer device can reduce the amount of the target contract according to the first adjustment instruction, such as selling part of the signed target contract. For example, a futures contract of 1 million was originally signed. Because the e-commerce platform has conducted overseas financing, the balance of foreign exchange in the target account has increased, and 200,000 futures contracts can be sold. In this way, less foreign exchange can be purchased when executing the target contract to avoid excessive backlog of foreign exchange; similarly, if the computer device receives the second adjustment instruction, the computer device can increase the amount of the target contract according to the second adjustment instruction, such as signing a new target contract, so that more foreign exchange can be purchased when executing the target contract process. That is, the amount of foreign exchange products can be adjusted regularly according to the current position of foreign exchange funds, so that the foreign exchange purchase strategy can be flexibly adjusted according to the amount of foreign exchange held.
[0175] Step 209: If the target time point is reached, the computer device transfers the monetary resources of the second currency from the target account to the account of the target financial service server, and receives the monetary resources of the first currency transferred to the target account from the account of the target financial service server.
[0176] When receiving the confirmation message, the computer device can start the timer to determine whether the elapsed time reaches the preset time. As time goes by, if the elapsed time reaches the preset time, that is, the current time point reaches the target time point, the exercisable time of the target contract is satisfied, and the right to purchase foreign exchange at the target exchange rate can be exercised. Then the computer device can transfer the monetary resources of the second currency from the target account to the account of the target financial service server, thereby paying the target amount server; the target financial server can receive the monetary resources of the second currency transferred to the target financial server from the target account, thereby confirming that the computer device has paid; the target financial server can determine the monetary resources of the first currency based on the monetary resources of the second currency and the target exchange rate, and the numerical relationship between the monetary resources of the first currency and the monetary resources of the second currency meets the target exchange rate, thereby completing the exchange of foreign exchange. The target financial server can transfer the monetary resources of the first currency from the account of the target financial service server to the target account, and the computer device can receive the monetary resources of the first currency transferred to the target account from the account of the target financial service server, thereby completing the business of purchasing foreign exchange according to the target exchange rate pre-agreed in the target contract.
[0177] Optionally, if the computer device selects a real-time foreign exchange purchase contract in the above process, the computer device may not need to start a timer and wait for a preset time, but instead purchase foreign exchange in real time, transfer the monetary resources of the second currency from the target account to the account of the target financial service server, and receive the monetary resources of the first currency transferred to the target account from the account of the target financial service server. If this method is adopted, the numerical relationship between the monetary resources of the second currency and the monetary resources of the first currency will conform to the real-time exchange rate.
[0178] Step 210: If the settlement time point is reached, the computer device transfers the monetary resources of the first currency from the target account to the account of the payment object of the order.
[0179] The upstream business system can determine whether the current time point has reached the settlement time point. If it has reached the settlement time point, the upstream business system can send a remittance payment instruction to the computer device. After receiving the remittance payment instruction, the computer device can transfer the monetary resources of the first currency from the target account to the account of the payment object. Then, the monetary resources of the first currency will be added to the account of the payment object, and the merchant will receive the foreign exchange paid by the e-commerce platform, thereby completing the business of settling foreign exchange to the merchant.
[0180] In an exemplary scenario, when overseas merchants enter the e-commerce platform and provide goods or services to domestic users, overseas merchants usually have the need to settle in foreign exchange, so the e-commerce platform needs to ensure that there is enough foreign exchange stored in the target account to settle with overseas merchants. In the above method flow, the first currency can be the currency of the first country, and the second currency can be the currency of the second country. Users can place orders using the monetary resources of the second currency, and the e-commerce platform can exchange the monetary resources of the second currency for the monetary resources of the first currency and settle with the merchant, thereby satisfying the merchant's need to collect foreign exchange. Compared with the solution of fixed RMB settlement, it breaks the restriction that RMB settlement must be used, supports more business models, and facilitates more overseas merchants to enter the e-commerce platform.
[0181] In some possible embodiments, the method provided in this embodiment can be used to help price goods or services. Specifically, for any resource, such as a product or service, the actual use time of the resource can be predicted, and the settlement time of the resource can be determined according to the settlement cycle of the merchant of the resource. According to the time difference between the current time point and the settlement time point, the target exchange rate in the contract corresponding to the time difference is obtained, and the price of the resource is determined according to the target exchange rate. In this way, the pricing of resources can be made more accurate, thereby reducing the costs of consumers and e-commerce platforms.
[0182] Schematically, see Figure 3 The contract selection and settlement process provided in this embodiment can be provided as a foreign exchange purchase strategy system, which can execute the following steps 301 to 309 during operation.
[0183] Step 301: After a user places an order or returns an order, an order is generated.
[0184] Step 302: The e-commerce platform performs accounting and queries the merchant's payment agreement, settlement mode, and settlement currency.
[0185] Step 303: Query the price of the foreign exchange product.
[0186] Step 304, calculate the foreign exchange purchase strategy. Specifically, the settlement time point can be calculated according to the actual use time point and the settlement cycle, the time difference between the current time point and the settlement time point can be calculated, and the sum of the purchase amount of a settlement currency on a certain date can be calculated, and any one or more of steps 3051, step 3052, step 3053, and step 3054 can be executed according to the time difference and the sum of the purchase amount.
[0187] Step 3051: Execute the real-time foreign exchange purchase process and purchase the real-time foreign exchange purchase contract from the financial institution.
[0188] Step 3052: Execute the short-term exchange lock product purchase process, purchase a short-term exchange lock contract from a financial institution, receive a confirmation message from the financial institution, and record the exercisable time in the short-term exchange lock contract as the exchange purchase time.
[0189] Step 3053: Execute the forward exchange rate product purchase process, purchase the forward exchange rate contract from the financial institution, receive a confirmation message from the financial institution, and record the exercisable time in the forward exchange rate contract as the foreign exchange purchase time.
[0190] Step 3054: Execute the exchange rate option or futures product purchase process, buy options or futures from the financial institution, receive a confirmation message from the financial institution, and record the exercisable time as the exchange rate purchase time.
[0191] Step 306: Execute the position cycle management process.
[0192] Step 307: Execute the foreign exchange purchase process, receive the foreign exchange transferred from the financial structure's account through the platform's account, and purchase foreign exchange.
[0193] Step 308: Execute the remittance payment process to transfer the foreign exchange in the platform's account to the merchant's account, thereby paying the merchant with foreign exchange.
[0194] Step 309: Settlement completed.
[0195] This embodiment provides a set of intelligent and automated solutions for purchasing foreign exchange. By querying the correspondence between the time interval and the contract identifier based on the time difference between the current time point and the settlement time point, the identifier of the target contract corresponding to the time interval where the time difference is located is obtained, and the target contract corresponding to the identifier is signed, thereby realizing the function of locking the exchange rate. The exchange rate for purchasing foreign exchange at the future target time point is pre-locked as the target exchange rate in the target contract. Therefore, when executing the target contract, the foreign exchange can be exchanged based on the target exchange rate pre-agreed in the target contract instead of the real-time exchange rate at the target time point. Therefore, the risk caused by the fluctuation of the exchange rate from the current time point to the target time point is avoided, thereby reducing the cost of providing cross-border payment services. In addition, since the foreign exchange is not exchanged immediately after the order is placed, but is actually exchanged at the target time point, the time that the foreign exchange is accumulated on the platform is shortened, and the utilization rate of the foreign exchange is improved.
[0196] Figure 4 Schematic diagram of a transaction data processing device provided by an embodiment of the present invention. Figure 4 , the device comprises:
[0197] The receiving module 401 is used to receive an order sent by a user through an application program, where the order is used to instruct to transfer monetary resources of the first currency to an account of a payment object at a settlement time point;
[0198] A reading module 402 is used to read the order and obtain the settlement time point and the monetary resources of the first currency;
[0199] A query module 403 is used to query the correspondence between the time interval and the contract identifier according to the time difference between the current time point and the settlement time point, and obtain the identifier of the target contract corresponding to the time interval where the time difference is located, and the target contract indicates that the monetary resource of the first currency is exchanged at the target time point according to the target exchange rate, and the target time point is separated from the current time point by a preset time length;
[0200] A generating module 404, configured to generate a first signing request according to the identifier of the target contract, wherein the first signing request is used to request signing of the target contract;
[0201] A sending module 405, configured to send the first signing request to the target financial server through a network connection with the target financial server;
[0202] The transfer module 406 is used to transfer the monetary resources of the second currency from the target account to the account of the target financial service server if the target time point is reached, and receive the monetary resources of the first currency transferred to the target account from the account of the target financial service server, wherein the numerical relationship between the monetary resources of the second currency and the monetary resources of the first currency conforms to the target exchange rate, and the target account is an account associated with the computer device;
[0203] The transfer module 406 is further configured to transfer the monetary resources of the first currency from the target account to the account of the payment object if the settlement time point is reached.
[0204] This embodiment provides a set of intelligent and automated solutions for purchasing foreign exchange. By querying the correspondence between the time interval and the contract identifier based on the time difference between the current time point and the settlement time point, the identifier of the target contract corresponding to the time interval where the time difference is located is obtained, and the target contract corresponding to the identifier is signed, thereby realizing the function of locking the exchange rate. The exchange rate for purchasing foreign exchange at the future target time point is pre-locked as the target exchange rate in the target contract. Therefore, when executing the target contract, the foreign exchange can be exchanged based on the target exchange rate pre-agreed in the target contract instead of the real-time exchange rate at the target time point. Therefore, the risk caused by the fluctuation of the exchange rate from the current time point to the target time point is avoided, thereby reducing the cost of providing cross-border payment services. In addition, since the foreign exchange is not exchanged immediately after the order is placed, but is actually exchanged at the target time point, the time that the foreign exchange is accumulated on the platform is shortened, and the utilization rate of the foreign exchange is improved.
[0205] Optionally, the correspondence between the time interval and the identifier of the contract includes at least one of the following:
[0206] a correspondence between the first time interval and an identifier of a short-term exchange lock contract, the short-term exchange lock contract indicating that the monetary resource of the first currency is exchanged at a first target exchange rate at a first target time point;
[0207] a correspondence between a second time interval and an identifier of a forward foreign exchange purchase contract, the forward foreign exchange purchase contract indicating that the monetary resource of the first currency is exchanged at a second target exchange rate at a second target time point, the second time interval being greater than the first time interval, and the second target time point being later than the first target time point;
[0208] a correspondence between a third time interval and an identifier of a futures contract, the futures contract representing the exchange of the monetary resource of the first currency at a third target exchange rate at a third target time point, the third time interval being greater than the second time interval, and the third target time point being later than the second target time point;
[0209] The correspondence between the fourth time interval and the identifier of the option contract, the option contract indicates that the monetary resources of the first currency will be exchanged at a fourth target exchange rate at a fourth target time point, the fourth time interval is greater than the second time interval, and the fourth target time point is later than the second target time point.
[0210] Optionally, the device further includes a selection module, wherein the selection module is configured to perform any of the following:
[0211] If the time interval of the time difference corresponds to multiple contracts, according to the target time point in each of the multiple contracts, select the contract whose target time point is closest to the settlement time point from the multiple contracts to obtain the target contract;
[0212] If the time interval of the time difference corresponds to multiple contracts, according to the target exchange rate in each of the multiple contracts, the contract with the lowest target exchange rate is selected from the multiple contracts to obtain the target contract.
[0213] Optionally, the order includes one or more payment orders and one or more refund orders, and the reading module 402 is used to perform any of the following:
[0214] Read the monetary resource in each payment order, add the monetary resources in the one or more payment orders, and obtain the monetary resource in the first currency;
[0215] Read the monetary resources in each payment order and the monetary resources in each refund order, add the monetary resources in the one or more payment orders to obtain a first sum value, add the monetary resources in the one or more refund orders to obtain a second sum value, and subtract the first sum value from the second sum value to obtain the monetary resources of the first currency;
[0216] Read the monetary resources in each payment order, the monetary resources in each refund order, and the balance of the monetary resources of the first currency in the target account, add the monetary resources in the one or more payment orders to obtain a first sum value, add the monetary resources in the one or more refund orders to obtain a second sum value, subtract the first sum value from the second sum value and the balance to obtain the monetary resources of the first currency.
[0217] Optionally, the device further comprises: a comparison module, configured to compare the time difference with a first time threshold;
[0218] The reading module 402 is further configured to read an identifier of a real-time foreign exchange purchase contract if the time difference is less than the first time threshold, the real-time foreign exchange purchase contract indicating that the monetary resource of the first currency is exchanged according to the real-time exchange rate;
[0219] The generating module 404 is further used to generate a second signing request according to the identifier of the real-time foreign exchange purchase contract, and the second signing request is used to request to sign the real-time foreign exchange purchase contract;
[0220] The sending module 405 is further configured to send the second signing request to the target financial server through a network connection with the target financial server;
[0221] The transfer module 406 is also used to transfer the monetary resources of the second currency from the target account to the account of the target financial service server, and receive the monetary resources of the first currency transferred from the account of the target financial service server to the target account. The numerical relationship between the monetary resources of the second currency and the monetary resources of the first currency conforms to the real-time exchange rate.
[0222] Optionally, the device further comprises: a comparison module, configured to compare the monetary resource of the first currency with a monetary resource threshold;
[0223] The reading module 402 is further configured to read the identifier of the real-time foreign exchange purchase contract if the monetary resource of the first currency is less than the monetary resource threshold;
[0224] The generating module 404 is further used to generate a second signing request according to the identifier of the real-time foreign exchange purchase contract, and the second signing request is used to request to sign the real-time foreign exchange purchase contract;
[0225] The sending module 405 is further configured to send the second signing request to the target financial server through a network connection with the target financial server;
[0226] The transfer module 406 is also used to transfer the monetary resources of the second currency from the target account to the account of the target financial service server, and receive the monetary resources of the first currency transferred from the account of the target financial service server to the target account. The numerical relationship between the monetary resources of the second currency and the monetary resources of the first currency conforms to the real-time exchange rate.
[0227] Optionally, the receiving module 401 is further configured to receive a query instruction, wherein the query instruction is configured to instruct to query a change in the balance of the monetary resource of the first currency in the target account;
[0228] The device further includes: a query module 403, configured to query the change in the balance of the first currency in the target account according to the query instruction, and output the change in the balance;
[0229] The receiving module 401 is further used to receive an adjustment instruction, where the adjustment instruction is used to instruct to adjust the amount of the target contract;
[0230] The device also includes: an adjustment module, which is used to adjust the amount of the target contract according to the adjustment instruction.
[0231] It should be noted that: the transaction data processing device provided in the above embodiment only uses the division of the above functional modules as an example when processing transaction data. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the functions described above. In addition, the transaction data processing device provided in the above embodiment and the transaction data processing method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0232] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present disclosure, and will not be described in detail here.
[0233] The computer device provided by the above technical solution can be implemented as a terminal or a server, for example, Figure 5 5 is a schematic diagram of the structure of a terminal provided by an embodiment of the present invention. The terminal 500 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), a laptop computer or a desktop computer. The terminal 500 may also be called a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.
[0234] Typically, the terminal 500 includes a processor 501 and a memory 502 .
[0235] The processor 501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 501 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 501 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 501 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 501 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0236] The memory 502 may include one or more computer-readable storage media, which may be non-transitory. The memory 502 may also include a high-speed random access memory and a non-volatile memory, such as one or more disk storage devices and flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 502 is used to store at least one instruction, which is used to be executed by the processor 501 to implement the transaction data processing method provided in the method embodiment of the present invention.
[0237] In some embodiments, the terminal 500 may also optionally include: a peripheral device interface 503 and at least one peripheral device. The processor 501, the memory 502 and the peripheral device interface 503 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 503 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 504, a touch display screen 505, a camera assembly 506, an audio circuit 507, a positioning assembly 508 and a power supply 509.
[0238] The peripheral device interface 503 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 501 and the memory 502. In some embodiments, the processor 501, the memory 502, and the peripheral device interface 503 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 501, the memory 502, and the peripheral device interface 503 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0239] The radio frequency circuit 504 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 504 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 504 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 504 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 504 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 504 may also include circuits related to NFC (Near Field Communication), which is not limited in the present invention.
[0240] The display screen 505 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 505 is a touch display screen, the display screen 505 also has the ability to collect touch signals on the surface or above the surface of the display screen 505. The touch signal can be input to the processor 501 as a control signal for processing. At this time, the display screen 505 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 505 can be one, and the front panel of the terminal 500 is set; in other embodiments, the display screen 505 can be at least two, which are respectively set on different surfaces of the terminal 500 or are folded; in some other embodiments, the display screen 505 can be a flexible display screen, which is set on the curved surface or folded surface of the terminal 500. Even, the display screen 505 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 505 can be made of materials such as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, organic light-emitting diode).
[0241] The camera assembly 506 is used to capture images or videos. Optionally, the camera assembly 506 includes a front camera and a rear camera. Typically, the front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize the panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 506 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0242] The audio circuit 507 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 501 for processing, or input them into the radio frequency circuit 504 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 500. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 501 or the radio frequency circuit 504 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 507 may also include a headphone jack.
[0243] The positioning component 508 is used to locate the current geographical location of the terminal 500 to implement navigation or LBS (Location Based Service). The positioning component 508 can be a positioning component based on the US GPS (Global Positioning System), China's Beidou system or Russia's Galileo system.
[0244] The power supply 509 is used to power various components in the terminal 500. The power supply 509 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 509 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0245] In some embodiments, the terminal 500 further includes one or more sensors 510 , including but not limited to: an acceleration sensor 511 , a gyroscope sensor 512 , a pressure sensor 513 , a fingerprint sensor 514 , an optical sensor 515 , and a proximity sensor 516 .
[0246] The acceleration sensor 511 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 500. For example, the acceleration sensor 511 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 501 can control the touch screen 505 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 511. The acceleration sensor 511 can also be used for collecting game or user motion data.
[0247] The gyro sensor 512 can detect the body direction and rotation angle of the terminal 500, and the gyro sensor 512 can cooperate with the acceleration sensor 511 to collect the user's 3D actions on the terminal 500. The processor 501 can implement the following functions based on the data collected by the gyro sensor 512: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0248] The pressure sensor 513 can be set on the side frame of the terminal 500 and / or the lower layer of the touch display screen 505. When the pressure sensor 513 is set on the side frame of the terminal 500, it can detect the user's holding signal of the terminal 500, and the processor 501 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 513. When the pressure sensor 513 is set on the lower layer of the touch display screen 505, the processor 501 controls the operability controls on the UI interface according to the user's pressure operation on the touch display screen 505. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0249] The fingerprint sensor 514 is used to collect the user's fingerprint, and the processor 501 identifies the user's identity based on the fingerprint collected by the fingerprint sensor 514, or the fingerprint sensor 514 identifies the user's identity based on the collected fingerprint. When the user's identity is identified as a trusted identity, the processor 501 authorizes the user to perform relevant sensitive operations, which include unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings. The fingerprint sensor 514 can be set on the front, back, or side of the terminal 500. When a physical button or a manufacturer logo is set on the terminal 500, the fingerprint sensor 514 can be integrated with the physical button or the manufacturer logo.
[0250] The optical sensor 515 is used to collect the ambient light intensity. In one embodiment, the processor 501 can control the display brightness of the touch display screen 505 according to the ambient light intensity collected by the optical sensor 515. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 505 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 505 is reduced. In another embodiment, the processor 501 can also dynamically adjust the shooting parameters of the camera assembly 506 according to the ambient light intensity collected by the optical sensor 515.
[0251] The proximity sensor 516, also called a distance sensor, is usually arranged on the front panel of the terminal 500. The proximity sensor 516 is used to collect the distance between the user and the front of the terminal 500. In one embodiment, when the proximity sensor 516 detects that the distance between the user and the front of the terminal 500 is gradually decreasing, the processor 501 controls the touch display screen 505 to switch from the screen-on state to the screen-off state; when the proximity sensor 516 detects that the distance between the user and the front of the terminal 500 is gradually increasing, the processor 501 controls the touch display screen 505 to switch from the screen-off state to the screen-on state.
[0252] Those skilled in the art will understand that Figure 5 The structure shown in the figure does not constitute a limitation on the terminal 500, and the terminal 500 may include more or less components than those shown in the figure, or combine some components, or adopt a different component arrangement.
[0253] The method provided in the embodiment of the present invention may be implemented in a computer device, and the computer device may be implemented as a server, for example, Figure 6 6 is a schematic diagram of the structure of a server provided by an embodiment of the present invention. The server 600 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 601 and one or more memories 602, wherein the memory 602 stores at least one instruction, and the at least one instruction is loaded and executed by the processor 601 to implement the transaction data processing method provided by the above-mentioned various method embodiments. Of course, the server may also have components such as a wired or wireless network interface and an input and output interface for input and output, and the server may also include other components for implementing device functions, which will not be described in detail here.
[0254] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including instructions, and the instructions can be executed by a processor to complete the transaction data processing method in the above embodiment. For example, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device.
[0255] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0256] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A transaction data processing method, characterized in that: Applied to a computer device, the method comprises: Receiving an order sent by a user through an application, the order being used to instruct to transfer monetary resources in a first currency to an account of a payment object at a settlement time point; Read the order to obtain the settlement time point and the monetary resources of the first currency; According to the time difference between the current time point and the settlement time point, the correspondence between the time interval and the contract identifier is queried to obtain the identifier of the target contract corresponding to the time interval in which the time difference is located, the target contract represents the monetary resource of the first currency to be exchanged at the target time point according to the target exchange rate, and the target time point is separated from the current time point by a preset time length; Generate a first signing request according to the identifier of the target contract, where the first signing request is used to request signing of the target contract; Sending the first signing request to the target financial server through a network connection with the target financial server; If the target time point is reached, the monetary resources of the second currency are transferred out from the target account to the account of the target financial service server, and the monetary resources of the first currency transferred to the target account are received from the account of the target financial service server, and the numerical relationship between the monetary resources of the second currency and the monetary resources of the first currency conforms to the target exchange rate, and the target account is an account associated with the computer device; If the settlement time point is reached, the monetary resources of the first currency are transferred from the target account to the account of the payment object.
2. The method according to claim 1, characterized in that The correspondence between the time interval and the identifier of the contract includes at least one of the following: a correspondence between a first time interval and an identifier of a short-term exchange lock contract, wherein the short-term exchange lock contract indicates that the monetary resources of the first currency are exchanged at a first target exchange rate at a first target time point; a correspondence between a second time interval and an identifier of a forward foreign exchange purchase contract, wherein the forward foreign exchange purchase contract indicates that the monetary resources of the first currency are exchanged at a second target exchange rate at a second target time point, the second time interval is greater than the first time interval, and the second target time point is later than the first target time point; a correspondence between a third time interval and an identifier of a futures contract, wherein the futures contract indicates that the monetary resource of the first currency is exchanged at a third target exchange rate at a third target time point, the third time interval is greater than the second time interval, and the third target time point is later than the second target time point; The correspondence between the fourth time interval and the identifier of the option contract, the option contract indicates that the monetary resources of the first currency will be exchanged at a fourth target exchange rate at a fourth target time point, the fourth time interval is greater than the second time interval, and the fourth target time point is later than the second target time point.
3. The method according to claim 1, characterized in that After reading the order and obtaining the settlement time point and the monetary resources of the first currency, the method further includes any of the following: If the time interval in which the time difference lies corresponds to multiple contracts, according to the target time point in each of the multiple contracts, a contract whose target time point is closest to the settlement time point is selected from the multiple contracts to obtain the target contract; If the time interval in which the time difference lies corresponds to multiple contracts, a contract with the lowest target exchange rate is selected from the multiple contracts according to the target exchange rate in each of the multiple contracts to obtain the target contract.
4. The method according to claim 1, characterized in that The order includes one or more payment orders and one or more refund orders, and the reading of the order to obtain the settlement time point and the monetary resources of the first currency includes any one of the following: Reading the monetary resources in each payment order, adding the monetary resources in the one or more payment orders to obtain the monetary resources in the first currency; Reading the monetary resources in each payment order and the monetary resources in each refund order, adding the monetary resources in the one or more payment orders to obtain a first sum value, adding the monetary resources in the one or more refund orders to obtain a second sum value, and subtracting the first sum value from the second sum value to obtain the monetary resources of the first currency; Read the monetary resources in each payment order, the monetary resources in each refund order, and the balance of the monetary resources of the first currency in the target account, add the monetary resources in the one or more payment orders to obtain a first sum value, add the monetary resources in the one or more refund orders to obtain a second sum value, subtract the first sum value from the second sum value and the balance to obtain the monetary resources of the first currency.
5. The method according to claim 1, characterized in that After reading the order and obtaining the settlement time point and the monetary resources of the first currency, the method further includes: comparing the time difference with a first time threshold; If the time difference is less than the first time threshold, reading an identifier of a real-time foreign exchange purchase contract, the real-time foreign exchange purchase contract indicating that the monetary resources of the first currency are exchanged at a real-time exchange rate; Generate a second signing request according to the identifier of the real-time foreign exchange purchase contract, where the second signing request is used to request signing of the real-time foreign exchange purchase contract; sending the second signing request to the target financial server through a network connection with the target financial server; The monetary resources of the second currency are transferred from the target account to the account of the target financial service server, and the monetary resources of the first currency are received from the account of the target financial service server and transferred to the target account, and the numerical relationship between the monetary resources of the second currency and the monetary resources of the first currency conforms to the real-time exchange rate.
6. The method according to claim 1, characterized in that After reading the order and obtaining the settlement time point and the monetary resources of the first currency, the method further includes: comparing the monetary resources of the first currency with a monetary resource threshold; If the monetary resource of the first currency is less than the monetary resource threshold, reading the identifier of the real-time foreign exchange purchase contract; Generate a second signing request according to the identifier of the real-time foreign exchange purchase contract, where the second signing request is used to request signing of the real-time foreign exchange purchase contract; sending the second signing request to the target financial server through a network connection with the target financial server; The monetary resources of the second currency are transferred from the target account to the account of the target financial service server, and the monetary resources of the first currency are received from the account of the target financial service server and transferred to the target account, and the numerical relationship between the monetary resources of the second currency and the monetary resources of the first currency conforms to the real-time exchange rate.
7. The method according to claim 1, characterized in that Before generating the first signing request according to the identifier of the target contract, the method further includes: receiving a query instruction, the query instruction being used to instruct to query a change in a balance of a monetary resource of the first currency in the target account; According to the query instruction, query the change in the balance of the monetary resource of the first currency in the target account, and output the change in the balance; receiving an adjustment instruction, wherein the adjustment instruction is used to instruct to adjust the amount of the target contract; The amount of the target contract is adjusted according to the adjustment instruction.
8. A transaction data processing device, characterized in that: The device comprises: A receiving module, used to receive an order sent by a user through an application, wherein the order is used to instruct to transfer a monetary resource of the first currency to an account of a payment object at a settlement time point; A reading module, used for reading the order and obtaining the settlement time point and the monetary resources of the first currency; A query module, configured to query the correspondence between the time interval and the contract identifier according to the time difference between the current time point and the settlement time point, and obtain the identifier of the target contract corresponding to the time interval in which the time difference is located, wherein the target contract indicates that the monetary resources of the first currency are exchanged at a target exchange rate at a target time point, and the target time point is separated from the current time point by a preset time length; A generating module, configured to generate a first signing request according to the identifier of the target contract, wherein the first signing request is used to request signing of the target contract; A sending module, configured to send the first signing request to the target financial server through a network connection with the target financial server; a transfer module, configured to transfer the monetary resources of the second currency from the target account to the account of the target financial service server if the target time point is reached, and receive the monetary resources of the first currency transferred to the target account from the account of the target financial service server, wherein the numerical relationship between the monetary resources of the second currency and the monetary resources of the first currency conforms to the target exchange rate, and the target account is an account associated with the computer device; The transfer module is further configured to transfer the monetary resources of the first currency from the target account to the account of the payment object if the settlement time point is reached.
9. A computer device, characterized in that: The computer device includes one or more processors and one or more memories, wherein the one or more memories store at least one instruction, and the at least one instruction is loaded and executed by the one or more processors to implement the operations performed by the transaction data processing method according to any one of claims 1 to claim 7.
10. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the operation performed by the transaction data processing method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Paying non-settlement transactions
CN103748602A
Method and apparatus for displaying currency exchange rate
CN105787789A
A service system for buying and selling of abroad fund
KR1020050050739A
System for processing realtime payment transaction using overseas prepayment cash and method thereof
KR1020160133704A
Method for facilitating commercial transactions
WO2001088802A2
