Investment Studio > Views > Downloads > Downloader > ActiveX interface > Aux > getQuote

BSTR Aux.getQuote(BSTR path, inputFormat; WORD year, month, day; BSTR outputFormat)

Uses the inputFormat string to parse the data file specified by path and returns the quote record for year, month and day, formatted according to outputFormat.

path is the location of a data file containing quote records in text format. Symbolic directory names (e.g. "<DATA>") in the path are automatically expanded to actual directory names.

inputFormat is a format string specifying how the quote records in the data file should be parsed.

year Î [1, 9999], month Î [1, 12] and day Î [1, 31] specify the requested date. A quote record is returned only if it matches this date.

outputFormat is a format string specifying how the output should be formatted. Note that it need not contain all the fields in the source record, not even a date. A single quote field specifier like "c" (for close) is sufficient, and will return just the string representation of the requested field's value. In loosely typed scripting languages like JScript and VBScript, such single-field string values are automatically translated to numbers as needed.

See also Aux.getItemDataFormat, Aux.getItemDataPath, Aux.getLatestQuote.