Stock trading bot built on Inverse Cramer Strategy
- Get last 50 tweets from jim cramer's Twitter handle
- Feed it to a GPT model and ask for stock tickers to sell
- Buy the first stock with 90% of your buying power through Alpaca
Setup a cron job to run trading.py
crontab -e
the below command ensures the code runs at 9 AM from M-F (remember to change the time incase your machine is not in EST)
0 9 * * 1-5 python3 trading.py
- the twitter endpoint doesn't work anymore, switch to scraping
- send the log messages to a discord server as well.
- you can modify the logging in
trading.py
to be aQueueHandler
and create a thread worker to capture those - which later on can be captured by the discord bot in
bot.py
to send the messages to your channel.