Namespace: QuoteFeed

CIQ. QuoteFeed

See tutorial Data Integration : Quotefeeds for a complete overview and step by step source code for implementing a quotefeed

Deprecated:
  • Yes

Methods


announceError(params, dataCallback)

Whenever an error occurs the params and dataCallback from fetch will be automatically passed to this method by the quote engine. Use this to alert the user if desired. Override this with your own alerting mechanisms.

Parameters:
Name Type Description
params object

The params originally passed into fetch()

dataCallback object

The data returned to fetch

Example
CIQ.MyQuoteFeed.prototype.announceError=function(params, dataCallback){
		if(params.startDate){
			// Perhaps some sort of "disconnected" message on screen
		}else if(params.endDate){
			// Perhaps something indicating the end of the chart
		}else{
			CIQ.alert("Error fetching quote:" + dataCallback.error);	// Probably a not found error?
		}
	};