Class StockV3Api
java.lang.Object
markets.alpaca.client.openapi.data.api.StockV3Api
Generated client for StockV3Api operations.
This class is generated from the configured OpenAPI spec. Operation method Javadocs include OAS summaries, descriptions, parameters, return types, response details, and external documentation links when present in the spec.
Operations
stockV3Bars: Historical barsstockV3LatestBars: Latest barsstockV3LatestQuotes: Latest quotesstockV3LatestTrades: Latest tradesstockV3Quotes: Historical quotesstockV3Snapshots: SnapshotsstockV3Trades: Historical trades
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidsetApiClient(ApiClient apiClient) voidsetCustomBaseUrl(String customBaseUrl) voidsetHostIndex(int hostIndex) stockV3Bars(StockV3HistoricalFeed feed, String symbols, String timeframe, StockV3BarsStartParameter start, StockV3BarsStartParameter end, Sort sort, Integer pageSize, String pageToken) Historical bars The historical bars API provides aggregates for a list of symbols between the specified times.okhttp3.CallstockV3BarsAsync(StockV3HistoricalFeed feed, String symbols, String timeframe, StockV3BarsStartParameter start, StockV3BarsStartParameter end, Sort sort, Integer pageSize, String pageToken, ApiCallback<StockV3BarsResp> _callback) Historical bars (asynchronously) The historical bars API provides aggregates for a list of symbols between the specified times.okhttp3.CallstockV3BarsCall(StockV3HistoricalFeed feed, String symbols, String timeframe, StockV3BarsStartParameter start, StockV3BarsStartParameter end, Sort sort, Integer pageSize, String pageToken, ApiCallback _callback) Build call for stockV3BarsstockV3BarsWithHttpInfo(StockV3HistoricalFeed feed, String symbols, String timeframe, StockV3BarsStartParameter start, StockV3BarsStartParameter end, Sort sort, Integer pageSize, String pageToken) Historical bars The historical bars API provides aggregates for a list of symbols between the specified times.stockV3LatestBars(StockV3LatestFeed feed, String symbols) Latest bars The latest bars endpoint provides the latest minute bar for the given symbols.okhttp3.CallstockV3LatestBarsAsync(StockV3LatestFeed feed, String symbols, ApiCallback<StockV3LatestBarsResp> _callback) Latest bars (asynchronously) The latest bars endpoint provides the latest minute bar for the given symbols.okhttp3.CallstockV3LatestBarsCall(StockV3LatestFeed feed, String symbols, ApiCallback _callback) Build call for stockV3LatestBarsstockV3LatestBarsWithHttpInfo(StockV3LatestFeed feed, String symbols) Latest bars The latest bars endpoint provides the latest minute bar for the given symbols.stockV3LatestQuotes(StockV3LatestFeed feed, String symbols) Latest quotes The latest quotes endpoint provides the latest best bid and ask prices for the given symbols.okhttp3.CallstockV3LatestQuotesAsync(StockV3LatestFeed feed, String symbols, ApiCallback<StockV3LatestQuotesResp> _callback) Latest quotes (asynchronously) The latest quotes endpoint provides the latest best bid and ask prices for the given symbols.okhttp3.CallstockV3LatestQuotesCall(StockV3LatestFeed feed, String symbols, ApiCallback _callback) Build call for stockV3LatestQuotesstockV3LatestQuotesWithHttpInfo(StockV3LatestFeed feed, String symbols) Latest quotes The latest quotes endpoint provides the latest best bid and ask prices for the given symbols.stockV3LatestTrades(StockV3LatestFeed feed, String symbols) Latest trades The latest trades endpoint provides the latest trade for the given symbols.okhttp3.CallstockV3LatestTradesAsync(StockV3LatestFeed feed, String symbols, ApiCallback<StockV3LatestTradesResp> _callback) Latest trades (asynchronously) The latest trades endpoint provides the latest trade for the given symbols.okhttp3.CallstockV3LatestTradesCall(StockV3LatestFeed feed, String symbols, ApiCallback _callback) Build call for stockV3LatestTradesstockV3LatestTradesWithHttpInfo(StockV3LatestFeed feed, String symbols) Latest trades The latest trades endpoint provides the latest trade for the given symbols.stockV3Quotes(StockV3HistoricalFeed feed, String symbols, StockV3BarsStartParameter start, StockV3BarsStartParameter end, Sort sort, Integer pageSize, String pageToken) Historical quotes The historical quotes API provides quote data for a list of symbols between the specified times.okhttp3.CallstockV3QuotesAsync(StockV3HistoricalFeed feed, String symbols, StockV3BarsStartParameter start, StockV3BarsStartParameter end, Sort sort, Integer pageSize, String pageToken, ApiCallback<StockV3QuotesResp> _callback) Historical quotes (asynchronously) The historical quotes API provides quote data for a list of symbols between the specified times.okhttp3.CallstockV3QuotesCall(StockV3HistoricalFeed feed, String symbols, StockV3BarsStartParameter start, StockV3BarsStartParameter end, Sort sort, Integer pageSize, String pageToken, ApiCallback _callback) Build call for stockV3QuotesstockV3QuotesWithHttpInfo(StockV3HistoricalFeed feed, String symbols, StockV3BarsStartParameter start, StockV3BarsStartParameter end, Sort sort, Integer pageSize, String pageToken) Historical quotes The historical quotes API provides quote data for a list of symbols between the specified times.stockV3Snapshots(StockV3LatestFeed feed, String symbols) Snapshots The snapshot endpoint provides the latest trade, latest quote, minute bar, daily bar, and previous daily bar for each requested symbol.okhttp3.CallstockV3SnapshotsAsync(StockV3LatestFeed feed, String symbols, ApiCallback<StockV3SnapshotsResp> _callback) Snapshots (asynchronously) The snapshot endpoint provides the latest trade, latest quote, minute bar, daily bar, and previous daily bar for each requested symbol.okhttp3.CallstockV3SnapshotsCall(StockV3LatestFeed feed, String symbols, ApiCallback _callback) Build call for stockV3SnapshotsstockV3SnapshotsWithHttpInfo(StockV3LatestFeed feed, String symbols) Snapshots The snapshot endpoint provides the latest trade, latest quote, minute bar, daily bar, and previous daily bar for each requested symbol.stockV3Trades(StockV3HistoricalFeed feed, String symbols, StockV3BarsStartParameter start, StockV3BarsStartParameter end, Sort sort, Integer pageSize, String pageToken) Historical trades The historical trades API provides trade data for a list of symbols between the specified times.okhttp3.CallstockV3TradesAsync(StockV3HistoricalFeed feed, String symbols, StockV3BarsStartParameter start, StockV3BarsStartParameter end, Sort sort, Integer pageSize, String pageToken, ApiCallback<StockV3TradesResp> _callback) Historical trades (asynchronously) The historical trades API provides trade data for a list of symbols between the specified times.okhttp3.CallstockV3TradesCall(StockV3HistoricalFeed feed, String symbols, StockV3BarsStartParameter start, StockV3BarsStartParameter end, Sort sort, Integer pageSize, String pageToken, ApiCallback _callback) Build call for stockV3TradesstockV3TradesWithHttpInfo(StockV3HistoricalFeed feed, String symbols, StockV3BarsStartParameter start, StockV3BarsStartParameter end, Sort sort, Integer pageSize, String pageToken) Historical trades The historical trades API provides trade data for a list of symbols between the specified times.
-
Constructor Details
-
StockV3Api
public StockV3Api() -
StockV3Api
-
-
Method Details
-
getApiClient
-
setApiClient
-
getHostIndex
public int getHostIndex() -
setHostIndex
public void setHostIndex(int hostIndex) -
getCustomBaseUrl
-
setCustomBaseUrl
-
stockV3BarsCall
public okhttp3.Call stockV3BarsCall(@Nonnull StockV3HistoricalFeed feed, @Nonnull String symbols, @Nonnull String timeframe, @Nonnull StockV3BarsStartParameter start, @Nullable StockV3BarsStartParameter end, @Nullable Sort sort, @Nullable Integer pageSize, @Nullable String pageToken, ApiCallback _callback) throws ApiException Build call for stockV3Bars- Parameters:
feed- The source feed of the data. All feeds require a subscription. - `euroctp`: EuroCTP, the official EU consolidated tape, covering trades from all EU trading venues - `xetr`: Xetra, the electronic trading venue of the Frankfurt Stock Exchange (Deutsche Börse) - `xhkg`: Hong Kong Stock Exchange (HKEX) - `xlon`: London Stock Exchange (LSE) - `xsau`: Saudi Exchange (Tadawul) (required)symbols- A comma-separated list of symbols with a limit of 1000. Each symbol must be in `TICKER:MIC` format, where MIC is the ISO 10383 defined code of the symbol's primary market. The market must be one the feed covers, e.g. `XETR` on `xetr`; `euroctp` accepts any market. (required)timeframe- The timeframe represented by each bar in aggregation. You can use any of the following values: - `[1-59]Min` or `[1-59]T`, e.g. `5Min` or `5T` creates 5-minute aggregations - `[1-23]Hour` or `[1-23]H`, e.g. `12Hour` or `12H` creates 12-hour aggregations - `1Day` or `1D` creates 1-day aggregations - `1Week` or `1W` creates 1-week aggregations - `[1,2,3,4,6,12]Month` or `[1,2,3,4,6,12]M`, e.g. `3Month` or `3M` creates 3-month aggregations (required)start- The inclusive start of the interval. Format: RFC-3339 or YYYY-MM-DD. A date means the start of that day in the market's time zone. (required)end- The inclusive end of the interval. A data point is returned when `start <= t <= end`. Format: RFC-3339 or YYYY-MM-DD. A date means the end of that day in the market's time zone. Defaults to the current time if not specified. (optional)sort- Sort the data points of each symbol by timestamp in ascending or descending order. (optional)pageSize- The maximum number of data points to return in the response page. The page_size applies to the total number of data points across all symbols, not per symbol. The API may return fewer, even if more data points exist in the requested interval. Always check `next_page_token` for more pages. (optional, default to 1000)pageToken- The pagination token from which to continue. The value to pass here is returned in specific requests when more data is available, usually because of a response result limit. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 OK * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
400 One of the request parameters is invalid. See the returned message for details. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
401 Authentication headers are missing or invalid. Make sure you authenticate your request with a valid API key. - 403 The requested resource is forbidden, for example because the subscription does not cover the requested data. - 404 The requested resource was not found, for example because the requested feed does not exist. - 429 Too many requests. You hit the rate limit. Use the X-RateLimit-... response headers to make sure you're under the rate limit. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
500 Internal server error. We recommend retrying these later. If the issue persists, please contact us on [Slack](https://alpaca.markets/slack) or on the [Community Forum](https://forum.alpaca.markets/). -
-
stockV3Bars
public StockV3BarsResp stockV3Bars(@Nonnull StockV3HistoricalFeed feed, @Nonnull String symbols, @Nonnull String timeframe, @Nonnull StockV3BarsStartParameter start, @Nullable StockV3BarsStartParameter end, @Nullable Sort sort, @Nullable Integer pageSize, @Nullable String pageToken) throws ApiException Historical bars The historical bars API provides aggregates for a list of symbols between the specified times. Bars are not adjusted after splits or dividends. Symbol mapping is also not supported: in case of a name change the symbol active at the time must be used. Bars may include prints that were later corrected or cancelled. Corrections and cancel/error events are not applied. Daily, weekly and monthly bars start at midnight in the market's time zone. Weekly bars start on the market's first trading day of the week. The bars of each symbol are sorted by timestamp. The order of symbols is not guaranteed. Continue with `next_page_token`.- Parameters:
feed- The source feed of the data. All feeds require a subscription. - `euroctp`: EuroCTP, the official EU consolidated tape, covering trades from all EU trading venues - `xetr`: Xetra, the electronic trading venue of the Frankfurt Stock Exchange (Deutsche Börse) - `xhkg`: Hong Kong Stock Exchange (HKEX) - `xlon`: London Stock Exchange (LSE) - `xsau`: Saudi Exchange (Tadawul) (required)symbols- A comma-separated list of symbols with a limit of 1000. Each symbol must be in `TICKER:MIC` format, where MIC is the ISO 10383 defined code of the symbol's primary market. The market must be one the feed covers, e.g. `XETR` on `xetr`; `euroctp` accepts any market. (required)timeframe- The timeframe represented by each bar in aggregation. You can use any of the following values: - `[1-59]Min` or `[1-59]T`, e.g. `5Min` or `5T` creates 5-minute aggregations - `[1-23]Hour` or `[1-23]H`, e.g. `12Hour` or `12H` creates 12-hour aggregations - `1Day` or `1D` creates 1-day aggregations - `1Week` or `1W` creates 1-week aggregations - `[1,2,3,4,6,12]Month` or `[1,2,3,4,6,12]M`, e.g. `3Month` or `3M` creates 3-month aggregations (required)start- The inclusive start of the interval. Format: RFC-3339 or YYYY-MM-DD. A date means the start of that day in the market's time zone. (required)end- The inclusive end of the interval. A data point is returned when `start <= t <= end`. Format: RFC-3339 or YYYY-MM-DD. A date means the end of that day in the market's time zone. Defaults to the current time if not specified. (optional)sort- Sort the data points of each symbol by timestamp in ascending or descending order. (optional)pageSize- The maximum number of data points to return in the response page. The page_size applies to the total number of data points across all symbols, not per symbol. The API may return fewer, even if more data points exist in the requested interval. Always check `next_page_token` for more pages. (optional, default to 1000)pageToken- The pagination token from which to continue. The value to pass here is returned in specific requests when more data is available, usually because of a response result limit. (optional)- Returns:
- StockV3BarsResp
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 OK * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
400 One of the request parameters is invalid. See the returned message for details. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
401 Authentication headers are missing or invalid. Make sure you authenticate your request with a valid API key. - 403 The requested resource is forbidden, for example because the subscription does not cover the requested data. - 404 The requested resource was not found, for example because the requested feed does not exist. - 429 Too many requests. You hit the rate limit. Use the X-RateLimit-... response headers to make sure you're under the rate limit. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
500 Internal server error. We recommend retrying these later. If the issue persists, please contact us on [Slack](https://alpaca.markets/slack) or on the [Community Forum](https://forum.alpaca.markets/). -
-
stockV3BarsWithHttpInfo
public ApiResponse<StockV3BarsResp> stockV3BarsWithHttpInfo(@Nonnull StockV3HistoricalFeed feed, @Nonnull String symbols, @Nonnull String timeframe, @Nonnull StockV3BarsStartParameter start, @Nullable StockV3BarsStartParameter end, @Nullable Sort sort, @Nullable Integer pageSize, @Nullable String pageToken) throws ApiException Historical bars The historical bars API provides aggregates for a list of symbols between the specified times. Bars are not adjusted after splits or dividends. Symbol mapping is also not supported: in case of a name change the symbol active at the time must be used. Bars may include prints that were later corrected or cancelled. Corrections and cancel/error events are not applied. Daily, weekly and monthly bars start at midnight in the market's time zone. Weekly bars start on the market's first trading day of the week. The bars of each symbol are sorted by timestamp. The order of symbols is not guaranteed. Continue with `next_page_token`.- Parameters:
feed- The source feed of the data. All feeds require a subscription. - `euroctp`: EuroCTP, the official EU consolidated tape, covering trades from all EU trading venues - `xetr`: Xetra, the electronic trading venue of the Frankfurt Stock Exchange (Deutsche Börse) - `xhkg`: Hong Kong Stock Exchange (HKEX) - `xlon`: London Stock Exchange (LSE) - `xsau`: Saudi Exchange (Tadawul) (required)symbols- A comma-separated list of symbols with a limit of 1000. Each symbol must be in `TICKER:MIC` format, where MIC is the ISO 10383 defined code of the symbol's primary market. The market must be one the feed covers, e.g. `XETR` on `xetr`; `euroctp` accepts any market. (required)timeframe- The timeframe represented by each bar in aggregation. You can use any of the following values: - `[1-59]Min` or `[1-59]T`, e.g. `5Min` or `5T` creates 5-minute aggregations - `[1-23]Hour` or `[1-23]H`, e.g. `12Hour` or `12H` creates 12-hour aggregations - `1Day` or `1D` creates 1-day aggregations - `1Week` or `1W` creates 1-week aggregations - `[1,2,3,4,6,12]Month` or `[1,2,3,4,6,12]M`, e.g. `3Month` or `3M` creates 3-month aggregations (required)start- The inclusive start of the interval. Format: RFC-3339 or YYYY-MM-DD. A date means the start of that day in the market's time zone. (required)end- The inclusive end of the interval. A data point is returned when `start <= t <= end`. Format: RFC-3339 or YYYY-MM-DD. A date means the end of that day in the market's time zone. Defaults to the current time if not specified. (optional)sort- Sort the data points of each symbol by timestamp in ascending or descending order. (optional)pageSize- The maximum number of data points to return in the response page. The page_size applies to the total number of data points across all symbols, not per symbol. The API may return fewer, even if more data points exist in the requested interval. Always check `next_page_token` for more pages. (optional, default to 1000)pageToken- The pagination token from which to continue. The value to pass here is returned in specific requests when more data is available, usually because of a response result limit. (optional)- Returns:
- ApiResponse<StockV3BarsResp>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 OK * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
400 One of the request parameters is invalid. See the returned message for details. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
401 Authentication headers are missing or invalid. Make sure you authenticate your request with a valid API key. - 403 The requested resource is forbidden, for example because the subscription does not cover the requested data. - 404 The requested resource was not found, for example because the requested feed does not exist. - 429 Too many requests. You hit the rate limit. Use the X-RateLimit-... response headers to make sure you're under the rate limit. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
500 Internal server error. We recommend retrying these later. If the issue persists, please contact us on [Slack](https://alpaca.markets/slack) or on the [Community Forum](https://forum.alpaca.markets/). -
-
stockV3BarsAsync
public okhttp3.Call stockV3BarsAsync(@Nonnull StockV3HistoricalFeed feed, @Nonnull String symbols, @Nonnull String timeframe, @Nonnull StockV3BarsStartParameter start, @Nullable StockV3BarsStartParameter end, @Nullable Sort sort, @Nullable Integer pageSize, @Nullable String pageToken, ApiCallback<StockV3BarsResp> _callback) throws ApiException Historical bars (asynchronously) The historical bars API provides aggregates for a list of symbols between the specified times. Bars are not adjusted after splits or dividends. Symbol mapping is also not supported: in case of a name change the symbol active at the time must be used. Bars may include prints that were later corrected or cancelled. Corrections and cancel/error events are not applied. Daily, weekly and monthly bars start at midnight in the market's time zone. Weekly bars start on the market's first trading day of the week. The bars of each symbol are sorted by timestamp. The order of symbols is not guaranteed. Continue with `next_page_token`.- Parameters:
feed- The source feed of the data. All feeds require a subscription. - `euroctp`: EuroCTP, the official EU consolidated tape, covering trades from all EU trading venues - `xetr`: Xetra, the electronic trading venue of the Frankfurt Stock Exchange (Deutsche Börse) - `xhkg`: Hong Kong Stock Exchange (HKEX) - `xlon`: London Stock Exchange (LSE) - `xsau`: Saudi Exchange (Tadawul) (required)symbols- A comma-separated list of symbols with a limit of 1000. Each symbol must be in `TICKER:MIC` format, where MIC is the ISO 10383 defined code of the symbol's primary market. The market must be one the feed covers, e.g. `XETR` on `xetr`; `euroctp` accepts any market. (required)timeframe- The timeframe represented by each bar in aggregation. You can use any of the following values: - `[1-59]Min` or `[1-59]T`, e.g. `5Min` or `5T` creates 5-minute aggregations - `[1-23]Hour` or `[1-23]H`, e.g. `12Hour` or `12H` creates 12-hour aggregations - `1Day` or `1D` creates 1-day aggregations - `1Week` or `1W` creates 1-week aggregations - `[1,2,3,4,6,12]Month` or `[1,2,3,4,6,12]M`, e.g. `3Month` or `3M` creates 3-month aggregations (required)start- The inclusive start of the interval. Format: RFC-3339 or YYYY-MM-DD. A date means the start of that day in the market's time zone. (required)end- The inclusive end of the interval. A data point is returned when `start <= t <= end`. Format: RFC-3339 or YYYY-MM-DD. A date means the end of that day in the market's time zone. Defaults to the current time if not specified. (optional)sort- Sort the data points of each symbol by timestamp in ascending or descending order. (optional)pageSize- The maximum number of data points to return in the response page. The page_size applies to the total number of data points across all symbols, not per symbol. The API may return fewer, even if more data points exist in the requested interval. Always check `next_page_token` for more pages. (optional, default to 1000)pageToken- The pagination token from which to continue. The value to pass here is returned in specific requests when more data is available, usually because of a response result limit. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 OK * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
400 One of the request parameters is invalid. See the returned message for details. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
401 Authentication headers are missing or invalid. Make sure you authenticate your request with a valid API key. - 403 The requested resource is forbidden, for example because the subscription does not cover the requested data. - 404 The requested resource was not found, for example because the requested feed does not exist. - 429 Too many requests. You hit the rate limit. Use the X-RateLimit-... response headers to make sure you're under the rate limit. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
500 Internal server error. We recommend retrying these later. If the issue persists, please contact us on [Slack](https://alpaca.markets/slack) or on the [Community Forum](https://forum.alpaca.markets/). -
-
stockV3LatestBarsCall
public okhttp3.Call stockV3LatestBarsCall(@Nonnull StockV3LatestFeed feed, @Nonnull String symbols, ApiCallback _callback) throws ApiException Build call for stockV3LatestBars- Parameters:
feed- The source feed of the data. All feeds require a subscription. - `euroctp`: EuroCTP, the official EU consolidated tape, covering trades from all EU trading venues - `xetr`: Xetra, the electronic trading venue of the Frankfurt Stock Exchange (Deutsche Börse) - `xhkg`: Hong Kong Stock Exchange (HKEX) - `xlon`: London Stock Exchange (LSE) - `xsau`: Saudi Exchange (Tadawul) (required)symbols- A comma-separated list of symbols with a limit of 1000. Each symbol must be in `TICKER:MIC` format, where MIC is the ISO 10383 defined code of the symbol's primary market. The market must be one the feed covers, e.g. `XETR` on `xetr`; `euroctp` accepts any market. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 OK * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
400 One of the request parameters is invalid. See the returned message for details. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
401 Authentication headers are missing or invalid. Make sure you authenticate your request with a valid API key. - 403 The requested resource is forbidden, for example because the subscription does not cover the requested data. - 404 The requested resource was not found, for example because the requested feed does not exist. - 429 Too many requests. You hit the rate limit. Use the X-RateLimit-... response headers to make sure you're under the rate limit. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
500 Internal server error. We recommend retrying these later. If the issue persists, please contact us on [Slack](https://alpaca.markets/slack) or on the [Community Forum](https://forum.alpaca.markets/). -
-
stockV3LatestBars
public StockV3LatestBarsResp stockV3LatestBars(@Nonnull StockV3LatestFeed feed, @Nonnull String symbols) throws ApiException Latest bars The latest bars endpoint provides the latest minute bar for the given symbols. Bars are not adjusted after splits or dividends. Symbol mapping is also not supported: in case of a name change the symbol active at the time must be used. Latest bars may include prints that were later corrected or cancelled. Corrections and cancel/error events are not applied.- Parameters:
feed- The source feed of the data. All feeds require a subscription. - `euroctp`: EuroCTP, the official EU consolidated tape, covering trades from all EU trading venues - `xetr`: Xetra, the electronic trading venue of the Frankfurt Stock Exchange (Deutsche Börse) - `xhkg`: Hong Kong Stock Exchange (HKEX) - `xlon`: London Stock Exchange (LSE) - `xsau`: Saudi Exchange (Tadawul) (required)symbols- A comma-separated list of symbols with a limit of 1000. Each symbol must be in `TICKER:MIC` format, where MIC is the ISO 10383 defined code of the symbol's primary market. The market must be one the feed covers, e.g. `XETR` on `xetr`; `euroctp` accepts any market. (required)- Returns:
- StockV3LatestBarsResp
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 OK * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
400 One of the request parameters is invalid. See the returned message for details. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
401 Authentication headers are missing or invalid. Make sure you authenticate your request with a valid API key. - 403 The requested resource is forbidden, for example because the subscription does not cover the requested data. - 404 The requested resource was not found, for example because the requested feed does not exist. - 429 Too many requests. You hit the rate limit. Use the X-RateLimit-... response headers to make sure you're under the rate limit. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
500 Internal server error. We recommend retrying these later. If the issue persists, please contact us on [Slack](https://alpaca.markets/slack) or on the [Community Forum](https://forum.alpaca.markets/). -
-
stockV3LatestBarsWithHttpInfo
public ApiResponse<StockV3LatestBarsResp> stockV3LatestBarsWithHttpInfo(@Nonnull StockV3LatestFeed feed, @Nonnull String symbols) throws ApiException Latest bars The latest bars endpoint provides the latest minute bar for the given symbols. Bars are not adjusted after splits or dividends. Symbol mapping is also not supported: in case of a name change the symbol active at the time must be used. Latest bars may include prints that were later corrected or cancelled. Corrections and cancel/error events are not applied.- Parameters:
feed- The source feed of the data. All feeds require a subscription. - `euroctp`: EuroCTP, the official EU consolidated tape, covering trades from all EU trading venues - `xetr`: Xetra, the electronic trading venue of the Frankfurt Stock Exchange (Deutsche Börse) - `xhkg`: Hong Kong Stock Exchange (HKEX) - `xlon`: London Stock Exchange (LSE) - `xsau`: Saudi Exchange (Tadawul) (required)symbols- A comma-separated list of symbols with a limit of 1000. Each symbol must be in `TICKER:MIC` format, where MIC is the ISO 10383 defined code of the symbol's primary market. The market must be one the feed covers, e.g. `XETR` on `xetr`; `euroctp` accepts any market. (required)- Returns:
- ApiResponse<StockV3LatestBarsResp>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 OK * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
400 One of the request parameters is invalid. See the returned message for details. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
401 Authentication headers are missing or invalid. Make sure you authenticate your request with a valid API key. - 403 The requested resource is forbidden, for example because the subscription does not cover the requested data. - 404 The requested resource was not found, for example because the requested feed does not exist. - 429 Too many requests. You hit the rate limit. Use the X-RateLimit-... response headers to make sure you're under the rate limit. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
500 Internal server error. We recommend retrying these later. If the issue persists, please contact us on [Slack](https://alpaca.markets/slack) or on the [Community Forum](https://forum.alpaca.markets/). -
-
stockV3LatestBarsAsync
public okhttp3.Call stockV3LatestBarsAsync(@Nonnull StockV3LatestFeed feed, @Nonnull String symbols, ApiCallback<StockV3LatestBarsResp> _callback) throws ApiException Latest bars (asynchronously) The latest bars endpoint provides the latest minute bar for the given symbols. Bars are not adjusted after splits or dividends. Symbol mapping is also not supported: in case of a name change the symbol active at the time must be used. Latest bars may include prints that were later corrected or cancelled. Corrections and cancel/error events are not applied.- Parameters:
feed- The source feed of the data. All feeds require a subscription. - `euroctp`: EuroCTP, the official EU consolidated tape, covering trades from all EU trading venues - `xetr`: Xetra, the electronic trading venue of the Frankfurt Stock Exchange (Deutsche Börse) - `xhkg`: Hong Kong Stock Exchange (HKEX) - `xlon`: London Stock Exchange (LSE) - `xsau`: Saudi Exchange (Tadawul) (required)symbols- A comma-separated list of symbols with a limit of 1000. Each symbol must be in `TICKER:MIC` format, where MIC is the ISO 10383 defined code of the symbol's primary market. The market must be one the feed covers, e.g. `XETR` on `xetr`; `euroctp` accepts any market. (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 OK * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
400 One of the request parameters is invalid. See the returned message for details. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
401 Authentication headers are missing or invalid. Make sure you authenticate your request with a valid API key. - 403 The requested resource is forbidden, for example because the subscription does not cover the requested data. - 404 The requested resource was not found, for example because the requested feed does not exist. - 429 Too many requests. You hit the rate limit. Use the X-RateLimit-... response headers to make sure you're under the rate limit. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
500 Internal server error. We recommend retrying these later. If the issue persists, please contact us on [Slack](https://alpaca.markets/slack) or on the [Community Forum](https://forum.alpaca.markets/). -
-
stockV3LatestQuotesCall
public okhttp3.Call stockV3LatestQuotesCall(@Nonnull StockV3LatestFeed feed, @Nonnull String symbols, ApiCallback _callback) throws ApiException Build call for stockV3LatestQuotes- Parameters:
feed- The source feed of the data. All feeds require a subscription. - `euroctp`: EuroCTP, the official EU consolidated tape, covering trades from all EU trading venues - `xetr`: Xetra, the electronic trading venue of the Frankfurt Stock Exchange (Deutsche Börse) - `xhkg`: Hong Kong Stock Exchange (HKEX) - `xlon`: London Stock Exchange (LSE) - `xsau`: Saudi Exchange (Tadawul) (required)symbols- A comma-separated list of symbols with a limit of 1000. Each symbol must be in `TICKER:MIC` format, where MIC is the ISO 10383 defined code of the symbol's primary market. The market must be one the feed covers, e.g. `XETR` on `xetr`; `euroctp` accepts any market. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 OK * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
400 One of the request parameters is invalid. See the returned message for details. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
401 Authentication headers are missing or invalid. Make sure you authenticate your request with a valid API key. - 403 The requested resource is forbidden, for example because the subscription does not cover the requested data. - 404 The requested resource was not found, for example because the requested feed does not exist. - 429 Too many requests. You hit the rate limit. Use the X-RateLimit-... response headers to make sure you're under the rate limit. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
500 Internal server error. We recommend retrying these later. If the issue persists, please contact us on [Slack](https://alpaca.markets/slack) or on the [Community Forum](https://forum.alpaca.markets/). -
-
stockV3LatestQuotes
public StockV3LatestQuotesResp stockV3LatestQuotes(@Nonnull StockV3LatestFeed feed, @Nonnull String symbols) throws ApiException Latest quotes The latest quotes endpoint provides the latest best bid and ask prices for the given symbols.- Parameters:
feed- The source feed of the data. All feeds require a subscription. - `euroctp`: EuroCTP, the official EU consolidated tape, covering trades from all EU trading venues - `xetr`: Xetra, the electronic trading venue of the Frankfurt Stock Exchange (Deutsche Börse) - `xhkg`: Hong Kong Stock Exchange (HKEX) - `xlon`: London Stock Exchange (LSE) - `xsau`: Saudi Exchange (Tadawul) (required)symbols- A comma-separated list of symbols with a limit of 1000. Each symbol must be in `TICKER:MIC` format, where MIC is the ISO 10383 defined code of the symbol's primary market. The market must be one the feed covers, e.g. `XETR` on `xetr`; `euroctp` accepts any market. (required)- Returns:
- StockV3LatestQuotesResp
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 OK * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
400 One of the request parameters is invalid. See the returned message for details. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
401 Authentication headers are missing or invalid. Make sure you authenticate your request with a valid API key. - 403 The requested resource is forbidden, for example because the subscription does not cover the requested data. - 404 The requested resource was not found, for example because the requested feed does not exist. - 429 Too many requests. You hit the rate limit. Use the X-RateLimit-... response headers to make sure you're under the rate limit. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
500 Internal server error. We recommend retrying these later. If the issue persists, please contact us on [Slack](https://alpaca.markets/slack) or on the [Community Forum](https://forum.alpaca.markets/). -
-
stockV3LatestQuotesWithHttpInfo
public ApiResponse<StockV3LatestQuotesResp> stockV3LatestQuotesWithHttpInfo(@Nonnull StockV3LatestFeed feed, @Nonnull String symbols) throws ApiException Latest quotes The latest quotes endpoint provides the latest best bid and ask prices for the given symbols.- Parameters:
feed- The source feed of the data. All feeds require a subscription. - `euroctp`: EuroCTP, the official EU consolidated tape, covering trades from all EU trading venues - `xetr`: Xetra, the electronic trading venue of the Frankfurt Stock Exchange (Deutsche Börse) - `xhkg`: Hong Kong Stock Exchange (HKEX) - `xlon`: London Stock Exchange (LSE) - `xsau`: Saudi Exchange (Tadawul) (required)symbols- A comma-separated list of symbols with a limit of 1000. Each symbol must be in `TICKER:MIC` format, where MIC is the ISO 10383 defined code of the symbol's primary market. The market must be one the feed covers, e.g. `XETR` on `xetr`; `euroctp` accepts any market. (required)- Returns:
- ApiResponse<StockV3LatestQuotesResp>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 OK * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
400 One of the request parameters is invalid. See the returned message for details. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
401 Authentication headers are missing or invalid. Make sure you authenticate your request with a valid API key. - 403 The requested resource is forbidden, for example because the subscription does not cover the requested data. - 404 The requested resource was not found, for example because the requested feed does not exist. - 429 Too many requests. You hit the rate limit. Use the X-RateLimit-... response headers to make sure you're under the rate limit. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
500 Internal server error. We recommend retrying these later. If the issue persists, please contact us on [Slack](https://alpaca.markets/slack) or on the [Community Forum](https://forum.alpaca.markets/). -
-
stockV3LatestQuotesAsync
public okhttp3.Call stockV3LatestQuotesAsync(@Nonnull StockV3LatestFeed feed, @Nonnull String symbols, ApiCallback<StockV3LatestQuotesResp> _callback) throws ApiException Latest quotes (asynchronously) The latest quotes endpoint provides the latest best bid and ask prices for the given symbols.- Parameters:
feed- The source feed of the data. All feeds require a subscription. - `euroctp`: EuroCTP, the official EU consolidated tape, covering trades from all EU trading venues - `xetr`: Xetra, the electronic trading venue of the Frankfurt Stock Exchange (Deutsche Börse) - `xhkg`: Hong Kong Stock Exchange (HKEX) - `xlon`: London Stock Exchange (LSE) - `xsau`: Saudi Exchange (Tadawul) (required)symbols- A comma-separated list of symbols with a limit of 1000. Each symbol must be in `TICKER:MIC` format, where MIC is the ISO 10383 defined code of the symbol's primary market. The market must be one the feed covers, e.g. `XETR` on `xetr`; `euroctp` accepts any market. (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 OK * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
400 One of the request parameters is invalid. See the returned message for details. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
401 Authentication headers are missing or invalid. Make sure you authenticate your request with a valid API key. - 403 The requested resource is forbidden, for example because the subscription does not cover the requested data. - 404 The requested resource was not found, for example because the requested feed does not exist. - 429 Too many requests. You hit the rate limit. Use the X-RateLimit-... response headers to make sure you're under the rate limit. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
500 Internal server error. We recommend retrying these later. If the issue persists, please contact us on [Slack](https://alpaca.markets/slack) or on the [Community Forum](https://forum.alpaca.markets/). -
-
stockV3LatestTradesCall
public okhttp3.Call stockV3LatestTradesCall(@Nonnull StockV3LatestFeed feed, @Nonnull String symbols, ApiCallback _callback) throws ApiException Build call for stockV3LatestTrades- Parameters:
feed- The source feed of the data. All feeds require a subscription. - `euroctp`: EuroCTP, the official EU consolidated tape, covering trades from all EU trading venues - `xetr`: Xetra, the electronic trading venue of the Frankfurt Stock Exchange (Deutsche Börse) - `xhkg`: Hong Kong Stock Exchange (HKEX) - `xlon`: London Stock Exchange (LSE) - `xsau`: Saudi Exchange (Tadawul) (required)symbols- A comma-separated list of symbols with a limit of 1000. Each symbol must be in `TICKER:MIC` format, where MIC is the ISO 10383 defined code of the symbol's primary market. The market must be one the feed covers, e.g. `XETR` on `xetr`; `euroctp` accepts any market. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 OK * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
400 One of the request parameters is invalid. See the returned message for details. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
401 Authentication headers are missing or invalid. Make sure you authenticate your request with a valid API key. - 403 The requested resource is forbidden, for example because the subscription does not cover the requested data. - 404 The requested resource was not found, for example because the requested feed does not exist. - 429 Too many requests. You hit the rate limit. Use the X-RateLimit-... response headers to make sure you're under the rate limit. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
500 Internal server error. We recommend retrying these later. If the issue persists, please contact us on [Slack](https://alpaca.markets/slack) or on the [Community Forum](https://forum.alpaca.markets/). -
-
stockV3LatestTrades
public StockV3LatestTradesResp stockV3LatestTrades(@Nonnull StockV3LatestFeed feed, @Nonnull String symbols) throws ApiException Latest trades The latest trades endpoint provides the latest trade for the given symbols.- Parameters:
feed- The source feed of the data. All feeds require a subscription. - `euroctp`: EuroCTP, the official EU consolidated tape, covering trades from all EU trading venues - `xetr`: Xetra, the electronic trading venue of the Frankfurt Stock Exchange (Deutsche Börse) - `xhkg`: Hong Kong Stock Exchange (HKEX) - `xlon`: London Stock Exchange (LSE) - `xsau`: Saudi Exchange (Tadawul) (required)symbols- A comma-separated list of symbols with a limit of 1000. Each symbol must be in `TICKER:MIC` format, where MIC is the ISO 10383 defined code of the symbol's primary market. The market must be one the feed covers, e.g. `XETR` on `xetr`; `euroctp` accepts any market. (required)- Returns:
- StockV3LatestTradesResp
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 OK * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
400 One of the request parameters is invalid. See the returned message for details. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
401 Authentication headers are missing or invalid. Make sure you authenticate your request with a valid API key. - 403 The requested resource is forbidden, for example because the subscription does not cover the requested data. - 404 The requested resource was not found, for example because the requested feed does not exist. - 429 Too many requests. You hit the rate limit. Use the X-RateLimit-... response headers to make sure you're under the rate limit. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
500 Internal server error. We recommend retrying these later. If the issue persists, please contact us on [Slack](https://alpaca.markets/slack) or on the [Community Forum](https://forum.alpaca.markets/). -
-
stockV3LatestTradesWithHttpInfo
public ApiResponse<StockV3LatestTradesResp> stockV3LatestTradesWithHttpInfo(@Nonnull StockV3LatestFeed feed, @Nonnull String symbols) throws ApiException Latest trades The latest trades endpoint provides the latest trade for the given symbols.- Parameters:
feed- The source feed of the data. All feeds require a subscription. - `euroctp`: EuroCTP, the official EU consolidated tape, covering trades from all EU trading venues - `xetr`: Xetra, the electronic trading venue of the Frankfurt Stock Exchange (Deutsche Börse) - `xhkg`: Hong Kong Stock Exchange (HKEX) - `xlon`: London Stock Exchange (LSE) - `xsau`: Saudi Exchange (Tadawul) (required)symbols- A comma-separated list of symbols with a limit of 1000. Each symbol must be in `TICKER:MIC` format, where MIC is the ISO 10383 defined code of the symbol's primary market. The market must be one the feed covers, e.g. `XETR` on `xetr`; `euroctp` accepts any market. (required)- Returns:
- ApiResponse<StockV3LatestTradesResp>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 OK * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
400 One of the request parameters is invalid. See the returned message for details. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
401 Authentication headers are missing or invalid. Make sure you authenticate your request with a valid API key. - 403 The requested resource is forbidden, for example because the subscription does not cover the requested data. - 404 The requested resource was not found, for example because the requested feed does not exist. - 429 Too many requests. You hit the rate limit. Use the X-RateLimit-... response headers to make sure you're under the rate limit. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
500 Internal server error. We recommend retrying these later. If the issue persists, please contact us on [Slack](https://alpaca.markets/slack) or on the [Community Forum](https://forum.alpaca.markets/). -
-
stockV3LatestTradesAsync
public okhttp3.Call stockV3LatestTradesAsync(@Nonnull StockV3LatestFeed feed, @Nonnull String symbols, ApiCallback<StockV3LatestTradesResp> _callback) throws ApiException Latest trades (asynchronously) The latest trades endpoint provides the latest trade for the given symbols.- Parameters:
feed- The source feed of the data. All feeds require a subscription. - `euroctp`: EuroCTP, the official EU consolidated tape, covering trades from all EU trading venues - `xetr`: Xetra, the electronic trading venue of the Frankfurt Stock Exchange (Deutsche Börse) - `xhkg`: Hong Kong Stock Exchange (HKEX) - `xlon`: London Stock Exchange (LSE) - `xsau`: Saudi Exchange (Tadawul) (required)symbols- A comma-separated list of symbols with a limit of 1000. Each symbol must be in `TICKER:MIC` format, where MIC is the ISO 10383 defined code of the symbol's primary market. The market must be one the feed covers, e.g. `XETR` on `xetr`; `euroctp` accepts any market. (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 OK * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
400 One of the request parameters is invalid. See the returned message for details. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
401 Authentication headers are missing or invalid. Make sure you authenticate your request with a valid API key. - 403 The requested resource is forbidden, for example because the subscription does not cover the requested data. - 404 The requested resource was not found, for example because the requested feed does not exist. - 429 Too many requests. You hit the rate limit. Use the X-RateLimit-... response headers to make sure you're under the rate limit. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
500 Internal server error. We recommend retrying these later. If the issue persists, please contact us on [Slack](https://alpaca.markets/slack) or on the [Community Forum](https://forum.alpaca.markets/). -
-
stockV3QuotesCall
public okhttp3.Call stockV3QuotesCall(@Nonnull StockV3HistoricalFeed feed, @Nonnull String symbols, @Nonnull StockV3BarsStartParameter start, @Nullable StockV3BarsStartParameter end, @Nullable Sort sort, @Nullable Integer pageSize, @Nullable String pageToken, ApiCallback _callback) throws ApiException Build call for stockV3Quotes- Parameters:
feed- The source feed of the data. All feeds require a subscription. - `euroctp`: EuroCTP, the official EU consolidated tape, covering trades from all EU trading venues - `xetr`: Xetra, the electronic trading venue of the Frankfurt Stock Exchange (Deutsche Börse) - `xhkg`: Hong Kong Stock Exchange (HKEX) - `xlon`: London Stock Exchange (LSE) - `xsau`: Saudi Exchange (Tadawul) (required)symbols- A comma-separated list of symbols with a limit of 1000. Each symbol must be in `TICKER:MIC` format, where MIC is the ISO 10383 defined code of the symbol's primary market. The market must be one the feed covers, e.g. `XETR` on `xetr`; `euroctp` accepts any market. (required)start- The inclusive start of the interval. Format: RFC-3339 or YYYY-MM-DD. A date means the start of that day in the market's time zone. (required)end- The inclusive end of the interval. A data point is returned when `start <= t <= end`. Format: RFC-3339 or YYYY-MM-DD. A date means the end of that day in the market's time zone. Defaults to the current time if not specified. (optional)sort- Sort the data points of each symbol by timestamp in ascending or descending order. (optional)pageSize- The maximum number of data points to return in the response page. The page_size applies to the total number of data points across all symbols, not per symbol. The API may return fewer, even if more data points exist in the requested interval. Always check `next_page_token` for more pages. (optional, default to 1000)pageToken- The pagination token from which to continue. The value to pass here is returned in specific requests when more data is available, usually because of a response result limit. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 OK * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
400 One of the request parameters is invalid. See the returned message for details. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
401 Authentication headers are missing or invalid. Make sure you authenticate your request with a valid API key. - 403 The requested resource is forbidden, for example because the subscription does not cover the requested data. - 404 The requested resource was not found, for example because the requested feed does not exist. - 429 Too many requests. You hit the rate limit. Use the X-RateLimit-... response headers to make sure you're under the rate limit. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
500 Internal server error. We recommend retrying these later. If the issue persists, please contact us on [Slack](https://alpaca.markets/slack) or on the [Community Forum](https://forum.alpaca.markets/). -
-
stockV3Quotes
public StockV3QuotesResp stockV3Quotes(@Nonnull StockV3HistoricalFeed feed, @Nonnull String symbols, @Nonnull StockV3BarsStartParameter start, @Nullable StockV3BarsStartParameter end, @Nullable Sort sort, @Nullable Integer pageSize, @Nullable String pageToken) throws ApiException Historical quotes The historical quotes API provides quote data for a list of symbols between the specified times. The quotes of each symbol are sorted by timestamp. The order of symbols is not guaranteed. Continue with `next_page_token`.- Parameters:
feed- The source feed of the data. All feeds require a subscription. - `euroctp`: EuroCTP, the official EU consolidated tape, covering trades from all EU trading venues - `xetr`: Xetra, the electronic trading venue of the Frankfurt Stock Exchange (Deutsche Börse) - `xhkg`: Hong Kong Stock Exchange (HKEX) - `xlon`: London Stock Exchange (LSE) - `xsau`: Saudi Exchange (Tadawul) (required)symbols- A comma-separated list of symbols with a limit of 1000. Each symbol must be in `TICKER:MIC` format, where MIC is the ISO 10383 defined code of the symbol's primary market. The market must be one the feed covers, e.g. `XETR` on `xetr`; `euroctp` accepts any market. (required)start- The inclusive start of the interval. Format: RFC-3339 or YYYY-MM-DD. A date means the start of that day in the market's time zone. (required)end- The inclusive end of the interval. A data point is returned when `start <= t <= end`. Format: RFC-3339 or YYYY-MM-DD. A date means the end of that day in the market's time zone. Defaults to the current time if not specified. (optional)sort- Sort the data points of each symbol by timestamp in ascending or descending order. (optional)pageSize- The maximum number of data points to return in the response page. The page_size applies to the total number of data points across all symbols, not per symbol. The API may return fewer, even if more data points exist in the requested interval. Always check `next_page_token` for more pages. (optional, default to 1000)pageToken- The pagination token from which to continue. The value to pass here is returned in specific requests when more data is available, usually because of a response result limit. (optional)- Returns:
- StockV3QuotesResp
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 OK * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
400 One of the request parameters is invalid. See the returned message for details. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
401 Authentication headers are missing or invalid. Make sure you authenticate your request with a valid API key. - 403 The requested resource is forbidden, for example because the subscription does not cover the requested data. - 404 The requested resource was not found, for example because the requested feed does not exist. - 429 Too many requests. You hit the rate limit. Use the X-RateLimit-... response headers to make sure you're under the rate limit. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
500 Internal server error. We recommend retrying these later. If the issue persists, please contact us on [Slack](https://alpaca.markets/slack) or on the [Community Forum](https://forum.alpaca.markets/). -
-
stockV3QuotesWithHttpInfo
public ApiResponse<StockV3QuotesResp> stockV3QuotesWithHttpInfo(@Nonnull StockV3HistoricalFeed feed, @Nonnull String symbols, @Nonnull StockV3BarsStartParameter start, @Nullable StockV3BarsStartParameter end, @Nullable Sort sort, @Nullable Integer pageSize, @Nullable String pageToken) throws ApiException Historical quotes The historical quotes API provides quote data for a list of symbols between the specified times. The quotes of each symbol are sorted by timestamp. The order of symbols is not guaranteed. Continue with `next_page_token`.- Parameters:
feed- The source feed of the data. All feeds require a subscription. - `euroctp`: EuroCTP, the official EU consolidated tape, covering trades from all EU trading venues - `xetr`: Xetra, the electronic trading venue of the Frankfurt Stock Exchange (Deutsche Börse) - `xhkg`: Hong Kong Stock Exchange (HKEX) - `xlon`: London Stock Exchange (LSE) - `xsau`: Saudi Exchange (Tadawul) (required)symbols- A comma-separated list of symbols with a limit of 1000. Each symbol must be in `TICKER:MIC` format, where MIC is the ISO 10383 defined code of the symbol's primary market. The market must be one the feed covers, e.g. `XETR` on `xetr`; `euroctp` accepts any market. (required)start- The inclusive start of the interval. Format: RFC-3339 or YYYY-MM-DD. A date means the start of that day in the market's time zone. (required)end- The inclusive end of the interval. A data point is returned when `start <= t <= end`. Format: RFC-3339 or YYYY-MM-DD. A date means the end of that day in the market's time zone. Defaults to the current time if not specified. (optional)sort- Sort the data points of each symbol by timestamp in ascending or descending order. (optional)pageSize- The maximum number of data points to return in the response page. The page_size applies to the total number of data points across all symbols, not per symbol. The API may return fewer, even if more data points exist in the requested interval. Always check `next_page_token` for more pages. (optional, default to 1000)pageToken- The pagination token from which to continue. The value to pass here is returned in specific requests when more data is available, usually because of a response result limit. (optional)- Returns:
- ApiResponse<StockV3QuotesResp>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 OK * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
400 One of the request parameters is invalid. See the returned message for details. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
401 Authentication headers are missing or invalid. Make sure you authenticate your request with a valid API key. - 403 The requested resource is forbidden, for example because the subscription does not cover the requested data. - 404 The requested resource was not found, for example because the requested feed does not exist. - 429 Too many requests. You hit the rate limit. Use the X-RateLimit-... response headers to make sure you're under the rate limit. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
500 Internal server error. We recommend retrying these later. If the issue persists, please contact us on [Slack](https://alpaca.markets/slack) or on the [Community Forum](https://forum.alpaca.markets/). -
-
stockV3QuotesAsync
public okhttp3.Call stockV3QuotesAsync(@Nonnull StockV3HistoricalFeed feed, @Nonnull String symbols, @Nonnull StockV3BarsStartParameter start, @Nullable StockV3BarsStartParameter end, @Nullable Sort sort, @Nullable Integer pageSize, @Nullable String pageToken, ApiCallback<StockV3QuotesResp> _callback) throws ApiException Historical quotes (asynchronously) The historical quotes API provides quote data for a list of symbols between the specified times. The quotes of each symbol are sorted by timestamp. The order of symbols is not guaranteed. Continue with `next_page_token`.- Parameters:
feed- The source feed of the data. All feeds require a subscription. - `euroctp`: EuroCTP, the official EU consolidated tape, covering trades from all EU trading venues - `xetr`: Xetra, the electronic trading venue of the Frankfurt Stock Exchange (Deutsche Börse) - `xhkg`: Hong Kong Stock Exchange (HKEX) - `xlon`: London Stock Exchange (LSE) - `xsau`: Saudi Exchange (Tadawul) (required)symbols- A comma-separated list of symbols with a limit of 1000. Each symbol must be in `TICKER:MIC` format, where MIC is the ISO 10383 defined code of the symbol's primary market. The market must be one the feed covers, e.g. `XETR` on `xetr`; `euroctp` accepts any market. (required)start- The inclusive start of the interval. Format: RFC-3339 or YYYY-MM-DD. A date means the start of that day in the market's time zone. (required)end- The inclusive end of the interval. A data point is returned when `start <= t <= end`. Format: RFC-3339 or YYYY-MM-DD. A date means the end of that day in the market's time zone. Defaults to the current time if not specified. (optional)sort- Sort the data points of each symbol by timestamp in ascending or descending order. (optional)pageSize- The maximum number of data points to return in the response page. The page_size applies to the total number of data points across all symbols, not per symbol. The API may return fewer, even if more data points exist in the requested interval. Always check `next_page_token` for more pages. (optional, default to 1000)pageToken- The pagination token from which to continue. The value to pass here is returned in specific requests when more data is available, usually because of a response result limit. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 OK * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
400 One of the request parameters is invalid. See the returned message for details. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
401 Authentication headers are missing or invalid. Make sure you authenticate your request with a valid API key. - 403 The requested resource is forbidden, for example because the subscription does not cover the requested data. - 404 The requested resource was not found, for example because the requested feed does not exist. - 429 Too many requests. You hit the rate limit. Use the X-RateLimit-... response headers to make sure you're under the rate limit. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
500 Internal server error. We recommend retrying these later. If the issue persists, please contact us on [Slack](https://alpaca.markets/slack) or on the [Community Forum](https://forum.alpaca.markets/). -
-
stockV3SnapshotsCall
public okhttp3.Call stockV3SnapshotsCall(@Nonnull StockV3LatestFeed feed, @Nonnull String symbols, ApiCallback _callback) throws ApiException Build call for stockV3Snapshots- Parameters:
feed- The source feed of the data. All feeds require a subscription. - `euroctp`: EuroCTP, the official EU consolidated tape, covering trades from all EU trading venues - `xetr`: Xetra, the electronic trading venue of the Frankfurt Stock Exchange (Deutsche Börse) - `xhkg`: Hong Kong Stock Exchange (HKEX) - `xlon`: London Stock Exchange (LSE) - `xsau`: Saudi Exchange (Tadawul) (required)symbols- A comma-separated list of symbols with a limit of 1000. Each symbol must be in `TICKER:MIC` format, where MIC is the ISO 10383 defined code of the symbol's primary market. The market must be one the feed covers, e.g. `XETR` on `xetr`; `euroctp` accepts any market. (required)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 OK * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
400 One of the request parameters is invalid. See the returned message for details. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
401 Authentication headers are missing or invalid. Make sure you authenticate your request with a valid API key. - 403 The requested resource is forbidden, for example because the subscription does not cover the requested data. - 404 The requested resource was not found, for example because the requested feed does not exist. - 429 Too many requests. You hit the rate limit. Use the X-RateLimit-... response headers to make sure you're under the rate limit. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
500 Internal server error. We recommend retrying these later. If the issue persists, please contact us on [Slack](https://alpaca.markets/slack) or on the [Community Forum](https://forum.alpaca.markets/). -
-
stockV3Snapshots
public StockV3SnapshotsResp stockV3Snapshots(@Nonnull StockV3LatestFeed feed, @Nonnull String symbols) throws ApiException Snapshots The snapshot endpoint provides the latest trade, latest quote, minute bar, daily bar, and previous daily bar for each requested symbol. Bars are not adjusted after splits or dividends. Symbol mapping is also not supported: in case of a name change the symbol active at the time must be used. Trades, bars, and snapshots may include prints that were later corrected or cancelled. Corrections and cancel/error events are not applied.- Parameters:
feed- The source feed of the data. All feeds require a subscription. - `euroctp`: EuroCTP, the official EU consolidated tape, covering trades from all EU trading venues - `xetr`: Xetra, the electronic trading venue of the Frankfurt Stock Exchange (Deutsche Börse) - `xhkg`: Hong Kong Stock Exchange (HKEX) - `xlon`: London Stock Exchange (LSE) - `xsau`: Saudi Exchange (Tadawul) (required)symbols- A comma-separated list of symbols with a limit of 1000. Each symbol must be in `TICKER:MIC` format, where MIC is the ISO 10383 defined code of the symbol's primary market. The market must be one the feed covers, e.g. `XETR` on `xetr`; `euroctp` accepts any market. (required)- Returns:
- StockV3SnapshotsResp
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 OK * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
400 One of the request parameters is invalid. See the returned message for details. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
401 Authentication headers are missing or invalid. Make sure you authenticate your request with a valid API key. - 403 The requested resource is forbidden, for example because the subscription does not cover the requested data. - 404 The requested resource was not found, for example because the requested feed does not exist. - 429 Too many requests. You hit the rate limit. Use the X-RateLimit-... response headers to make sure you're under the rate limit. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
500 Internal server error. We recommend retrying these later. If the issue persists, please contact us on [Slack](https://alpaca.markets/slack) or on the [Community Forum](https://forum.alpaca.markets/). -
-
stockV3SnapshotsWithHttpInfo
public ApiResponse<StockV3SnapshotsResp> stockV3SnapshotsWithHttpInfo(@Nonnull StockV3LatestFeed feed, @Nonnull String symbols) throws ApiException Snapshots The snapshot endpoint provides the latest trade, latest quote, minute bar, daily bar, and previous daily bar for each requested symbol. Bars are not adjusted after splits or dividends. Symbol mapping is also not supported: in case of a name change the symbol active at the time must be used. Trades, bars, and snapshots may include prints that were later corrected or cancelled. Corrections and cancel/error events are not applied.- Parameters:
feed- The source feed of the data. All feeds require a subscription. - `euroctp`: EuroCTP, the official EU consolidated tape, covering trades from all EU trading venues - `xetr`: Xetra, the electronic trading venue of the Frankfurt Stock Exchange (Deutsche Börse) - `xhkg`: Hong Kong Stock Exchange (HKEX) - `xlon`: London Stock Exchange (LSE) - `xsau`: Saudi Exchange (Tadawul) (required)symbols- A comma-separated list of symbols with a limit of 1000. Each symbol must be in `TICKER:MIC` format, where MIC is the ISO 10383 defined code of the symbol's primary market. The market must be one the feed covers, e.g. `XETR` on `xetr`; `euroctp` accepts any market. (required)- Returns:
- ApiResponse<StockV3SnapshotsResp>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 OK * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
400 One of the request parameters is invalid. See the returned message for details. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
401 Authentication headers are missing or invalid. Make sure you authenticate your request with a valid API key. - 403 The requested resource is forbidden, for example because the subscription does not cover the requested data. - 404 The requested resource was not found, for example because the requested feed does not exist. - 429 Too many requests. You hit the rate limit. Use the X-RateLimit-... response headers to make sure you're under the rate limit. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
500 Internal server error. We recommend retrying these later. If the issue persists, please contact us on [Slack](https://alpaca.markets/slack) or on the [Community Forum](https://forum.alpaca.markets/). -
-
stockV3SnapshotsAsync
public okhttp3.Call stockV3SnapshotsAsync(@Nonnull StockV3LatestFeed feed, @Nonnull String symbols, ApiCallback<StockV3SnapshotsResp> _callback) throws ApiException Snapshots (asynchronously) The snapshot endpoint provides the latest trade, latest quote, minute bar, daily bar, and previous daily bar for each requested symbol. Bars are not adjusted after splits or dividends. Symbol mapping is also not supported: in case of a name change the symbol active at the time must be used. Trades, bars, and snapshots may include prints that were later corrected or cancelled. Corrections and cancel/error events are not applied.- Parameters:
feed- The source feed of the data. All feeds require a subscription. - `euroctp`: EuroCTP, the official EU consolidated tape, covering trades from all EU trading venues - `xetr`: Xetra, the electronic trading venue of the Frankfurt Stock Exchange (Deutsche Börse) - `xhkg`: Hong Kong Stock Exchange (HKEX) - `xlon`: London Stock Exchange (LSE) - `xsau`: Saudi Exchange (Tadawul) (required)symbols- A comma-separated list of symbols with a limit of 1000. Each symbol must be in `TICKER:MIC` format, where MIC is the ISO 10383 defined code of the symbol's primary market. The market must be one the feed covers, e.g. `XETR` on `xetr`; `euroctp` accepts any market. (required)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 OK * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
400 One of the request parameters is invalid. See the returned message for details. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
401 Authentication headers are missing or invalid. Make sure you authenticate your request with a valid API key. - 403 The requested resource is forbidden, for example because the subscription does not cover the requested data. - 404 The requested resource was not found, for example because the requested feed does not exist. - 429 Too many requests. You hit the rate limit. Use the X-RateLimit-... response headers to make sure you're under the rate limit. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
500 Internal server error. We recommend retrying these later. If the issue persists, please contact us on [Slack](https://alpaca.markets/slack) or on the [Community Forum](https://forum.alpaca.markets/). -
-
stockV3TradesCall
public okhttp3.Call stockV3TradesCall(@Nonnull StockV3HistoricalFeed feed, @Nonnull String symbols, @Nonnull StockV3BarsStartParameter start, @Nullable StockV3BarsStartParameter end, @Nullable Sort sort, @Nullable Integer pageSize, @Nullable String pageToken, ApiCallback _callback) throws ApiException Build call for stockV3Trades- Parameters:
feed- The source feed of the data. All feeds require a subscription. - `euroctp`: EuroCTP, the official EU consolidated tape, covering trades from all EU trading venues - `xetr`: Xetra, the electronic trading venue of the Frankfurt Stock Exchange (Deutsche Börse) - `xhkg`: Hong Kong Stock Exchange (HKEX) - `xlon`: London Stock Exchange (LSE) - `xsau`: Saudi Exchange (Tadawul) (required)symbols- A comma-separated list of symbols with a limit of 1000. Each symbol must be in `TICKER:MIC` format, where MIC is the ISO 10383 defined code of the symbol's primary market. The market must be one the feed covers, e.g. `XETR` on `xetr`; `euroctp` accepts any market. (required)start- The inclusive start of the interval. Format: RFC-3339 or YYYY-MM-DD. A date means the start of that day in the market's time zone. (required)end- The inclusive end of the interval. A data point is returned when `start <= t <= end`. Format: RFC-3339 or YYYY-MM-DD. A date means the end of that day in the market's time zone. Defaults to the current time if not specified. (optional)sort- Sort the data points of each symbol by timestamp in ascending or descending order. (optional)pageSize- The maximum number of data points to return in the response page. The page_size applies to the total number of data points across all symbols, not per symbol. The API may return fewer, even if more data points exist in the requested interval. Always check `next_page_token` for more pages. (optional, default to 1000)pageToken- The pagination token from which to continue. The value to pass here is returned in specific requests when more data is available, usually because of a response result limit. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 OK * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
400 One of the request parameters is invalid. See the returned message for details. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
401 Authentication headers are missing or invalid. Make sure you authenticate your request with a valid API key. - 403 The requested resource is forbidden, for example because the subscription does not cover the requested data. - 404 The requested resource was not found, for example because the requested feed does not exist. - 429 Too many requests. You hit the rate limit. Use the X-RateLimit-... response headers to make sure you're under the rate limit. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
500 Internal server error. We recommend retrying these later. If the issue persists, please contact us on [Slack](https://alpaca.markets/slack) or on the [Community Forum](https://forum.alpaca.markets/). -
-
stockV3Trades
public StockV3TradesResp stockV3Trades(@Nonnull StockV3HistoricalFeed feed, @Nonnull String symbols, @Nonnull StockV3BarsStartParameter start, @Nullable StockV3BarsStartParameter end, @Nullable Sort sort, @Nullable Integer pageSize, @Nullable String pageToken) throws ApiException Historical trades The historical trades API provides trade data for a list of symbols between the specified times. The trades of each symbol are sorted by timestamp. The order of symbols is not guaranteed. A page can contain one symbol when that symbol fills `page_size`. Continue with `next_page_token`.- Parameters:
feed- The source feed of the data. All feeds require a subscription. - `euroctp`: EuroCTP, the official EU consolidated tape, covering trades from all EU trading venues - `xetr`: Xetra, the electronic trading venue of the Frankfurt Stock Exchange (Deutsche Börse) - `xhkg`: Hong Kong Stock Exchange (HKEX) - `xlon`: London Stock Exchange (LSE) - `xsau`: Saudi Exchange (Tadawul) (required)symbols- A comma-separated list of symbols with a limit of 1000. Each symbol must be in `TICKER:MIC` format, where MIC is the ISO 10383 defined code of the symbol's primary market. The market must be one the feed covers, e.g. `XETR` on `xetr`; `euroctp` accepts any market. (required)start- The inclusive start of the interval. Format: RFC-3339 or YYYY-MM-DD. A date means the start of that day in the market's time zone. (required)end- The inclusive end of the interval. A data point is returned when `start <= t <= end`. Format: RFC-3339 or YYYY-MM-DD. A date means the end of that day in the market's time zone. Defaults to the current time if not specified. (optional)sort- Sort the data points of each symbol by timestamp in ascending or descending order. (optional)pageSize- The maximum number of data points to return in the response page. The page_size applies to the total number of data points across all symbols, not per symbol. The API may return fewer, even if more data points exist in the requested interval. Always check `next_page_token` for more pages. (optional, default to 1000)pageToken- The pagination token from which to continue. The value to pass here is returned in specific requests when more data is available, usually because of a response result limit. (optional)- Returns:
- StockV3TradesResp
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 OK * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
400 One of the request parameters is invalid. See the returned message for details. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
401 Authentication headers are missing or invalid. Make sure you authenticate your request with a valid API key. - 403 The requested resource is forbidden, for example because the subscription does not cover the requested data. - 404 The requested resource was not found, for example because the requested feed does not exist. - 429 Too many requests. You hit the rate limit. Use the X-RateLimit-... response headers to make sure you're under the rate limit. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
500 Internal server error. We recommend retrying these later. If the issue persists, please contact us on [Slack](https://alpaca.markets/slack) or on the [Community Forum](https://forum.alpaca.markets/). -
-
stockV3TradesWithHttpInfo
public ApiResponse<StockV3TradesResp> stockV3TradesWithHttpInfo(@Nonnull StockV3HistoricalFeed feed, @Nonnull String symbols, @Nonnull StockV3BarsStartParameter start, @Nullable StockV3BarsStartParameter end, @Nullable Sort sort, @Nullable Integer pageSize, @Nullable String pageToken) throws ApiException Historical trades The historical trades API provides trade data for a list of symbols between the specified times. The trades of each symbol are sorted by timestamp. The order of symbols is not guaranteed. A page can contain one symbol when that symbol fills `page_size`. Continue with `next_page_token`.- Parameters:
feed- The source feed of the data. All feeds require a subscription. - `euroctp`: EuroCTP, the official EU consolidated tape, covering trades from all EU trading venues - `xetr`: Xetra, the electronic trading venue of the Frankfurt Stock Exchange (Deutsche Börse) - `xhkg`: Hong Kong Stock Exchange (HKEX) - `xlon`: London Stock Exchange (LSE) - `xsau`: Saudi Exchange (Tadawul) (required)symbols- A comma-separated list of symbols with a limit of 1000. Each symbol must be in `TICKER:MIC` format, where MIC is the ISO 10383 defined code of the symbol's primary market. The market must be one the feed covers, e.g. `XETR` on `xetr`; `euroctp` accepts any market. (required)start- The inclusive start of the interval. Format: RFC-3339 or YYYY-MM-DD. A date means the start of that day in the market's time zone. (required)end- The inclusive end of the interval. A data point is returned when `start <= t <= end`. Format: RFC-3339 or YYYY-MM-DD. A date means the end of that day in the market's time zone. Defaults to the current time if not specified. (optional)sort- Sort the data points of each symbol by timestamp in ascending or descending order. (optional)pageSize- The maximum number of data points to return in the response page. The page_size applies to the total number of data points across all symbols, not per symbol. The API may return fewer, even if more data points exist in the requested interval. Always check `next_page_token` for more pages. (optional, default to 1000)pageToken- The pagination token from which to continue. The value to pass here is returned in specific requests when more data is available, usually because of a response result limit. (optional)- Returns:
- ApiResponse<StockV3TradesResp>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- HTTP Response Details:
Response Details Status Code Description Response Headers 200 OK * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
400 One of the request parameters is invalid. See the returned message for details. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
401 Authentication headers are missing or invalid. Make sure you authenticate your request with a valid API key. - 403 The requested resource is forbidden, for example because the subscription does not cover the requested data. - 404 The requested resource was not found, for example because the requested feed does not exist. - 429 Too many requests. You hit the rate limit. Use the X-RateLimit-... response headers to make sure you're under the rate limit. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
500 Internal server error. We recommend retrying these later. If the issue persists, please contact us on [Slack](https://alpaca.markets/slack) or on the [Community Forum](https://forum.alpaca.markets/). -
-
stockV3TradesAsync
public okhttp3.Call stockV3TradesAsync(@Nonnull StockV3HistoricalFeed feed, @Nonnull String symbols, @Nonnull StockV3BarsStartParameter start, @Nullable StockV3BarsStartParameter end, @Nullable Sort sort, @Nullable Integer pageSize, @Nullable String pageToken, ApiCallback<StockV3TradesResp> _callback) throws ApiException Historical trades (asynchronously) The historical trades API provides trade data for a list of symbols between the specified times. The trades of each symbol are sorted by timestamp. The order of symbols is not guaranteed. A page can contain one symbol when that symbol fills `page_size`. Continue with `next_page_token`.- Parameters:
feed- The source feed of the data. All feeds require a subscription. - `euroctp`: EuroCTP, the official EU consolidated tape, covering trades from all EU trading venues - `xetr`: Xetra, the electronic trading venue of the Frankfurt Stock Exchange (Deutsche Börse) - `xhkg`: Hong Kong Stock Exchange (HKEX) - `xlon`: London Stock Exchange (LSE) - `xsau`: Saudi Exchange (Tadawul) (required)symbols- A comma-separated list of symbols with a limit of 1000. Each symbol must be in `TICKER:MIC` format, where MIC is the ISO 10383 defined code of the symbol's primary market. The market must be one the feed covers, e.g. `XETR` on `xetr`; `euroctp` accepts any market. (required)start- The inclusive start of the interval. Format: RFC-3339 or YYYY-MM-DD. A date means the start of that day in the market's time zone. (required)end- The inclusive end of the interval. A data point is returned when `start <= t <= end`. Format: RFC-3339 or YYYY-MM-DD. A date means the end of that day in the market's time zone. Defaults to the current time if not specified. (optional)sort- Sort the data points of each symbol by timestamp in ascending or descending order. (optional)pageSize- The maximum number of data points to return in the response page. The page_size applies to the total number of data points across all symbols, not per symbol. The API may return fewer, even if more data points exist in the requested interval. Always check `next_page_token` for more pages. (optional, default to 1000)pageToken- The pagination token from which to continue. The value to pass here is returned in specific requests when more data is available, usually because of a response result limit. (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- HTTP Response Details:
Response Details Status Code Description Response Headers 200 OK * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
400 One of the request parameters is invalid. See the returned message for details. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
401 Authentication headers are missing or invalid. Make sure you authenticate your request with a valid API key. - 403 The requested resource is forbidden, for example because the subscription does not cover the requested data. - 404 The requested resource was not found, for example because the requested feed does not exist. - 429 Too many requests. You hit the rate limit. Use the X-RateLimit-... response headers to make sure you're under the rate limit. * X-RateLimit-Limit -
* X-RateLimit-Remaining -
* X-RateLimit-Reset -
500 Internal server error. We recommend retrying these later. If the issue persists, please contact us on [Slack](https://alpaca.markets/slack) or on the [Community Forum](https://forum.alpaca.markets/). -
-