Class: Demo

STX.QuoteFeed. Demo


new Demo()

Demo version of quotes which uses EOD data. See full demo code in stx.js.

Methods


fetchFromSource()

This is a demo version of fetch. You will need to create one for your own quote feed that behaves similarly.


generateDaily()

Creates daily data for the chart


generateIntraday()

Creates a random intraday chart (uses STX.Market to be market hours aware)


generateIntradayRange()

Creates a random intraday range of data for a chart


loadMore()

Loads more random data when the user scrolls back.


update()

Creates a random update. Note that updates are returned as an array. You should check params.startDate to decide the starting point for an update.