Skip to content

Nikityyy/ai-crypto-fund

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Crypto Fund

Diagram showcasing the function

Motivation

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.

Setup

  1. Clone the repository
git clone https://github.com/Nikityyy/ai-crypto-fund.git
cd ai-crypto-fund
  1. Install dependencies:
pip install -r requirements.txt
  1. 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-dotenv

The 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.

Usage

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.py
python backtester.py

Preview of main.py:

Showcase of main.py

Preview of backtester.py:

Showcase of main.py

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

Feature Requests

if you have feature requests, open an issue at issue. Make sure to use the label "enhancement".

License

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

Disclaimer

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.

Questions

If you want you can hit me up on my personal website and send me an e-mail.

About

An AI Crypto Fund

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages