Skip to content
Wojciech Zankowski edited this page Nov 25, 2017 · 1 revision

Example

final IEXTradingClient iexTradingClient = IEXTradingClient.create();
final Book book = iexTradingClient.executeRequest(new BookRequestBuilder()
		.withSymbol("AAPL")
		.build());
System.out.println(book);

Response

Book {
	quote = Quote {
		symbol = AAPL,
		companyName = Apple Inc.,
		primaryExchange = Nasdaq Global Select,
		sector = Technology,
		calculationPrice = close,
		open = 175.04,
		openTime = 1511533800652,
		close = 174.97,
		closeTime = 1511546400298,
		latestPrice = 174.97,
		latestSource = Close,
		latestTime = November 24,
		2017,
		latestUpdate = 1511546400298,
		latestVolume = 14282957,
		iexRealtimePrice = null,
		iexRealtimeSize = null,
		iexLastUpdated = null,
		delayedPrice = 174.88,
		delayedPriceTime = 1511549997359,
		previousClose = 174.96,
		change = 0.01,
		changePercent = 0.00006,
		iexMarketPercent = null,
		iexVolume = null,
		avgTotalVolume = 27257397,
		iexBidPrice = null,
		iexBidSize = null,
		iexAskPrice = null,
		iexAskSize = null,
		marketCap = 898350570640,
		peRatio = 19.88,
		week52High = 176.24,
		week52Low = 108.25,
		ytdChange = 0.5064141196728368
	},
	bids = [],
	asks = [],
	trades = [],
	systemEvent = SystemEvent {
		systemEvent = null,
		timestamp = null
	}
}
Clone this wiki locally