arbuzovv / rusquant

Official version of rusquant package for R
http://rusquant.ru
GNU General Public License v3.0
45 stars 20 forks source link

Increase timeout in download.file function #16

Closed MislavSag closed 1 year ago

MislavSag commented 1 year ago

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?

MislavSag commented 1 year ago

I am stupid.

I can just set timeout in options:

options(timeout=120)