https://arxiv.org/api/9nRjGE+QBGlenqoS74FCYFH7C482026-04-03T08:34:03Z217627015http://arxiv.org/abs/2505.22678v1An Efficient deep learning model to Predict Stock Price Movement Based on Limit Order Book2025-05-14T12:46:21ZIn high-frequency trading (HFT), leveraging limit order books (LOB) to model stock price movements is crucial for achieving profitable outcomes. However, this task is challenging due to the high-dimensional and volatile nature of the original data. Even recent deep learning models often struggle to capture price movement patterns effectively, particularly without well-designed features. We observed that raw LOB data exhibits inherent symmetry between the ask and bid sides, and the bid-ask differences demonstrate greater stability and lower complexity compared to the original data. Building on this insight, we propose a novel approach in which leverages the Siamese architecture to enhance the performance of existing deep learning models. The core idea involves processing the ask and bid sides separately using the same module with shared parameters. We applied our Siamese-based methods to several widely used strong baselines and validated their effectiveness using data from 14 military industry stocks in the Chinese A-share market. Furthermore, we integrated multi-head attention (MHA) mechanisms with the Long Short-Term Memory (LSTM) module to investigate its role in modeling stock price movements. Our experiments used raw data and widely used Order Flow Imbalance (OFI) features as input with some strong baseline models. The results show that our method improves the performance of strong baselines in over 75$% of cases, excluding the Multi-Layer Perception (MLP) baseline, which performed poorly and is not considered practical. Furthermore, we found that Multi-Head Attention can enhance model performance, particularly over shorter forecasting horizons.2025-05-14T12:46:21ZJiahao YangRan FangMing ZhangJun Zhouhttp://arxiv.org/abs/2504.20349v3ClusterLOB: Enhancing Trading Strategies by Clustering Orders in Limit Order Books2025-05-10T02:46:12ZIn the rapidly evolving world of financial markets, understanding the dynamics of limit order book (LOB) is crucial for unraveling market microstructure and participant behavior. We introduce ClusterLOB as a method to cluster individual market events in a stream of market-by-order (MBO) data into different groups. To do so, each market event is augmented with six time-dependent features. By applying the K-means++ clustering algorithm to the resulting order features, we are then able to assign each new order to one of three distinct clusters, which we identify as directional, opportunistic, and market-making participants, each capturing unique trading behaviors. Our experimental results are performed on one year of MBO data containing small-tick, medium-tick, and large-tick stocks from NASDAQ. To validate the usefulness of our clustering, we compute order flow imbalances across each cluster within 30-minute buckets during the trading day. We treat each cluster's imbalance as a signal that provides insights into trading strategies and participants' responses to varying market conditions. To assess the effectiveness of these signals, we identify the trading strategy with the highest Sharpe ratio in the training dataset, and demonstrate that its performance in the test dataset is superior to benchmark trading strategies that do not incorporate clustering. We also evaluate trading strategies based on order flow imbalance decompositions across different market event types, including add, cancel, and trade events, to assess their robustness in various market conditions. This work establishes a robust framework for clustering market participant behavior, which helps us to better understand market microstructure, and inform the development of more effective predictive trading signals with practical applications in algorithmic trading and quantitative finance.2025-04-29T01:37:33ZYichi ZhangMihai CucuringuAlexander Y. ShestopaloffStefan Zohrenhttp://arxiv.org/abs/2505.05595v1Trading Under Uncertainty: A Distribution-Based Strategy for Futures Markets Using FutureQuant Transformer2025-05-08T18:52:04ZIn the complex landscape of traditional futures trading, where vast data and variables like real-time Limit Order Books (LOB) complicate price predictions, we introduce the FutureQuant Transformer model, leveraging attention mechanisms to navigate these challenges. Unlike conventional models focused on point predictions, the FutureQuant model excels in forecasting the range and volatility of future prices, thus offering richer insights for trading strategies. Its ability to parse and learn from intricate market patterns allows for enhanced decision-making, significantly improving risk management and achieving a notable average gain of 0.1193% per 30-minute trade over state-of-the-art models with a simple algorithm using factors such as RSI, ATR, and Bollinger Bands. This innovation marks a substantial leap forward in predictive analytics within the volatile domain of futures trading.2025-05-08T18:52:04Z16 pages, 12 figuresWenhao GuoYuda WangZeqiao HuangChangjiang ZhangShumin mahttp://arxiv.org/abs/2505.05576v1Impact of Tariff Wars on Global Economy2025-05-08T18:13:31ZThe Ricardian model of world trade based on comparative advantage is not sufficient to justify equal trade relations.The existing model of trade relations does not explain the distribution of income among trading countries. This paper presents a method for building equitable trade relations. Its essence is to present an algorithm for building such trade relations, based on the previously proposed model of world trade, that the trade balance of each country would be equal to zero. Under such conditions, tariff wars would become impossible. It is proved that, provided that the supply structure is consistent with the demand structure, it is always possible to build an equilibrium price vector for which the trade balance of each country is zero. This state of economic equilibrium is called ideal. The article presents an algorithm to build an export structure based on the structure of imports. This algorithm is quite simple and allows for a wide range of applications. Under fairly simple realistic assumptions about the behaviour of countries trading with each other that are subject to tariff restrictions, it is proved that this leads to an increase in the prices of the goods traded by these countries. Among the equilibrium states, there are also those called oversupply states. The latter describes the phenomenon of recession. This contributes to a fall in stock market indices.2025-05-08T18:13:31Z10 pagesAmerican Journal of Management Science and Engineering (2025, Volume 10, Issue 1)N. S. GoncharO. P. DovzhykA. S. ZhokhinW. H. KozyrskyA. P. Makhort10.11648/j.ajmse.20251001.12http://arxiv.org/abs/2502.15757v3TLOB: A Novel Transformer Model with Dual Attention for Price Trend Prediction with Limit Order Book Data2025-05-07T21:14:14ZPrice Trend Prediction (PTP) based on Limit Order Book (LOB) data is a fundamental challenge in financial markets. Despite advances in deep learning, existing models fail to generalize across different market conditions and assets. Surprisingly, by adapting a simple MLP-based architecture to LOB, we show that we surpass SoTA performance; thus, challenging the necessity of complex architectures. Unlike past work that shows robustness issues, we propose TLOB, a transformer-based model that uses a dual attention mechanism to capture spatial and temporal dependencies in LOB data. This allows it to adaptively focus on the market microstructure, making it particularly effective for longer-horizon predictions and volatile market conditions. We also introduce a new labeling method that improves on previous ones, removing the horizon bias. We evaluate TLOB's effectiveness across four horizons, using the established FI-2010 benchmark, a NASDAQ and a Bitcoin dataset. TLOB outperforms SoTA methods in every dataset and horizon. Additionally, we empirically show how stock price predictability has declined over time, -6.68 in F1-score, highlighting the growing market efficiency. Predictability must be considered in relation to transaction costs, so we experimented with defining trends using an average spread, reflecting the primary transaction cost. The resulting performance deterioration underscores the complexity of translating trend classification into profitable trading strategies. We argue that our work provides new insights into the evolving landscape of stock price trend prediction and sets a strong foundation for future advancements in financial AI. We release the code at https://github.com/LeonardoBerti00/TLOB.2025-02-12T12:41:10ZLeonardo BertiGjergji Kasnecihttp://arxiv.org/abs/2504.15626v2Realized Local Volatility Surface2025-04-30T07:28:09ZFor quantitative trading risk management purposes, we present a novel idea: the realized local volatility surface. Concisely, it stands for the conditional expected volatility when sudden market behaviors of the underlying occur. One is able to explore risk management usages by following the orthotical Delta-Gamma dynamic hedging framework. The realized local volatility surface is, mathematically, a generalized Wiener measure from historical prices. It is reconstructed via employing high-frequency trading market data. A Stick-Breaking Gaussian Mixture Model is fitted via Hamiltonian Monte Carlo, producing a local volatility surface with 95% credible intervals. A practically validated Bayesian nonparametric estimation workflow. Empirical results on TSLA high-frequency data illustrate its ability to capture counterfactual volatility. We also discuss its application in improving volatility-based risk management.2025-04-22T06:35:34ZThe Journal of Investment Strategies, Vol.12, No.1, March 2023, pp.1-21Yuming MaShintaro SengokuKazuhide Nakata10.21314/JOIS.2023.003http://arxiv.org/abs/2504.16542v1Automated Market Makers: A Stochastic Optimization Approach for Profitable Liquidity Concentration2025-04-23T09:13:53ZConcentrated liquidity automated market makers (AMMs), such as Uniswap v3, enable liquidity providers (LPs) to earn liquidity rewards by depositing tokens into liquidity pools. However, LPs often face significant financial losses driven by poorly selected liquidity provision intervals and high costs associated with frequent liquidity reallocation. To support LPs in achieving more profitable liquidity concentration, we developed a tractable stochastic optimization problem that can be used to compute optimal liquidity provision intervals for profitable liquidity provision. The developed problem accounts for the relationships between liquidity rewards, divergence loss, and reallocation costs. By formalizing optimal liquidity provision as a tractable stochastic optimization problem, we support a better understanding of the relationship between liquidity rewards, divergence loss, and reallocation costs. Moreover, the stochastic optimization problem offers a foundation for more profitable liquidity concentration.2025-04-23T09:13:53ZSimon Caspar ZellerPaul-Niklas Ken KandoraDaniel KirsteNiclas KannengießerSteffen RebennackAli Sunyaevhttp://arxiv.org/abs/2504.15908v1Learning the Spoofability of Limit Order Books With Interpretable Probabilistic Neural Networks2025-04-22T13:52:55ZThis paper investigates real-time detection of spoofing activity in limit order books, focusing on cryptocurrency centralized exchanges. We first introduce novel order flow variables based on multi-scale Hawkes processes that account both for the size and placement distance from current best prices of new limit orders. Using a Level-3 data set, we train a neural network model to predict the conditional probability distribution of mid price movements based on these features. Our empirical analysis highlights the critical role of the posting distance of limit orders in the price formation process, showing that spoofing detection models that do not take the posting distance into account are inadequate to describe the data. Next, we propose a spoofing detection framework based on the probabilistic market manipulation gain of a spoofing agent and use the previously trained neural network to compute the expected gain. Running this algorithm on all submitted limit orders in the period 2024-12-04 to 2024-12-07, we find that 31% of large orders could spoof the market. Because of its simple neuronal architecture, our model can be run in real time. This work contributes to enhancing market integrity by providing a robust tool for monitoring and mitigating spoofing in both cryptocurrency exchanges and traditional financial markets.2025-04-22T13:52:55Z22 pagesTimothée FabreDamien Challethttp://arxiv.org/abs/2504.15790v1Microstructure and Manipulation: Quantifying Pump-and-Dump Dynamics in Cryptocurrency Markets2025-04-22T11:05:31ZBuilding on our prior threshold-based analysis of six months of Poloniex trading data, we have extended both the temporal span and granularity of our study by incorporating minute-level OHLCV records for 1021 tokens around each confirmed pump-and-dump event. First, we algorithmically identify the accumulation phase, marking the initial and final insider volume spikes, and observe that 70% of pre-event volume transacts within one hour of the pump announcement. Second, we compute conservative lower bounds on insider profits under both a single-point liquidation at 70% of peak and a tranche-based strategy (selling 20% at 50%, 30% at 60%, and 50% at 80% of peak), yielding median returns above 100% and upper-quartile returns exceeding 2000%. Third, by unfolding the full pump structure and integrating social-media verification (e.g., Telegram announcements), we confirm numerous additional events that eluded our initial model. We also categorize schemes into "pre-accumulation" versus "on-the-spot" archetypes-insights that sharpen detection algorithms, inform risk assessments, and underpin actionable strategies for real-time market-integrity enforcement.2025-04-22T11:05:31ZMahya Karbalaiihttp://arxiv.org/abs/2210.17208v2Dynamic Inventory Management with Mean-Field Competition2025-04-15T09:43:04ZAgents attempt to maximize expected profits earned by selling multiple units of a perishable product where their revenue streams are affected by the prices they quote as well as the distribution of other prices quoted in the market by other agents. We propose a model which captures this competitive effect and directly analyze the model in the mean-field limit as the number of agents is very large. We classify mean-field Nash equilibrium in terms of the solution to a Hamilton-Jacobi-Bellman equation and a consistency condition and use this to motivate an iterative numerical algorithm to compute equilibrium. Properties of the equilibrium pricing strategies and overall market dynamics are then investigated, in particular how they depend on the strength of the competitive interaction and the ability to oversell the product.2022-10-31T10:43:37ZRyan DonnellyZi Lihttp://arxiv.org/abs/2504.10789v1Can Large Language Models Trade? Testing Financial Theories with LLM Agents in Market Simulations2025-04-15T01:18:36ZThis paper presents a realistic simulated stock market where large language models (LLMs) act as heterogeneous competing trading agents. The open-source framework incorporates a persistent order book with market and limit orders, partial fills, dividends, and equilibrium clearing alongside agents with varied strategies, information sets, and endowments. Agents submit standardized decisions using structured outputs and function calls while expressing their reasoning in natural language. Three findings emerge: First, LLMs demonstrate consistent strategy adherence and can function as value investors, momentum traders, or market makers per their instructions. Second, market dynamics exhibit features of real financial markets, including price discovery, bubbles, underreaction, and strategic liquidity provision. Third, the framework enables analysis of LLMs' responses to varying market conditions, similar to partial dependence plots in machine-learning interpretability. The framework allows simulating financial theories without closed-form solutions, creating experimental designs that would be costly with human participants, and establishing how prompts can generate correlated behaviors affecting market stability.2025-04-15T01:18:36ZAlejandro Lopez-Lirahttp://arxiv.org/abs/2103.02331v2The Support and Resistance Line Method: An Analysis via Optimal Stopping2025-04-14T11:16:55ZWe study a mathematical model motivated by the support/resistance line method in technical analysis where the underlying stock price transitions between three states of nature in a path-dependent manner. For optimal stopping problems with respect to a general class of reward functions and dynamics, using probabilistic methods, we show that the value function is $C^1$ (with respect to the corresponding scale function) and solves a general free boundary problem. Moreover, for a range of utilities, we prove that the best times to buy and sell the stock are obtained by solving free boundary problems corresponding to two linked optimal stopping problems. We use this to compute optimal trading strategies for several types of dynamics and varying degrees of relative risk aversion.2021-03-03T11:20:33Z31 pagesVicky HendersonSaul JackaRuiqi LiuJun Maedahttp://arxiv.org/abs/2504.07923v1Trading Graph Neural Network2025-04-10T17:40:31ZThis paper proposes a new algorithm -- Trading Graph Neural Network (TGNN) that can structurally estimate the impact of asset features, dealer features and relationship features on asset prices in trading networks. It combines the strength of the traditional simulated method of moments (SMM) and recent machine learning techniques -- Graph Neural Network (GNN). It outperforms existing reduced-form methods with network centrality measures in prediction accuracy. The method can be used on networks with any structure, allowing for heterogeneity among both traders and assets.2025-04-10T17:40:31ZXian Wuhttp://arxiv.org/abs/2406.05662v2Macroscopic Market Making Games via Multidimensional Decoupling Field2025-04-10T01:11:15ZBuilding on the macroscopic market making framework as a control problem, this paper investigates its extension to stochastic games. In the context of price competition, each agent is benchmarked against the best quote offered by the others. We begin with the linear case. While constructing the solution directly, the \textit{ordering property} and the dimension reduction in the equilibrium are revealed. For the non-linear case, we extend the decoupling approach by introducing a multidimensional \textit{characteristic equation} to analyse the well-posedness of the forward-backward stochastic differential equations. Properties of the coefficients in this characteristic equation are derived using tools from non-smooth analysis. Several new well-posedness results are presented.2024-06-09T06:37:09ZThis arXiv version of a paper emphasises the mathematical aspectsMathematical Finance, 2025Ivan GuoShijia Jin10.1111/mafi.70010http://arxiv.org/abs/2504.06717v1Optimal Execution and Macroscopic Market Making2025-04-09T09:18:37ZWe propose a stochastic game modelling the strategic interaction between market makers and traders of optimal execution type. For traders, the permanent price impact commonly attributed to them is replaced by quoting strategies implemented by market makers. For market makers, order flows become endogenous, driven by tactical traders rather than assumed exogenously. Using the forward-backward stochastic differential equation (FBSDE) characterization of Nash equilibria, we establish a local well-posedness result for the general game. In the specific Almgren-Chriss-Avellaneda-Stoikov model, a decoupling approach guarantees the global well-posedness of the FBSDE system via the well-posedness of an associated backward stochastic Riccati equation. Finally, by introducing small diffusion terms into the inventory processes, global well-posedness is achieved for the approximation game.2025-04-09T09:18:37ZWorking Paper. The mathematical content is nearly complete, but we plan to add more references to several techniques. Based on received feedback, future work will focus on numerical resultsIvan GuoShijia Jin