GetFinancialStatement: GetFinancialStatement

View source: R/GetFinancialStatementV2_NotWorking.R View source: R/GetFinancialStatement.R

GetFinancialStatementR Documentation

GetFinancialStatement

Description

Get data of quaterly Financial Statements

Usage

GetFinancialStatement(Symbol='SAP',

URL='yahoo', Silent = TRUE,Port=4445L,...)

Arguments

Symbol

ticker string

URL

provider of data as a string

yahoo: automatic web scrapping

morningstar: uses api to data bases

Silent

if no warnings=TRUE

Port

in the caseof yahoo: port accessable for direct internet connection

...

in the case of yahoo: further arguments for rsDriver

Details

yahoo and morningstar work currently.

In the case of yahoo each stock puts up a mozilla rust profile in .../Users/<admin>/AppData/Local/Temp of 100 mb which has to be deleted manually after the process of web scrapping

Value

dataframe of financial statements

Note

morningstar api shuts requests randomly out

Author(s)

Michael Thrun, Hamza Tayyab

References

Thrun, M.C., Knowledge Discovery in Quarterly Financial Data of Stocks Based on the Prime Standard using a Hybrid of a Swarm with SOM, in European Symposium on Artificial Neural Networks, Computational Intelligence and Machine Learning (ESANN), M. Verleysen, Editor. 2019: Bruges, Belgium

See Also

GetFinancialTimeSeries

Examples

DF=GetFinancialStatement(Symbol='SAP',URL='morningstar')



Symbols=GetYahooSymbols()
n=length(Symbols)
FinancialStatement=c()
for(i in 1:n){
  try({
  temp=GetFinancialStatement(Symbols[i],'yahoo',check=F)
  FinancialStatement=c(FinancialStatement,temp)
  })
  print(i)
}


Mthrun/TSAT documentation built on Feb. 5, 2024, 11:15 p.m.