Welcome to AI-TradeBOT, your handy tool for navigating the unpredictable waters of stock trading. This Chrome extension brings together the power of OpenAI’s GPT, Alpaca trading API, and a bit of Twitter magic to help you make smarter trading decisions. Whether you’re a seasoned trader or just getting started, this bot automates the hard parts so you can focus on... well, anything else.
Tired of analyzing endless tweets and news updates to figure out the next big stock move? AI-TradeBOT is here to help. It scrapes stock-related tweets, analyzes sentiment using cutting-edge AI, and executes trades automatically using Alpaca. All of this happens seamlessly through your browser, giving you the ultimate tool to stay ahead in the market.
Here’s the magic in a nutshell:
- Twitter Scraping: AI-TradeBOT gathers tweets from stock news pages to gauge market sentiment.
- AI Analysis: Using OpenAI’s GPT, it processes the tweets to figure out which stocks might be worth your attention.
- Trading Decisions: If the analysis looks promising, the bot executes trades via Alpaca’s API.
Everything runs on autopilot, but if you like being hands-on, there’s a manual mode too.
Setting up AI-TradeBOT is straightforward. Here’s how you do it:
Start by grabbing the code. Run:
git clone <repository-url>Navigate to the project folder and install the required packages:
npm install- Open Chrome and go to
chrome://extensions/. - Enable "Developer mode."
- Click "Load unpacked" and select the
AI-TradeBOT-Chrome-Extension/directory.
And just like that, the extension is loaded and ready to go!
To make the bot work, you need to provide some credentials for OpenAI and Alpaca. Here’s what to do:
- Rename
credentials.env.sampletocredentials.env. - Add your API keys:
OPENAI_ORGANIZATION_ID=YOUR_OPENAI_ORGANIZATION_ID OPENAI_API_KEY=YOUR_OPENAI_API_KEY ALPACA_KEY_ID=YOUR_ALPACA_KEY_ID ALPACA_SECRET_KEY=YOUR_ALPACA_SECRET_KEY
AI-TradeBOT runs every weekday at 10:00 AM Eastern Time. It scrapes tweets, analyzes sentiment, and makes trading decisions automatically. All you need to do is configure it and let it run.
Want more control? Open the extension popup and click "Run Now" to trigger the bot instantly. It’s great for those “what if” moments.
Trading is risky business. While AI-TradeBOT leverages advanced AI and automation, it’s not infallible. The bot relies on social media sentiment, which isn’t always accurate or actionable. Always test thoroughly and use this tool responsibly.
Got ideas? Found a bug? Feel free to contribute! Fork the repo, create a new branch, and submit a pull request. Or just open an issue—we’d love to hear from you.
This project is licensed under the MIT License. Check out the LICENSE.md file for details.