Transaction information determination method and electronic equipment

By dismantling large-value trading orders multiple times and adjusting the transaction amount of sub-orders based on exchange exchange redemption information, the problem of higher transaction costs in the existing technology is solved, and lower transaction costs and higher transaction efficiency are achieved.

CN119515370AActive Publication Date: 2025-02-25HANGZHOU HIGH-TECH ZONE (BINJIANG) INSTITUTE OF BLOCKCHAIN & DATA SECURITY
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411535182.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-30
Publication Date
2025-02-25
Estimated Expiration
2044-10-30

AI Technical Summary

Technical Problem

In trading orders with large transaction volumes, the existing order-breaking mechanism leads to high transaction costs, especially when digital currency exchange information is updated frequently.

Method used

By dismantling multiple orders on the transaction orders to be traded, multiple sub-orders are generated, and based on the exchange information in the exchange, the transaction amount of each sub-order to be dismantled in the corresponding exchange is determined, thereby adjusting the transaction volume to reduce transaction costs.

Benefits of technology

By dismantling orders multiple times and dynamically adjusting the transaction volume of sub-orders, it can reduce transaction costs and reduce additional costs caused by market fluctuations while meeting transaction efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119515370A_ABST
    Figure CN119515370A_ABST
Patent Text Reader

Abstract

The embodiment of the invention is suitable for the technical field of Internet services, and provides a transaction information determination method and electronic equipment, and the method comprises the steps: carrying out the multiple times of splitting of a to-be-transacted transaction order, and obtaining a plurality of sub-orders of each split; the transaction order comprises a to-be-transacted first object and a target transaction amount; the split numbers of the sub-orders split each time are different; for a plurality of sub-orders split at the current time, based on exchange information between a first object in the exchange and a second object expected to be transacted, determining first sub-transaction amounts when the plurality of sub-orders are transacted in the corresponding exchange; determining a first transaction amount of the current split order according to the plurality of first sub-transaction amounts of the split order; and determining target transaction information for transaction between the first object and the second object based on the first transaction amount of the multiple order splitting transactions. By adopting the method, the transaction cost required for the first object to exchange the second object can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of Internet service technology, and in particular, relates to a transaction information determination method and electronic device. Background Art

[0002] With the rapid development of Internet service technology, the demand for intelligent transactions of items based on the Internet is also increasing. For example, take the item as digital currency. In the financial market, users usually have the demand for trading orders with large transaction volumes. For trading orders with large transaction volumes, the depth of the liquidity pool contained in an exchange is limited, and it is usually impossible to quickly meet the trading needs of trading orders in one exchange. Therefore, it is usually necessary to split the trading orders with large transaction volumes and trade them separately in other exchanges to improve trading efficiency.

[0003] At present, when the existing order splitting mechanism splits a trading order, the number of splits of the trading order is usually a fixed preset value, and the split sub-orders are traded with the preset exchanges respectively.

[0004] However, with the current fast pace of currency exchange information updates, unreasonable order splitting may lead to additional transaction fees and higher slippage, that is, the final transaction cost is higher. Summary of the invention

[0005] The embodiments of the present application provide a transaction information determination method and an electronic device, which can solve the problem of high transaction costs required when conducting a transaction with another object.

[0006] In a first aspect, an embodiment of the present application provides a method for determining transaction information, the method comprising:

[0007] The transaction order to be traded is split multiple times to obtain multiple sub-orders for each split; the transaction order includes the first object to be traded and the target transaction amount; the number of sub-orders for each split is different;

[0008] For the multiple sub-orders of the current split order, based on the exchange information between the first object in the exchange and the second object to be traded, determine the first sub-transaction amount when the multiple sub-orders are traded in the corresponding exchanges respectively;

[0009] Determine the first transaction amount of the current split order based on the first sub-transaction amounts of the split order;

[0010] Based on the first transaction amounts of the multiple split transactions, target transaction information for the first object and the second object to trade is determined.

[0011] In one embodiment, the transaction orders are split in sequence, and the number of split orders of the sub-orders of the current split order is a preset integer multiple of the number of split orders of the sub-orders of the previous split order.

[0012] In one embodiment, the exchange includes at least one liquidity pool supporting transactions between a first object and a second object; based on exchange information between the first object and the second object to be traded in the exchange, determining a first sub-transaction amount when multiple sub-orders are traded in corresponding exchanges respectively includes:

[0013] For any liquidity pool, based on the exchange information in the liquidity pool, determine the actual transaction amount after the child order is traded;

[0014] The maximum value of the actual transaction amounts corresponding to multiple liquidity pools is determined as the first sub-transaction amount.

[0015] In one embodiment, based on the first transaction amount of multiple split transactions, determining target transaction information for a first object and a second object to trade includes:

[0016] Determine the first largest transaction amount among the first transaction amounts of multiple split orders;

[0017] The first transaction information corresponding to the first maximum transaction amount is determined as the target transaction information.

[0018] In one embodiment, based on the first transaction amount of the multiple split transactions, determining the target transaction information for the first object and the second object to trade, further includes:

[0019] If the first transaction amount of the current split order and the first transaction amount of the previous split order meet the preset conditions, the second largest transaction amount with the largest first transaction amount in the two split orders is determined, and the second transaction information corresponding to the second largest transaction amount is determined as the target transaction information;

[0020] If the first transaction amount of the current split order and the first transaction amount of the previous split order do not meet the preset conditions, the number of split orders that have been performed on the transaction order is determined, and the target transaction information is determined based on the number of split orders.

[0021] In one embodiment, determining target transaction information based on the number of order splits includes:

[0022] If the number of order splits is less than or equal to the preset number, the multiple sub-orders of the next order split are determined as the multiple sub-orders of the current order split, and the first step and the steps after the first step are executed; the first step includes determining, for the multiple sub-orders of the current order split, based on the exchange information between the first object in the exchange and the second object to be traded, the first sub-transaction amount when the multiple sub-orders are traded in the corresponding exchanges respectively;

[0023] If the number of order splitting is greater than the preset number, an indirect transaction path for the first object and the second object to trade is determined, and the target transaction information is determined based on the indirect transaction path; the starting point of the indirect transaction path is the first object, the end point is the second object, and at least one third object for trading is included between the starting point and the end point.

[0024] In one embodiment, determining target transaction information based on the indirect transaction path includes:

[0025] According to the transaction order of objects in the indirect transaction path, the indirect transaction path is split into multiple sub-transaction paths; the starting point and the end point of each sub-transaction path are two adjacent objects;

[0026] Determine in sequence the third transaction information of the two objects in each sub-transaction path for the transaction;

[0027] Each third transaction information is determined as target transaction information.

[0028] In one embodiment, determining in sequence the third transaction information of the transaction between two objects in each sub-transaction path includes:

[0029] For any sub-transaction path, take the object corresponding to the starting point in the sub-transaction path as the first object, and the object corresponding to the end point as the second object, execute the second step and the steps after the second step, and obtain the target transaction information corresponding to the sub-transaction path;

[0030] The target transaction amount of the object corresponding to the starting point in each sub-transaction path is the transaction amount corresponding to the end point in the previous sub-transaction path; the second step includes splitting the transaction order to be traded multiple times to obtain multiple sub-orders for each split;

[0031] The target transaction information corresponding to the sub-transaction path is determined as the third transaction information.

[0032] In one embodiment, the indirect transaction path includes a plurality of indirect transaction paths; determining the target transaction information based on the indirect transaction path includes:

[0033] For any indirect transaction path, based on each third transaction information in the indirect transaction path, determine a second transaction amount when the transaction between the first object and the second object is completed through the indirect transaction path;

[0034] determining a third maximum transaction amount which is the largest among the plurality of second transaction amounts;

[0035] Each piece of third transaction information in the indirect transaction path corresponding to the third maximum transaction amount is determined as target transaction information.

[0036] In one embodiment, the method further includes:

[0037] If the exchange information changes, the second step and the steps after the second step are executed again to obtain the target transaction information;

[0038] The second step includes splitting the transaction order to be traded multiple times to obtain multiple sub-orders for each split.

[0039] In a second aspect, an embodiment of the present application provides a transaction information determination device, the device comprising:

[0040] The order splitting module is used to split the transaction order to be traded multiple times to obtain multiple sub-orders for each split; the transaction order includes the first object to be traded and the target transaction amount; the number of split sub-orders for each split is different;

[0041] A first determination module is used to determine, for the multiple sub-orders of the current split order, based on the exchange information between the first object in the exchange and the second object to be traded, the first sub-transaction amount when the multiple sub-orders are traded in the corresponding exchanges respectively;

[0042] The second determination module is used to determine the first transaction amount of the current split order according to the multiple first sub-transaction amounts of the split order;

[0043] The third determination module is used to determine target transaction information for trading the first object with the second object based on the first transaction amount of the multiple split transactions.

[0044] In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of the first aspect described above when executing the computer program.

[0045] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the method of the first aspect described above is implemented.

[0046] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on an electronic device, enables the electronic device to execute the method of the first aspect.

[0047] Compared with the prior art, the embodiment of the present application has the beneficial effect that: by splitting the transaction order to be traded multiple times, multiple sub-orders can be obtained for each split. Among them, the transaction order contains the first object to be traded and the target transaction amount, and the number of split orders of the sub-orders of each split order is different. Therefore, multiple split orders can make the transaction amounts contained in the multiple sub-orders split each time different, so that the sub-orders after each split can be used for trading in different exchanges. Furthermore, under the rhythm of fast frequency of updating the exchange information of the first object and the second object, even if the remaining amount or transaction fee rate of the second object in a certain exchange changes, the transaction volume (transaction amount) of each sub-order can be adjusted by splitting the order multiple times to reduce the transaction cost caused by market fluctuations. Afterwards, for any multiple sub-orders of the split order, the first sub-transaction amount when the multiple sub-orders are traded in the corresponding exchange can be determined based on the exchange information between the first object and the second object of the desired transaction in the exchange, so as to determine the first transaction amount for each transaction after the split order. Based on this, the electronic device can reasonably determine the target transaction information for the first object and the second object to trade based on the first transaction amount of multiple split transactions, so as to meet the transaction efficiency while taking into account the transaction cost. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0049] Figure 1 This is a flowchart of a method for determining transaction information provided by an embodiment of the present application;

[0050] Figure 2 This is a schematic diagram of an application scenario of an exchange ratio of a transaction object in a transaction information determination method provided in an embodiment of the present application;

[0051] Figure 3 It is a schematic diagram of an implementation method for determining target transaction information in a transaction information determination method provided in an embodiment of the present application;

[0052] Figure 4 This is a schematic diagram of an application scenario of a transaction path of a transaction object in a transaction information determination method provided in an embodiment of the present application;

[0053] Figure 5 It is a schematic diagram of an implementation method for determining target transaction information in a transaction information determination method provided in another embodiment of the present application;

[0054] Figure 6 This is a schematic diagram of an application scenario of monitoring redemption information in a transaction information determination method provided in an embodiment of the present application;

[0055] Figure 7 It is a structural diagram of a transaction information determination device provided by an embodiment of the present application;

[0056] Figure 8 It is a structural schematic diagram of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0057] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0058] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0059] It should be noted that the acquisition, storage, use, processing, etc. of the data involved in this application are carried out with the user's knowledge and permission, that is, the data acquisition process / feature extraction process complies with the requirements of laws and regulations and does not constitute an act that harms the public interest.

[0060] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0061] In order to better understand the embodiments of the present application, some terms in the embodiments of the present application are first explained below to facilitate understanding by those skilled in the art.

[0062] Exchange: refers to an information platform for trading certain information and items. Exchanges use information platforms to achieve property information sharing and remote transactions. Major exchanges include the Shanghai Stock Exchange, Xinhua Commodity Spot Cloud Trading Center, and Kunming Precious Metals Exchange.

[0063] In one embodiment, the transaction object includes but is not limited to digital currency, physical metal, Xinhua products and other objects, which are not limited to this. In this embodiment, the transaction object is mainly digital currency for explanation.

[0064] Among them, digital currency can be legal tender, including but not limited to RMB, US dollar, euro and other currencies, and there is no restriction on this.

[0065] Liquidity pool: refers to a pool of digital currencies locked in a smart contract. They facilitate transactions by providing liquidity. Every exchange includes at least one liquidity pool.

[0066] Slippage: refers to the difference between the actual transaction amount and the expected transaction amount. Slippage usually occurs when the market fluctuates or liquidity is insufficient, which may lead to increased transaction costs.

[0067] At present, when faced with large-volume trading orders, in order to be able to trade quickly, it is usually necessary to split the large-volume trading orders and trade them separately in other exchanges to improve trading efficiency.

[0068] When splitting a transaction order, the existing order splitting mechanism usually sets the split quantity of the transaction order to a fixed preset value, and trades the split sub-orders with the preset exchanges respectively. Alternatively, the transaction is carried out separately by communicating with a large number of trading parties offline.

[0069] However, with the current fast pace of digital currency exchange information updates, unreasonable order splitting may lead to additional transaction fees and higher slippage. In other words, the final transaction cost is higher. In addition, offline communication with a large number of trading parties is not only time-consuming and inefficient, but also requires additional operating costs when reaching a transaction due to the fast update frequency of digital currency exchange information.

[0070] Based on this, in order to meet the transaction efficiency while taking into account the transaction cost, the embodiment of the present application provides a transaction information determination method, which can be applied to electronic devices such as mobile phones, tablet computers, laptops, ultra-mobile personal computers (UMPC), etc. The embodiment of the present application does not impose any restrictions on the specific type of electronic device.

[0071] See also Figure 1 , Figure 1 The following is a flowchart of a method for determining transaction information provided by an embodiment of the present application. The method includes the following steps:

[0072] S101. The transaction order to be traded is split multiple times to obtain multiple sub-orders for each split; the transaction order includes a first object to be traded and a target transaction amount; and the number of sub-orders for each split is different.

[0073] In one embodiment, the transaction order is an order generated by the transaction software when the transaction parties conduct a transaction, wherein the parameters contained in the transaction order include but are not limited to the first object to be traded, the target transaction amount, the transaction time period, the second object to be traded, and the target transaction amount of the expected transaction, etc., and there is no limitation on this. The first object and the second object are two different objects.

[0074] Exemplarily, the transaction order to be traded may include information such as 10A, 600000B, etc., wherein A represents the first object, 10A represents the target transaction amount, B represents the second object, and 600000B represents the target transaction amount of the expected transaction.

[0075] In one embodiment, splitting a transaction order means splitting a transaction order into multiple sub-orders, each of which includes the first object and the second object.

[0076] It is understandable that, since the transaction order is split, the sub-transaction amount contained in each sub-order is only part of the target transaction amount, and the sub-transaction amount expected to be completed is also part of the transaction amount. At this time, the sum of the sub-transaction amounts contained in all sub-orders is equal to the target transaction amount in the transaction order; and the sum of the sub-transaction amounts contained in all sub-orders is equal to the target transaction amount of the expected transaction in the transaction order.

[0077] In one embodiment, after the order is split, the sub-transaction amounts contained in each sub-order may be equal or unequal, and there is no limitation on this. In this embodiment, in order to ensure that each sub-transaction amount after the order is split can obtain a valid market quotation (i.e., to meet the minimum transaction amount required for each transaction of the second object in the exchange), so as to avoid the sub-transaction amount being too low and causing additional on-chain fees, each sub-transaction amount after the order is split can be set according to market liquidity, the capacity of the liquidity pool or other preset strategies.

[0078] For example, the electronic device may first calculate the average of the target transaction amount and the number of split orders in the current split order to obtain the average transaction amount. Then, the product of the target transaction amount of the expected transaction and the preset percentage is calculated. Finally, the average transaction amount is added to and subtracted from the product to obtain the amount range of each sub-transaction amount.

[0079] Specifically, take the transaction order to be traded as 10A, 600000B, the current split order quantity is 5, and the preset percentage is 0.05%. Based on the above calculation method, it can be determined that the average transaction amount is 2A, and the product is 300B. At this time, the amount range of each sub-transaction amount is 2A±300B.

[0080] In one embodiment, the method of splitting a transaction order may be: splitting the transaction order according to a randomly set split number each time; or splitting the transaction order based on a preset multiple split numbers, which is not limited. Also, the number of times the transaction order is split may also be a preset number. In this embodiment, the method and number of times the transaction order is split are not limited.

[0081] In another embodiment, after each order splitting, the electronic device may first perform the following steps S102-S104 on the multiple sub-orders of the current order splitting, and then split the transaction order when the target transaction information is not determined. Otherwise, when the target transaction information is determined, the electronic device may stop splitting the order, and then, on the basis of obtaining the target transaction information that meets the expectations, the number of times the transaction order is split can be reduced, thereby reducing the workload of the electronic device.

[0082] Based on this, it can be considered that the method of splitting the transaction order to be traded multiple times also includes: splitting the transaction order multiple times in sequence.

[0083] S102: for the multiple sub-orders of the current split order, based on the exchange information between the first object in the exchange and the second object desired to be traded, determine the first sub-transaction amount when the multiple sub-orders are traded in the corresponding exchanges respectively.

[0084] In one embodiment, the above-mentioned exchange has been explained in the above description, and no further explanation is given for this. It should be noted that after the order is split, each sub-order corresponds to an exchange to complete the transaction of the sub-order in the liquidity pool of the exchange.

[0085] In one embodiment, the above exchange information includes, but is not limited to, the rate required for trading on the exchange, the quotation of the second object, the exchange ratio with the first object, and other information, which is not limited to this.

[0086] As an example, see Figure 2 , Figure 2 This is a schematic diagram of an application scenario of the exchange ratio of a transaction object in a transaction information determination method provided by an embodiment of the present application. Among them, F, X, Y, Z, and T are respectively a transaction object. Among them, the arrow indicates the exchange direction. For example, the exchange ratio of F to X can be: 0.998F can be exchanged back to 1.02X, and 0.0005Z can be exchanged back to 2000X.

[0087] The first sub-transaction amount is the amount obtained when the sub-order transaction is completed in the exchange. The difference between the target transaction amount of the expected transaction corresponding to the first sub-transaction amount and the first sub-transaction amount is the cost required to complete the sub-order. The cost includes but is not limited to the cost of paying the transaction venue rate, on-chain fees, etc. Based on this, it can be considered that the larger the first sub-transaction amount, the lower the transaction cost required.

[0088] In one embodiment, the exchange information described above includes but is not limited to the rate required for the transaction, the quotation of the second object, the exchange ratio with the first object, the remaining amount of the second object, etc. Based on this, the electronic device can first determine the sub-transaction amount included in the sub-order, and then multiply the sub-transaction amount by the exchange ratio as the first sub-transaction amount after completing the sub-order transaction.

[0089] In another embodiment, when there is a fee rate required for trading in the exchange, the remaining sub-transaction amount after deducting the fee rate from the sub-transaction amount of the sub-order needs to be calculated first, and then the remaining sub-transaction amount is converted with the conversion ratio to obtain the first sub-transaction amount.

[0090] It should be noted that an exchange may include multiple liquidity pools. In this case, in order to minimize the transaction costs incurred by the sub-orders when trading in the exchange, for any liquidity pool, the electronic device can determine the actual transaction amount obtained after the sub-orders are traded based on the exchange information in the liquidity pool. Then, the maximum value of the actual transaction amounts corresponding to the multiple liquidity pools is determined as the first sub-transaction amount.

[0091] In one embodiment, the above liquidity pool can be formed by the exchange based on the liquidity aggregator to centralize the liquidity sources of various objects. In addition, the exchange can be a trading platform that does not rely on centralized third-party intermediaries. The trading parties can directly conduct the above object transactions on the blockchain to demonstrate the transparency and security of the transaction.

[0092] The exchange information in each liquidity pool may be different. For example, the fee rate and the remaining amount of the second object in each liquidity pool may be different. Generally, the fee rate of a shallow liquidity pool (a liquidity pool contains a small number of tradable transaction objects) is higher than the fee rate of a deep liquidity pool (a liquidity pool contains a large number of tradable transaction objects).

[0093] Therefore, the electronic device can also traverse each liquidity pool for trading the sub-order, and calculate the actual transaction amount after trading in each liquidity pool based on the above step S301.

[0094] It is understandable that after obtaining the actual transaction amount corresponding to the sub-order in each liquidity pool, it can be considered that the larger the actual transaction amount, the less transaction cost required for the sub-order to be traded in the liquidity pool, and the greater the profit. Based on this, the electronic device can determine the maximum value of the actual transaction amounts corresponding to multiple liquidity pools as the first sub-transaction amount.

[0095] S103. Determine the first transaction amount of the current split order according to the multiple first sub-transaction amounts of the split order.

[0096] In one embodiment, after obtaining the first sub-transaction amount after each sub-order completes the transaction, the sum of multiple first sub-transaction amounts is the first transaction amount of the current split order.

[0097] In another embodiment, when there are multiple exchanges, since there are multiple numbers of split orders after each split, if each sub-order is randomly assigned to any exchange, the first transaction amount obtained may not be the maximum transaction amount.

[0098] Based on this, in order to reduce transaction costs as much as possible, the electronic device can also generate a combination of multiple sub-orders for trading in various exchanges based on the number of split orders and the number of exchanges. Then, for any combination, based on the above steps S102-S103, the initial first transaction amount under each combination is determined. Finally, the maximum transaction amount among the initial first transaction amounts is determined as the first transaction amount of the current split order.

[0099] For example, when the number of exchanges is 3 and the number of split orders is 2, there will be 6 combinations, which will not be described in detail.

[0100] It should be noted that the above steps S102-S103 are only for obtaining the first transaction amount of the current split order. It can be understood that each time an order is split, each split order is the current split order. That is, the electronic device will obtain the first transaction amount corresponding to multiple split orders.

[0101] S104: Determine target transaction information for the first party and the second party to trade based on the first transaction amount of the multiple split transactions.

[0102] The above-mentioned target transaction information includes but is not limited to the final number of split orders, the sub-transaction amount of each sub-order, the exchange where the transaction is completed, the liquidity pool and other information, and there is no limitation on this.

[0103] In one embodiment, the electronic device may determine the first maximum transaction amount among the first transaction amounts of multiple split transactions, and determine the first transaction information corresponding to the first maximum transaction amount as the target transaction information, thereby reducing the transaction cost required to complete the transaction of this transaction order.

[0104] Among them, based on the above explanation of the target transaction information, it can be considered that the first transaction information corresponding to the maximum transaction amount can be: the number of split orders corresponding to the maximum transaction amount, the sub-transaction amount corresponding to each sub-order under the split order number, the exchange where each sub-order is traded, the liquidity pool and other information.

[0105] In another embodiment, the target transaction information can also be determined based on information such as the number of split orders and the transaction cost (the difference between the target transaction amount expected to be traded and the first transaction amount). For example, the more split orders there are, the longer it may take to complete the transaction. Therefore, each split order number and the corresponding transaction cost can be normalized first, and then, based on the preset weights corresponding to the split order number and the transaction cost, the split order number and the transaction cost are weighted to obtain a weighted value. Finally, the transaction cost corresponding to the minimum value among the multiple weighted values ​​is determined, so that the transaction information of the transaction cost corresponding to the minimum value is determined as the target transaction information.

[0106] It is understandable that after weighting, the smaller the weighted value, the smaller the number of split orders, and / or the smaller the transaction cost (i.e., the larger the first transaction amount). Therefore, by determining the target transaction information based on the weighted value obtained by weighting, it can be considered that when the electronic device completes the transaction of the transaction order based on the target transaction information, it can reduce the transaction cost required for the transaction order to complete the transaction while ensuring the transaction efficiency.

[0107] In this embodiment, by splitting the transaction order to be traded multiple times, multiple sub-orders can be obtained for each split. Among them, the transaction order includes the first object to be traded and the target transaction amount, and the number of split orders of the sub-orders of each split order is different. Therefore, multiple split orders can make the transaction amounts contained in the multiple sub-orders split each time different, so that the sub-orders after each split can be used for trading in different exchanges. Furthermore, under the rhythm of fast update frequency of the exchange information of the first object and the second object, even if the remaining amount or transaction fee rate of the second object in a certain exchange changes, the transaction volume (transaction amount) of each sub-order can be adjusted by splitting the order multiple times to reduce the transaction cost caused by market fluctuations. Afterwards, for any multiple sub-orders of the split order, the first sub-transaction amount when the multiple sub-orders are traded in the corresponding exchange can be determined based on the exchange information between the first object in the exchange and the second object expected to be traded, so as to determine the first transaction amount for each transaction after the split order. Based on this, the electronic device can reasonably determine the target transaction information for the first object and the second object to trade based on the first transaction amount of multiple split orders, so as to meet the transaction efficiency and take into account the transaction cost.

[0108] In another embodiment, the above S101 also states that after each order split, the electronic device may first perform the following steps S102-S104 on the multiple sub-orders of the current order split, and then split the transaction order when the target transaction information is not determined. Otherwise, when the target transaction information is determined, the electronic device may stop splitting the order, and then, on the basis of reaching the target transaction information, the number of times the transaction order is split can be reduced, thereby reducing the workload of the electronic device.

[0109] Based on this, in order to reduce the number of split orders and obtain the best target transaction information as much as possible (for example, when the transaction is completed with the target transaction information, the transaction efficiency and / or the first transaction amount meets the preset conditions), refer to Figure 3 Electronic devices can also be used according to Figure 3 The steps S301-S302 shown determine the target transaction information. The details are as follows:

[0110] S301. If the first transaction amount of the current order split and the first transaction amount of the previous order split meet the preset conditions, determine the second maximum transaction amount with the smallest first transaction amount in the two order splits, and determine the second transaction information corresponding to the second maximum transaction amount as the target transaction information.

[0111] In one embodiment, the preset conditions include but are not limited to the difference between the first transaction amount of the current split order and the first transaction amount of the previous split order being less than the preset difference, or the difference between the first transaction amount of the current split order and the target transaction amount of the expected transaction, and the difference between the first transaction amount of the previous split order and the target transaction amount are all less than the preset value. In this embodiment, the setting rules, preset values, and specific values ​​of the preset differences of the preset conditions are not limited.

[0112] It is understandable that when the difference between the first transaction amount of the current split order and the target transaction amount of the expected transaction, as well as the difference between the first transaction amount of the previous split order and the target transaction amount, are both less than the preset value, it can be considered that the first transaction amounts obtained from two consecutive split orders meet the expectations of the transaction parties (close to the expected target transaction amount) and are not accidental. At this time, it can be considered that the child orders after the current split order and the previous split order are valid and can be traded.

[0113] Based on this, the electronic device can stop the subsequent splitting of the transaction order, so as to reduce the number of splitting of the transaction order and reduce the workload of the electronic device on the basis of obtaining the expected first transaction amount.

[0114] Among them, for the above two desired order splitting methods, the electronic device can first determine the second maximum transaction amount with the largest first transaction amount in the current order splitting and the previous order splitting, so as to determine the second transaction information corresponding to the second maximum transaction amount as the target transaction information.

[0115] It should be noted that when a transaction order is split for the first time, since there is no first transaction amount of the previous split, the transaction order needs to be split for the second time after the first transaction amount of the first split is obtained. That is, the transaction order needs to be split at least twice.

[0116] In another embodiment, the purpose of splitting a transaction order multiple times is to query the optimal number of split orders, so as to obtain the maximum first transaction amount obtained when trading under the number of split orders, and the corresponding target transaction information. Based on this, in order to further improve the efficiency of determining the target transaction information, the electronic device can split the transaction order in sequence, and the number of split orders of the sub-orders of the current split order is a preset integer multiple of the number of split orders of the sub-orders of the previous split order.

[0117] The preset integer multiple can be set according to actual conditions and is not limited thereto. In this embodiment, the preset integer multiple can be 2.

[0118] For example, when the number of split orders in the previous split order is n, the number of split orders in the current split order can be 2n. Among them, using a preset integer multiple of 2 for splitting can make the error (the difference between the first transaction amount of each split order and the expected target transaction amount) more significantly reduced, and the calculation is simpler. By gradually increasing the number of split orders by a preset integer multiple of 2, it is possible to more effectively find the first transaction amount that meets the expectations.

[0119] S302: If the first transaction amount of the current split order and the first transaction amount of the previous split order do not meet the preset conditions, determine the number of split orders that have been performed on the transaction order, and determine the target transaction information based on the number of split orders.

[0120] In one embodiment, the number of order splitting is the total number of times the electronic device has split the transaction order. It should be noted that when the preset condition is not met, it can be considered that the first transaction amount obtained by multiple order splitting still does not meet the expectation. At this time, if the order is continued to be split, it may take a long time on the basis of not being able to obtain the first transaction amount that meets the expectation.

[0121] Based on this, when the number of order splitting is less than or equal to the preset number, the electronic device can determine the multiple sub-orders of the next order splitting as the multiple sub-orders of the current order splitting, and execute the first step and the steps after the first step.

[0122] In one embodiment, the first step may be the above-mentioned step S102, which will not be described again. The preset number of times may be set according to actual conditions, and is not limited thereto. For example, the preset number of times may be 5.

[0123] It is understandable that the last order split, the current order split and the next order split are all relative concepts. When the current order split changes, the last order split and the next order split will also change. For example, when the next order split is required, the next order split will be changed to the current order split, and the current order split will be changed to the previous order split.

[0124] In another embodiment, when the number of order splitting is greater than the preset number, it can be considered that the first transaction amount that meets the expectation cannot be obtained by only splitting the order, and then the target transaction information is obtained. Based on this, the electronic device can first stop splitting the transaction order, and determine an indirect transaction path for the first object and the second object to trade, so as to determine the target transaction information based on the indirect transaction path.

[0125] The starting point of the indirect transaction path is the first object, the end point is the second object, and the indirect transaction path includes at least one third object located between the starting point and the end point.

[0126] Exemplarily, the third object is an object different from the first object and the second object, and the electronic device can first exchange the first object for the third object, and then exchange the third object for the second object. That is, the transaction path is no longer a direct transaction path for directly exchanging the first object and the second object, but an indirect transaction path that requires indirect transaction through at least one third object.

[0127] The third object may be a more commonly used object to ensure sufficient liquidity in the indirect transaction path. As an example, when the first object and the second object are not B, the third object may be B.

[0128] As an example, see Figure 2 and Figure 4 , Figure 4 Schematic diagram of an application scenario of a transaction path of a transaction object in a transaction information determination method provided in an embodiment of the present application. Figure 2 , when F is the first object and T is the second object, X, Y, Z and other objects are all third objects. At this time, the transaction path includes FZT, FXYT, FZXYT, FXZT and other types.

[0129] And, refer to Figure 4 , taking the first object as C and the second object as D as an example, its transaction path includes a direct transaction path CD, and indirect transaction paths CMD, CND and other paths.

[0130] In one embodiment, the electronic device may generate the above-mentioned indirect transaction path based on the exchange information in multiple exchanges, and then determine the target transaction information based on the indirect transaction path.

[0131] In a specific embodiment, referring to Figure 5 , electronic equipment can be based on Figure 5 The steps S501-S503 shown determine the target transaction information. The details are as follows:

[0132] S501. Split the indirect transaction path into multiple sub-transaction paths according to the transaction sequence of the objects in the indirect transaction path; the starting point and the end point of each sub-transaction path are two adjacent objects.

[0133] In one embodiment, the object transaction order is the order in which the objects are traded in sequence when the first object is exchanged for the second object. Figure 2 , taking the indirect transaction path FXYT as an example, its multiple sub-transaction paths will be FX, XY, YT.

[0134] It is understandable that the starting point and the end point in each sub-transaction path are two adjacent objects. For example, in the indirect transaction path FXYT, the two objects F and X are adjacent; the two objects X and Y are adjacent; and the two objects Y and T are adjacent.

[0135] S502: Determine in sequence the third transaction information of the transaction between two objects in each sub-transaction path.

[0136] In one embodiment, the third transaction information is similar to the first transaction information, and will not be further described.

[0137] As an example, for any sub-transaction path, the electronic device can use the object corresponding to the starting point in the sub-transaction path as the first object, and the object corresponding to the end point as the second object, and execute the second step and the steps after the second step to obtain the target transaction information corresponding to the sub-transaction path. Among them, the second step is to split the transaction order to be traded multiple times to obtain multiple sub-orders for each split. That is, the second step is the above-mentioned step S101.

[0138] It can be understood that the above steps S101-S104 can be considered to be based on the direct transaction path (direct exchange of the first object and the second object). After splitting the transaction order, the target transaction information that meets the expectations in the direct transaction path is obtained.

[0139] Based on this, since the sub-transaction path only contains two objects, the method for determining the third transaction information between the two objects that meets the expectation can be determined by referring to the above method, and no further explanation is given. That is, it can be considered that when the two objects of the sub-transaction path are processed based on steps S101-S104, the target transaction information obtained is the third transaction information that meets the expectation.

[0140] It should be added that, in determining the third transaction information corresponding to each sub-transaction path, the target transaction amount of the object corresponding to the starting point in each sub-transaction path is the target transaction amount corresponding to the end point in the previous sub-transaction path.

[0141] For example, taking the three sub-transaction paths of FX, XY, and YT as examples, for the sub-transaction path of FX, its starting point F is the first object, and the transaction amount is the target transaction amount of the first object. For the sub-transaction path of XY, the target transaction amount of its starting point X should be determined based on the previous sub-transaction path FX.

[0142] Specifically, after executing the above steps S101-S104 on the FX sub-transaction path and obtaining the third transaction information, the first object F and the third object X can be exchanged based on the third transaction information. At this time, the amount after the exchange is the target transaction amount of the third object X. Similarly, the target transaction amount of the object corresponding to the starting point in each sub-transaction path can be obtained for executing steps S101-S104.

[0143] S503: Determine the target transaction information corresponding to the sub-transaction path as the third transaction information.

[0144] In one embodiment, the method for determining the target transaction information in the sub-transaction path has been explained in S502 above, and will not be further explained.

[0145] It is understandable that the indirect transaction path is decomposed into multiple sub-transaction paths, and the optimal target transaction information corresponding to each sub-transaction path is determined. Then, in the exchange process of the first object and the second object, the target transaction information corresponding to each sub-transaction path is used for the transaction, so that the transaction amount of each sub-transaction path can be maximized, thereby reducing the transaction cost consumed by the final transaction.

[0146] It should be noted that the indirect transaction paths for the first object and the second object to conduct indirect transactions usually include multiple ones. For example, there are four types such as FZT, FXYT, FZXYT, and FXZT. At this time, in order to obtain the optimal target transaction information to reduce transaction costs, for any indirect transaction path, the electronic device can determine the second transaction amount when the transaction between the first object and the second object is completed using the indirect transaction path based on each third transaction information in the indirect transaction path. Then, the largest third maximum transaction amount among the multiple second transaction amounts is determined, so that each third transaction information in the indirect transaction path corresponding to the third maximum transaction amount is determined as the target transaction information.

[0147] For example, refer to Figure 4 , where 10000C can be considered as the target transaction amount, and 321528D can be considered as the final second transaction amount. Figure 4 The example shown shows that a transaction order can be completed based on both the direct transaction path and the indirect transaction path.

[0148] It can be understood that, since the third transaction information is the optimal target transaction information of each sub-transaction path in the indirect transaction path, the second transaction amount obtained by using the third transaction information for transaction is the maximum second transaction amount corresponding to the indirect transaction path. That is, the third maximum transaction amount which is the largest among the multiple second transaction amounts is obtained.

[0149] Based on this, each third transaction information in the indirect transaction path corresponding to the third maximum transaction amount is determined as the target transaction information, which can further reduce the transaction cost between the first object and the second object.

[0150] In another embodiment, after obtaining the target transaction information, if the transaction order has not been traded based on the target transaction information, the electronic device needs to monitor the exchange information. Then, when the exchange information changes, the electronic device can perform the second step and the steps after the second step again to obtain the target transaction information.

[0151] The second step includes splitting the transaction order to be traded multiple times to obtain multiple sub-orders for each split. That is, the electronic device needs to perform the above steps S101-S104 again.

[0152] In one embodiment, the electronic device can monitor the exchange information in the exchange based on the interface, platform, and / or smart contract provided by each exchange. Figure 6 , Figure 6 It is a schematic diagram of an application scenario for monitoring redemption information in a transaction information determination method provided in an embodiment of the present application.

[0153] Figure 6 The ox limitorder, balancer, DODO, and Uni in the above are all corresponding exchanges. The electronic device can monitor the exchange information between the first object and the second object based on the interface or platform provided by each exchange. Figure 6 The exchange in the example is only one example. When the first object and the second object change, the corresponding exchange will also change accordingly.

[0154] It is understandable that when any information such as the rate, the quotation of the second object, the exchange ratio, the remaining amount, etc. in the exchange information changes, it will affect the transaction cost when the first object and the second object trade. That is, it affects the transaction cost when trading with the target transaction information. At this time, the transaction cost corresponding to the target transaction information may not meet the expectations of the transaction parties.

[0155] Based on this, when the exchange information changes, it is necessary to determine new target transaction information again based on steps S101-S104 to reduce transaction costs.

[0156] In another embodiment, in order to illustrate the transaction information determination method in this embodiment, in this example, the first object is A and the second object is B for explanation.

[0157] The electronic device may split the transaction order in sequence to obtain multiple sub-orders for each split. For example, the number of split orders for the first split order may be 2, resulting in two sub-orders. Then, the two sub-orders are traded in two exchanges respectively to obtain the first transaction amount of the current split order.

[0158] Exemplarily, take a sub-order being traded in an exchange as an example. The electronic device can trade the sub-order in each liquidity pool to obtain the actual transaction amount when trading in each liquidity pool. At this time, in order to reduce the transaction cost, the maximum value of the actual transaction amount can be determined as the first sub-transaction amount. Based on this method, the first sub-transaction amount corresponding to another sub-order can be obtained. Afterwards, the sum of the two sub-transaction amounts is used as the first transaction amount of the current split order. At this time, the transaction information corresponding to the first transaction amount of the current split order includes: the number of split orders, the exchange corresponding to each sub-order, the liquidity pool and other information.

[0159] Among them, since there are multiple exchanges, the two sub-orders need to be traded on each exchange to obtain the first transaction amount under each combination. At this time, the final first transaction amount is the maximum value of the first transaction amounts under multiple combinations. For the sake of convenience, in this example, the combination scenario of sub-orders and exchanges is not explained in detail.

[0160] Then, the transaction order is split for the second time, and the number of split orders is twice the number of split orders in the first split order. That is, it is 4. After obtaining 4 sub-orders, each sub-order adopts the above method to obtain the corresponding first sub-transaction amount. At this time, the first transaction amount of the second split order will be the sum of the 4 first sub-transaction amounts.

[0161] Afterwards, the electronic device can compare the first and second first transaction amounts with the preset condition. If the difference between the first transaction amount of the first split order and the target transaction amount of the expected transaction, and the difference between the first transaction amount of the second split order and the target transaction amount are both less than the preset value, the preset condition is met. Otherwise, when any difference is greater than the preset value, it is determined that the preset condition is not met.

[0162] Among them, when the preset conditions are met, the electronic device determines the second transaction information corresponding to the largest first transaction amount in the two split orders as the target transaction information.

[0163] Otherwise, when the preset condition is not met, it can be determined whether the number of split orders (2) for the transaction order is less than or equal to the preset number. For example, the preset number can be 3. Then, when it is less than or equal to the preset number, the above split order step and the subsequent steps are performed again. Until the number of split orders is less than or equal to the preset number, the target transaction information is obtained.

[0164] Otherwise, when the number of order splits is greater than the preset number, a third object that can support transactions between A and B is introduced to obtain an indirect transaction path. For example, the third object may be D, and the indirect transaction path may be ADB.

[0165] At this time, the electronic device can split the indirect transaction path into multiple sub-transaction paths according to the transaction order of the objects in the indirect transaction path. For example, AD, DB. And, the third transaction information of the two objects in each sub-transaction path is determined in turn, so as to determine each third transaction information as the target transaction information.

[0166] Among them, the method of determining the third transaction information is similar to the method of determining the target transaction information in the direct transaction path AB mentioned above, and will not be explained again.

[0167] In this embodiment, taking one indirect transaction path as an example, when there are multiple indirect transaction paths, the second transaction amount when completing the transaction between A and B needs to be determined based on the third transaction information corresponding to each indirect transaction path, so as to determine the third transaction information corresponding to the largest third maximum transaction amount among the multiple second transaction amounts as the target transaction information. Furthermore, when the target transaction information determined in the above manner is used to complete the transaction, the transaction cost required can be reduced.

[0168] It should be noted that the reason for first splitting the order based on the direct transaction path and determining the target transaction information is that the indirect transaction path contains more third objects. When the market fluctuates, the probability of being affected is greater due to the large number of third objects contained in the indirect transaction path, and the transaction is not stable. Therefore, the transaction order is preferentially split based on the direct transaction path to determine the target transaction information. Then, when the number of split orders is greater than the preset number, the electronic device may believe that it will not be able to obtain the target transaction information that meets the expectations based on the direct transaction path. Therefore, the transaction order is split based on the indirect transaction path to determine the target transaction information. In turn, a balance can be achieved between transaction stability and obtaining the target transaction information that meets expectations.

[0169] See also Figure 7 , Figure 7 1 is a block diagram of a transaction information determination device provided in an embodiment of the present application. The transaction information determination device in this embodiment includes modules for executing Figures 1 to 6 For details, please refer to the steps in the corresponding embodiment. Figures 1 to 6 as well as Figures 1 to 6 For the convenience of explanation, only the parts related to this embodiment are shown. Figure 7 , the transaction information determination device 700 may include: an order splitting module 710, a first determination module 720, a second determination module 730 and a third determination module 740, wherein:

[0170] The order splitting module 710 is used to split the transaction order to be traded multiple times to obtain multiple sub-orders for each split; the transaction order includes the first object to be traded and the target transaction amount; the number of split sub-orders for each split is different.

[0171] The first determination module 720 is used to determine, for the multiple sub-orders of the current split order, based on the exchange information between the first object in the exchange and the second object of the desired transaction, the first sub-transaction amount when the multiple sub-orders are traded in the corresponding exchanges respectively.

[0172] The second determination module 730 is used to determine the first transaction amount of the current split order according to the multiple first sub-transaction amounts of the split order.

[0173] The third determination module 740 is used to determine target transaction information for the first object and the second object to trade based on the first transaction amount of the multiple split transactions.

[0174] In one embodiment, the transaction orders are split in sequence, and the number of split orders of the sub-orders of the current split order is a preset integer multiple of the number of split orders of the sub-orders of the previous split order.

[0175] In one embodiment, the exchange includes at least one liquidity pool supporting transactions between the first object and the second object; the second determination module 730 is further used to:

[0176] For any liquidity pool, the actual transaction amount after the sub-order is traded is determined based on the exchange information in the liquidity pool; the maximum value of the actual transaction amounts corresponding to multiple liquidity pools is determined as the first sub-transaction amount.

[0177] In one embodiment, the third determining module 740 is further configured to:

[0178] Determine a first maximum transaction amount among first transaction amounts of multiple split orders; and determine first transaction information corresponding to the first maximum transaction amount as target transaction information.

[0179] In one embodiment, the third determining module 740 is further configured to:

[0180] If the first transaction amount of the current order split and the first transaction amount of the previous order split meet the preset conditions, the second largest transaction amount with the largest first transaction amount in the two order splits is determined, and the second transaction information corresponding to the second largest transaction amount is determined as the target transaction information; if the first transaction amount of the current order split and the first transaction amount of the previous order split do not meet the preset conditions, the number of times the transaction order has been split is determined, and the target transaction information is determined based on the number of splits.

[0181] In one embodiment, the third determining module 740 is further configured to:

[0182] If the number of order splitting times is less than or equal to the preset number, the multiple sub-orders of the next order splitting are determined as the multiple sub-orders of the current order splitting, and the first step and the steps after the first step are executed; the first step includes determining, for the multiple sub-orders of the current order splitting, based on the exchange information between the first object in the exchange and the second object of the desired transaction, the first sub-transaction amount when the multiple sub-orders are traded in the corresponding exchanges; if the number of order splitting times is greater than the preset number, an indirect transaction path for the first object and the second object to trade is determined, and the target transaction information is determined based on the indirect transaction path; the starting point of the indirect transaction path is the first object, the end point is the second object, and at least one third object located between the starting point and the end point for trading is included.

[0183] In one embodiment, the third determining module 740 is further configured to:

[0184] According to the object transaction sequence in the indirect transaction path, the indirect transaction path is split into multiple sub-transaction paths; the starting point and the end point of each sub-transaction path are two adjacent objects; the third transaction information of the two objects in each sub-transaction path is determined in turn; and each third transaction information is determined as the target transaction information.

[0185] In one embodiment, the third determining module 740 is further configured to:

[0186] For any sub-transaction path, the object corresponding to the starting point in the sub-transaction path is taken as the first object, and the object corresponding to the end point is taken as the second object, and the second step and the steps after the second step are executed to obtain the target transaction information corresponding to the sub-transaction path; wherein the target transaction amount of the object corresponding to the starting point in each sub-transaction path is the transaction amount corresponding to the end point in the previous sub-transaction path; the second step includes splitting the transaction order to be traded multiple times to obtain multiple sub-orders for each split; and the target transaction information corresponding to the sub-transaction path is determined as the third transaction information.

[0187] In one embodiment, the indirect transaction path includes multiple ones; the third determination module 740 is further used to:

[0188] For any indirect transaction path, based on each third transaction information in the indirect transaction path, determine the second transaction amount when the transaction between the first object and the second object is completed through the indirect transaction path; determine the third maximum transaction amount that is the largest among multiple second transaction amounts; and determine each third transaction information in the indirect transaction path corresponding to the third maximum transaction amount as the target transaction information.

[0189] In one embodiment, the transaction information determining device 700 further includes:

[0190] The execution module is used to execute the second step and the steps after the second step again if the exchange information changes, so as to obtain the target transaction information; the second step includes splitting the transaction order to be traded multiple times to obtain multiple sub-orders for each split.

[0191] When it is understood that Figure 7 In the structural block diagram of the transaction information determination device shown, each module is used to execute Figures 1 to 6 The steps in the corresponding embodiments, and for Figures 1 to 6 Each step in the corresponding embodiment has been explained in detail in the above embodiment. Figures 1 to 6 as well as Figures 1 to 6 The relevant descriptions in the corresponding embodiments are not repeated here.

[0192] Figure 8 1 is a structural block diagram of an electronic device provided by an embodiment of the present application. Figure 8As shown, the electronic device 800 of this embodiment includes: a processor 810, a memory 820, and a computer program 830 stored in the memory 820 and executable on the processor 810, such as a program of the transaction information determination method. When the processor 810 executes the computer program 830, the steps in each embodiment of the transaction information determination method described above are implemented, such as Figure 1 Alternatively, the processor 810 implements the above when executing the computer program 830 Figure 7 The functions of each module in the corresponding embodiment are, for example, Figure 7 For details on the functions of each module shown, please refer to Figure 7 Related description in the corresponding embodiment.

[0193] Exemplarily, the computer program 830 may be divided into one or more modules, one or more modules are stored in the memory 820, and are executed by the processor 810 to implement the transaction information determination method provided in the embodiment of the present application. One or more modules may be a series of computer program instruction segments that can perform specific functions, and the instruction segments are used to describe the execution process of the computer program 830 in the electronic device 800. For example, the computer program 830 may implement the transaction information determination method provided in the embodiment of the present application.

[0194] The electronic device 800 may include, but is not limited to, a processor 810 and a memory 820. Those skilled in the art will appreciate that Figure 8 It is only an example of the electronic device 800 and does not constitute a limitation of the electronic device 800. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the electronic device may also include input and output devices, network access devices, buses, etc.

[0195] The processor 810 may be a central processing unit, or other general-purpose processors, digital signal processors, application-specific integrated circuits, off-the-shelf programmable gate arrays or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0196] The memory 820 may be an internal storage unit of the electronic device 800, such as a hard disk or memory of the electronic device 800. The memory 820 may also be an external storage device of the electronic device 800, such as a plug-in hard disk, a smart memory card, a flash memory card, etc. equipped on the electronic device 800. Furthermore, the memory 820 may also include both an internal storage unit of the electronic device 800 and an external storage device.

[0197] An embodiment of the present application provides a computer-readable storage medium, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the transaction information determination method in the above-mentioned embodiments is implemented.

[0198] An embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the transaction information determination method in each of the above embodiments.

[0199] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A method for determining transaction information, characterized in that: The method comprises: The transaction order to be traded is split multiple times to obtain multiple sub-orders for each split; the transaction order includes a first object to be traded and a target transaction amount; and the number of split sub-orders for each split is different; For the multiple sub-orders of the current split order, based on the exchange information between the first object and the second object to be traded in the exchange, determine the first sub-transaction amount when the multiple sub-orders are traded in the corresponding exchange respectively; Determine the first transaction amount of the current split order according to the first sub-transaction amounts of the multiple split orders; Based on the first transaction amounts of the multiple split-order transactions, target transaction information for the first object and the second object to trade is determined.

2. The method according to claim 1, characterized in that The transaction order is split in sequence, and the number of split orders of the sub-orders of the current split order is a preset integer multiple of the number of split orders of the sub-orders of the previous split order.

3. The method according to claim 1, characterized in that The exchange includes at least one liquidity pool supporting the transaction between the first object and the second object; the determining, based on the exchange information between the first object and the second object to be traded in the exchange, the first sub-transaction amount when the plurality of sub-orders are traded in the corresponding exchange respectively, includes: For any of the liquidity pools, based on the exchange information in the liquidity pool, determining the actual transaction amount after the sub-order is traded; The maximum value of the actual transaction amounts corresponding to the multiple liquidity pools is determined as the first sub-transaction amount.

4. The method according to claim 1, characterized in that The determining, based on the first transaction amount of the multiple split transactions, target transaction information for the first object and the second object to trade includes: Determine a first maximum transaction amount among the first transaction amounts of multiple split orders; The first transaction information corresponding to the first maximum transaction amount is determined as the target transaction information.

5. The method according to any one of claims 1 to 3, characterized in that: The determining, based on the first transaction amount of the multiple split transactions, target transaction information for the first object and the second object to trade with each other further includes: If the first transaction amount of the current order split and the first transaction amount of the previous order split meet a preset condition, determine the second maximum transaction amount that is the largest of the first transaction amounts in the two order splits, and determine the second transaction information corresponding to the second maximum transaction amount as the target transaction information; If the first transaction amount of the current split order and the first transaction amount of the previous split order do not meet the preset conditions, the number of times the transaction order has been split is determined, and the target transaction information is determined based on the number of split orders.

6. The method according to claim 5, characterized in that The determining the target transaction information based on the number of order splitting times includes: If the number of order splits is less than or equal to the preset number, the multiple sub-orders of the next order split are determined as the multiple sub-orders of the current order split, and the first step and the steps after the first step are executed; the first step includes determining, for the multiple sub-orders of the current order split, based on the exchange information between the first object in the exchange and the second object to be traded, the first sub-transaction amount when the multiple sub-orders are traded in the corresponding exchange; If the number of order splitting is greater than the preset number, an indirect transaction path for the first object and the second object to trade is determined, and the target transaction information is determined based on the indirect transaction path; the starting point of the indirect transaction path is the first object, the end point is the second object, and at least one third object for trading is located between the starting point and the end point.

7. The method according to claim 6, characterized in that The determining the target transaction information based on the indirect transaction path includes: According to the object transaction sequence in the indirect transaction path, the indirect transaction path is split into a plurality of sub-transaction paths; the starting point and the end point of each sub-transaction path are two adjacent objects; sequentially determining third transaction information of transactions between the two objects in each of the sub-transaction paths; Each of the third transaction information is determined as the target transaction information.

8. The method according to claim 7, characterized in that The step of sequentially determining the third transaction information of the transaction between the two objects in each of the sub-transaction paths includes: For any of the sub-transaction paths, take the object corresponding to the starting point in the sub-transaction path as the first object, and the object corresponding to the end point as the second object, execute the second step and steps after the second step, and obtain the target transaction information corresponding to the sub-transaction path; The target transaction amount of the object corresponding to the starting point in each sub-transaction path is the transaction amount corresponding to the end point in the previous sub-transaction path; the second step includes splitting the transaction order to be traded multiple times to obtain multiple sub-orders for each split; The target transaction information corresponding to the sub-transaction path is determined as the third transaction information.

9. The method according to claim 7 or 8, characterized in that: The indirect transaction path includes a plurality of paths; and determining the target transaction information based on the indirect transaction path includes: For any of the indirect transaction paths, based on each of the third transaction information in the indirect transaction path, determining a second transaction amount when the transaction between the first object and the second object is completed through the indirect transaction path; Determine a third maximum transaction amount which is the largest among the plurality of second transaction amounts; Each piece of the third transaction information in the indirect transaction path corresponding to the third maximum transaction amount is determined as the target transaction information.

10. The method according to any one of claims 1-4 or 6-8, characterized in that: The method further comprises: If the exchange information changes, the second step and the steps after the second step are executed again to obtain the target transaction information; The second step includes splitting the transaction order to be traded multiple times to obtain multiple sub-orders for each split.

11. An electronic device, characterized in that: The electronic device comprises a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the electronic device implements the method as claimed in any one of claims 1 to 10.

Citation Information

Patent Citations

  • Method, system and equipment for optimizing transaction cost

    CN110033372A

  • Intelligent routing method and system based on complex order

    CN112766575A

  • Digital currency exchange method, device and equipment and computer readable medium

    CN116151820A

  • Method and system for multiple cascading authorization in real time

    US20180240094A1

  • System and method for implementing distributed transactions

    US20200311709A1