Package markets.alpaca.client
Class AlpacaClient.Stocks
java.lang.Object
markets.alpaca.client.AlpacaClient.Stocks
- Enclosing class:
- AlpacaClient
Safe stock-market-data workflows exposed by
AlpacaClient.-
Method Summary
Modifier and TypeMethodDescriptiontrades(StockTradesRequest request) Returns historical stock trades through the Market Data multi-symbol stock trades endpoint.tradesForSymbol(StockTradesRequest request) Returns historical stock trades through the generated single-symbol endpoint.Returns single-symbol historical stock trades with HTTP status code and response headers.tradesWithHttpInfo(StockTradesRequest request) Returns historical stock trades with HTTP status code, response headers, and pagination metadata from the generated response wrapper.
-
Method Details
-
trades
Returns historical stock trades through the Market Data multi-symbol stock trades endpoint.- Throws:
ApiException
-
tradesWithHttpInfo
public ApiResponse<StockTradesResp> tradesWithHttpInfo(StockTradesRequest request) throws ApiException Returns historical stock trades with HTTP status code, response headers, and pagination metadata from the generated response wrapper.- Throws:
ApiException
-
tradesForSymbol
Returns historical stock trades through the generated single-symbol endpoint.The request must contain exactly one symbol; use
trades(StockTradesRequest)for multi-symbol queries.- Throws:
ApiException
-
tradesForSymbolWithHttpInfo
public ApiResponse<StockTradesRespSingle> tradesForSymbolWithHttpInfo(StockTradesRequest request) throws ApiException Returns single-symbol historical stock trades with HTTP status code and response headers.- Throws:
ApiException
-