Skip to content

Commit eb7f551

Browse files
author
Jesse Thouin
committed
Removed getQuotes as it doesn't have a matching API call with Alpaca.
1 parent 4aab2d5 commit eb7f551

2 files changed

Lines changed: 0 additions & 67 deletions

File tree

schema_json/endpoint/market_data/crypto/historical/quote/crypto_quotes_response.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/main/java/net/jacobpeterson/alpaca/rest/endpoint/marketdata/crypto/CryptoMarketDataEndpoint.java

Lines changed: 0 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import net.jacobpeterson.alpaca.model.endpoint.marketdata.crypto.historical.orderbook.CryptoOrderbook;
88
import net.jacobpeterson.alpaca.model.endpoint.marketdata.crypto.historical.orderbook.LatestCryptoOrderbooksResponse;
99
import net.jacobpeterson.alpaca.model.endpoint.marketdata.crypto.historical.quote.CryptoQuote;
10-
import net.jacobpeterson.alpaca.model.endpoint.marketdata.crypto.historical.quote.CryptoQuotesResponse;
1110
import net.jacobpeterson.alpaca.model.endpoint.marketdata.crypto.historical.quote.LatestCryptoQuotesResponse;
1211
import net.jacobpeterson.alpaca.model.endpoint.marketdata.crypto.historical.snapshot.CryptoSnapshot;
1312
import net.jacobpeterson.alpaca.model.endpoint.marketdata.crypto.historical.snapshot.CryptoSnapshotsResponse;
@@ -153,58 +152,6 @@ public LatestCryptoBarsResponse getLatestBars(Collection<String> symbols) throws
153152
return alpacaClient.requestObject(request, LatestCryptoBarsResponse.class);
154153
}
155154

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-
208155
/**
209156
* Gets the latest {@link CryptoQuote}s for the requested securities.
210157
*

0 commit comments

Comments
 (0)