Documentation for smfGetYahooHistory() function


Description

    Returns historical stock quotes (and limited options history) from Yahoo

Syntax

    =smfGetYahooHistory( Ticker, [Start Date], [End Date], [Period], [Items], [Headers], [Resort], [Rows], [Columns] )

Parameters

    Ticker = Ticker symbol (e.g "MMM")

    Start Date= An optional starting date. The date can either be a string value (e.g. "mm/dd/yyyy") or an EXCEL serial date value. If none is specifed, the default is "1/1/1970".

    End Date= An optional ending date. The date can either be a string value (e.g. "mm/dd/yyyy") or an EXCEL serial date value. If none is specifed, the default is tomorrow's date.

    Period= An optional character indicating the type of data period to retrieve. The default value is "d". Possible values:

    "d" = Daily quotes
    "w" = Weekly quotes (Yahoo chooses to use the first trading day of the week as the end of the period)
    "m" = Monthly quotes (Yahoo chooses to use the first trading day of the month as the end of the period)
    "q" = Quarterly quotes (Yahoo chooses to use the first trading day of the month as the end of the period)
    "s" = Semi-annual quotes (Yahoo chooses to use the first trading day of the month as the end of the period)
    "a" = Annual quotes (Yahoo chooses to use the first trading day of the month as the end of the period)
    "v" = Dividend history ("T" is the only "Item" that makes a difference - Date and Dividend amount are automatic)

     Items = An optional character string indicating which data items to retrieve. The default value is "DOHLCVU". Possible values within the character string:

    "T" = Ticker symbol
    "D" = Ending date of the period
    "O" = Opening price of the period
    "H" = High price for the period
    "L" = Low price for the period
    "C" = Adjusted closing price for the period
    "V" = Trading volume for the period
    "U" = Unadjusted closing price for the period
    "X" = Amount of dividends paid in period
    "S" = Text indication of split amount

    Headers = An optional binary value to indicate whether headers should be returned for the column(s) of data. The value defaults to 1. Possible values:

    0 = Suppress column headings
    1 = Display column headings

     Resort = An optional binary value to indicate whether data should be resorted or not. The value defaults to 0. Possible Values
    0 = Do not resort data; present raw data as returned from Yahoo!; newest data will be on the top rows of table.
    1 = Reverse the order of data returned from Yahoo!; oldest data will be on the top rows of table.

     Rows = An optional integer value that can override the number of rows of desired output. This is typically not relevant, as it is automatically based on the number of rows you array-entered the formula over.

     Columns = An optional interger that can override the number of columns of desired output. This is typically not relevant, as it is automatically based on the number of columns you array-entered the formula over.


Examples Usage notes