Skip to content

aicheung/gpt-trader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPT-Trader

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.

Installation

  1. Install the required Python packages from the requirements.txt file:

    pip install -r requirements.txt
    
  2. Set up your OpenAI API key as an environment variable:

    export OPENAI_API_KEY=your_api_key_here
    

Usage

  1. Run the main script to interactively get a stock prediction for a specific date:

    python gpt-trader.py
    
  2. Run the backtest script to evaluate the accuracy of GPT-4's predictions for a given date range:

    python backtest.py
    

Disclaimer

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.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages