Skip to content

A Reddit-based bot that when invoked, provides information including daily highs/lows of a stock, information about the company and recent recommendations on whether to buy or sell the stock.

kjaisingh/reddit-stock-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reddit Stock Bot

A know-it-all investing guru.

The Stock Info Bot is a bot that when invoked, provides information including daily highs/lows of a stock, information about the stock's company and recent recommendations on whether to buy or sell the stock.
The bot operates on the /r/Investing and /r/Stocks subreddits, and is compatible with all stocks on the S&P-500, NASDAQ and NYSE indexes.

Invokation:

A sample invokation of the bot in the comments section of a post in one of the above subreddits is as follows:
How is the stock of $$AAPL doing?

The corresponding bot response is:
Hello! This is the StockInfoBot. I have come here to provide information about the AAPL stock. Stock Name: Apple Inc.
Day Low: $300.42.
Day High: $307.9.
Trading Volume: 41587094.
50 Day Average: $281.61237.
200 Day Average: $283.89764.
Company Industry: Consumer Electronics.
Company Website: http://www.apple.com.
Recent Analysis by Analysts: Wedbush - Outperform, Raymond James - Outperform, DA Davidson - Buy, Nomura Instinet - Neutral, UBS - Buy.

Execution:

  1. Configure your environment with the client_id, client_secret, username and password variables from a Reddit account.
export REDDIT_CLIENT_ID=yourclientid
export REDDIT_CLIENT_SECRET=yourclientsecret
export REDDIT_USERNAME=yourusername
export REDDIT_PASSWORD=yourpassword
  1. Extract stock ticker information from dataset with S&P-500 information.
python extraction.py
  1. Execute Reddit bot.
python stockinfobot.py

About

A Reddit-based bot that when invoked, provides information including daily highs/lows of a stock, information about the company and recent recommendations on whether to buy or sell the stock.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages