GPT-Trader is an experimental project that uses GPT-4 to predict stock prices based on historical closing price data. This project is for educational purposes only and should not be used for real-world trading.
-
Install the required Python packages from the
requirements.txtfile:pip install -r requirements.txt -
Set up your OpenAI API key as an environment variable:
export OPENAI_API_KEY=your_api_key_here
-
Run the main script to interactively get a stock prediction for a specific date:
python gpt-trader.py -
Run the backtest script to evaluate the accuracy of GPT-4's predictions for a given date range:
python backtest.py
This project is for educational purposes only and should not be used for real-world trading. The accuracy of GPT-4's stock predictions is not guaranteed and may lead to financial loss if used for trading.
This project is licensed under the MIT License - see the LICENSE file for details.