Coder Social home page Coder Social logo

oliverhennhoefer / quant Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 1.0 4.08 MB

UNMAINTAINED | R-package providing access to fundamental data and valuation metrics for thousands of publicly traded companies worldwide.

License: GNU General Public License v3.0

R 100.00%
r finance stocks stock-market stock-data stock-analysis webscraping webscraper fundamental-analysis quantitative-analysis

quant's Introduction

Fetching Stock Data for Fundamental Analysis

The project relies on data provided by gurufocus.com and tipranks.com

This webscraping toolset provides functionalities for easily gathering stock data for up to the last five fiscal years.

๐Ÿ“š Extensive data for 6.000+ unique listings.
๐Ÿ“ More than 50 different metrics.
๐Ÿ“… Data for the company's last five fiscal years and current years TTM value.
โ™ป๏ธ Convenient merging-abilities for updating past scraping results.

Demo

Prerequisite

Note that the installation of 'quant' requires RTools in order to build R and R packages from source on Windows.

Installation

# Github Download 'quant'-package (dev version)
devtools::install_github('OliverHennhoefer/quant')

Application

df <- data.frame("symbol" = c("AAPL", "MSFT", "BABA"))

# Diluted Earnings per Share
df %>%
  get_diluted_eps() 
  
>   Symbol EPS_2017 EPS_2018  EPS_2019  EPS_2020  EPS_2021  EPS_TTM
  1 AAPL   2.30    2.98       2.97      3.28      5.61      6.04
  2 BABA   2.46    3.88       4.97      7.97      8.40      3.74
  3 MSFT   3.25    2.13       5.06      5.76      8.05      9.39

Easily fetch several data for the most common financial measures or even more uncustomary ratios:

df <- data.frame("symbol" = c("AAPL", "MSFT", "BABA"))

# Profitability Rank, Probability of Financial Distress 
df %>%
  get_profitability() %>%
  get_financial_distress()
  
>   Symbol Fin.Distress  Profitability  
  1 AAPL   0.02          10
  2 BABA   0.29          9                                 
  3 MSFT   0.03          10

Data Providers

gurufocus.com
tipranks.com
wikipedia.com

quant's People

Contributors

oliverhennhoefer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

jslearn81

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.