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

BSTR Aux.getLatestQuote(BSTR path, inputFormat, outputFormat)

Uses the inputFormat string to parse the data file specified by path and returns the latest quote record (by date) 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.

outputFormat is a format string specifying how the output (the latest quote record in the data file, by date) 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.getQuote.