I was inspired by Virat Singh, who created an AI Hedge Fund team — a proof of concept that demonstrates how AI can be used to make trading decisions.
I loved his project idea, but unfortunately, this was for shares, etc., and not for cryptocurrencies. So I created an AI-Crypto-Fund.
- Clone the repository
git clone https://github.com/Nikityyy/ai-crypto-fund.git
cd ai-crypto-fund- Install dependencies:
pip install -r requirements.txt- Set your API Key
You need to set your Groq API key as an environment variable. There are a couple of ways to do this:
Option 1: Using setx (Windows)
This method permanently sets the environment variable for your user account.
setx GROQ_API_KEY "YOUR_API_KEY"Important: Replace "YOUR_API_KEY" with your actual Groq API key. You may need to restart your command prompt or PowerShell session for the changes to take effect.
Option 2: Using a .env file
This method is generally preferred for portability and avoids permanently setting system-wide environment variables.
a. Create a file named .env in the root directory of the project.
b. Add the following line to the .env file:
GROQ_API_KEY=YOUR_API_KEY
Important: Replace YOUR_API_KEY with your actual Groq API key.
c. Make sure you have the python-dotenv package installed. If not, install it using pip:
pip install python-dotenvThe main.py and backtester.py scripts are configured to automatically load the API key from the .env file.
Important: You must set the API Key to make the AI Crypto Fund to work.
There are two scripts:
- main.py | Executes a trading decision for the current day.
- backtester.py | Simulates multiple trading decisions throughout the day, as if an AI were managing your portfolio.
Just run them like this:
python main.pypython backtester.pyPreview of main.py:
Preview of backtester.py:
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
if you have feature requests, open an issue at issue. Make sure to use the label "enhancement".
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.
This project is for educational and research purposes only.
- Not intended for real trading or investment
- No warranties or guarantees provided
- Past performance does not indicate future results
- Creator assumes no liability for financial losses
- Consult a financial advisor for investment decisions
By using this software, you agree to use it solely for learning purposes.
If you want you can hit me up on my personal website and send me an e-mail.


