How-to: Barchart getQuoteEOD Source Code

/* build a new getQuotes request */ final QuoteRequest.Builder builder = new QuoteRequest.Builder(); /* add symbols to request */ builder.symbols(new String[] { "AAPL", "GOOG" }); /* set mode to real-time */ builder.mode(QuoteRequestMode.REAL_TIME); /* add optional request fields */ builder.fields(new QuoteRequestField[] { QuoteRequestField._52_WEEK_HIGH_DATE }); /* fetch results */ final Quotes quotes = (Quotes) onDemand.fetch(builder.build()); for (Quote q : quotes.all()) { System.out.println("Quote for : " + q.getSymbol() + " = " + q); }
Comments (0)
Followers (0)

Sorry, No Followers

Specs
getQuoteEOD
Java
Prices, Data
July 15, 2014