https://arxiv.org/api/urJ7Q7KEyaJGxD+T6AxAgUYQ1uw2026-06-20T13:52:37Z226349515http://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/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 Schullerhttp://arxiv.org/abs/2409.15459v2Position-building in competition with real-world constraints2024-09-25T11:53:28ZThis paper extends the optimal-trading framework developed in arXiv:2409.03586v1 to compute optimal strategies with real-world constraints. The aim of the current paper, as with the previous, is to study trading in the context of multi-player non-cooperative games. While the former paper relies on methods from the calculus of variations and optimal strategies arise as the solution of partial differential equations, the current paper demonstrates that the entire framework may be re-framed as a quadratic programming problem and cast in this light constraints are readily incorporated into the calculation of optimal strategies. An added benefit is that two-trader equilibria may be calculated as the end-points of a dynamic process of traders forming repeated adjustments to each other's strategy.2024-09-23T18:36:57Z29 pages, 17 figuresNeil A. Chrisshttp://arxiv.org/abs/2409.12282v2How does liquidity shape the yield curve?2024-09-25T09:59:47ZThe phenomenology of the forward rate curve (FRC) can be accurately understood by the fluctuations of a stiff elastic string (Le Coz and Bouchaud, 2024). By relating the exogenous shocks driving such fluctuations to the surprises in the order flows, we elevate the model from purely describing price variations to a microstructural model that incorporates the joint dynamics of prices and order flows, accounting for both impact and cross-impact effects. Remarkably, this framework allows for at least the same explanatory power as existing cross-impact models, while using significantly fewer parameters. In addition, our model generates liquidity-dependent correlations between the forward rate of one tenor and the order flow of another, consistent with recent empirical findings. We show that the model also account for the non-martingale behavior of prices at short timescales.2024-09-18T19:33:02Z19 pages, 11 figuresVictor Le CozIacopo MastromatteoMichael Benzaquen