stooq_download: Stooq Download Function

View source: R/stooq_download.R

stooq_downloadR Documentation

Stooq Download Function

Description

Download financial time series from https://stooq.pl/ in .csv format.

Usage

stooq_download(
  symbol,
  start_date = 20000101,
  end_date = 20211231,
  interval = "d",
  destination
)

Arguments

symbol

Asset ticker from https://stooq.pl/

start_date

Format 'yyyymmdd'. Default set to 20000101

end_date

Format 'yyyymmdd'. Default set to 20211231

interval

Default set to 'd'. Other interval available are 'w', 'm', 'q', 'y'

destination

Destination folder to save .csv file. Deafault is your current working directory.

Examples

stooq_download('cdr', 20100101, 20211231)
stooq_download(
'wig20'
,20100101
,20211231
,'w'
,'C:\\Windows\\Temp\\'
)

pawel-wieczynski/PolishStock documentation built on March 23, 2022, 3:32 p.m.