Coder Social home page Coder Social logo

aistock's Introduction

AIStock

A experiemental prototype of a semi-trained Artificial Intelligence that monitors twitter and the stock market, and learns to correlate the two in order to predict the direction of the market in real time, and for any stock it was made to monitor.

The operation hapens in 3 major steps. First, the AI learns to differenciate between relevant and irrelevant tweets in a financial context. Then, it learns to differenciante positive, negative and neutral tweets from the relevant group. Finally, it derivates rules by comparing the tweets to various processed financial data.

Dependencies

  • MongoDB
  • Redis
  • NodeJS

installation

npm install

Run the server

node main.js -online false -monitor true -timeout 20000 -threads 1 -debug_mode true -db aistock -mongo_remote false

interface

The web interface is static HTML is located in /build.

Sources in /src, compiled using node build.js executed from /bin.

Let it run for a while first, to let it stream a few tweets, before you start training the AI.

Training the AI

You have 2 kinds of training to do: First, you need to train the AI to differenciate a relevant from an irrelevant tweet. That needs to be done for each stock. Then, you need to train the AI to differenciate positive, negative and neutral tweets. After a couple hundreds of training exemples, the AI should start being pretty good at categorizing the tweets.

Monitoring stocks

There is no interface yet to manage the monitoring of stocks and keywords.

Use the API interface:

Example: Track Zynga's stock on yahoo finance, with the keywords '$znga' and 'zynga' on twitter:

127.0.0.1:2014/interface/track?symbol=ZNGA&keywords=["$znga","zynga"]

aistock's People

Contributors

26medias avatar

Watchers

 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.