GetQuotes | Mastock Help

Short Name: GetQuotes

Definition: Retrieve quotes for a code, a period of time and a type (open, high, low, close)

Usage: getQuotes(AAPL) or getQuotes(AAPL,1) or getQuotes(AAPL,1,3)

  • Returns an array of quotes data for the stock code
  • The second parameter defines the period (0 for Daily… 4 for Yearly)
  • The third parameter defines the OHLC type (0 for Open… 3 for Close)
  • By default, if parameter 3 is omitted, returns the Close values
  • By default, if parameter 2 is omitted, returns the daily values

  • Returns zero if the stock is unknown