arbuzovv/rusquant

Increase timeout in download.file function

MislavSag opened this issue · 1 comments

Hi,

When I tried to get tick data for one date and one symbol, I got an warning:

Warning message:
In download.file(stock.URL, destfile = tmp, quiet = !verbose) :
  URL 'http://export.finam.ru/table.csv?d=d&f=table&e=.csv&dtf=1&tmf=1&MSOR=0&sep=1&sep2=1&at=1&p=1&market=25&em=21053&df=28&mf=1&yf=2020&dt=28&mt=1&yt=2020&datf=6': Timeout of 60 seconds was reached

Could you increase the timeout to higher number, or make it an argument of the function?

Bonus question: Is there any other source in your package (except Finam) that have US tick trades or quotes?

I am stupid.

I can just set timeout in options:

options(timeout=120)