GithubHelp home page GithubHelp logo

ai-stock-forecasts's Introduction

       

 

General information about this app

This iOS app predicts Fortune 100 companies stock price evolution through sentiment analysis. It uses SwiftUI for the layout, CoreML for the models creation, Twitter and News-api as the sources for data analysis.

The latest versions (1.4 and up) use Core Data to let you add, manage and save your own companies as well as cryptocurrencies.

Quick presentation of the app

screenshot

How does it work?

For this app, I am using Twitter and News-api as the sources for my sentiment analysis.

I am performing the company analysis via 120 twitter comments about the company. Those comments are splitted in 2 sets. The first set gathers the 60 most recent tweets about the company (Ex: @apple) and the second set gathers the 60 most recent tweets about the stock (Ex: #AAPL). As the wording between those 2 sets of comments is very different, I used 2 different models trained on different datasets: IMBD dataset of 50k movie reviews for the first model and the Kaggle Sentiment Analysis on Financial Tweets dataset for the 2nd model.

Then, I fetch the 20 most recent news articles about the company and use the first model to perform the sentiment analysis on those news articles

Finally, I calculate a total score based on the sentiment analysis of those 140 comments

Animated demo of the app

app-presentation

Third Party components usage

Fetching Twitter data

Swifter package from https://github.com/mattdonnelly/Swifter

On the HomeScreen:

Icons made by Icongeek26 from www.flaticon.com

On the ResultScreen:

I used the Circle Control code from this project: https://medium.com/swlh/replicating-the-apple-card-application-using-swiftui-f472f3947683

Landing Page & Privacy Policy

You can check the App Landing Page for a complete presentation and the Privacy Policy Page for further details on how your data is handled by the application

Open Source & Copying

I provide the entire source code of this dema app for free. This demo app is licensed under MIT so you can use my code in your app, if you choose.

However, please do not ship this app under your own account. Paid or free.

ai-stock-forecasts's People

Contributors

alexismoulin avatar

Watchers

 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.