private void batchRequestSample() { final BatchStocks batchStocks = iexTradingClient.executeRequest(new BatchStocksRequestBuilder() .withSymbol("AAPL") .addType(BatchStocksType.BOOK) .addType(BatchStocksType.COMPANY) .addType(BatchStocksType.EARNINGS) .build()); System.out.println(batchStocks); }
@Test public void batchDividendsRequestAcceptanceTest() { final BatchStocks batchStocks = iexTradingClient.executeRequest(new BatchStocksRequestBuilder() .withSymbol("AAPL") .addType(BatchStocksType.DIVIDENDS) .build()); }
@Test public void batchLogoRequestAcceptanceTest() { final BatchStocks batchStocks = iexTradingClient.executeRequest(new BatchStocksRequestBuilder() .withSymbol("AAPL") .addType(BatchStocksType.LOGO) .build()); }
@Test public void batchPeersRequestAcceptanceTest() { final BatchStocks batchStocks = iexTradingClient.executeRequest(new BatchStocksRequestBuilder() .withSymbol("AAPL") .addType(BatchStocksType.PEERS) .build()); }
@Test public void batchEffectiveSpreadRequestAcceptanceTest() { final BatchStocks batchStocks = iexTradingClient.executeRequest(new BatchStocksRequestBuilder() .withSymbol("AAPL") .addType(BatchStocksType.EFFECTIVE_SPREAD) .build()); }
@Test public void batchThresholdSecuritiesRequestAcceptanceTest() { final BatchStocks batchStocks = iexTradingClient.executeRequest(new BatchStocksRequestBuilder() .withSymbol("AAPL") .addType(BatchStocksType.THRESHOLD_SECURITIES) .build()); }
@Test public void batchRelevantRequestAcceptanceTest() { final BatchStocks batchStocks = iexTradingClient.executeRequest(new BatchStocksRequestBuilder() .withSymbol("AAPL") .addType(BatchStocksType.RELEVANT) .build()); }
@Test public void batchDelayedQuoteRequestAcceptanceTest() { final BatchStocks batchStocks = iexTradingClient.executeRequest(new BatchStocksRequestBuilder() .withSymbol("AAPL") .addType(BatchStocksType.DELAYED_QUOTE) .build()); }
@Test public void batchNewsRequestAcceptanceTest() { final BatchStocks batchStocks = iexTradingClient.executeRequest(new BatchStocksRequestBuilder() .withSymbol("AAPL") .addType(BatchStocksType.NEWS) .build()); }
@Test public void batchFinancialsRequestAcceptanceTest() { final BatchStocks batchStocks = iexTradingClient.executeRequest(new BatchStocksRequestBuilder() .withSymbol("AAPL") .addType(BatchStocksType.FINANCIALS) .build()); }
@Test public void batchLargestTradesRequestAcceptanceTest() { final BatchStocks batchStocks = iexTradingClient.executeRequest(new BatchStocksRequestBuilder() .withSymbol("AAPL") .addType(BatchStocksType.LARGEST_TRADES) .build()); }
@Test public void batchOhlcRequestAcceptanceTest() { final BatchStocks batchStocks = iexTradingClient.executeRequest(new BatchStocksRequestBuilder() .withSymbol("AAPL") .addType(BatchStocksType.OHLC) .build()); }
@Test public void batchPreviousRequestAcceptanceTest() { final BatchStocks batchStocks = iexTradingClient.executeRequest(new BatchStocksRequestBuilder() .withSymbol("AAPL") .addType(BatchStocksType.PREVIOUS) .build()); }
@Test public void batchPriceRequestAcceptanceTest() { final BatchStocks batchStocks = iexTradingClient.executeRequest(new BatchStocksRequestBuilder() .withSymbol("AAPL") .addType(BatchStocksType.PRICE) .build()); }
@Test public void batchSplitsRequestAcceptanceTest() { final BatchStocks batchStocks = iexTradingClient.executeRequest(new BatchStocksRequestBuilder() .withSymbol("AAPL") .addType(BatchStocksType.SPLITS) .build()); }
@Test public void batchVolumeByVenueRequestAcceptanceTest() { final BatchStocks batchStocks = iexTradingClient.executeRequest(new BatchStocksRequestBuilder() .withSymbol("AAPL") .addType(BatchStocksType.VOLUME_BY_VENUE) .build()); }
@Test public void batchBookRequestAcceptanceTest() { final BatchStocks batchStocks = iexTradingClient.executeRequest(new BatchStocksRequestBuilder() .withSymbol("AAPL") .addType(BatchStocksType.BOOK) .build()); }
@Test public void batchCompanyRequestAcceptanceTest() { final BatchStocks batchStocks = iexTradingClient.executeRequest(new BatchStocksRequestBuilder() .withSymbol("AAPL") .addType(BatchStocksType.COMPANY) .build()); }
@Test public void batchKeyStatsRequestAcceptanceTest() { final BatchStocks batchStocks = iexTradingClient.executeRequest(new BatchStocksRequestBuilder() .withSymbol("AAPL") .addType(BatchStocksType.KEY_STATS) .build()); }
@Test public void batchQuoteRequestAcceptanceTest() { final BatchStocks batchStocks = iexTradingClient.executeRequest(new BatchStocksRequestBuilder() .withSymbol("AAPL") .addType(BatchStocksType.QUOTE) .build()); }