md_stock_financials {pedquant} | R Documentation |
query financial statements
Description
md_stock_financials
provides an interface to query financial statements for all listed companies in SSE and SZSE by specified report date.
Usage
md_stock_financials(type = NULL, date_range = "1q", from = NULL,
to = Sys.Date(), print_step = 1L, ...)
Arguments
type |
the type of financial statements. |
date_range |
date range. Available value including '1m'-'11m', 'ytd', 'max' and '1y'-. Default is '3y'. |
from |
the start date. Default is NULL. |
to |
the end date. Default is current system date. |
print_step |
A non-negative integer. Print financial statements name by each print_step iteration. Default is 1L. |
... |
Additional parameters. |
Examples
## Not run:
# interactively specify type of financial table
dtfs1 = md_stock_financials(type="fs0_summary", to = '2022-12-31')
dtfs2 = md_stock_financials(type="fs0_summary", to = c('2022-12-31', '2023-03-31'))
dtfs3 = md_stock_financials(type="fs0_summary", from = '2022-12-31', to = Sys.Date())
# all statements
dtfs4 = md_stock_financials(type = "fs", to = '2022-12-31')
# setting column names to Chinese
dtfs5 = md_stock_financials(type="fs0_summary", to = '2022-12-31', colnam_chn = TRUE)
## End(Not run)
[Package pedquant version 0.2.4 Index]