|
7 | 7 | import net.jacobpeterson.alpaca.model.endpoint.marketdata.crypto.historical.orderbook.CryptoOrderbook; |
8 | 8 | import net.jacobpeterson.alpaca.model.endpoint.marketdata.crypto.historical.orderbook.LatestCryptoOrderbooksResponse; |
9 | 9 | import net.jacobpeterson.alpaca.model.endpoint.marketdata.crypto.historical.quote.CryptoQuote; |
10 | | -import net.jacobpeterson.alpaca.model.endpoint.marketdata.crypto.historical.quote.CryptoQuotesResponse; |
11 | 10 | import net.jacobpeterson.alpaca.model.endpoint.marketdata.crypto.historical.quote.LatestCryptoQuotesResponse; |
12 | 11 | import net.jacobpeterson.alpaca.model.endpoint.marketdata.crypto.historical.snapshot.CryptoSnapshot; |
13 | 12 | import net.jacobpeterson.alpaca.model.endpoint.marketdata.crypto.historical.snapshot.CryptoSnapshotsResponse; |
@@ -153,58 +152,6 @@ public LatestCryptoBarsResponse getLatestBars(Collection<String> symbols) throws |
153 | 152 | return alpacaClient.requestObject(request, LatestCryptoBarsResponse.class); |
154 | 153 | } |
155 | 154 |
|
156 | | - /** |
157 | | - * Gets {@link CryptoQuote} historical data for the requested crypto symbols. |
158 | | - * |
159 | | - * @param symbols a {@link Collection} of symbols to query for |
160 | | - * @param start filter data equal to or after this {@link ZonedDateTime}. Fractions of a second are not |
161 | | - * accepted. <code>null</code> for the current day in Central Time. |
162 | | - * @param end filter data equal to or before this {@link ZonedDateTime}. Fractions of a second are not |
163 | | - * accepted. <code>null</code> for now. |
164 | | - * @param limit number of data points to return. Must be in range 1-10000, defaults to 1000 if <code>null</code> |
165 | | - * is given |
166 | | - * @param pageToken pagination token to continue from |
167 | | - * |
168 | | - * @return the {@link CryptoQuotesResponse} |
169 | | - * |
170 | | - * @throws AlpacaClientException thrown for {@link AlpacaClientException}s |
171 | | - */ |
172 | | - public CryptoQuotesResponse getQuotes(Collection<String> symbols, ZonedDateTime start, |
173 | | - ZonedDateTime end, Integer limit, String pageToken) throws AlpacaClientException { |
174 | | - checkNotNull(symbols); |
175 | | - if (symbols.isEmpty()) { |
176 | | - throw new AlpacaClientException("Collection symbols must not be empty."); |
177 | | - } |
178 | | - |
179 | | - HttpUrl.Builder urlBuilder = alpacaClient.urlBuilder() |
180 | | - .addPathSegment(endpointPathSegment) |
181 | | - .addPathSegment(LOCALE) |
182 | | - .addPathSegment("quotes"); |
183 | | - |
184 | | - urlBuilder.addQueryParameter("symbols", String.join(",", symbols)); |
185 | | - |
186 | | - if (start != null) { |
187 | | - urlBuilder.addQueryParameter("start", FormatUtil.toRFC3339Format(start)); |
188 | | - } |
189 | | - |
190 | | - if (end != null) { |
191 | | - urlBuilder.addQueryParameter("end", FormatUtil.toRFC3339Format(end)); |
192 | | - } |
193 | | - |
194 | | - if (limit != null) { |
195 | | - urlBuilder.addQueryParameter("limit", limit.toString()); |
196 | | - } |
197 | | - |
198 | | - if (pageToken != null) { |
199 | | - urlBuilder.addQueryParameter("page_token", pageToken); |
200 | | - } |
201 | | - |
202 | | - Request request = alpacaClient.requestBuilder(urlBuilder.build()) |
203 | | - .get() |
204 | | - .build(); |
205 | | - return alpacaClient.requestObject(request, CryptoQuotesResponse.class); |
206 | | - } |
207 | | - |
208 | 155 | /** |
209 | 156 | * Gets the latest {@link CryptoQuote}s for the requested securities. |
210 | 157 | * |
|
0 commit comments