Preprint
Article

This version is not peer-reviewed.

ESS-LP: An Effective Slippage Scheme Based on Liquidity Pools for Data Trading

Submitted:

29 April 2026

Posted:

01 May 2026

You are already at the latest version

Abstract
This paper proposes a decentralized data trading approach based on the Automated Market Maker (AMM) mechanism, aiming to break through the bottlenecks in data trading efficiency and fairness via the collaborative innovation of market-oriented pricing mechanisms and automated trading processes. We focus on constructing an automatic pricing and matching mechanism based on liquidity pools. Subsequently, mathematical modeling and simulations reveal slippage generation mechanisms in data liquidity pools under trading shocks and imbalances. To address these issues, a novel dual slippage optimization mechanism integrating dynamic trade splitting and alternating order sorting is proposed, which decomposes orders into sub-orders and reorganizes their timing, establishing a dynamic equilibrium model. Experiments show the method reduces average slippage amplitude from 2.1% to 0.5% and representing a 76.2% reduction, significantly enhancing price stability and market efficiency. This research explores the mechanism of applying AMM to data asset trading and overcomes AMM's limitations, providing a theoretical and empirical foundation for building low-cost, high-fairness data trading systems through mechanism innovation and technical optimization.
Keywords: 
;  ;  ;  

1. Introduction

In recent years, the digital economy has grown at an unprecedented scale and speed. It has become a driving force in reshaping the global economic structure and competitive landscape. Data is gradually transformed from a supportive resource to a core resource driving production and innovation. The efficient circulation and value realization of data increasingly rely on standardized and orderly trading mechanisms, and the establishment of a data assets market allocation system has become a critical pathway for advancing the digital economy. To facilitate data circulation, various data trading platforms have been successively established both domestically and internationally [1], such as the domestic Guiyang Global Big Data Trading Platform, the Central China Big Data Trading Platform, and the Shanghai Data Trading Platform, etc., alongside the international data trading platforms such as Factual, BDEX, and Data plaza [2]. These platforms aim to bridge data suppliers and customers. While data exchanges promote cross-hierarchical data circulation across society, their centralized architectures frequently manifest single point of failure vulnerabilities. Persistent challenges include security risks from centralized data storage, suboptimal pricing mechanisms, and inefficient matching capabilities, collectively rendering these platforms inadequate to satisfy the flexible, real-time, and high-frequency trading requirements characteristic of data assets markets.
Decentralized digital currency trading platforms based on the AMM model, such as Bancor [3], Uniswap [4], Curve [5], etc., have been widely applied in blockchain financial systems recently. These platforms utilize smart contracts on the blockchain to enable liquidity pool trading, allowing users to complete trades in a decentralized, trustless way that partially resolves issues inherent in traditional exchanges. The AMM mechanism relies on liquidity pool and predefined mathematical functions for dynamic pricing, facilitating decentralized trading without order matching, which provides a novel idea to overcome the liquidity bottleneck and inefficient matching in centralized platforms. Although the mechanism has been validated in homogeneous financial assets, its applicability to data asset trading remains under-explored. Few existing studies have introduced the AMM mechanism into data trading, and the non-homogeneity, non-standardization and sparsity of data assets pose new modeling and trading challenges. However, the trading slippage problem is particularly prominent under the liquidity pool-based trading mechanism. Slippage typically denotes the discrepancy between executed and expected prices [6], influenced by factors such as trade volume, market depth, and supply-demand dynamics. Data assets exhibit strong time-sensitivity and uniqueness [7], with slippage amplification frequently occurring during block trades or asymmetric trades. This phenomenon significantly increases trading costs and undermines market fairness.
Existing research on slippage control mainly focuses on financial trading scenarios, typically employing mitigation strategies such as increasing market depth, limiting trading volume, optimizing trading strategies for dynamic curve market makers, or introducing price oracles, e.g., Bancor, Uniswap, etc. However, these methods mainly rely on the structure of high-frequency and highly symmetric financial assets, and it is difficult to adapt them to the highly heterogeneous, low-frequency and supply-demand disequilibrium characteristics of data trading. The new mechanistic causes underlying slippage in data trading scenarios still lack systematic research and effective solutions. Within the domain of data trading platforms, some studies have attempted to optimize the price discovery and data quality assessment mechanisms, such as automatically negotiating pricing through smart contracts, supply-demand matching based on data quality priorities [8], fair exchange agreements incentivizing honest behavior [9] and privacy protection based zero-knowledge proofs [10], yet a comprehensive slippage analysis framework and control mechanism remain unrealized. Crucially, the precise optimization of trade execution pathways in response to real-time platform liquidity conditions, particularly within dynamic trading environments, still constitutes an unexplored research frontier.
To tackle these challenges, this paper proposes a decentralized data trading approach based on the AMM mechanism, pioneering the application of the AMM mechanism to heterogeneous data asset trading, breaking through the bottlenecks in data trading efficiency and fairness via the collaborative innovation of market-oriented pricing mechanisms and automated trading processes. In response to the slippage issues, we propose a novel dual slippage optimization mechanism integrating dynamic trade splitting and alternating order sorting to effectively alleviate block trade impacts and matching disequilibrium. The following are the main contributions of this paper:
  • Proposes a decentralized data trading approach based on the AMM mechanism, aiming to break through the bottlenecks in data trading efficiency and fairness via the collaborative innovation of market-oriented pricing mechanisms and automated trading processes. This establishes a novel decentralized trading paradigm for data assets, extending the application boundaries of the Decentralized Finance (DeFi) key mechanism to non-financial trading scenarios.
  • Innovatively constructs an automated pricing and trading matching mechanism based on a liquidity pool. Through mathematical modeling and simulation experiments, it quantitatively analyzes the generation mechanism of slippage in data liquidity pools when coping with transaction shocks and buy-sell disequilibrium. The findings reveal that liquidity shocks induced by block trades and temporal mismatches arising from buy-sell disequilibrium constitute the primary root causes of pronounced slippage volatility in data trading.
  • Innovatively proposes a dual slippage optimization mechanism integrating dynamic trade splitting and alternating order sorting, featuring a liquidity pool state-aware dynamic trade splitting and alternating order sorting execution engine. This achieves stable control of slippage in block trades scenarios.
The rest of the paper is organized as follows: Section 2 introduces and discusses related work in the data trading field. In Section 3, we propose a data trading model based on liquidity pools and analyze the factors influencing trading slippage. Building upon this analysis, we introduce our slippage optimization methodology for liquidity pool-based data trading. In Section 4, we evaluate the efficacy of the proposed slippage optimization approach through comprehensive experiments. Finally, Section 5 presents the principal conclusions and research contributions.

3. Data Trading Model and Slippage Mechanism Analysis Based on AMM

This section may be divided by subheadings. It should provide a concise and precise description of the experimental results, their interpretation, as well as the experimental conclusions that can be drawn.

3.1. Data Trading Liquidity Pool Model Construction

The essence of the data trading market lies in establishing a networked trading ecosystem that supports multi-agent participation, with its core characteristic manifested as a many-to-many trading model. This paradigm aggregates massive homogeneous data providers and geographically dispersed data consumers within a unified marketplace. Driven by dynamic demands, consumers typically procure large-scale homogeneous data assets to fulfill domain-specific analytical objectives. A representative application scenario involves constructing high-precision supermarket consumption behavior models using customer purchase records. To achieve this, data consumers such as market researchers, suppliers, advertisers, and academic institutions require multidimensional, large-scale datasets to support machine learning training, in-depth data mining, and analytical activities. Concurrently, numerous supermarkets capable of supplying such data act as data providers.
In this operational framework, data generated by Supermarket A is fragmented and distributed across multiple consumers, each imposing distinct purposes, processing methods, retention periods, and re-licensing terms for data usage. Such heterogeneity complicates the traceability of data flows and post-transaction usage for providers like Supermarket A. Conversely, individual consumers must consolidate fragmented datasets from multiple supermarkets to assemble comprehensive, application-specific datasets. This operational complexity underscores the intrinsic attributes of data trading markets: dynamic supply-demand alignment and interwoven data circulation pathways. This scenario exemplifies how decentralized data trading requires both fine-grained contractual governance and cross-source integration mechanisms to reconcile scalability with compliance. Specific scenario is illustrated in Figure 1.
To address the multi-agent dynamic trading scenario illustrated in Figure 1, this study proposes a multi-party data trading mechanism based on an AMM liquidity pool architecture, leveraging smart contracts to achieve decentralized pricing and trading. Furthermore, we design a slippage optimization algorithm to mitigate the market impact costs caused by block data trading.

3.1.1. Trading Model

Under the liquidity pool-based data trading model, the data trading process is divided into three stages: data assetization, asset certification, and entitlement transactionalization. Data assetization refers to transforming raw data into a standardized asset object, enabling the management of corresponding data assets in the form of digital assets. Asset certification refers to converting the ownership rights of a data asset into a set of entitlement objects, enabling the management of data rights in the form of digital assets according to the ownership system. Entitlement transactionalization refers to the actual trading of data through the exchange of data rights, with digital assets representing data asset rights as the object of exchange. In this process, we define the data meta-certificate as the subject matter of the original data for trading. The data warrant is the subject matter of the ownership of the data asset represented by the data meta-certificate. This design facilitates the separation of exercisable data ownership from the underlying data asset used as the transaction subject, and simplifies the governance of data assets. As shown in Figure 2.
Based on this concept, this paper utilizes ERC20-based data warrants as the equity targets for data assets. ERC20 is a widely used token standard on the Ethereum blockchain, defining a set of standardized rules for the creation, transfer, and management of tokens on the Ethereum network. By employing ERC20-based digital warrants, the existence and uniqueness of data asset ownership can be represented, while also providing cross-platform interoperability and flexibility, thereby facilitating data trading management. During data trading, similar types of data can generate corresponding data warrants of the same type, which are then traded as trading objects in specific types of liquidity pools.
In the data trading model proposed in this paper, a data market maker liquidity pool model is constructed to isolate the trading parties, forming an indirect data circulation and trading model through interactions between data buyers/sellers and the liquidity pool. For example, a smart device collects supermarket sales records (i.e., customer shopping receipt datasets containing N purchase records) for a specific period and publishes them for sale as a data asset. A data meta-certificate can be created to characterize its asset attributes. For a data meta-certificate, a data warrant or a set of data warrants can be automatically generated, allowing the supermarket as a data seller to deposit these warrants into the supermarket receipt liquidity pool. If no such liquidity pool exists, a supermarket shopping receipt warrant liquidity pool can be created. At the same time, the supermarket deposits supermarket receipt data warrants and tokens to form a supermarket shopping receipt data warrant market maker, and also receives the corresponding reward tokens. Data analysts or market researchers as data buyers will enter the liquidity pool to purchase data warrants based on their needs and achieve data trading. The data trading process is automatically executed by smart contracts, where purchasers pay corresponding data tokens to obtain the required data. The liquidity pool dynamically adjusts data prices based on supply, demand, and trading volume. For example, if shopping receipt data for a certain period is highly sought after and in high demand, the liquidity pool will raise its price accordingly to balance supply and demand. Furthermore, it is also necessary to design optimized trading strategies based on the slippage issues inherent in liquidity pools to ensure trading efficiency and fairness. Figure 3 illustrates the workflow of the proposed data market maker liquidity pool model.
Data trading is supported by different types of liquidity pools, and data traders interact with specific liquidity pools via smart contracts to buy or sell data assets. This model adopts commonly used liquidity pool models, such as Constant Product Automated Market Maker (CPAMM) and Constant Sum Automated Market Maker (CSAMM), as references and applies them to liquidity management in the data market. To optimize the trading process, the model introduces a dynamic trade splitting algorithm and an alternating order sorting algorithm to find the optimal trading solution, thereby reducing slippage and improving trading efficiency.
The data trading pool is a liquidity pool consisting of data warrants, Digital Currency Electronic Payment (e-CNY), and a data trading access validation mechanism, as shown in Figure 4. When a new data trading pool is created, data access verification rules are first set, and the initial ratio of data warrants to payment currency in the liquidity pool is also determined. To incentivize liquidity providers to provide liquidity and ensure the depth of data and monetary assets in the data liquidity pool, the liquidity pool implements a strategy that rewards liquidity providers with trading fees. Once data trading is completed, the liquidity pool calculates the trading price through an AMM algorithm, thus completing the data trading activity.

3.1.2. Pricing Mechanisms

Consider a data trading pool containing two types of tokens: the data warrant and e-CNY, referred to as MTK and ECNY, respectively, with quantities denoted x M T K and y E C N Y . The AMM allows one token to be exchanged for the other according to a given function, this paper uses constant product curves, as shown in Equation (3):
x M T K × y E C N Y = k
Users holding data warrants can choose to simultaneously deposit MTK and ECNY asset pairs into the liquidity pool to provide liquidity and earn fee income directly. Data sellers can generate MTK from their data assets and then sell them to obtain ECNY, while data buyers pay ECNY to the trading pool to purchase MTK, and through MTK they can access the corresponding data assets. In the process of mutual exchange between ECNY and MTK, when a user purchases data assets (ignoring trading fees), the amount of data assets purchased is as shown in Equation (4). Similarly, when a user sells data assets, the obtained e-CNY is as shown in Equation (5).
Δ x M T K = x M T K k y E C N Y + Δ y E C N Y ,
Δ y E C N Y = y E C N Y k x M T K + Δ x MTK .
In these equations, Δ x M T K represents the data warrants purchased, Δ y E C N Y represents the e-CNY spent.

3.1.3. Definition of Slippage

For curve-based AMMs, slippage refers to the loss incurred by a trader due to a mismatch between the pool price at which a trade is initiated and the effective price obtained during the trade. The AMM mechanism in the trading pool is based on the constant product formula, and each trade changes the number of tokens in the pool, which in turn affects the price of the subsequent trades. Therefore, slippage directly influences the costs and benefits of both parties involved in data trading. Taking the purchase of MTK as an example, the actual price of purchasing MTK is shown in Equation (6):
P t r a d e = Δ y E C N Y Δ x M T K ,
where P t r a d e denotes the actual trading price.
The expected price of purchasing MTK is shown in Equation (7):
P exp e c t e d = y E C N Y x M T K ,
where P exp e c t e d denotes the expected trading price.
The calculation of the slippage H is detailed in Equation (8):
H = ( P t r a d e P exp e c t e d P exp e c t e d ) × 100 % .
The lower the slippage, the more favorable it is for users. In data trading, lower slippage means that traders can trade closer to the expected price, which will boost users’ enthusiasm for participating in data trading and further improve the efficiency and appeal of the data trading market.

3.2. Analysis of Slippage Mechanisms and Influencing Factors

In this study, we quantitatively and qualitatively analyze the impact of different factors on slippage in the data trading pool through simulation experiments. The experiment simulates a real trading environment, assuming the existence of the aforementioned data trading pool. In the initialization phase of the data trading pool, a user deposited 1000 data warrants and 1000 tokens into the pool to provide initial liquidity, and a certain amount of initial funds is allocated to each trading user’s account. The data trading pool adopts a constant product pricing model, meaning that the product of the number of data warrants and the number of tokens is constant, which can effectively reflect market demand. The total trading duration is 10 minutes. During this period, three data traders continuously perform buy and sell operations at specific intervals: User 1 trades every 10 seconds, User 2 every 30 seconds, and User 3 every 1 minute. During the trading process, users’ trading behavior occurs randomly and is determined by a random generator. This random decision model is designed to simulate the uncertainty of user behavior in real trading. During the experiment, key data for each trade, including trading time, price, volume, and slippage, is recorded. Appropriate statistical analysis methods are used to analyze the data to study the impact of different factors on slippage.

3.2.1. Impact of Block Trade on Slippage

To gain a deeper understanding of the impact of block trades on slippage, we designed experiments to observe slippage variation over different trading volume intervals, and we quantified six different trading volume intervals ranging from 0.1% to 20% of the number of tokens in the liquidity pool, as shown in Table 1.
Within these intervals, users’ buying and selling behavior occurs randomly with equal probability to simulate a more realistic data trading market. Figure 5 illustrates the variation in slippage over time for different volume ranges. It can be observed that for smaller volume ranges, particularly at the 1% level, the market absorbs trades more easily, resulting in lower slippage. However, as the trading volume increases, slippage also increases, indicating that block trades significantly affect slippage, with larger trades leading to higher slippage.
In addition, we use standard deviation as a metric for slippage volatility and analyze the data for trades in different volume ranges. Figure 6 shows the results comparing the standard deviation of slippage across different volume ranges. A significant positive correlation is observed between the standard deviation of slippage and the trading volume range. Specifically, the standard deviation of slippage increases significantly as the trading volume range grows, showing a clear increasing trend. The relatively small standard deviation in lower volume ranges (e.g., 0.1–0.5% and 0.5–1%) indicates more stable slippage changes. In contrast, higher volume ranges (e.g., 15–20%) have larger standard deviations, reflecting more dramatic fluctuations in slippage changes. Therefore, in block trades, the uncertainty of slippage changes is stronger, and the stability of the trading environment decreases, which means higher risks and potential unfair trading environments for data traders.
Figure 7 further quantifies the impact of block trades on slippage, showing the trend in average slippage across trading volume ranges. It can be observed that as the trading volume range increases, the average slippage shows a clear upward trend, consistent with theories of market liquidity and price impact of trading pairs. Within the 0.1–1% volume range, average slippage is close to 0%, indicating that at smaller trade volumes, the market can efficiently absorb trades with low slippage, benefiting traders. In the 0.5–1% range, slippage remains relatively low, but has begun to show a tendency to increase as the trading volume increases. However, once the trading volume reaches 1%, the market feels the pressure of block trades, causing average slippage to rise significantly, with an accelerated growth rate. When the trading volume reaches the 15–20% range, average slippage increases significantly to nearly 17%, highlighting the substantial impact of block trades on market prices and slippage. In addition, the increase in slippage is non-linear: it grows more slowly for smaller ranges of trading volumes and faster for a larger block trade. This suggests that for block trades, the liquidity of the pool appears insufficient, and slippage significantly increases.

3.2.2. Impact of Buy-Sell Equilibrium on Slippage

In financial markets, buy-sell equilibrium refers to a state where the trading intentions and capabilities of buyers and sellers are balanced, meaning the buyers’ willingness to purchase matches the sellers’ willingness to sell. In the second part of the experiment, we examine the impact of buy-sell equilibrium on slippage by simulating both equilibrium and disequilibrium trading environments.
To simulate a buy-sell equilibrium market environment, we set the probability of traders buying and selling to be equal, with each accounting for 50%, thereby ensuring an equilibrium power between buyers and sellers. In contrast, for buy-sell disequilibrium, the probability of buying or selling activity is set to 80%, simulating situations of oversupply or undersupply in the market. Through multiple repeated simulations, we obtain slippage data under different conditions.
Figure 8 illustrates the trend of slippage over time under both buy-sell equilibrium and disequilibrium conditions. The blue curve represents slippage in the equilibrium state, where the probabilities of users buying and selling are both 50%. It can be observed that the fluctuation amplitude is moderate, with overall stability in the range of 10–20%, indicating that slippage is relatively smooth under equilibrium conditions. The green curve corresponds to buying-dominated behavior, where the buying probability is 80% and the selling probability is 20%, while the red curve corresponds to selling-dominated behavior. It can be seen that the magnitude of slippage fluctuations is significantly higher under disequilibrium conditions, indicating increased slippage risk.
Figure 9 shows the comparison of the standard deviation of slippage under different conditions through a bar chart. The lowest standard deviation of slippage is 0.0394 in the buy-sell equilibrium condition, suggesting low slippage volatility and relatively smooth market trading in the equilibrium condition. The slippage standard deviation under disequilibrium conditions is significantly higher than that under equilibrium conditions, further confirming the significant impact of buy-sell disequilibrium on slippage volatility.
In summary, block trades and the degree of market buy-sell equilibrium are key factors influencing slippage. Block trades, due to their impact on market liquidity, often trigger significant price movements, leading to increased slippage. Similarly, the degree of market buy-sell equilibrium directly affects slippage, with implications for the fairness of the trading environment. Therefore, it is crucial for traders to incorporate these factors when formulating and implementing trading strategies, so as to minimize the adverse effects of slippage and effectively improve the overall efficiency and fairness of trading.

3.3. Design and Implementation of Slippage Optimization Algorithm

3.3.1. Design Methodology

Building upon the experimental analysis presented earlier, we identify the key factors that influence slippage and accordingly propose an Effective Slippage Scheme Based on Liquidity Pools (ESS-LP) to minimize slippage. As illustrated in Figure 10, the data trading pool is divided into a pending trading pool and an execution pool. When a trader initiates a new trading, it first enters the pending trading pool. This pool continuously collects trades, performing splitting and sorting operations, and then enters the execution pool to achieve the optimal trading. The pending trading pool and the execution pool operate alternately. This paper focuses on the splitting and sorting mechanisms within the pending trading pool, which include the following key steps:
  • Collection of Trading Requests: Data traders may continuously submit trading requests to the data trading pool within a specified trading time window, and all requests initiated within this window will be collected.
  • Processing of Trading Requests: Once the time window closes, the system will begin processing all collected trading requests. The processing involves two main steps: block trade splitting and trading sorting. First, block trades, defined as those exceeding 1% of the current token supply in the trading pool, are split. Each split will be made according to 1% of the liquidity of the trading pool to minimize the impact of block trades on the market price. Second, all trades will be sorted to achieve buy-sell equilibrium. This is achieved by using two arrays to store buy and sell orders respectively, and the system alternately selects trades from the buy and sell order arrays to populate the result arrays.
  • Execution of Trading: After processing the trading requests, the system executes all trades in the result array sequentially, ensuring orderly trade execution while minimizing slippage.

3.3.2. Dynamic Trade Splitting Algorithm for Slippage Reduction

After the trading time window closes, we first identify and process block trades. We define block trades as those where the trading volume exceeds 1% of the token quantity in the trading pool. For these block trades, this paper adopts a splitting strategy, dividing them into multiple smaller trades, each not exceeding 1% of the pool’s balance, to reduce the impact of a single block trade on market prices.
Algorithm 1 calculates the ratio of trading volume to the token pool balance and compares it with the threshold. If the trading volume exceeds 1% of the pool’s balance, it enters the splitting process. During splitting, the algorithm iteratively reduces the trading volume through a loop until the remaining volume does not exceed 1% of the pool balance. In each iteration, the algorithm first obtains the current token balance and calculates the current 1% pool balance. Then, it determines the split volume, which is the lesser of the remaining trading volume and the current 1% pool balance. The split trading information is then added to the trading list, and the remaining trading volume is updated. If the trading volume does not exceed 1% of the pool balance, the original trading information is added directly to the trading list. Finally, the algorithm terminates and returns the updated trading list. This algorithm effectively balances the impact of block trades on trading pool slippage by dynamically adjusting the trading volume.
Algorithm 1: Check and Split
1: Input:simpleSwapAddress, token, tokenAddress, user, volumeToTrade, balanceToken
2: Output:trades
3: o n e P e r c e n t P o o l B a l a n c e b a l a n c e T o k e n 100
4: if   v o l u m e T o T r a d e > o n e P e r c e n t P o o l B a l a n c e then
5: r e m a i n i n g V o l u m e T o T r a d e v o l u m e T o T r a d e
6: While   r e m a i n i n g V o l u m e T o T r a d e > 0 do
7: c u r r e n t B a l a n c e T o k e n     t o k e n . b a l a n c e o f ( s i m p l e S w a p A d d r e s s )
8: c u r r e n t o n e P e r c e n t P o o l B a l a n c e c u r r e n t B a l a n c e T o k e n 100
9: s p l i t V o l u m e     m i n ( r e m a i n i n g V o l u m e T o T r a d e ,   c u r r e n t O n e P e r c e n t P o o l B a l a n c e )
10 trades push u s e r , t o k e n , t o k e n A d d r e s s , s p l i t A m o u n t
11 r e m a i n i n g V o l u m e T o T r a d e r e m a i n i n g V o l u m e T o T r a d e s p l i t V o l u m e
12 end while
13 else
14 trades push u s e r , t o k e n , t o k e n A d d r e s s , s p l i t A m o u n t
15 endif

3.3.3. Alternating Order Sorting Algorithm for Slippage Stabilization

Next, Algorithm 2 sorts all trades, including split trades, to achieve buy-sell equilibrium, thereby reducing the volatility of slippage within the trading pool.
Algorithm 2: Balance Buys and Sells
1: Input:trades
2: Output:balancedTrades
3: b u y s [ ] ,   s e l l s [ ]
4: fortrade in tradesdo
5: iftrade.tokenAddress = ENCYTokenAddressthen
6: buys.append(trade)
7: else iftrade.tokenAddress = mtkTokenAddressthen
8: sells.append(trade)
9: end if
10 end for
11 b a l a n c e d T r a d e s [ ]
12 while   v o l u m e b u y s > 0 and   v o l u m e s e l l s > 0 do
13 balancedTrades.append(buys.pop(0))
14 balancedTrades.append(sells.pop(0))
15 endwhile
16 balancedTrades.append(buys)
17 balancedTrades.append(sells)
18 returnbalancedTrades
Initially, the algorithm creates two empty lists to store buy and sell orders respectively. Then, through a loop, trades are alternately taken from the buy and sell order lists and added to a new list called BalancedTrades. This step ensures the equilibrium execution of both buy and sell orders. This process minimizes slippage caused by one-sided market pressure. If any trades remain in either the buy or sell lists, the algorithm adds them all to the BalancedTrades list, ensuring that all trades are executed, even in the case of disequilibrium. Finally, the algorithm returns the BalancedTrades list with the optimized sequence of trades.

4. Experimental Evaluation

To validate the efficacy of the proposed ESS-LP slippage optimization mechanism, this study conducts a comparative analysis of system slippage under unified trading environments and simulation parameters. We systematically examine before and after optimization variation trends in slippage, volatility characteristics and overall controllability. This section includes three parts: Experimental settings, Comparative slippage results and Evaluation conclusions, which demonstrate the comprehensive performance of the optimization algorithm in improving trading stability and reducing trading costs.

4.1. Experimental Setting

This experiment replicates the data trading environment described in Chapter 3. We set a 10 minutes trading window, during which traders submit trading requests at fixed intervals. Trade volumes and directions are generated to simulate real world behavioral differences probabilistically. The trading mechanisms are divided into two cohorts: the control group executes trading via conventional AMM mechanism with no optimization strategy; the experimental group: Implements the proposed dual slippage optimization mechanism, incorporating liquidity pool state-aware dynamic trade splitting and alternating order sorting.
Slippage evaluation employs three key metrics: Average Slippage (AS), Slippage Standard Deviation (SSD) and Maximum Slippage (MS). The formulas are given in Equations (8)-(10):
A S = 1 n i = 1 n H i ,
S S D = 1 n i = 1 n ( H i A S ) 2 ,
M S = max ( H 1 , ... , H n ) .
Specifically, AS measures systematic cost through mean price deviation from expectations; SSD quantifies the volatility and stability of slippage; MS identifies extreme deviations in individual trades to reveal risk exposure. Here, n represents the total number of trading orders in the evaluation period, i denotes the transaction index, and H i refers to the slippage deviation of each individual trade.

4.2. Comparative Slippage Results

Figure 11 illustrates the temporal evolution of slippage for both control and experimental cohorts throughout the trading session. As can be seen, the pre-optimized mechanism (blue trace) exhibits pronounced slippage spikes with substantial volatility, particularly during the 4-5 min, 6-7 min, and 8-9 min intervals where slippage exceeds the 5.0% threshold. In the data trading context, such elevated slippage signifies heightened price volatility and increased trading costs for block trades executions. In contrast, the proposed dual slippage optimization mechanism (red trace) demonstrates significantly attenuated fluctuations over the same trading session. The maximum observed slippage is 1.1% throughout the whole trading window, and there is no absence of statistical outliers. Consequently, the optimized platform achieves minimal price volatility during block trade executions, significantly reduces trading costs and improves the efficiency of the data trading market.
Further statistical results are shown in Table 2, demonstrate substantial improvements. First of all, the AS decreases from 2.1% pre-optimization to 0.5% post-optimization, representing a 76.2% reduction. Secondly, the SSD decreases from 1.66% to 0.25%, indicating 84.9% volatility reduction. Thirdly, the MS is decreased from 5.5% to 1.1%. These quantitative metrics confirm the optimization algorithm’s significant efficacy in controlling both slippage magnitude and uncertainty.

4.3. Evaluation Conclusions

The experimental findings indicate that the proposed dual slippage optimization mechanism not only significantly reduces trading costs throughout the trading session, but also achieves excellent stability in controlling slippage volatility. This enhances the predictability and fairness in the data trading environment. In block trade scenarios, the traditional AMM mechanism suffers from catastrophic slippage amplification due to liquidity pool impacts. However, the proposed optimization algorithm efficiently mitigates slippage accumulation by splitting block trades into micro-trades and staggering their bidirectional execution between buyer and seller. This mechanism is proven to substantially strengthen platform robustness and increase market attractiveness in data trading.
In summary, the dual slippage optimization mechanism proposed in this paper effectively mitigates the slippage problem caused by impacts of a single trading and matching disequilibrium. This mechanism integrates “Dynamic Trade Splitting” and “Alternating Order Sorting”, which demonstrates theoretical coherence with data asset characteristics and provides empirically validated adaptability. This mechanism provides robust technical support for automated pricing systems in high-frequency or block trade scenarios.

5. Conclusion and the Future Work

At present, the digital economy has become an important engine to lead the scientific and technological revolution and industrial change, and drive economic growth. As a foundational strategic resource, the efficient trading of data is paramount for unleashing its full value and driving digital economy development. Addressing the limitations of traditional centralized data trading platforms in efficiency, transparency, and dynamic pricing, this study pioneers the integration of AMM mechanisms into data trading through our proposed ESS-LP framework. We establish an innovative liquidity pool-based data trading paradigm that breaks through the bottlenecks in data trading efficiency and fairness via the collaborative innovation of market-oriented pricing mechanisms and automated trading processes.
This study innovatively constructs an automated pricing and trading matching mechanism based on a liquidity pool. Through mathematical modeling and simulation experiments, it quantitatively analyzes the generation mechanism of slippage in data liquidity pools when coping with trading shocks and buy-sell disequilibrium. The findings reveal that liquidity shocks induced by block trades and temporal mismatches arising from buy-sell disequilibrium constitute the primary root causes of pronounced slippage volatility in data trading. This analysis fills a critical research gap in understanding slippage mechanisms within data trading contexts. Building upon these insights, we propose and implement a dual slippage optimization mechanism integrating “Dynamic Trade Splitting” and “Alternating Order Sorting”. This mechanism mitigates slippage caused by single-trade shocks and aggregation disequilibrium. It does so by intelligently splitting block trades and executing them as alternating buy and sell operations. The experimental results demonstrate that the ESS-LP method proposed in this paper yields significant efficacy. In the simulated data trading contexts, the average slippage magnitude decreased from 2.1% to 0.5%, representing a 76.2% reduction. This effectively reduces trading costs for data traders, enhances price stability and resource allocation efficiency in the overall market. It provides a fairer, more predictable trading environment for participants in the data trading market.
In the future, we will further investigate research on the dynamic slippage optimization strategy by exploring more precise adjustment methodologies based on real-time market conditions and liquidity perception. At the same time, we will thoroughly analyze the issue of Impermanent Loss (IL) within liquidity pools and examine the mechanism that combines slippage optimization. The goal is to provide a trading environment that minimizes economic losses, enhancing fairness-efficiency equilibrium, and accelerating data asset circulation, ultimately advancing frictionless value realization across data asset markets.

Author Contributions

Writing-original draft, Mengyang Li; Writing-review & editing, Huayou Si, Yuanyuan Qi, Neal N. Xiong, Wei Chen, Loc Nguyen The and Shichong Wang; Experimental design, Huayou Si and Mengyang Li; Methodology, Huayou Si and Wei Chen; Conceptualization, Yuanyuan Qi and Neal N. Xiong; Funding acquisition, Huayou Si and Yuanyuan Qi.

Funding

This study was supported by Zhejiang Province Leading Geese Plan (Grant No. 2024C01107 and Grant No. 2025C02028).

Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the authors on request.

Acknowledgments

Not applicable.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Ren, M.; Wang, W.; Zhou, W.; Liu, Y.; Yao, A.; Wen, L.; Gong, Y. Promoting the Data Element Marketization: Progress, Problems and Solution. Doc. Inf. Knowl. 2024, 41(5), 25–35. [Google Scholar] [CrossRef]
  2. Wang, W.; Zhang, M.; Wang, J. Research and Analysis of Big Data Trading Platforms at Home and Abroad. J. Intell. 2019, 38(2), 181–186+194. [Google Scholar]
  3. Hertzog, E.; Benartzi, G. Bancor protocol Continuous Liquidity for Cryptographic Tokens through their Smart Contracts. Available online: https: //cryptopapers.info/assets/pdf/ bancor.pdf (accessed on 2017).
  4. Adams, H.; Zinsmeister, N.; Salem, M.; Keefer, R.; Robinso, D. Uniswap v3 core. Available online: https://github.com/Uniswap/v3-core.
  5. Egorov, M. Stableswap: Efficient mechanism for stablecoin liquidity. Available online: https://www.stableswap.org/ (accessed on 2021).
  6. Auer, R. A.; Haslhofer, B.; Kitzler, S.; Saggese, P.; Victor, F. The technology of decentralized finance (DeFi). Digit. Financ. 2024, 6, 55–95. [Google Scholar] [CrossRef]
  7. Zhu, Y.; Ye, Y. Defining data assets based on the attributes of data. Big Data Res. 2018, 4(6), 65–76. [Google Scholar]
  8. Hu, D.; Li, Y.; Pan, L.; Li, M.; Zheng, S. A blockchain-based trading system for big data. Comput. Netw. 2021, 191, 107994. [Google Scholar] [CrossRef]
  9. Jiang, E.; Qin, B.; Wang, Q.; Wu, Q.; Li, S.; Shi, W.; Bi, Y.; Tang, W. BDTS: Blockchain-Based Data Trading System. Proceedings of Information and Communications Security (ICICS 2023), Berlin, Heidelberg, 20 Oct 2023; pp. 645–664. [Google Scholar] [CrossRef]
  10. Xue, L.; Ni, J.; Liu, D.; Lin, X.; Shen, X. Blockchain-Based Fair and Fine-Grained Data Trading With Privacy Preservation. IEEE Trans. Comput. 2023, 72(9), 2440–2453. [Google Scholar] [CrossRef]
  11. RapidAPI. API Marketplace. Available online: https://rapidapi.com/.
  12. Huang, J.; Li, J.; Tang, K. Data trust: a trustworthy data transaction model. Big Data Res. 2023, 9(2), 67–78. [Google Scholar]
  13. Azcoitia, S. A.; Laoutaris, N. A Survey of Data Marketplaces and Their Business Models. ArXiv 2201.04561. 2022. [Google Scholar] [CrossRef]
  14. Amazon Mechanical Turk. Amazon Mechanical Turk. Available online: https://www.mturk.com/.
  15. Tsai, W. -T.; He, J.; Wang, R.; Deng, E. Decentralized Digital-Asset Exchanges: Issues and Evaluation. Proceedings of 2020 3rd International Conference on Smart BlockChain (SmartBlock), Zhengzhou, China, 23-25 Oct 2020; pp. 1–6. [Google Scholar] [CrossRef]
  16. Sang, Y.; Shen, H.; Tan, Y.; Xiong, N. Efficient protocols for privacy preserving matching against distributed datasets. Proceedings of Information and Communications Security: 8th International Conference (ICICS 2006), USA, 4-7 Dec 2006; pp. 210–227. [Google Scholar] [CrossRef]
  17. Chen, X.; Zhang, Z.; Qiu, A.; Xia, Z.; Xiong, N. Novel coverless steganography method based on image selection and StarGAN. IEEE Trans. Netw. Sci. Eng. 2020, 9(1), 219–230. [Google Scholar] [CrossRef]
  18. Li, D.; Guo, Q.; Bai, D.; Zhang, W. Research and Implementation on the Operation and Transaction System Based on Blockchain Technology for Virtual Power Plant. Proceedings of 2022 International Conference on Blockchain Technology and Information Security (ICBCTIS), Huaihua, China, 15-17 Jul 2022; pp. 165–170. [Google Scholar] [CrossRef]
  19. Dai, W.; Dai, C.; K Choo -K, R.; Cui, C.; Zou, D.; Jin, H. SDTE: A Secure Blockchain-Based Data Trading Ecosystem. IEEE Trans. Inf. Forensics Secur. 2020, 15, 725–737. [Google Scholar] [CrossRef]
  20. Xu, J.; Paruch, K.; Cousaert, S.; Feng, Y. SoK: Decentralized Exchanges (DEX) with Automated Market Maker (AMM) Protocols. ArXiv 2103.12732v7. 2023. [Google Scholar] [CrossRef]
  21. Park, A. The Conceptual Flaws of Decentralized Automated Market Making. Manag. Sci. 2023, 69(11), 6731–6751. [Google Scholar] [CrossRef]
  22. Hanson, R. Logarithmic Market Scoring Rules for Modular Combinatorial Information Aggregation. J. Predict. Mark. 2007, 1, 3–15. [Google Scholar] [CrossRef]
  23. Heimbach, L.; Wang, Y.; Wattenhofer, R. Behavior of Liquidity Providers in Decentralized Exchanges. ArXiv 2105.13822v2. 2021. [Google Scholar]
  24. Krishnamachari, B.; Feng, Q.; Grippo, E. Dynamic Curves for Decentralized Autonomous Cryptocurrency Exchanges. ArXiv 2101.02778. 2021. [Google Scholar]
  25. Buterin, V. Let’s run on-chain decentralized exchanges the way we run prediction markets. Available online: https://www.cleardao.com/docs/Clear%20Litepaper.pdf.
  26. Finance B Balancer. Available online: http://balancer.fi.
  27. Othman, A.; Pennock, D. M.; Reeves, D. M.; Sandholm, T. A Practical Liquidity-Sensitive Automated Market Maker. J. Predict. Mark. 2013, 1(3), 1–25. [Google Scholar] [CrossRef]
  28. Mohan, V. Automated market makers and decentralized exchanges: a DeFi primer. Financ. Innov. 2022, 8(20). [Google Scholar] [CrossRef]
  29. Jiang, S.; Chen, J.; Li, F.; Geng, H.; Chi, H. DCAMM: Dynamic Curve-Based Automated Market Maker. Proceedings of GLOBECOM 2023 IEEE Global Communications Conference, Kuala Lumpur, Malaysia, 04-08 Dec 2023; pp. 4491–4496. [Google Scholar] [CrossRef]
  30. Gu, Q.; Chang, Y.; Xiong, N.; Chen, L. Forecasting Nickel futures price based on the empirical wavelet transform and gradient boosting decision trees. Appl. Soft Comput. 2021, 109, 107472. [Google Scholar] [CrossRef]
  31. Heimbach, L.; Schertenleib, E.; Wattenhofer, R. Risks and Returns of Uniswap V3 Liquidity Providers. ArXiv 2205.08904v2. 2022. [Google Scholar]
  32. Berenzon, D. Constant function market makers: DeFi’s “zero to one” innovation. Available online: https://medium.com/bollinger-investment-group/constant-function-market-makers-defis-zero-to-one-innovation-968f77022159.
  33. Wang, S.; Krishnamachari, B. Optimal Trading on a Dynamic Curve Automated Market Maker. Proceedings of 2022 IEEE International Conference on Blockchain and Cryptocurrency (ICBC), Shanghai, China, 02 May 2022; pp. 1–5. [Google Scholar] [CrossRef]
  34. Egorov, M. Stableswap-efficient mechanism for stablecoin liquidity. Stableswap Foundation. Available online: https://stableswap.org.
  35. Wang, Y. Automated Market Makers for Decentralized Finance (DeFi). Available online: https://api.semanticscholar.org/CorpusID:221652658 (accessed on 2024).
  36. Xiong, N.; Vasilakos, A.; Yang, L.; Wang, C.; Kannan, R.; Chang, C.; Pan, Y. A novel self-tuning feedback controller for active queue management supporting TCP flows. Inf. Sci. 2020, 180(11), 2249–2263. [Google Scholar] [CrossRef]
  37. Li, S.; Chen, Y.; Chen, L.; Liao, J.; Kuang, C.; Li, K.; Liang, W.; Xiong, N. Post-quantum security: Opportunities and challenges. Sensors 2023, 23(21), 8744. [Google Scholar] [CrossRef] [PubMed]
  38. Sun, C.; Zhang, C.; Xiong, N. Infrared and Visible Image Fusion Techniques Based on Deep Learning: A Review. Electronics 2020, 9(12), 2162. [Google Scholar] [CrossRef]
  39. Guo, J.; Liu, A.; Ota, K.; Dong, M.; Deng, X.; Xiong, N. ITCN: An intelligent trust collaboration network system in IoT. IEEE Trans. Netw. Sci. Eng. 2021, 9(1), 203–218. [Google Scholar] [CrossRef]
  40. Shen, X.; Yi, B.; Liu, H.; Zhang, Z.; Liu, S.; Xiong, N. Deep Variational Matrix Factorization with Knowledge Embedding for Recommendation System. IEEE Trans. Knowl. Data Eng. 2021, 33(5), 1906–1918. [Google Scholar] [CrossRef]
  41. Yang, Y.; Xiong, N.; Chong, N. Y.; Défago, X. A decentralized and adaptive flocking algorithm for autonomous mobile robots. Proceedings of 2008 The 3rd International Conference on Grid and Pervasive Computing, Kunming, China, 25-28 May 2008; pp. 262–268. [Google Scholar] [CrossRef]
  42. Wang, X.; Li, Q.; Xiong, N.; Pan, Y. Ant colony optimization-based location-aware routing for wireless sensor networks. Wirel. Algorithms Syst. Appl. 2008, 109–120. [Google Scholar]
  43. Lim, T. Predictive crypto-asset automated market maker architecture for decentralized finance using deep reinforcement learning. Financ. Innov. 2024, 10(144). [Google Scholar] [CrossRef]
Figure 1. Data Trading Ecosystem.
Figure 1. Data Trading Ecosystem.
Preprints 211084 g001
Figure 2. Warrant-oriented data trading ideas.
Figure 2. Warrant-oriented data trading ideas.
Preprints 211084 g002
Figure 3. The system architecture of our proposed ESS-LP.
Figure 3. The system architecture of our proposed ESS-LP.
Preprints 211084 g003
Figure 4. Data trading pools.
Figure 4. Data trading pools.
Preprints 211084 g004
Figure 5. Changes in slippage over time for various volume ranges.
Figure 5. Changes in slippage over time for various volume ranges.
Preprints 211084 g005
Figure 6. Standard deviation of slippage over a range of volumes.
Figure 6. Standard deviation of slippage over a range of volumes.
Preprints 211084 g006
Figure 7. Standard deviation of slippage over a range of volumes.
Figure 7. Standard deviation of slippage over a range of volumes.
Preprints 211084 g007
Figure 8. The variation of the slippage points over time for the equilibrium and disequilibrium conditions of buying and selling.
Figure 8. The variation of the slippage points over time for the equilibrium and disequilibrium conditions of buying and selling.
Preprints 211084 g008
Figure 9. Standard deviation of buying and selling.
Figure 9. Standard deviation of buying and selling.
Preprints 211084 g009
Figure 10. The method of optimizing the slippage.
Figure 10. The method of optimizing the slippage.
Preprints 211084 g010
Figure 11. Slippage comparison before and after optimization.
Figure 11. Slippage comparison before and after optimization.
Preprints 211084 g011
Table 1. Range of trading volumes.
Table 1. Range of trading volumes.
Serial Number Volume Ranges
1 0.1–0.5%
2 0.5–1%
3 1–5%
4 5–10%
5 10–15%
6 15–20%
Table 2. Experimental statistical results.
Table 2. Experimental statistical results.
Indicator name Unoptimized Optimized Level of improvement
Average Slippage (%) 2.1 0.5 ↑76.2%
Slippage Standard Deviation (%) 1.66 0.25 ↑84.9%
Maximum Slippage (%) 5.5 1.1 ↑80%
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings

© 2026 MDPI (Basel, Switzerland) unless otherwise stated