private void shortInterestRequestSample() { final List<ShortInterest> shortInterestList = iexTradingClient.executeRequest(new ShortInterestRequestBuilder() .withSample() .withMarket() .build()); System.out.println(shortInterestList); }
@Test public void shouldSuccessfullyCreateRequestWithMarket() { final RestRequest<List<ShortInterest>> request = new ShortInterestRequestBuilder() .withMarket() .build(); assertThat(request.getMethodType()).isEqualTo(MethodType.GET); assertThat(request.getPath()).isEqualTo("/stock/{symbol}/short-interest/{date}"); assertThat(request.getResponseType()).isEqualTo(new GenericType<List<ShortInterest>>() {}); assertThat(request.getPathParams()).contains(entry("date", ""), entry("symbol", "market")); assertThat(request.getQueryParams()).isEmpty(); }
@Test public void shouldSuccessfullyCreateRequestWithSample() { final RestRequest<List<ShortInterest>> request = new ShortInterestRequestBuilder() .withSample() .withMarket() .build(); assertThat(request.getMethodType()).isEqualTo(MethodType.GET); assertThat(request.getPath()).isEqualTo("/stock/{symbol}/short-interest/{date}"); assertThat(request.getResponseType()).isEqualTo(new GenericType<List<ShortInterest>>() {}); assertThat(request.getPathParams()).contains(entry("date", "sample"), entry("symbol", "market")); assertThat(request.getQueryParams()).isEmpty(); }
@Test public void shortInterestAcceptanceTest() { final List<ShortInterest> shortInterestList = iexTradingClient.executeRequest(new ShortInterestRequestBuilder() .withSample() .withMarket() .build()); }