LLM agent for stock trading, research paper
Top 50.5% on sourcepulse
FinMem-LLM-StockTrading provides a Python framework for an LLM-based autonomous trading agent designed for financial decision-making. It addresses the need for a rational architecture to process multi-source information, establish reasoning chains, and prioritize tasks in financial markets, targeting researchers and developers in quantitative finance and AI. The agent aims to boost cumulative investment returns through enhanced performance via layered memory and character design.
How It Works
FinMem employs a three-module architecture: Profiling for agent characteristics, Memory for layered processing of hierarchical financial data, and Decision-making for converting insights into investment actions. The memory module mimics human cognitive structures, offering interpretability and real-time tuning with an adjustable cognitive span to retain critical information beyond human perceptual limits, thereby improving trading outcomes.
Quick Start & Requirements
docker build -t test-finmem finmem/.devcontainer/
docker run -it --rm -v $(pwd):/finmem test-finmem
OPENAI_API_KEY
and HF_TOKEN
in .env
and configuring config/config.toml
with model endpoints and names.Highlighted Details
Maintenance & Community
The project has been presented at AAAI Spring Symposium, ICLR Workshop LLM Agents, and participated in the IJCAI2024 "Financial Challenges in Large Language Models - FinLLM" challenge.
Licensing & Compatibility
The repository includes a LICENSE
file, but the specific license type is not detailed in the README. Compatibility for commercial use or closed-source linking is not specified.
Limitations & Caveats
The README does not explicitly state the license type, which may impact commercial adoption. The system relies on external LLM APIs (OpenAI, Hugging Face TGI), making it dependent on their availability and stability.
11 months ago
1 week