当人工智能遇上金融(StockAgent):模拟现实世界环境中基于大语言模型的股票交易

Chong Zhang, Xinyi Liu, Mingyu Jin, Zhongmou Zhang, Lingyao Li, Zhengting Wang, Wenyue Hua, Dong Shu, Suiyuan Zhu, Xiaobo Jin, Sujian Li, Mengnan Du, Yongfeng Zhang
{"title":"当人工智能遇上金融(StockAgent):模拟现实世界环境中基于大语言模型的股票交易","authors":"Chong Zhang, Xinyi Liu, Mingyu Jin, Zhongmou Zhang, Lingyao Li, Zhengting Wang, Wenyue Hua, Dong Shu, Suiyuan Zhu, Xiaobo Jin, Sujian Li, Mengnan Du, Yongfeng Zhang","doi":"arxiv-2407.18957","DOIUrl":null,"url":null,"abstract":"Can AI Agents simulate real-world trading environments to investigate the\nimpact of external factors on stock trading activities (e.g., macroeconomics,\npolicy changes, company fundamentals, and global events)? These factors, which\nfrequently influence trading behaviors, are critical elements in the quest for\nmaximizing investors' profits. Our work attempts to solve this problem through\nlarge language model based agents. We have developed a multi-agent AI system\ncalled StockAgent, driven by LLMs, designed to simulate investors' trading\nbehaviors in response to the real stock market. The StockAgent allows users to\nevaluate the impact of different external factors on investor trading and to\nanalyze trading behavior and profitability effects. Additionally, StockAgent\navoids the test set leakage issue present in existing trading simulation\nsystems based on AI Agents. Specifically, it prevents the model from leveraging\nprior knowledge it may have acquired related to the test data. We evaluate\ndifferent LLMs under the framework of StockAgent in a stock trading environment\nthat closely resembles real-world conditions. The experimental results\ndemonstrate the impact of key external factors on stock market trading,\nincluding trading behavior and stock price fluctuation rules. This research\nexplores the study of agents' free trading gaps in the context of no prior\nknowledge related to market data. The patterns identified through StockAgent\nsimulations provide valuable insights for LLM-based investment advice and stock\nrecommendation. The code is available at\nhttps://github.com/MingyuJ666/Stockagent.","PeriodicalId":501478,"journal":{"name":"arXiv - QuantFin - Trading and Market Microstructure","volume":"66 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-07-15","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"When AI Meets Finance (StockAgent): Large Language Model-based Stock Trading in Simulated Real-world Environments\",\"authors\":\"Chong Zhang, Xinyi Liu, Mingyu Jin, Zhongmou Zhang, Lingyao Li, Zhengting Wang, Wenyue Hua, Dong Shu, Suiyuan Zhu, Xiaobo Jin, Sujian Li, Mengnan Du, Yongfeng Zhang\",\"doi\":\"arxiv-2407.18957\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Can AI Agents simulate real-world trading environments to investigate the\\nimpact of external factors on stock trading activities (e.g., macroeconomics,\\npolicy changes, company fundamentals, and global events)? These factors, which\\nfrequently influence trading behaviors, are critical elements in the quest for\\nmaximizing investors' profits. Our work attempts to solve this problem through\\nlarge language model based agents. We have developed a multi-agent AI system\\ncalled StockAgent, driven by LLMs, designed to simulate investors' trading\\nbehaviors in response to the real stock market. The StockAgent allows users to\\nevaluate the impact of different external factors on investor trading and to\\nanalyze trading behavior and profitability effects. Additionally, StockAgent\\navoids the test set leakage issue present in existing trading simulation\\nsystems based on AI Agents. Specifically, it prevents the model from leveraging\\nprior knowledge it may have acquired related to the test data. We evaluate\\ndifferent LLMs under the framework of StockAgent in a stock trading environment\\nthat closely resembles real-world conditions. The experimental results\\ndemonstrate the impact of key external factors on stock market trading,\\nincluding trading behavior and stock price fluctuation rules. This research\\nexplores the study of agents' free trading gaps in the context of no prior\\nknowledge related to market data. The patterns identified through StockAgent\\nsimulations provide valuable insights for LLM-based investment advice and stock\\nrecommendation. The code is available at\\nhttps://github.com/MingyuJ666/Stockagent.\",\"PeriodicalId\":501478,\"journal\":{\"name\":\"arXiv - QuantFin - Trading and Market Microstructure\",\"volume\":\"66 1\",\"pages\":\"\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2024-07-15\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"arXiv - QuantFin - Trading and Market Microstructure\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/arxiv-2407.18957\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - QuantFin - Trading and Market Microstructure","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2407.18957","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

人工智能代理能否模拟真实世界的交易环境,研究外部因素(如宏观经济、政策变化、公司基本面和全球事件)对股票交易活动的影响?这些因素经常影响交易行为,是投资者追求利润最大化的关键因素。我们的工作试图通过基于大型语言模型的代理来解决这一问题。我们开发了一个名为股票代理(StockAgent)的多代理人工智能系统,该系统由 LLMs 驱动,旨在模拟投资者在真实股票市场中的交易行为。股票代理允许用户评估不同外部因素对投资者交易的影响,并分析交易行为和盈利效果。此外,StockAgent 还避免了现有基于人工智能代理的交易模拟系统中存在的测试集泄漏问题。具体来说,它可以防止模型利用与测试数据相关的先验知识。我们在股票交易环境中对股票代理框架下的不同 LLM 进行了评估,该环境与现实世界的条件非常相似。实验结果证明了关键外部因素对股票市场交易的影响,包括交易行为和股价波动规则。这项研究探索了在没有市场数据相关先验知识的情况下代理人自由交易间隙的研究。通过股票代理模拟确定的模式为基于 LLM 的投资建议和股票推荐提供了有价值的见解。代码可在https://github.com/MingyuJ666/Stockagent。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
When AI Meets Finance (StockAgent): Large Language Model-based Stock Trading in Simulated Real-world Environments
Can AI Agents simulate real-world trading environments to investigate the impact of external factors on stock trading activities (e.g., macroeconomics, policy changes, company fundamentals, and global events)? These factors, which frequently influence trading behaviors, are critical elements in the quest for maximizing investors' profits. Our work attempts to solve this problem through large language model based agents. We have developed a multi-agent AI system called StockAgent, driven by LLMs, designed to simulate investors' trading behaviors in response to the real stock market. The StockAgent allows users to evaluate the impact of different external factors on investor trading and to analyze trading behavior and profitability effects. Additionally, StockAgent avoids the test set leakage issue present in existing trading simulation systems based on AI Agents. Specifically, it prevents the model from leveraging prior knowledge it may have acquired related to the test data. We evaluate different LLMs under the framework of StockAgent in a stock trading environment that closely resembles real-world conditions. The experimental results demonstrate the impact of key external factors on stock market trading, including trading behavior and stock price fluctuation rules. This research explores the study of agents' free trading gaps in the context of no prior knowledge related to market data. The patterns identified through StockAgent simulations provide valuable insights for LLM-based investment advice and stock recommendation. The code is available at https://github.com/MingyuJ666/Stockagent.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Optimal position-building strategies in Competition MarS: a Financial Market Simulation Engine Powered by Generative Foundation Model Logarithmic regret in the ergodic Avellaneda-Stoikov market making model A Financial Time Series Denoiser Based on Diffusion Model Simulation of Social Media-Driven Bubble Formation in Financial Markets using an Agent-Based Model with Hierarchical Influence Network
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1