Package markets.alpaca.client.data
Class StockTradesRequest.Builder
java.lang.Object
markets.alpaca.client.data.StockTradesRequest.Builder
- Enclosing class:
- StockTradesRequest
Builder for immutable
StockTradesRequest instances.-
Method Summary
Modifier and TypeMethodDescriptionApplies symbol mapping as of a raw API date string.Applies symbol mapping as of the given date.build()Builds and validates the immutable request.Requests prices in a supported local currency when enabled for the account.end(OffsetDateTime end) Sets the exclusive end timestamp for historical trades.Sets the optionalEnd-User-Idheader.feed(StockHistoricalFeed feed) Selects the historical stock data feed.Limits the number of returned trades.Continues from anext_page_tokenreturned by a previous response.Requests no symbol mapping by setting the API'sasof=-sentinel.Sets chronological sort order for returned trades.start(OffsetDateTime start) Sets the inclusive start timestamp for historical trades.Sets the required symbols for the request.symbols(Collection<String> symbols) Sets the required symbols for the request.
-
Method Details
-
symbols
Sets the required symbols for the request. -
symbols
Sets the required symbols for the request. -
start
Sets the inclusive start timestamp for historical trades. -
end
Sets the exclusive end timestamp for historical trades. -
limit
Limits the number of returned trades. Must be positive when set. -
asof
Applies symbol mapping as of the given date. -
asof
Applies symbol mapping as of a raw API date string. -
skipSymbolMapping
Requests no symbol mapping by setting the API'sasof=-sentinel. -
feed
Selects the historical stock data feed. -
endUserId
Sets the optionalEnd-User-Idheader. Broker partners use it to report usage for an end user. It is not an authentication credential. -
currency
Requests prices in a supported local currency when enabled for the account. -
pageToken
Continues from anext_page_tokenreturned by a previous response. -
sort
Sets chronological sort order for returned trades. -
build
Builds and validates the immutable request.
-