https://arxiv.org/api/M7IIpfFtp3LkisHZewFTOONH/7Q2026-04-06T03:24:27Z217840515http://arxiv.org/abs/2410.23404v1Rebalancing-versus-Rebalancing: Improving the fidelity of Loss-versus-Rebalancing2024-10-30T19:14:59ZAutomated Market Makers (AMMs) hold assets and are constantly being rebalanced by external arbitrageurs to match external market prices. Loss-versus-rebalancing (LVR) is a pivotal metric for measuring how an AMM pool performs for its liquidity providers (LPs) relative to an idealised benchmark where rebalancing is done not via the action of arbitrageurs but instead by trading with a perfect centralised exchange with no fees, spread or slippage. This renders it an imperfect tool for judging rebalancing efficiency between execution platforms.
We introduce Rebalancing-versus-rebalancing (RVR), a higher-fidelity model that better captures the frictions present in centralised rebalancing.
We perform a battery of experiments comparing managing a portfolio on AMMs vs this new and more realistic centralised exchange benchmark-RVR. We are also particularly interested in dynamic AMMs that run strategies beyond fixed weight allocations-Temporal Function Market Makers. This is particularly important for asset managers evaluating execution management systems. In this paper we simulate more than 1000 different strategies settings as well as testing hundreds of different variations in centralised exchange (CEX) fees, AMM fees & gas costs.
We find that, under this modeling approach, AMM pools (even with no retail/noise traders) often offer superior execution and rebalancing efficiency compared to centralised rebalancing, for all but the lowest CEX fee levels. We also take a simple approach to model noise traders & find that even a small amount of noise volume increases modeled AMM performance such that CEX rebalancing finds it hard to compete. This indicates that decentralised AMM-based asset management can offer superior performance and execution management for asset managers looking to rebalance portfolios, offering an alternative use case for dynamic AMMs beyond core liquidity providing.2024-10-30T19:14:59ZMatthew WillettsChristian Harringtonhttp://arxiv.org/abs/2411.08899v1FinVision: A Multi-Agent Framework for Stock Market Prediction2024-10-29T06:02:28ZFinancial trading has been a challenging task, as it requires the integration of vast amounts of data from various modalities. Traditional deep learning and reinforcement learning methods require large training data and often involve encoding various data types into numerical formats for model input, which limits the explainability of model behavior. Recently, LLM-based agents have demonstrated remarkable advancements in handling multi-modal data, enabling them to execute complex, multi-step decision-making tasks while providing insights into their thought processes. This research introduces a multi-modal multi-agent system designed specifically for financial trading tasks. Our framework employs a team of specialized LLM-based agents, each adept at processing and interpreting various forms of financial data, such as textual news reports, candlestick charts, and trading signal charts. A key feature of our approach is the integration of a reflection module, which conducts analyses of historical trading signals and their outcomes. This reflective process is instrumental in enhancing the decision-making capabilities of the system for future trading scenarios. Furthermore, the ablation studies indicate that the visual reflection module plays a crucial role in enhancing the decision-making capabilities of our framework.2024-10-29T06:02:28ZAccepted at ICAIF 2024Sorouralsadat FatemiYuheng Hu10.1145/3677052.3698688http://arxiv.org/abs/2410.13583v3Competitive equilibria in trading2024-10-28T14:10:57ZThis is the third paper in a series concerning the game-theoretic aspects of position-building while in competition. The first paper set forth foundations and laid out the essential goal, which is to minimize implementation costs in light of how other traders are likely to trade. The majority of results in that paper center on the two traders in competition and equilibrium results are presented. The second paper, introduces computational methods based on Fourier Series which allows the introduction of a broad range of constraints into the optimal strategies derived. The current paper returns to the unconstrained case and provides a complete solution to finding equilibrium strategies in competition and handles completely arbitrary situations. As a result we present a detailed analysis of the value (or not) of trade centralization and we show that firms who naively centralize trades do not generally benefit and sometimes, in fact, lose. On the other hand, firms that strategically centralize their trades generally will be able to benefit.2024-10-17T14:19:47Z35 pages, 14 figuresNeil A. Chrisshttp://arxiv.org/abs/2410.18897v1Generation of synthetic financial time series by diffusion models2024-10-24T16:37:53ZDespite its practical significance, generating realistic synthetic financial time series is challenging due to statistical properties known as stylized facts, such as fat tails, volatility clustering, and seasonality patterns. Various generative models, including generative adversarial networks (GANs) and variational autoencoders (VAEs), have been employed to address this challenge, although no model yet satisfies all the stylized facts. We alternatively propose utilizing diffusion models, specifically denoising diffusion probabilistic models (DDPMs), to generate synthetic financial time series. This approach employs wavelet transformation to convert multiple time series (into images), such as stock prices, trading volumes, and spreads. Given these converted images, the model gains the ability to generate images that can be transformed back into realistic time series by inverse wavelet transformation. We demonstrate that our proposed approach satisfies stylized facts.2024-10-24T16:37:53Z12 pages, 8 figuresTomonori TakahashiTakayuki Mizunohttp://arxiv.org/abs/2410.18751v1Double Auctions: Formalization and Automated Checkers2024-10-24T14:00:28ZDouble auctions are widely used in financial markets, such as those for stocks, derivatives, currencies, and commodities, to match demand and supply. Once all buyers and sellers have placed their trade requests, the exchange determines how these requests are to be matched. The two most common objectives for determining the matching are maximizing trade volume at a uniform price and maximizing trade volume through dynamic pricing. Prior research has primarily focused on single-quantity trade requests. In this work, we extend the framework to handle multiple-quantity trade requests and present fully formalized matching algorithms for double auctions, along with their correctness proofs. We establish new uniqueness theorems, enabling automatic detection of violations in exchange systems by comparing their output to that of a verified program. All proofs are formalized in the Coq Proof Assistant, and we extract verified OCaml and Haskell programs that could serve as a resource for exchanges and market regulators. We demonstrate the practical applicability of our work by running the verified program on real market data from an exchange to automatically check for violations in the exchange algorithm.2024-10-24T14:00:28Z23 pages, Preliminary version of this work was published in ITP 2021Mohit GargN. RajaSuneel SarswatAbhishek Kr Singhhttp://arxiv.org/abs/2411.05013v1Enhancing literature review with LLM and NLP methods. Algorithmic trading case2024-10-23T13:37:27ZThis study utilizes machine learning algorithms to analyze and organize knowledge in the field of algorithmic trading. By filtering a dataset of 136 million research papers, we identified 14,342 relevant articles published between 1956 and Q1 2020. We compare traditional practices-such as keyword-based algorithms and embedding techniques-with state-of-the-art topic modeling methods that employ dimensionality reduction and clustering. This comparison allows us to assess the popularity and evolution of different approaches and themes within algorithmic trading. We demonstrate the usefulness of Natural Language Processing (NLP) in the automatic extraction of knowledge, highlighting the new possibilities created by the latest iterations of Large Language Models (LLMs) like ChatGPT. The rationale for focusing on this topic stems from our analysis, which reveals that research articles on algorithmic trading are increasing at a faster rate than the overall number of publications. While stocks and main indices comprise more than half of all assets considered, certain asset classes, such as cryptocurrencies, exhibit a much stronger growth trend. Machine learning models have become the most popular methods in recent years. The study demonstrates the efficacy of LLMs in refining datasets and addressing intricate questions about the analyzed articles, such as comparing the efficiency of different models. Our research shows that by decomposing tasks into smaller components and incorporating reasoning steps, we can effectively tackle complex questions supported by case analyses. This approach contributes to a deeper understanding of algorithmic trading methodologies and underscores the potential of advanced NLP techniques in literature reviews.2024-10-23T13:37:27ZStanisław ŁaniewskiRobert Ślepaczukhttp://arxiv.org/abs/2404.11722v2Beyond the Bid-Ask: Strategic Insights into Spread Prediction and the Global Mid-Price Phenomenon2024-10-22T02:51:36ZThis research extends the conventional concepts of the bid--ask spread (BAS) and mid-price to include the total market order book bid--ask spread (TMOBBAS) and the global mid-price (GMP). Using high-frequency trading data, we investigate these new constructs, finding that they have heavy tails and significant deviations from normality in the distributions of their log returns, which are confirmed by three different methods. We shift from a static to a dynamic analysis, employing the ARMA(1,1)-GARCH(1,1) model to capture the temporal dependencies in the return time-series, with the normal inverse Gaussian distribution used to capture the heavy tails of the returns. We apply an option pricing model to address the risks associated with the low liquidity indicated by the TMOBBAS and GMP. Additionally, we employ the Rachev ratio to evaluate the risk--return performance at various depths of the limit order book and examine tail risk interdependencies across spread levels. This study provides insights into the dynamics of financial markets, offering tools for trading strategies and systemic risk management.2024-04-17T20:19:48Z52 pages, 32 figures, and 18 tablesYifan HeAbootaleb ShirvaniBarret ShaoSvetlozar RachevFrank Fabozzihttp://arxiv.org/abs/2410.14927v1Hierarchical Reinforced Trader (HRT): A Bi-Level Approach for Optimizing Stock Selection and Execution2024-10-19T01:29:38ZLeveraging Deep Reinforcement Learning (DRL) in automated stock trading has shown promising results, yet its application faces significant challenges, including the curse of dimensionality, inertia in trading actions, and insufficient portfolio diversification. Addressing these challenges, we introduce the Hierarchical Reinforced Trader (HRT), a novel trading strategy employing a bi-level Hierarchical Reinforcement Learning framework. The HRT integrates a Proximal Policy Optimization (PPO)-based High-Level Controller (HLC) for strategic stock selection with a Deep Deterministic Policy Gradient (DDPG)-based Low-Level Controller (LLC) tasked with optimizing trade executions to enhance portfolio value. In our empirical analysis, comparing the HRT agent with standalone DRL models and the S&P 500 benchmark during both bullish and bearish market conditions, we achieve a positive and higher Sharpe ratio. This advancement not only underscores the efficacy of incorporating hierarchical structures into DRL strategies but also mitigates the aforementioned challenges, paving the way for designing more profitable and robust trading algorithms in complex markets.2024-10-19T01:29:38ZZijie ZhaoRoy E. Welschhttp://arxiv.org/abs/2405.09764v2Clearing time randomization and transaction fees for auction market design2024-10-16T14:12:40ZFlaws of a continuous limit order book mechanism raise the question of whether a continuous trading session and a periodic auction session would bring better efficiency. This paper wants to go further in designing a periodic auction when both a continuous market and a periodic auction market are available to traders. In a periodic auction, we discover that a strategic trader could take advantage of the accumulated information available along the auction duration by arriving at the latest moment before the auction closes, increasing the price impact on the market. Such price impact moves the clearing price away from the efficient price and may disturb the efficiency of a periodic auction market. We thus propose and quantify the effect of two remedies to mitigate these flaws: randomizing the auction's closing time and optimally designing a transaction fees policy for both the strategic traders and other market participants. Our results show that these policies encourage a strategic trader to send their orders earlier to enhance the efficiency of the auction market, illustrated by data extracted from Alphabet and Apple stocks.2024-05-16T02:10:42Z34 pages, 10 figuresThibaut MastroliaTianrui Xuhttp://arxiv.org/abs/2410.23294v1Exploiting Risk-Aversion and Size-dependent fees in FX Trading with Fitted Natural Actor-Critic2024-10-15T13:13:07ZIn recent years, the popularity of artificial intelligence has surged due to its widespread application in various fields. The financial sector has harnessed its advantages for multiple purposes, including the development of automated trading systems designed to interact autonomously with markets to pursue different aims. In this work, we focus on the possibility of recognizing and leveraging intraday price patterns in the Foreign Exchange market, known for its extensive liquidity and flexibility. Our approach involves the implementation of a Reinforcement Learning algorithm called Fitted Natural Actor-Critic. This algorithm allows the training of an agent capable of effectively trading by means of continuous actions, which enable the possibility of executing orders with variable trading sizes. This feature is instrumental to realistically model transaction costs, as they typically depend on the order size. Furthermore, it facilitates the integration of risk-averse approaches to induce the agent to adopt more conservative behavior. The proposed approaches have been empirically validated on EUR-USD historical data.2024-10-15T13:13:07ZVito Alessandro MonacoAntonio RivaLuca SabbioniLorenzo BisiEdoardo VittoriMarco PinciroliMichele TraplettiMarcello Restellihttp://arxiv.org/abs/2410.21280v1TraderTalk: An LLM Behavioural ABM applied to Simulating Human Bilateral Trading Interactions2024-10-10T23:58:07ZWe introduce a novel hybrid approach that augments Agent-Based Models (ABMs) with behaviors generated by Large Language Models (LLMs) to simulate human trading interactions. We call our model TraderTalk. Leveraging LLMs trained on extensive human-authored text, we capture detailed and nuanced representations of bilateral conversations in financial trading. Applying this Generative Agent-Based Model (GABM) to government bond markets, we replicate trading decisions between two stylised virtual humans. Our method addresses both structural challenges, such as coordinating turn-taking between realistic LLM-based agents, and design challenges, including the interpretation of LLM outputs by the agent model. By exploring prompt design opportunistically rather than systematically, we enhance the realism of agent interactions without exhaustive overfitting or model reliance. Our approach successfully replicates trade-to-order volume ratios observed in related asset markets, demonstrating the potential of LLM-augmented ABMs in financial simulations2024-10-10T23:58:07Z4 pagesAlicia VidlerToby Walsh10.1109/ICA63002.2024.00042http://arxiv.org/abs/2410.06839v1Simulating and analyzing a sparse order book: an application to intraday electricity markets2024-10-09T12:55:05ZThis paper presents a novel model for simulating and analyzing sparse limit order books (LOBs), with a specific application to the European intraday electricity market. In illiquid markets, characterized by significant gaps between order levels due to sparse trading volumes, traditional LOB models often fall short. Our approach utilizes an inhomogeneous Poisson process to accurately capture the sporadic nature of order arrivals and cancellations on both the bid and ask sides of the book. By applying this model to the intraday electricity market, we gain insights into the unique microstructural behaviors and challenges of this dynamic trading environment. The results offer valuable implications for market participants, enhancing their understanding of LOB dynamics in illiquid markets. This work contributes to the broader field of market microstructure by providing a robust framework adaptable to various illiquid market settings beyond electricity trading.2024-10-09T12:55:05ZPhilippe BergaultEnzo Cognévillehttp://arxiv.org/abs/2407.13687v4Dynamic Pricing in Securities Lending Market: Application in Revenue Optimization for an Agent Lender Portfolio2024-10-07T13:59:42ZSecurities lending is an important part of the financial market structure, where agent lenders help long term institutional investors to lend out their securities to short sellers in exchange for a lending fee. Agent lenders within the market seek to optimize revenue by lending out securities at the highest rate possible. Typically, this rate is set by hard-coded business rules or standard supervised machine learning models. These approaches are often difficult to scale and are not adaptive to changing market conditions. Unlike a traditional stock exchange with a centralized limit order book, the securities lending market is organized similarly to an e-commerce marketplace, where agent lenders and borrowers can transact at any agreed price in a bilateral fashion. This similarity suggests that the use of typical methods for addressing dynamic pricing problems in e-commerce could be effective in the securities lending market. We show that existing contextual bandit frameworks can be successfully utilized in the securities lending market. Using offline evaluation on real historical data, we show that the contextual bandit approach can consistently outperform typical approaches by at least 15% in terms of total revenue generated.2024-07-18T17:42:37Z7 pages, 8 figuresJing XuYung-Cheng HsuWilliam Biscarrihttp://arxiv.org/abs/2307.04863v2Interpretable ML for High-Frequency Execution2024-09-27T11:07:28ZOrder placement tactics play a crucial role in high-frequency trading algorithms and their design is based on understanding the dynamics of the order book. Using high quality high-frequency data and a set of microstructural features, we exhibit strong state dependence properties of the fill probability function. We train a neural network to infer the fill probability function for a fixed horizon. Since we aim at providing a high-frequency execution framework, we use a simple architecture. A weighting method is applied to the loss function such that the model learns from censored data. By comparing numerical results obtained on both digital asset centralized exchanges (CEXs) and stock markets, we are able to analyze dissimilarities between feature importances of the fill probability of small tick crypto pairs and Euronext equities. The practical use of this model is illustrated with a fixed time horizon execution problem in which both the decision to post a limit order or to immediately execute and the optimal distance of placement are characterized. We discuss the importance of accurately estimating the clean-up cost that occurs in the case of a non-execution and we show it can be well approximated by a smooth function of market features. We finally assess the performance of our model with a backtesting approach that avoids the insertion of hypothetical orders and makes possible to test the order placement algorithm with orders that realistically impact the price formation process.2023-07-10T19:19:33Z25 pagesTimothée FabreVincent Ragelhttp://arxiv.org/abs/2409.17392v1Trading through Earnings Seasons using Self-Supervised Contrastive Representation Learning2024-09-25T22:09:59ZEarnings release is a key economic event in the financial markets and crucial for predicting stock movements. Earnings data gives a glimpse into how a company is doing financially and can hint at where its stock might go next. However, the irregularity of its release cycle makes it a challenge to incorporate this data in a medium-frequency algorithmic trading model and the usefulness of this data fades fast after it is released, making it tough for models to stay accurate over time. Addressing this challenge, we introduce the Contrastive Earnings Transformer (CET) model, a self-supervised learning approach rooted in Contrastive Predictive Coding (CPC), aiming to optimise the utilisation of earnings data. To ascertain its effectiveness, we conduct a comparative study of CET against benchmark models across diverse sectors. Our research delves deep into the intricacies of stock data, evaluating how various models, and notably CET, handle the rapidly changing relevance of earnings data over time and over different sectors. The research outcomes shed light on CET's distinct advantage in extrapolating the inherent value of earnings data over time. Its foundation on CPC allows for a nuanced understanding, facilitating consistent stock predictions even as the earnings data ages. This finding about CET presents a fresh approach to better use earnings data in algorithmic trading for predicting stock price trends.2024-09-25T22:09:59ZZhengxin Joseph YeBjoern Schuller