@@ -32,7 +32,6 @@ By using this software, you agree to use it solely for learning purposes.
32
32
- [ Usage] ( #usage )
33
33
- [ Running the Hedge Fund] ( #running-the-hedge-fund )
34
34
- [ Running the Backtester] ( #running-the-backtester )
35
- - [ Docker] ( #docker )
36
35
- [ Project Structure] ( #project-structure )
37
36
- [ Contributing] ( #contributing )
38
37
- [ License] ( #license )
@@ -45,6 +44,17 @@ git clone https://github.com/virattt/ai-hedge-fund.git
45
44
cd ai-hedge-fund
46
45
```
47
46
47
+ ### System Requirements
48
+ - CPU: Any modern CPU (last 5 years)
49
+ - RAM: 2GB minimum, 4GB recommended
50
+ - Storage: 1GB free space
51
+ - Internet: Stable connection required
52
+ - No GPU required
53
+
54
+ The system is lightweight as it primarily manages workflows between APIs (OpenAI and financial data) without running any local AI models.
55
+
56
+ ### Option 1: Local Setup
57
+
48
58
1 . Install Poetry (if not already installed):
49
59
``` bash
50
60
curl -sSL https://install.python-poetry.org | python3 -
@@ -64,6 +74,28 @@ export OPENAI_API_KEY='your-api-key-here' # Get a key from https://platform.open
64
74
export FINANCIAL_DATASETS_API_KEY=' your-api-key-here' # Get a key from https://financialdatasets.ai/
65
75
```
66
76
77
+ ### Option 2: Docker Setup
78
+
79
+ You can either build the image locally or use our official image from GitHub Container Registry:
80
+
81
+ #### Using the Official Image
82
+
83
+ 1 . Create and configure your ` .env ` file as explained above.
84
+
85
+ 2 . Pull and run the official image using docker compose:
86
+ ``` bash
87
+ # Run the trading agent
88
+ docker compose run agent --ticker AAPL
89
+
90
+ # Run the backtester
91
+ docker compose run backtester --ticker AAPL
92
+
93
+ # Run with custom parameters
94
+ docker compose run agent --ticker AAPL --start-date 2024-01-01 --end-date 2024-03-01 --show-reasoning
95
+ ```
96
+
97
+ The Docker setup uses a lightweight Python 3.9 base image and installs only the required dependencies.
98
+
67
99
## Usage
68
100
69
101
### Running the Hedge Fund
@@ -109,26 +141,6 @@ You can optionally specify the start and end dates to backtest over a specific t
109
141
poetry run python src/backtester.py --ticker AAPL --start-date 2024-01-01 --end-date 2024-03-01
110
142
```
111
143
112
- ## Docker
113
-
114
- You can run the project easily using Docker Compose.
115
-
116
- 1 . Run the agent with custom parameters:
117
- ``` bash
118
- docker compose run agent --ticker AAPL
119
- ```
120
-
121
- 2 . Run the backtester with custom parameters:
122
- ``` bash
123
- docker compose run backtester --ticker AAPL
124
- ```
125
-
126
- Note:
127
- - The ` .env ` file will be automatically loaded by Docker Compose
128
- - Use ` docker-compose up ` to run with default parameters defined in docker-compose.yml
129
- - Use ` docker-compose run ` to pass custom parameters - no need to specify the python command
130
- - All arguments after the service name are passed directly to the script
131
-
132
144
## Project Structure
133
145
```
134
146
ai-hedge-fund/
0 commit comments