Giter Club home page Giter Club logo

sentimentblocks's Introduction

SentimentBlocks

There is an extensive online community of cryptocurrency investors, both long-term holders and daytraders, discussing price movements online, 24/7. Most major cryptocurrencies have dedicated subreddits for trading discussion, and these public text posts are ripe for analysis. SentimentBlocks is a program built in 24 hours for HackCambridge Ternary for streaming comments from crypto-trading subreddits and Twitter tags, providing second-by-second sentiment tracking for a desired cryptocurrency.

See it in action for Ethereum

What we did

We used the Reddit API (via the praw Python wrapper) to stream comments from specific cryptocurrency trading subreddits (such as r/BitcoinDayTrade, r/BitcoinMarkets, r/ethtrader or r/LitecoinMarkets) relevant to a particular currency specified by the user. Similarly, we used the tweepy Python library to stream tweets from across Twitter with relevant tags, e.g. #Bitcoin or $BTC.

After some cleaning, it is very easy to perform sentiment analysis on these text strings with the help of third party libraries or APIs like the Microsoft Cognitive Services Text Analytics API.

The program offers several functions for aggregating, average and/or smoothing this data, allowing more volatile second-by-second granularity or smoother, overall mood tracking. Included are also several plotting scripts, including a dynamic animated feed, which can be run in conjunction with the stream to maintain a display that constantly updates with the sentiment of Twitter and Reddit along with the price of a currency in USD and BTC.

To try out the program, take a look at these iPython notebooks, hosted on Microsoft Azure Cloud Services.

Results and Comments

It is interesting to see when the sentiments of Reddit and Twitter correlate strongly with each other, hinting at a real objective change in the market. It is also interesting to watch sentiment swing on one platform before a similar change appears on the other, as if the good or bad news is slow to propagate between them. Over the 7-8 hours of active deployment we achieved during the hackathon, there were several periods when Reddit sentiment lagged behind that of Twitter by 10-30 minutes, and other periods where the precise opposite was true.

Generally the communities seem to be more reactive than proactive and seem just to be helplessly watching the market as prices fluctuate. However, there were a few pre-emptive swings in sentiment which matched a later swing in price, suggesting there remains the possibility to extract tradable signals, given the right statistical techniques.

sentimentblocks's People

Contributors

jamcowl avatar thjread avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.