md_stock_financials provides an interface to query financial statements and indicators of listed companies in SSE and SZSE.

md_stock_financials(symbol, type = NULL, source = "163",
  print_step = 1L)

Arguments

symbol

symbol of stock shares.

type

the type of financial statements.

source

the data source is '163' (http://money.163.com).

print_step

A non-negative integer. Print symbol name by each print_step iteration. Default is 1L.

Examples

# NOT RUN {
# interactively specify type of financial table 
dat1 = md_stock_financials("000001")

# manually specify type of financial table
# type = "fr0"
dat2 = md_stock_financials("000001", type="fr0")
# or type = "fr0_summary"
dat3 = md_stock_financials("000001", type="fr0_summary")

# multiple symbols and statements
dat4 = md_stock_financials(c("000001", "600000"), type = "fi")

# }