Skip to content
/ CMP Public

A Python3 program that predicts the short-term crypto market using Reddit. Ranks cryptos by using supervised learning (VADER) to analyze the sentiment of each coin, and uses Reddit's front page algorithm to rank cryptos by their "current interest level".

Notifications You must be signed in to change notification settings

Bebo0/CMP

Repository files navigation

A program that predicts the crypto market using Reddit.

Example of results (June 15th 2018):

Imgur

Usage:

1) Download PRAW. Follow instructions here: http://praw.readthedocs.io/en/latest/getting_started/installation.html.
2) Download matplotlib. Follow instruction here: https://matplotlib.org/users/installing.html
3) (optional) Specify subRedditsToParse, endDate and startDate in the initializer variable in main inside predictor.py.
4) (optional) Specify which ranking to plot (self.ranking, self.ranking2, self.sentimentRanking) in the self.plotRankings() call in main inside predictor.py
5) In terminal, cd to folder which contains project files.
6) Type python predictor.py.
7) Look at results in plotted graph. Full data also available in the rawdata.json file.

How it works:

1) The program parses the posts and/or comments between dateStart and dateEnd in the given subreddits.
2) Program filters cryptocurrency names and symbols from the posts and comments and keeps track of number of mentions, karma, time posted. Program also assigns a sentiment score to each cryptocurrency.
3) 3 different algorithms (a sentiment analyzer algorithm, a custom algorithm , an upvote:mention ratio algorithm) rank the cryptocurrencies.
4) When the program ends, a bar graph of the results is plotted using matplotlib. Also, raw results are outputted to rawdata.json.

About

A Python3 program that predicts the short-term crypto market using Reddit. Ranks cryptos by using supervised learning (VADER) to analyze the sentiment of each coin, and uses Reddit's front page algorithm to rank cryptos by their "current interest level".

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages