Skip to content

Commit 9d253ff

Browse files
committed
Auto-format
1 parent 6fdb6fc commit 9d253ff

9 files changed

Lines changed: 120 additions & 115 deletions

File tree

src/main/java/net/jacobpeterson/alpaca/AlpacaAPI.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@
55
import net.jacobpeterson.alpaca.model.properties.EndpointAPIType;
66
import net.jacobpeterson.alpaca.properties.AlpacaProperties;
77
import net.jacobpeterson.alpaca.rest.AlpacaClient;
8+
import net.jacobpeterson.alpaca.rest.endpoint.AlpacaEndpoint;
9+
import net.jacobpeterson.alpaca.rest.endpoint.account.AccountEndpoint;
810
import net.jacobpeterson.alpaca.rest.endpoint.accountactivities.AccountActivitiesEndpoint;
911
import net.jacobpeterson.alpaca.rest.endpoint.accountconfiguration.AccountConfigurationEndpoint;
10-
import net.jacobpeterson.alpaca.rest.endpoint.account.AccountEndpoint;
11-
import net.jacobpeterson.alpaca.rest.endpoint.AlpacaEndpoint;
1212
import net.jacobpeterson.alpaca.rest.endpoint.assets.AssetsEndpoint;
1313
import net.jacobpeterson.alpaca.rest.endpoint.calendar.CalendarEndpoint;
1414
import net.jacobpeterson.alpaca.rest.endpoint.clock.ClockEndpoint;
15+
import net.jacobpeterson.alpaca.rest.endpoint.marketdata.crypto.CryptoMarketDataEndpoint;
16+
import net.jacobpeterson.alpaca.rest.endpoint.marketdata.stock.StockMarketDataEndpoint;
1517
import net.jacobpeterson.alpaca.rest.endpoint.orders.OrdersEndpoint;
1618
import net.jacobpeterson.alpaca.rest.endpoint.portfoliohistory.PortfolioHistoryEndpoint;
1719
import net.jacobpeterson.alpaca.rest.endpoint.positions.PositionsEndpoint;
1820
import net.jacobpeterson.alpaca.rest.endpoint.watchlist.WatchlistEndpoint;
19-
import net.jacobpeterson.alpaca.rest.endpoint.marketdata.crypto.CryptoMarketDataEndpoint;
20-
import net.jacobpeterson.alpaca.rest.endpoint.marketdata.stock.StockMarketDataEndpoint;
2121
import net.jacobpeterson.alpaca.websocket.AlpacaWebsocket;
2222
import net.jacobpeterson.alpaca.websocket.marketdata.MarketDataWebsocketInterface;
2323
import net.jacobpeterson.alpaca.websocket.marketdata.crypto.CryptoMarketDataWebsocket;
@@ -32,8 +32,8 @@
3232
import static com.google.common.base.Preconditions.checkNotNull;
3333

3434
/**
35-
* The {@link AlpacaAPI} class contains several instances of various {@link AlpacaEndpoint}s and {@link
36-
* AlpacaWebsocket}s to interface with Alpaca. You will generally only need one instance of this class in your
35+
* The {@link AlpacaAPI} class contains several instances of various {@link AlpacaEndpoint}s and
36+
* {@link AlpacaWebsocket}s to interface with Alpaca. You will generally only need one instance of this class in your
3737
* application. Note that many methods inside the various {@link AlpacaEndpoint}s allow <code>null<code/> to be passed
3838
* in as a parameter if it is optional.
3939
*

src/main/java/net/jacobpeterson/alpaca/rest/AlpacaClient.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ public <T> T requestObject(Request request, Type type) throws AlpacaClientExcept
127127
*
128128
* @param <T> the type of object
129129
* @param request the {@link Request}
130-
* @param isSuccessCode throws {@link AlpacaClientException} if passed in {@link Response#code()} to the {@link
131-
* Predicate#test(Object)} returns false
130+
* @param isSuccessCode throws {@link AlpacaClientException} if passed in {@link Response#code()} to the
131+
* {@link Predicate#test(Object)} returns false
132132
* @param type the object {@link Type}
133133
*
134134
* @return the requested object
@@ -151,8 +151,8 @@ public JsonElement requestJSON(Request request) throws AlpacaClientException {
151151
* Requests a {@link JsonElement} given a {@link Request}.
152152
*
153153
* @param request the {@link Request}
154-
* @param isSuccessCode throws {@link AlpacaClientException} if passed in {@link Response#code()} to the {@link
155-
* Predicate#test(Object)} returns false
154+
* @param isSuccessCode throws {@link AlpacaClientException} if passed in {@link Response#code()} to the
155+
* {@link Predicate#test(Object)} returns false
156156
*
157157
* @return the {@link JsonElement}
158158
*
@@ -178,8 +178,8 @@ public JsonElement requestJSON(Request request, Predicate<Integer> isSuccessCode
178178
* Sends a {@link Request} and ignores any {@link ResponseBody}.
179179
*
180180
* @param request the {@link Request}
181-
* @param isSuccessCode throws {@link AlpacaClientException} if passed in {@link Response#code()} to the {@link
182-
* Predicate#test(Object)} returns false
181+
* @param isSuccessCode throws {@link AlpacaClientException} if passed in {@link Response#code()} to the
182+
* {@link Predicate#test(Object)} returns false
183183
*
184184
* @throws AlpacaClientException thrown for {@link AlpacaClientException}s
185185
*/
@@ -193,8 +193,8 @@ public void requestVoid(Request request, Predicate<Integer> isSuccessCode) throw
193193
* Sends a {@link Request} and returns a {@link Response}.
194194
*
195195
* @param request the {@link Request}
196-
* @param isSuccessCode throws {@link AlpacaClientException} if passed in {@link Response#code()} to the {@link
197-
* Predicate#test(Object)} returns false
196+
* @param isSuccessCode throws {@link AlpacaClientException} if passed in {@link Response#code()} to the
197+
* {@link Predicate#test(Object)} returns false
198198
*
199199
* @return the {@link Response}. <strong>Be sure to call {@link Response#close()} after use.</strong>
200200
*

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
* Crypto Market Data API</a>.
3232
*/
3333
public class CryptoMarketDataEndpoint extends AlpacaEndpoint {
34+
3435
public static final String LOCALE = "us";
3536

3637
/**
@@ -97,7 +98,7 @@ public CryptoTradesResponse getTrades(Collection<String> symbols, ZonedDateTime
9798
/**
9899
* Gets the latest {@link CryptoTrade}s for the requested securities.
99100
*
100-
* @param symbols a {@link Collection} of symbols to query for
101+
* @param symbols a {@link Collection} of symbols to query for
101102
*
102103
* @return the {@link LatestCryptoTradesResponse}
103104
*
@@ -126,7 +127,7 @@ public LatestCryptoTradesResponse getLatestTrades(Collection<String> symbols) th
126127
/**
127128
* Gets the latest {@link CryptoBar}s for the requested securities.
128129
*
129-
* @param symbols a {@link Collection} of symbols to query for
130+
* @param symbols a {@link Collection} of symbols to query for
130131
*
131132
* @return the {@link LatestCryptoBarsResponse}
132133
*
@@ -155,7 +156,7 @@ public LatestCryptoBarsResponse getLatestBars(Collection<String> symbols) throws
155156
/**
156157
* Gets the latest {@link CryptoQuote}s for the requested securities.
157158
*
158-
* @param symbols a {@link Collection} of symbols to query for
159+
* @param symbols a {@link Collection} of symbols to query for
159160
*
160161
* @return the {@link LatestCryptoQuotesResponse}
161162
*
@@ -184,7 +185,7 @@ public LatestCryptoQuotesResponse getLatestQuotes(Collection<String> symbols) th
184185
/**
185186
* Gets the latest {@link CryptoSnapshot} for the requested securities.
186187
*
187-
* @param symbols a {@link Collection} of symbols to query for
188+
* @param symbols a {@link Collection} of symbols to query for
188189
*
189190
* @return the {@link CryptoSnapshotsResponse}
190191
*
@@ -212,7 +213,7 @@ public CryptoSnapshotsResponse getSnapshots(Collection<String> symbols) throws A
212213
/**
213214
* Gets the latest {@link CryptoOrderbook}s for the requested securities.
214215
*
215-
* @param symbols a {@link Collection} of symbols to query for
216+
* @param symbols a {@link Collection} of symbols to query for
216217
*
217218
* @return the {@link LatestCryptoOrderbooksResponse}
218219
*
@@ -252,8 +253,8 @@ public LatestCryptoOrderbooksResponse getLatestOrderbooks(Collection<String> sym
252253
* @param barTimePeriodDuration the duration for the given <code>barTimePeriod</code> parameter. e.g. for
253254
* <code>15Min</code> bars, you would supply <code>15</code> for this parameter and
254255
* {@link BarTimePeriod#MINUTE} for the <code>barTimePeriod</code> parameter.
255-
* @param barTimePeriod the {@link BarTimePeriod} e.g. for <code>15Min</code> bars, you would supply {@link
256-
* BarTimePeriod#MINUTE} for this parameter and <code>15</code> for the
256+
* @param barTimePeriod the {@link BarTimePeriod} e.g. for <code>15Min</code> bars, you would supply
257+
* {@link BarTimePeriod#MINUTE} for this parameter and <code>15</code> for the
257258
* <code>barTimePeriodDuration</code> parameter.
258259
*
259260
* @return the {@link CryptoBarsResponse}

src/main/java/net/jacobpeterson/alpaca/rest/endpoint/marketdata/stock/StockMarketDataEndpoint.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,11 @@ public LatestStockQuoteResponse getLatestQuote(String symbol) throws AlpacaClien
199199
* @param barTimePeriodDuration the duration for the given <code>barTimePeriod</code> parameter. e.g. for
200200
* <code>15Min</code> bars, you would supply <code>15</code> for this parameter and
201201
* {@link BarTimePeriod#MINUTE} for the <code>barTimePeriod</code> parameter.
202-
* @param barTimePeriod the {@link BarTimePeriod}. e.g. for <code>15Min</code> bars, you would supply {@link
203-
* BarTimePeriod#MINUTE} for this parameter and <code>15</code> for the
202+
* @param barTimePeriod the {@link BarTimePeriod}. e.g. for <code>15Min</code> bars, you would supply
203+
* {@link BarTimePeriod#MINUTE} for this parameter and <code>15</code> for the
204204
* <code>barTimePeriodDuration</code> parameter.
205-
* @param barAdjustment specifies the corporate action adjustment for the stocks. Default value is {@link
206-
* BarAdjustment#RAW}
205+
* @param barAdjustment specifies the corporate action adjustment for the stocks. Default value is
206+
* {@link BarAdjustment#RAW}
207207
* @param barFeed defaults to {@link BarFeed#IEX} for Free users and {@link BarFeed#SIP} for users
208208
* with an Unlimited subscription
209209
*
@@ -265,11 +265,11 @@ public StockBarsResponse getBars(String symbol, ZonedDateTime start, ZonedDateTi
265265
* @param barTimePeriodDuration the duration for the given <code>barTimePeriod</code> parameter. e.g. for
266266
* <code>15Min</code> bars, you would supply <code>15</code> for this parameter and
267267
* {@link BarTimePeriod#MINUTE} for the <code>barTimePeriod</code> parameter.
268-
* @param barTimePeriod the {@link BarTimePeriod}. e.g. for <code>15Min</code> bars, you would supply {@link
269-
* BarTimePeriod#MINUTE} for this parameter and <code>15</code> for the
268+
* @param barTimePeriod the {@link BarTimePeriod}. e.g. for <code>15Min</code> bars, you would supply
269+
* {@link BarTimePeriod#MINUTE} for this parameter and <code>15</code> for the
270270
* <code>barTimePeriodDuration</code> parameter.
271-
* @param barAdjustment specifies the corporate action adjustment for the stocks. Default value is {@link
272-
* BarAdjustment#RAW}
271+
* @param barAdjustment specifies the corporate action adjustment for the stocks. Default value is
272+
* {@link BarAdjustment#RAW}
273273
* @param barFeed defaults to {@link BarFeed#IEX} for Free users and {@link BarFeed#SIP} for users
274274
* with an Unlimited subscription
275275
*

0 commit comments

Comments
 (0)