Q4Widgets API Documentation

q4.historicalLookup

Fetches and displays Historical Stock data
Script link
q4.stocks.1.0.4.min.js
Source file
q4.stocks.js, line 355

This widget extends the q4.stocks widget. It has all the options and methods of the parent widget, in addition to those below. See the parent widget's documentation for details.

Options

itemsContainer string
A Mustache.js template.
- `{{symbol}}`:        The Xignite stock symbol,
- `{{price}}`:         The last known price,
- `{{open}}`:          The open price,
- `{{high}}`:          The daily high,
- `{{low}}`:           The daily low,
- `{{volume}}`:        The current volume,
- `{{change}}`:        The change from previous close,
- `{{changePercent}}`: The change percent from previous close,
- `{{high52}}`:        The 52 week high,
- `{{low52}}`:         The 52 week low,
- `{{close}}`:         The previous close price,
- `{{date}}`:          The date in the format provided in `dateFormat`,
- `{{time}}`:          The time,
- `{{currency}}`:      The trade currency