A transaction parameter query method, device, and equipment, and a storage medium
By introducing a transaction processing component into the forex management platform to directly handle client transaction parameter query requests, the stability issue of the forex management platform when faced with a large number of requests is resolved, and more efficient transaction parameter queries are achieved.
Patent Information
- Application Number
- CN202211174240.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-26
- Publication Date
- 2026-01-06
- Estimated Expiration
- 2042-09-26
AI Technical Summary
When faced with a large number of parameter retrieval requests, the foreign exchange management platform of financial institutions experiences prolonged response time, affecting platform stability and making it impossible to track foreign exchange transactions in real time.
A transaction processing component is introduced to receive parameter retrieval requests from clients, determine transaction parameters based on the target transaction identifier and date, and send them directly to the client, reducing the burden on transaction management equipment.
This improved the stability of the foreign exchange management platform, ensured timely response to transaction parameter queries, and avoided the problem of excessive device load.
Smart Images

Figure CN115391667B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of data processing technology, and in particular to a method, apparatus, device and storage medium for querying transaction parameters. Background Technology
[0002] The financial market includes trading in a wide variety of financial products, such as foreign exchange and precious metals. Financial institutions need to track the trading activity of each financial product in real time and provide users with feedback on trading parameters based on this information.
[0003] Currently, for foreign exchange rate inquiries, financial institutions typically use foreign exchange management platforms to track foreign exchange transactions in real time. These platforms also need to respond to parameter retrieval requests from various users. When the platform receives a large number of these requests, it increases the response time and hinders its real-time tracking of foreign exchange transactions, thus reducing its stability. Summary of the Invention
[0004] This application provides a method, apparatus, device, and storage medium for querying transaction parameters, which can improve the stability of a foreign exchange management platform.
[0005] On one hand, embodiments of this application provide a method for querying transaction parameters, applied to a transaction processing component, the method comprising:
[0006] Receive a parameter retrieval request sent by the client, the parameter retrieval request including the target transaction identifier and the target transaction date;
[0007] Based on multiple transaction parameters corresponding to the target transaction identifier, the target transaction parameters for the target transaction identifier on the target transaction date are determined; the multiple transaction parameters corresponding to the target transaction identifier are obtained by the transaction processing component from the transaction management device.
[0008] The target transaction parameters, which identify the target transaction on the target transaction date, are sent to the client.
[0009] Optionally, before receiving the parameter retrieval request sent by the client, the method further includes:
[0010] Obtain multiple transaction identifiers and multiple standard transaction dates; the standard transaction dates are the transaction dates corresponding to preset time points.
[0011] For any given transaction identifier, the transaction parameters for that transaction identifier on the plurality of standard transaction dates are obtained from the transaction management device.
[0012] Optionally, the type of the transaction identifier includes direct transactions;
[0013] The target transaction parameters for the target transaction identifier on the target transaction date are determined based on multiple transaction parameters corresponding to the target transaction identifier:
[0014] If the type of the target transaction identifier is a direct transaction, then determine whether the target transaction date of the target transaction identifier is a standard transaction date;
[0015] If the target transaction date is a non-standard transaction date, then from the plurality of standard transaction dates, a plurality of standard transaction dates associated with the target transaction date are determined as reference transaction dates;
[0016] Based on the transaction parameters corresponding to each of the multiple reference transaction dates, the target transaction parameters corresponding to the target transaction date are determined.
[0017] Optionally, determining a plurality of standard transaction dates associated with the target transaction date from the plurality of standard transaction dates as reference transaction dates includes:
[0018] From the plurality of standard transaction dates, determine a standard transaction date that is less than the target transaction date and closest to the target transaction date, and use it as the first reference transaction date;
[0019] From the plurality of standard transaction dates, determine the standard transaction date that is greater than the target transaction date and closest to the target transaction date, and use it as the second reference transaction date.
[0020] Optionally, determining the target transaction parameters corresponding to the target transaction date based on the transaction parameters corresponding to each of the multiple reference transaction dates includes:
[0021] If the target transaction date is less than the interest accrual date, a forward interpolation algorithm is used to interpolate the transaction parameters corresponding to the first reference transaction date and the transaction parameters corresponding to the second reference transaction date to obtain the target transaction parameters corresponding to the target transaction date.
[0022] Optionally, it also includes:
[0023] If the target transaction date is greater than the interest accrual date, a backward interpolation algorithm is used to interpolate the transaction parameters corresponding to the first reference transaction date and the transaction parameters corresponding to the second reference transaction date to obtain the target transaction parameters corresponding to the target transaction date.
[0024] Optionally, the type of transaction identifier may also include cross-trade transactions;
[0025] The step of determining the target transaction parameters of the target transaction identifier on the target transaction date based on multiple transaction parameters corresponding to the target transaction identifier includes:
[0026] If the target transaction identifier is a cross-currency transaction, then the target transaction identifier is split into a first transaction identifier and a second transaction identifier; both the first transaction identifier and the second transaction identifier are direct-currency transaction identifiers.
[0027] Determine the first transaction parameters of the first transaction identifier on the target transaction date, and the second transaction parameters of the second transaction identifier on the target transaction date;
[0028] Based on the first transaction parameters and the second transaction parameters, the target transaction parameters of the target transaction identifier on the target transaction date are determined.
[0029] On one hand, embodiments of this application provide a transaction parameter query device, which includes:
[0030] The receiving module is used to receive a parameter acquisition request sent by the client, wherein the parameter acquisition request includes the target transaction identifier and the target transaction date;
[0031] The determination module is used to determine the target transaction parameters of the target transaction identifier on the target transaction date based on multiple transaction parameters corresponding to the target transaction identifier; the multiple transaction parameters corresponding to the target transaction identifier are obtained by the transaction processing component from the transaction management device;
[0032] The sending module is used to send the target transaction parameters, which identify the target transaction on the target transaction date, to the client.
[0033] Optionally, it also includes an acquisition module, which is specifically used for:
[0034] Before receiving a parameter retrieval request from the client, multiple transaction identifiers and multiple standard transaction dates are obtained; the standard transaction dates are the transaction dates corresponding to preset time points.
[0035] For any given transaction identifier, the transaction parameters for that transaction identifier on the plurality of standard transaction dates are obtained from the transaction management device.
[0036] Optionally, the type of the transaction identifier includes direct transactions;
[0037] The determining module is specifically used for:
[0038] If the type of the target transaction identifier is a direct transaction, then determine whether the target transaction date of the target transaction identifier is a standard transaction date;
[0039] If the target transaction date is a non-standard transaction date, then from the plurality of standard transaction dates, a plurality of standard transaction dates associated with the target transaction date are determined as reference transaction dates;
[0040] Based on the transaction parameters corresponding to each of the multiple reference transaction dates, the target transaction parameters corresponding to the target transaction date are determined.
[0041] Optionally, the determining module is specifically used for:
[0042] From the plurality of standard transaction dates, determine a standard transaction date that is less than the target transaction date and closest to the target transaction date, and use it as the first reference transaction date;
[0043] From the plurality of standard transaction dates, determine the standard transaction date that is greater than the target transaction date and closest to the target transaction date, and use it as the second reference transaction date.
[0044] Optionally, the determining module is specifically used for:
[0045] If the target transaction date is less than the interest accrual date, a forward interpolation algorithm is used to interpolate the transaction parameters corresponding to the first reference transaction date and the transaction parameters corresponding to the second reference transaction date to obtain the target transaction parameters corresponding to the target transaction date.
[0046] Optionally, the determining module is further configured to:
[0047] If the target transaction date is greater than the interest accrual date, a backward interpolation algorithm is used to interpolate the transaction parameters corresponding to the first reference transaction date and the transaction parameters corresponding to the second reference transaction date to obtain the target transaction parameters corresponding to the target transaction date.
[0048] Optionally, the type of transaction identifier may also include cross-trade transactions;
[0049] The determining module is also used for:
[0050] If the target transaction identifier is a cross-currency transaction, then the target transaction identifier is split into a first transaction identifier and a second transaction identifier; both the first transaction identifier and the second transaction identifier are of the type of direct-currency transaction.
[0051] Determine the first transaction parameters of the first transaction identifier on the target transaction date, and the second transaction parameters of the second transaction identifier on the target transaction date;
[0052] Based on the first transaction parameters and the second transaction parameters, the target transaction parameters of the target transaction identifier on the target transaction date are determined.
[0053] On one hand, embodiments of this application provide a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps of the above-described transaction parameter query method.
[0054] On one hand, embodiments of this application provide a computer-readable storage medium storing a computer program executable by a computer device, which, when run on the computer device, causes the computer device to perform the steps of the above-described transaction parameter query method.
[0055] On one hand, embodiments of this application provide a computer program product, including a computer program executable by a computer device, which, when run on the computer device, causes the computer device to perform the steps of the above-described transaction parameter query method.
[0056] In this embodiment, the transaction processing component receives a parameter retrieval request from the client, wherein the parameter retrieval request includes a target transaction identifier and a target transaction date. Based on multiple transaction parameters corresponding to the target transaction identifier, the component determines the target transaction parameters for the target transaction identifier on the target transaction date. These multiple transaction parameters are obtained by the transaction processing component from the transaction management device. Finally, the transaction processing component sends the target transaction parameters for the target transaction identifier on the target transaction date to the client. Since the transaction management device no longer receives parameter retrieval requests from the client, but instead the transaction processing component provides the transaction parameter query function, the stability of the transaction management device is improved. Attached Figure Description
[0057] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0058] Figure 1 A schematic diagram of a system architecture provided for an embodiment of this application;
[0059] Figure 2 A flowchart illustrating a transaction parameter query method provided in an embodiment of this application;
[0060] Figure 3 A flowchart illustrating a method for determining target transaction parameters provided in an embodiment of this application;
[0061] Figure 4 A flowchart illustrating a method for determining target transaction parameters provided in an embodiment of this application;
[0062] Figure 5 A flowchart illustrating a method for determining target transaction parameters provided in an embodiment of this application;
[0063] Figure 6 A flowchart illustrating a method for determining target transaction parameters provided in an embodiment of this application;
[0064] Figure 7 A flowchart illustrating a transaction parameter query method provided in an embodiment of this application;
[0065] Figure 8 This is a schematic diagram of the structure of a transaction parameter query device provided in an embodiment of this application;
[0066] Figure 9 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation
[0067] To make the objectives, technical solutions, and beneficial effects of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0068] refer to Figure 1 This is a transaction parameter query system architecture diagram applicable to the embodiments of this application. The transaction parameter query system architecture diagram includes at least a client 101, a transaction processing component 102, and a transaction management device 103.
[0069] Client 101 has a target application installed for querying transaction parameters. This application can be a pre-installed client, a web application, or a mini-program embedded in other applications. Client 101 can be a smartphone, tablet, laptop, desktop computer, etc., but is not limited to these.
[0070] The transaction management device 103 tracks each transaction and stores the corresponding transaction parameters. The transaction management device 103 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.
[0071] Transaction processing component 102 serves as the backend server for the target application, providing services to it. Transaction processing component 102 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. Transaction processing component 102 can also be built into transaction management device 103.
[0072] The client 101 and the transaction processing component 102 can be connected directly or indirectly via wired or wireless communication, and this application does not impose any restrictions on this. The transaction processing component 102 and the transaction management device 103 can be connected directly or indirectly via wired or wireless communication, and this application does not impose any restrictions on this.
[0073] The client responds to the user's transaction parameter query operation by sending a parameter retrieval request to the transaction processing component 102. The transaction processing component 102 receives the parameter retrieval request, which includes a target transaction identifier and a target transaction date. Based on multiple transaction parameters corresponding to the target transaction identifier, the transaction processing component 102 determines the target transaction parameters for the target transaction identifier on the target transaction date. These multiple transaction parameters are obtained by the transaction processing component from the transaction management device. The transaction processing component 102 then sends the target transaction parameters for the target transaction identifier on the target transaction date to the client.
[0074] based on Figure 1 The system architecture diagram described above, and the flowchart of a transaction parameter query method provided in this application embodiment, are as follows: Figure 2 As shown, the process of this method is as follows: Figure 1 The transaction processing component 102 shown executes the following steps:
[0075] Step S201: Receive the parameter retrieval request sent by the client.
[0076] Specifically, the transaction can be foreign exchange, precious metals, etc., without any restrictions.
[0077] The parameter retrieval request includes the target transaction identifier and the target transaction date, where different transactions correspond to different transaction identifiers.
[0078] There are two types of trading dates: standard trading dates and non-standard trading dates. The target trading date can be either a standard trading date or a non-standard trading date.
[0079] The standard transaction date is the transaction date corresponding to a preset time point. Commonly used standard transaction dates are shown in Table 1.
[0080] Table 1.
[0081] Standard Transaction Date (Full Name) Standard Transaction Date (abbreviation) Standard Transaction Date (Meaning) Today TODAY (or T) Trading day Tomorrow TOM (or T+1) The first business day after the trading day Spot SPOT (or T+2) The second business day after the trading day 1Day 1D The first business day after the current interest accrual date 1Week 1W One week after the current interest accrual date 2 Weeks 2W Two weeks after the current interest accrual date 3Weeks 3W Three weeks after the current interest accrual date 1 Month 1M One month after the current interest accrual date 2 Months 2M Two months after the current interest accrual date 3 Months 3M Three months after the current interest accrual date 4 Months 4M Four months after the current interest accrual date 5 Months 5M Five months after the current interest accrual date 6 Months 6M Six months after the current interest accrual date 9 Months 9M Nine months after the current interest accrual date 1 Year 1Y One year after the current interest accrual date 18 Months 18M Eighteen months after the current interest accrual date n Years nY(n=2,3,…,10) n years after the current interest accrual date
[0082] Here's an example of a standard transaction date: When the standard transaction date is Today (or T), it means the day of the transaction; when the standard transaction date is Spot (or T+2), it means the second business day after the transaction. Spot (or T+2) is also the interest accrual date; that is, for transactions conducted on Today (or T), interest begins to accrue on Spot (or T+2).
[0083] Standard trading dates may also include other specific dates, without restriction. Dates other than standard trading dates are considered non-standard trading dates. For example, 1.5M means 1.5 months; 14M means 14 months, etc.
[0084] Step S202: Based on multiple transaction parameters corresponding to the target transaction identifier, determine the target transaction parameters for the target transaction identifier on the target transaction date.
[0085] Specifically, the transaction processing component retrieves multiple transaction identifiers and multiple standard transaction dates from the configuration file. For any given transaction identifier, the transaction processing component retrieves the transaction parameters for that transaction identifier on the multiple standard transaction dates from the transaction management device. The transaction processing component can periodically retrieve transaction parameters from the transaction management device at preset time intervals, such as a 1-minute interval.
[0086] The transaction management device stores the transaction parameters corresponding to different transaction identifiers on different standard transaction dates, and tracks the transactions corresponding to each different transaction identifier in real time, updating the transaction parameters in real time.
[0087] The following example illustrates the transaction parameters corresponding to the target transaction identifier on different standard transaction dates:
[0088] One possible implementation is that when the standard trading date is Spot, the target trading identifier for that standard trading date includes the trading buy price and the trading sell price as the trading parameters.
[0089] Another possible implementation is that when the standard transaction date is not Spot, the transaction parameters corresponding to the standard transaction date include the number of swap points for buying the transaction and the number of swap points for selling the transaction.
[0090] Specifically, the buy and sell prices for transactions corresponding to Spot can be calculated using the buy and sell prices for transactions corresponding to Spot, as well as the buy and sell swap points for transactions corresponding to Non-Spot.
[0091] The following explanation addresses two scenarios regarding the target transaction date corresponding to the target transaction identifier:
[0092] In the first scenario, when the target transaction date is the standard transaction date, the transaction processing component can directly determine the transaction parameters corresponding to the target transaction identifier on the target transaction date and use those transaction parameters as the target transaction parameters.
[0093] In the second scenario, when the target transaction date is a non-standard transaction date, the transaction processing component can use an interpolation algorithm to perform interpolation based on the transaction parameters corresponding to the target transaction identifier on each standard transaction date, thereby obtaining the target transaction parameters of the target transaction identifier on the target transaction date.
[0094] Step S203: Send the target transaction parameters, which identify the target transaction date, to the client.
[0095] Specifically, the target transaction parameters include the target transaction identifier's buy price and sell price on the target transaction date.
[0096] In this embodiment, the transaction processing component receives a parameter retrieval request from the client, wherein the parameter retrieval request includes a target transaction identifier and a target transaction date. Based on multiple transaction parameters corresponding to the target transaction identifier, the component determines the target transaction parameters for the target transaction identifier on the target transaction date. These multiple transaction parameters are obtained by the transaction processing component from the transaction management device. Finally, the transaction processing component sends the target transaction parameters for the target transaction identifier on the target transaction date to the client. Since the transaction management device no longer receives parameter retrieval requests from the client, but instead the transaction processing component provides the transaction parameter query function, the stability of the transaction management device is improved.
[0097] Optionally, the type of transaction identifier includes direct transactions and cross transactions.
[0098] Taking foreign exchange transactions as an example, the transaction identifier corresponds to the currency pair, and the transaction identifier includes a first currency identifier and a second currency identifier. For example, in the transaction identifier USD / CNY, the first currency identifier is USD, and the second currency identifier is CNY.
[0099] When a transaction identifier includes a preset currency identifier, the transaction type is a direct currency pair transaction. If USD is set as the preset currency identifier, and the transaction identifier is USD / CNY, then the transaction type is a direct currency pair transaction.
[0100] If the transaction identifier does not include a preset currency identifier, the transaction type is a cross-currency transaction. If USD is set as the preset currency identifier, and the transaction identifier is AUD / CNY, then the transaction type is a direct currency transaction.
[0101] In step S202 above, when the type of the target transaction identifier is a direct trade, the target transaction parameters of the target transaction identifier on the target transaction date are determined, specifically including, as follows: Figure 3 The following steps are shown:
[0102] Step S301: Determine whether the target transaction date of the target transaction identifier is a standard transaction date. If yes, proceed to step S302; otherwise, proceed to step S303.
[0103] Step S302: Use the transaction parameters corresponding to the standard transaction date as the target transaction parameters corresponding to the target transaction date.
[0104] Specifically, if the target transaction date is Spot, the buy price and sell price corresponding to Spot will be used as the target transaction parameters.
[0105] If the target transaction date is not Spot, the following two possibilities apply:
[0106] In the first scenario, when the non-Spot trade is less than the Spot trade, the buying price of the Spot trade is subtracted from the buying swap points of the non-Spot trade to obtain the buying price of the non-Spot trade; the selling price of the Spot trade is subtracted from the selling swap points of the non-Spot trade to obtain the selling price of the non-Spot trade.
[0107] In the second scenario, when the non-Spot price is greater than the Spot price, the buying price of the Spot transaction is added to the buying swap points of the non-Spot transaction to obtain the buying price of the non-Spot transaction; the selling price of the Spot transaction is added to the selling swap points of the non-Spot transaction to obtain the selling price of the non-Spot transaction.
[0108] Finally, the buy and sell prices of non-Spot transactions are used as target transaction parameters.
[0109] For example, the transaction parameters corresponding to the target transaction identifier obtained by the transaction processing component on different standard transaction dates are shown in Table 2.
[0110] Table 2.
[0111]
[0112] In Table 2, the transaction is identified as USD / CNY, and the standard transaction dates include: TOM, Spot, and 1W.
[0113] The USD / CNY exchange rate at Spot has a buy price of 6.0 and a sell price of 6.2. The buy swap points at Spot are 0.0 and the sell swap points are 0.0.
[0114] The buy swap points for the USD / CNY exchange rate on TOM are 0.1, and the sell swap points are 0.2. Therefore, the buy price for the USD / CNY exchange rate on TOM is 6.0 - 0.1 = 5.9, and the sell price is 6.2 - 0.2 = 6.0.
[0115] The buy swap points for the USD / CNY exchange rate at 10,000 are 0.8, and the sell swap points are also 0.8. Therefore, the buy price for the USD / CNY exchange rate at 10,000 is 6.0 + 0.8 = 6.8, and the sell price is 6.2 + 0.8 = 7.0.
[0116] When the transaction is identified as USD / CNY and the target transaction date is 1W, the buy price of 6.8 and the sell price of 7.0 are used as the target transaction parameters.
[0117] Step S303: From multiple standard transaction dates, determine multiple standard transaction dates associated with the target transaction date as reference transaction dates.
[0118] Specifically, from multiple standard trading dates, the standard trading date that is earlier than the target trading date and closest to the target trading date is determined as the first reference trading date;
[0119] From multiple standard trading dates, determine the standard trading date that is greater than the target trading date and closest to the target trading date, and use it as the second reference trading date.
[0120] For example, if the target trading date is 1.5M, according to the standard trading dates in Table 1, the nearest standard trading date to 1.5M that is less than 1.5M is 1M. Therefore, the first reference trading date is 1M. The nearest standard trading date to 1.5M that is greater than 1.5M is 2M. Therefore, the second reference trading date is 2M.
[0121] Step S304: Based on the transaction parameters corresponding to each of the multiple reference transaction dates, determine the target transaction parameters corresponding to the target transaction date.
[0122] Specifically, an interpolation algorithm is used to perform interpolation on the transaction parameters corresponding to multiple reference transaction dates to obtain the target transaction parameters corresponding to the target transaction date.
[0123] In this embodiment, when the target transaction identifier is a direct trade and the target transaction date is a standard transaction date, the transaction parameters corresponding to the standard transaction date are directly used as the target transaction parameters corresponding to the target transaction date. Since the transaction processing component queries locally and provides the corresponding target transaction parameters to the client, the requirement for the transaction management device to provide the target transaction parameters to the client is avoided, thus ensuring the stability of the transaction management device.
[0124] When the target trade identifier is a direct trade and the target trade date is a non-standard trade date, multiple standard trade dates associated with the target trade date are determined from a pool of standard trade dates and used as reference trade dates. Then, based on the trade parameters corresponding to each of the reference trade dates, the target trade parameters corresponding to the target trade date are determined. Since the trade processing component does not include the trade parameters for the target trade identifier on non-standard trade dates, it first determines the reference trade dates and then determines the target trade parameters corresponding to the target trade date based on the trade parameters corresponding to the reference trade dates. This ensures that the trade processing component can provide the client with target trade parameters corresponding to the target trade identifier and the target trade date.
[0125] Specifically, the target transaction parameters corresponding to the target transaction date are obtained through an interpolation algorithm, which includes the following two possible implementation methods:
[0126] In a first possible implementation, if the target transaction date is less than the interest accrual date, a forward interpolation algorithm is used to interpolate the transaction parameters corresponding to the first and second reference transaction dates to obtain the target transaction parameters corresponding to the target transaction date. Here, the interest accrual date is called the Spot. The forward interpolation algorithm is generally a linear interpolation algorithm, but it can also be a parabolic interpolation algorithm; no limitation is made here. Because linear interpolation is simpler, more convenient, and has higher accuracy, this embodiment uses a linear interpolation algorithm.
[0127] Specifically including, such as Figure 4 The following steps are shown:
[0128] Step S401: Determine the transaction buy swap points and transaction sell swap points corresponding to the first reference transaction date, and the transaction buy swap points and transaction sell swap points corresponding to the second reference transaction date.
[0129] Step S402: Using a forward interpolation algorithm, interpolate the transaction buy-swap points corresponding to the first reference transaction date and the transaction buy-swap points corresponding to the second reference transaction date to obtain the transaction buy-swap points corresponding to the target transaction date.
[0130] Specifically, the calculation formula for the forward interpolation algorithm is as follows:
[0131] Set the target transaction date to tar_date, the first reference transaction date to ref_date1, and the second reference transaction date to ref_date2;
[0132] The target transaction date corresponds to the transaction buy swap points tar_buy_swap, the first reference transaction date corresponds to the transaction buy swap points ref_buy_swap1, and the second reference transaction date corresponds to the transaction buy swap points ref_buy_swap2. The specific formula for calculating the target transaction date corresponding to the transaction buy swap points tar_buy_swap is as follows: (1)
[0133]
[0134] Since the target transaction date tar_date, the first reference transaction date ref_date1, the second reference transaction date ref_date2, the number of buy swap points corresponding to the first reference transaction date ref_buy_swap1, and the number of buy swap points corresponding to the second reference transaction date ref_buy_swap2 are all known, the number of buy swap points corresponding to the target transaction date tar_buy_swap can be calculated by formula (1).
[0135] Step S403: Using a forward interpolation algorithm, interpolate the transaction sell swap points corresponding to the first reference transaction date and the transaction sell swap points corresponding to the second reference transaction date to obtain the transaction sell swap points corresponding to the target transaction date.
[0136] Specifically, the calculation formula for the forward interpolation algorithm is as follows:
[0137] Set the target transaction date to tar_date, the first reference transaction date to ref_date1, and the second reference transaction date to ref_date2;
[0138] The target transaction date corresponds to the sell swap points tar_sell_swap, the first reference transaction date corresponds to the sell swap points ref_sell_swap1, and the second reference transaction date corresponds to the sell swap points ref_sell_swap2. The specific formula for calculating the target transaction date corresponding to the sell swap points tar_sell_swap is as follows (2):
[0139]
[0140] Since the target transaction date tar_date, the first reference transaction date ref_date1, the second reference transaction date ref_date2, the number of sell swap points corresponding to the first reference transaction date ref_sell_swap1, and the number of sell swap points corresponding to the second reference transaction date ref_sell_swap2 are all known, the number of sell swap points corresponding to the target transaction date tar_sell_swap can be calculated by formula (2).
[0141] Step S404: Use the transaction purchase price corresponding to the interest accrual date and the transaction purchase swap points corresponding to the target transaction date to determine the transaction purchase price corresponding to the target transaction date.
[0142] Specifically, the transaction purchase price corresponding to the target transaction date is obtained by subtracting the transaction purchase swap points corresponding to the transaction purchase price corresponding to the value date.
[0143] Step S405: Determine the selling price corresponding to the target transaction date using the selling price of the transaction corresponding to the value date and the selling swap points corresponding to the target transaction date.
[0144] Specifically, the selling price of the transaction corresponding to the value date is obtained by subtracting the selling swap points corresponding to the target transaction date from the selling price of the transaction corresponding to the value date.
[0145] Finally, the buy price and sell price corresponding to the target transaction date are used as the target transaction parameters.
[0146] In this embodiment, when the target transaction date is less than the interest accrual date, a forward interpolation algorithm is used to interpolate the transaction parameters corresponding to the first reference transaction date and the transaction parameters corresponding to the second reference transaction date to obtain the target transaction parameters corresponding to the target transaction date. Because this embodiment determines the target transaction parameters based on the relationship between the target transaction date and the interest accrual date, the accuracy of the determined target transaction parameters is improved.
[0147] In a second possible implementation, if the target transaction date is later than the interest accrual date, a backward interpolation algorithm is used to interpolate the transaction parameters corresponding to the first and second reference transaction dates to obtain the target transaction parameters corresponding to the target transaction date. Here, the interest accrual date is called the Spot. The backward interpolation algorithm is generally a linear interpolation algorithm, but it can also be a parabolic interpolation algorithm; this is not limited here. Because linear interpolation is simpler, more convenient, and has higher accuracy, this embodiment uses a linear interpolation algorithm for backward interpolation.
[0148] Specifically including, such as Figure 5 The following steps are shown:
[0149] Step S501: Determine the transaction buy swap points and transaction sell swap points corresponding to the first reference transaction date, and the transaction buy swap points and transaction sell swap points corresponding to the second reference transaction date.
[0150] Step S502: Using a backward interpolation algorithm, interpolate the transaction buy-swap points corresponding to the first reference transaction date and the transaction buy-swap points corresponding to the second reference transaction date to obtain the transaction buy-swap points corresponding to the target transaction date.
[0151] Specifically, the calculation formula for the backward interpolation algorithm is as follows:
[0152] Set the target transaction date to tar_date, the first reference transaction date to ref_date1, and the second reference transaction date to ref_date2;
[0153] The target transaction date corresponds to the transaction buy swap points tar_buy_swap, the first reference transaction date corresponds to the transaction buy swap points ref_buy_swap1, and the second reference transaction date corresponds to the transaction buy swap points ref_buy_swap2. The specific formula for calculating the target transaction date corresponding to the transaction buy swap points tar_buy_swap is as follows (3):
[0154]
[0155] Since the target transaction date tar_date, the first reference transaction date ref_date1, the second reference transaction date ref_date2, the number of buy swap points corresponding to the first reference transaction date ref_buy_swap1, and the number of buy swap points corresponding to the second reference transaction date ref_buy_swap2 are all known, the number of buy swap points corresponding to the target transaction date tar_buy_swap can be calculated by formula (3).
[0156] Step S503: Using a backward interpolation algorithm, interpolate the transaction sell swap points corresponding to the first reference transaction date and the transaction sell swap points corresponding to the second reference transaction date to obtain the transaction sell swap points corresponding to the target transaction date.
[0157] Specifically, the calculation formula for the backward interpolation algorithm is as follows:
[0158] Set the target transaction date to tar_date, the first reference transaction date to ref_date1, and the second reference transaction date to ref_date2;
[0159] The target transaction date corresponds to the sell swap points tar_sell_swap, the first reference transaction date corresponds to the sell swap points ref_sell_swap1, and the second reference transaction date corresponds to the sell swap points ref_sell_swap2. The specific formula for calculating the target transaction date corresponding to the sell swap points tar_sell_swap is as follows (4):
[0160]
[0161] Since the target transaction date tar_date, the first reference transaction date ref_date1, the second reference transaction date ref_date2, the number of sell swap points corresponding to the first reference transaction date ref_sell_swap1, and the number of sell swap points corresponding to the second reference transaction date ref_sell_swap2 are all known, the number of sell swap points corresponding to the target transaction date tar_sell_swap can be calculated by formula (4).
[0162] Step S504: Use the transaction purchase price corresponding to the value date and the transaction purchase swap points corresponding to the target transaction date to determine the transaction purchase price corresponding to the target transaction date.
[0163] Specifically, the transaction purchase price corresponding to the interest accrual date is added to the transaction purchase swap points corresponding to the target transaction date to obtain the transaction purchase price corresponding to the target transaction date.
[0164] Step S505: Determine the selling price corresponding to the target transaction date using the selling price of the transaction corresponding to the value date and the selling swap points corresponding to the target transaction date.
[0165] Specifically, the selling price corresponding to the value date is added to the selling swap points corresponding to the target trading date to obtain the selling price corresponding to the target trading date.
[0166] Finally, the buy price and sell price corresponding to the target transaction date are used as the target transaction parameters.
[0167] In this embodiment, when the target transaction date is greater than the interest accrual date, a backward interpolation algorithm is used to interpolate the transaction parameters corresponding to the first reference transaction date and the transaction parameters corresponding to the second reference transaction date to obtain the target transaction parameters corresponding to the target transaction date. Because this embodiment determines the target transaction parameters based on the relationship between the target transaction date and the interest accrual date, the accuracy of the determined target transaction parameters is improved.
[0168] In step S202 above, when the type of the target transaction identifier is cross-trade, the target transaction parameters of the target transaction identifier on the target transaction date are determined, specifically including, for example... Figure 6 The following steps are shown:
[0169] Step S601: Split the target transaction identifier into a first transaction identifier and a second transaction identifier.
[0170] Both the first and second transaction identifiers are of the direct trading type.
[0171] Taking foreign exchange as an example, the target transaction identifier is composed of: first currency identifier / second currency identifier. The first currency identifier is composed of the first currency identifier and the preset currency identifier, and the second currency identifier is composed of the second currency identifier and the preset currency identifier.
[0172] Based on the first and second transaction identifiers derived from the target transaction identifier, there are four types:
[0173] First type of splitting:
[0174] First transaction identifier: First currency identifier / Preset currency identifier;
[0175] Second transaction identifier: Preset currency identifier / Second currency identifier.
[0176] The second type of splitting:
[0177] First transaction identifier: First currency identifier / Preset currency identifier;
[0178] Second transaction identifier: Second currency identifier / Preset currency identifier.
[0179] The third type of splitting:
[0180] First transaction identifier: Preset currency identifier / First currency identifier;
[0181] Second transaction identifier: Preset currency identifier / Second currency identifier.
[0182] The fourth type of splitting:
[0183] First transaction identifier: Preset currency identifier / First currency identifier;
[0184] Second transaction identifier: Second currency identifier / Preset currency identifier.
[0185] Step S602: Determine the first transaction parameters of the first transaction identifier on the target transaction date, and the second transaction parameters of the second transaction identifier on the target transaction date.
[0186] Specifically, since both the first and second transaction identifiers are of the direct trading type, the first transaction parameter for determining the first transaction identifier on the target trading date can be found in [reference needed]. Figure 3 The steps in [the document], determining the second transaction parameter for the second transaction identifier on the target transaction date, can also be found in [the document]. Figure 3 The steps in the process.
[0187] Step S603: Based on the first transaction parameters and the second transaction parameters, determine the target transaction parameters of the target transaction identifier on the target transaction date.
[0188] Specifically, for the four splitting types corresponding to the target transaction identifier, the determination of the target transaction parameters includes the following four cases:
[0189] After the target transaction identifier is split according to the first splitting type, the first transaction parameter corresponding to the first transaction identifier is multiplied by the second transaction parameter corresponding to the second transaction identifier to obtain the target transaction parameter.
[0190] After the target transaction identifier is split according to the second splitting type, the first transaction parameter corresponding to the first transaction identifier is divided by the second transaction parameter corresponding to the second transaction identifier to obtain the target transaction parameter.
[0191] After the target transaction identifier is split according to the third splitting type, the reciprocal of the first transaction parameter corresponding to the first transaction identifier is multiplied by the second transaction parameter corresponding to the second transaction identifier to obtain the target transaction parameter.
[0192] After the target transaction identifier is split according to the fourth splitting type, the reciprocal of the first transaction parameter corresponding to the first transaction identifier is divided by the second transaction parameter corresponding to the second transaction identifier to obtain the target transaction parameter.
[0193] In this embodiment, when the type of the target transaction identifier is a cross-trade transaction, the transaction processing component first splits the target transaction identifier into a first transaction identifier and a second transaction identifier, then determines the first transaction parameter of the first transaction identifier on the target transaction date and the second transaction parameter of the second transaction identifier on the target transaction date, and finally determines the target transaction parameter of the target transaction identifier on the target transaction date based on the first transaction parameter and the second transaction parameter. Since the target transaction parameter of the target transaction identifier cannot be determined when the type of the target transaction identifier is a cross-trade transaction, this embodiment solves the above problem.
[0194] To better explain the embodiments of this application, the following uses a specific implementation scenario as an example to introduce the flow of a transaction parameter query method provided by the embodiments of this application. This method consists of... Figure 1 The transaction processing component in the process is executed, specifically including, for example... Figure 7 The following steps are shown:
[0195] Step S701: Receive the parameter retrieval request sent by the client.
[0196] The parameter retrieval request includes the target transaction identifier and the target transaction date.
[0197] Step S702: Determine whether the type of the target transaction identifier is a direct transaction. If yes, proceed to step S703; otherwise, proceed to step S707.
[0198] Step S703: Determine whether the target transaction date of the target transaction identifier is a standard transaction date. If yes, proceed to step S704; otherwise, proceed to step S705.
[0199] Step S704: Use the transaction parameters corresponding to the standard transaction date as the target transaction parameters corresponding to the target transaction date, and then proceed to step S710.
[0200] Step S705: From multiple standard transaction dates, determine multiple standard transaction dates associated with the target transaction date as reference transaction dates.
[0201] Step S706: Based on the transaction parameters corresponding to each of the multiple reference transaction dates, determine the target transaction parameters corresponding to the target transaction date, and then proceed to step S710.
[0202] Step S707: Split the target transaction identifier into a first transaction identifier and a second transaction identifier.
[0203] Step S708: Determine the first transaction parameters of the first transaction identifier on the target transaction date, and the second transaction parameters of the second transaction identifier on the target transaction date.
[0204] Step S709: Based on the first transaction parameter and the second transaction parameter, determine the target transaction parameter of the target transaction identifier on the target transaction date, and proceed to step S710.
[0205] Step S710: Send the target transaction parameters, which identify the target transaction date, to the client.
[0206] In this embodiment, since the transaction management device no longer receives parameter acquisition requests from the client, but the transaction processing component provides the transaction parameter query function, the stability of the transaction management device is improved.
[0207] Based on the same technical concept, embodiments of this application provide a transaction parameter query device, such as... Figure 8 As shown, the transaction parameter query device 800 includes:
[0208] The receiving module 801 is used to receive a parameter acquisition request sent by the client, wherein the parameter acquisition request includes the target transaction identifier and the target transaction date;
[0209] The determining module 802 is used to determine the target transaction parameters of the target transaction identifier on the target transaction date based on multiple transaction parameters corresponding to the target transaction identifier; the multiple transaction parameters corresponding to the target transaction identifier are obtained by the transaction processing component from the transaction management device;
[0210] The sending module 803 is used to send the target transaction parameters, which identify the target transaction on the target transaction date, to the client.
[0211] Optionally, it further includes an acquisition module 804, which is specifically used for:
[0212] Before receiving a parameter retrieval request from the client, multiple transaction identifiers and multiple standard transaction dates are obtained; the standard transaction dates are the transaction dates corresponding to preset time points.
[0213] For any given transaction identifier, the transaction parameters for that transaction identifier on the plurality of standard transaction dates are obtained from the transaction management device.
[0214] Optionally, the type of the transaction identifier includes direct transactions;
[0215] The determining module 802 is specifically used for:
[0216] If the type of the target transaction identifier is a direct transaction, then determine whether the target transaction date of the target transaction identifier is a standard transaction date;
[0217] If the target transaction date is a non-standard transaction date, then from the plurality of standard transaction dates, a plurality of standard transaction dates associated with the target transaction date are determined as reference transaction dates;
[0218] Based on the transaction parameters corresponding to each of the multiple reference transaction dates, the target transaction parameters corresponding to the target transaction date are determined.
[0219] Optionally, the determining module 802 is specifically used for:
[0220] From the plurality of standard transaction dates, determine a standard transaction date that is less than the target transaction date and closest to the target transaction date, and use it as the first reference transaction date;
[0221] From the plurality of standard transaction dates, determine the standard transaction date that is greater than the target transaction date and closest to the target transaction date, and use it as the second reference transaction date.
[0222] Optionally, the determining module 802 is specifically used for:
[0223] If the target transaction date is less than the interest accrual date, a forward interpolation algorithm is used to interpolate the transaction parameters corresponding to the first reference transaction date and the transaction parameters corresponding to the second reference transaction date to obtain the target transaction parameters corresponding to the target transaction date.
[0224] Optionally, the determining module 802 is further configured to:
[0225] If the target transaction date is greater than the interest accrual date, a backward interpolation algorithm is used to interpolate the transaction parameters corresponding to the first reference transaction date and the transaction parameters corresponding to the second reference transaction date to obtain the target transaction parameters corresponding to the target transaction date.
[0226] Optionally, the type of transaction identifier may also include cross-trade transactions;
[0227] The determining module 802 is further configured to:
[0228] If the target transaction identifier is a cross-currency transaction, then the target transaction identifier is split into a first transaction identifier and a second transaction identifier; both the first transaction identifier and the second transaction identifier are of the type of direct-currency transaction.
[0229] Determine the first transaction parameters of the first transaction identifier on the target transaction date, and the second transaction parameters of the second transaction identifier on the target transaction date;
[0230] Based on the first transaction parameters and the second transaction parameters, the target transaction parameters of the target transaction identifier on the target transaction date are determined.
[0231] Based on the same technical concept, embodiments of this application provide a computer device, which may be a terminal or a server, such as... Figure 9 As shown, it includes at least one processor 901 and a memory 902 connected to at least one processor. In this embodiment, the specific connection medium between the processor 901 and the memory 902 is not limited. Figure 9 Taking the connection between processor 901 and memory 902 via a bus as an example, the bus can be divided into address bus, data bus, control bus, etc.
[0232] In this embodiment of the application, the memory 902 stores instructions that can be executed by at least one processor 901. By executing the instructions stored in the memory 902, at least one processor 901 can perform the steps included in the above-described transaction parameter query method.
[0233] The processor 901 is the control center of the computer device, capable of connecting to various parts of the computer device via various interfaces and lines. It performs transaction parameter queries by running or executing instructions stored in the memory 902 and retrieving data stored in the memory 902. Optionally, the processor 901 may include one or more processing units. The processor 901 may integrate an application processor and a modem processor. The application processor primarily handles the operating system, user interface, and applications, while the modem processor primarily handles wireless communication. It is understood that the modem processor may not be integrated into the processor 901. In some embodiments, the processor 901 and the memory 902 may be implemented on the same chip; in other embodiments, they may be implemented on separate chips.
[0234] The processor 901 can be a general-purpose processor, such as a central processing unit (CPU), digital signal processor, application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor.
[0235] Memory 902, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. Memory 902 may include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type memory, random access memory (RAM), static random access memory (SRAM), programmable read-only memory (PROM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), magnetic storage, magnetic disk, optical disk, etc. Memory 902 can be any other medium capable of carrying or storing desired program code in the form of instructions or data structures that can be accessed by a computer, but is not limited thereto. In the embodiments of this application, memory 902 can also be a circuit or any other device capable of implementing storage functions for storing program instructions and / or data.
[0236] Based on the same inventive concept, embodiments of this application provide a computer-readable storage medium storing a computer program executable by a computer device, which, when run on the computer device, causes the computer device to perform the steps of the above-described transaction parameter query method.
[0237] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0238] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0239] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0240] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0241] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A transaction parameter query method applied to a transaction processing component, characterized in that, Comprise: Receiving a parameter acquisition request sent by a client, the parameter acquisition request comprising a target transaction identifier and a target transaction date; The client is installed with a target application for transaction parameter query, and the transaction processing component is a background server of the target application; based on a plurality of transaction parameters corresponding to the target transaction identifier, determining a target transaction parameter of the target transaction identifier on the target transaction date; the plurality of transaction parameters corresponding to the target transaction identifier are obtained by the transaction processing component from a transaction management device periodically; the plurality of transaction parameters corresponding to the target transaction identifier are the results of real-time tracking of transactions corresponding to the target transaction identifier by the transaction management device and real-time updating of transaction parameters; Sending the target transaction parameter of the target transaction identifier on the target transaction date to the client; Wherein, based on the plurality of transaction parameters corresponding to the target transaction identifier, determining the target transaction parameter of the target transaction identifier on the target transaction date, comprising: In the case that the target transaction date is a standard transaction date, based on the plurality of transaction parameters corresponding to the target transaction identifier, determining the target transaction parameter of the target transaction identifier on the target transaction date; the standard transaction date is a transaction date corresponding to a preset time point; In the case that the target transaction date is a non-standard transaction date, based on the plurality of transaction parameters corresponding to the target transaction identifier, the transaction parameters corresponding to each standard transaction date of the target transaction identifier are interpolated to obtain the target transaction parameter of the target transaction identifier on the target transaction date; the non-standard transaction date is other dates except the standard transaction date.
2. The method of claim 1, wherein, Before receiving the parameter acquisition request sent by the client, further comprising: Obtaining a plurality of transaction identifiers and a plurality of standard transaction dates; For any transaction identifier, obtaining the transaction parameters of the transaction identifier on the plurality of standard transaction dates from the transaction management device.
3. The method of claim 1, wherein, The type of the transaction identifier includes direct disk transaction; Based on the plurality of transaction parameters corresponding to the target transaction identifier, determining the target transaction parameter of the target transaction identifier on the target transaction date: If the type of the target transaction identifier is direct disk transaction, it is judged whether the target transaction date of the target transaction identifier is a standard transaction date; If the target transaction date is a non-standard transaction date, a plurality of standard transaction dates associated with the target transaction date are determined from the plurality of standard transaction dates as reference transaction dates; Based on the transaction parameters corresponding to the plurality of reference transaction dates respectively, determining the target transaction parameter corresponding to the target transaction date.
4. The method of claim 3, wherein, The plurality of standard transaction dates associated with the target transaction date are determined from the plurality of standard transaction dates as reference transaction dates, comprising: From the plurality of standard transaction dates, a standard transaction date closest to the target transaction date and smaller than the target transaction date is determined as a first reference transaction date; From the plurality of standard transaction dates, a standard transaction date greater than the target transaction date and closest to the target transaction date is determined as a second reference transaction date.
5. The method of claim 4, wherein, The target transaction parameter corresponding to the target transaction date is determined based on a plurality of transaction parameters corresponding to each of the reference transaction dates, including: If the target transaction date is less than the interest-bearing date, a forward interpolation algorithm is used to interpolate the transaction parameters corresponding to the first reference transaction date and the transaction parameters corresponding to the second reference transaction date to obtain the target transaction parameter corresponding to the target transaction date.
6. The method of claim 5, wherein, Also includes: If the target transaction date is greater than the interest-bearing date, a backward interpolation algorithm is used to interpolate the transaction parameters corresponding to the first reference transaction date and the transaction parameters corresponding to the second reference transaction date to obtain the target transaction parameter corresponding to the target transaction date.
7. The method of claim 3, wherein, The type of transaction identification also includes cross-trading; The target transaction parameter of the target transaction identification on the target transaction date is determined based on a plurality of transaction parameters corresponding to the target transaction identification, including: If the type of the target transaction identification is cross-trading, the target transaction identification is split into a first transaction identification and a second transaction identification; the types of the first transaction identification and the second transaction identification are both straight-trading; The first transaction parameter of the first transaction identification on the target transaction date and the second transaction parameter of the second transaction identification on the target transaction date are determined respectively; The target transaction parameter of the target transaction identification on the target transaction date is determined based on the first transaction parameter and the second transaction parameter.
8. A transaction parameter inquiry apparatus characterized by comprising: The device is a transaction processing component or a chip in a transaction processing component, including: The receiving module is configured to receive a parameter acquisition request sent by a client, the parameter acquisition request including a target transaction identification and a target transaction date; the client is installed with a target application for transaction parameter query, and the transaction processing component is a background server of the target application; The determining module is configured to determine a target transaction parameter of the target transaction identification on the target transaction date based on a plurality of transaction parameters corresponding to the target transaction identification; the plurality of transaction parameters corresponding to the target transaction identification are obtained by the transaction processing component from a transaction management device periodically; and the plurality of transaction parameters corresponding to the target transaction identification are results of real-time tracking of transactions corresponding to the target transaction identification by the transaction management device and real-time updating of transaction parameters. The sending module is configured to send the target transaction parameter of the target transaction identification on the target transaction date to the client. The determining module is specifically configured to: In a case where the target transaction date is a standard transaction date, determine the target transaction parameter of the target transaction identification on the target transaction date based on a plurality of transaction parameters corresponding to the target transaction identification; and the standard transaction date is a transaction date corresponding to a preset time point. In a case that the target transaction date is a non-standard transaction date, a target transaction parameter of the target transaction identifier on the target transaction date is obtained by interpolating a transaction parameter corresponding to the target transaction identifier on each standard transaction date based on a plurality of transaction parameters corresponding to the target transaction identifier.
9. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor implements the steps of the method of any one of claims 1-7 when executing the program.
10. A computer-readable storage medium, characterized in that, The computer program stored in the computer device can be executed by the computer device, and when the program runs on the computer device, the computer device executes the steps of the method of any one of claims 1-7.
11. A computer program product, characterised in that, The computer program stored in the computer device can be executed by the computer device, and when the program runs on the computer device, the computer device executes the steps of the method of any one of claims 1-7.
Citation Information
Patent Citations
Inquiry method of payment information of mobile terminal and mobile terminal
CN102685313A
Data query method and device, equipment and medium
CN111026931A