A zero dependency Javascript client for Barchart OnDemand.
Get access to market data and the OnDemand API's in just a few lines of code.
<script src="./dist/barchart-ondemand-client-js.js"></script>
var onDemand = new OnDemandClient();
onDemand.setAPIKey('change-me');
onDemand.setJsonP(true);
/* get a quote for AAPL and GOOG */
onDemand.getQuote({symbols: 'AAPL,GOOG'}, function (err, data) {
var quotes = data.results;
for (x in quotes) {
console.log("getQuote: " + quotes[x].symbol + " [" + quotes[x].name + "] = " + JSON.stringify(quotes[x]));
}
});
- getQuote
- getHistory
- getFuturesOptions
- getSpecialOptions
- getEquityOptions
- getProfile
- getFinancialHighlights
- getFinancialRatios
- getIncomeStatements
- getCompetitors
- getInsiders
- getRatings
- getIndexMembers
- getCorporateActions
- getEarningsEstimates
- getLeaders
- getHighsLows
- getChart
- getTechnicals
- getSignal
- getMomentum
- getNews
- getSECFilings
- getInstrumentDefinition
- getFuturesSpecifications
- getFuturesExpiration
- getFuturesOptionsExpiration
- getWeather
- getUSDAGrainPrices