priceIts                 package:its                 R Documentation

_D_o_w_n_l_o_a_d _H_i_s_t_o_r_i_c_a_l _F_i_n_a_n_c_e _D_a_t_a

_D_e_s_c_r_i_p_t_i_o_n:

     Download historical financial data from a given data provider over
     the WWW.

_U_s_a_g_e:

     priceIts(instruments = "^gdax", start, end, 
                     quote = c("Open","High", "Low", "Close"), 
                     provider = "yahoo", method = "auto", 
                     origin = "1899-12-30",quiet=TRUE)               

_A_r_g_u_m_e_n_t_s:

instruments: a character string giving the name of the quote symbol to
          download.  See the web page of the data provider for
          information about the available quote symbols.

   start: an R object specifying the date of the start of the period to
          download.  This must be in a form which is recognized by
          'as.POSIXct', which includes R POSIX date/time objects,
          objects of class '"date"' (from package 'date') and '"chron"'
          and '"dates"' (from package 'chron'), and character strings
          representing dates in ISO 8601 format.  Defaults to
          1992-01-02.

     end: an R object specifying the end of the download period, see
          above.  Defaults to yesterday.

   quote: a character string or vector indicating whether to download
          opening, high, low, or closing quotes, or volume.  For the
          default provider, this can be specified as '"Open"',
          '"High"', '"Low"', '"Close"', and '"Volume"', respectively. 
          Abbreviations are allowed.

provider: a character string with the name of the data provider. 
          Currently, only '"yahoo"' is implemented.  See <URL:
          http://quote.yahoo.com/> for more information.

  method: tool to be used for downloading the data.  See
          'download.file' for the available download methods.

  origin: an R object specifying the origin of the Julian dates, see
          above.  Defaults to 1899-12-30 (Popular spreadsheet programs
          internally also use Julian dates with this origin).

   quiet: a flag to suppress output

_D_e_t_a_i_l_s:

     This function is a direct copy from package 'tseries', and all
     credit must go to the author of that package.

_V_a_l_u_e:

     An '"its"' object with the requested data

_A_u_t_h_o_r(_s):

     A. Trapletti [*not* responsible for errors, adapted from his
     original idea by Giles Heywood]

_S_e_e _A_l_s_o:

     'ts', 'as.POSIXct', 'download.file'; <URL:
     http://quote.yahoo.com/>

_E_x_a_m_p_l_e_s:

     ## Not run: 
     x1 <- priceIts(instrument = c("^ftse"), start = "1998-01-01",
                         quote = "Close")
     x2 <- priceIts(instrument = c("^gdax"), start = "1998-01-01",
                         quote = "Close")
     x <- union(x1,x2)
     names(x) <- c("FTSE","DAX")
     plot(x,lab=TRUE)
     ## End(Not run)

