Package markets.alpaca.client.trading
Class ListOrdersRequest.Builder
java.lang.Object
markets.alpaca.client.trading.ListOrdersRequest.Builder
- Enclosing class:
- ListOrdersRequest
Builder for immutable
ListOrdersRequest instances.-
Method Summary
Modifier and TypeMethodDescriptionReturns orders submitted after this raw RFC 3339 timestamp string.after(OffsetDateTime after) Returns orders submitted after this timestamp.afterOrderId(String afterOrderId) Starts order-id pagination after the supplied order id.assetClasses(String... assetClasses) Filters by raw asset class values supported by the Trading API.assetClasses(Collection<String> assetClasses) Filters by raw asset class values supported by the Trading API.assetClasses(AssetClass... assetClasses) Filters by asset class using generated Trading model enum values.beforeOrderId(String beforeOrderId) Starts order-id pagination before the supplied order id.build()Builds and validates the immutable request.Sets the raw result sort direction accepted by the Trading API.direction(ListOrdersRequest.Direction direction) Sets the result sort direction.Limits the number of returned orders.Includes nested multi-leg order details when supported by the endpoint.Filters by a raw order side value supported by the Trading API.Filters by order side using the generated Trading model enum.Filters by a raw status value supported by the Trading API.status(ListOrdersRequest.Status status) Filters by the documented order status values:open,closed, orall.Filters to one or more symbols, encoded as the comma-separated parameter expected by the API.symbols(Collection<String> symbols) Filters to one or more symbols, encoded as the comma-separated parameter expected by the API.symbolsCsv(String symbols) Sets a raw comma-separated symbol filter string.Returns orders submitted until this raw RFC 3339 timestamp string.until(OffsetDateTime until) Returns orders submitted until this timestamp.
-
Method Details
-
status
Filters by the documented order status values:open,closed, orall. -
status
Filters by a raw status value supported by the Trading API. -
limit
Limits the number of returned orders. The Trading API accepts values from 1 through 500. -
after
Returns orders submitted after this timestamp. Cannot be combined with order-id pagination. -
after
Returns orders submitted after this raw RFC 3339 timestamp string. -
until
Returns orders submitted until this timestamp. Cannot be combined with order-id pagination. -
until
Returns orders submitted until this raw RFC 3339 timestamp string. -
direction
Sets the result sort direction. -
direction
Sets the raw result sort direction accepted by the Trading API. -
nested
Includes nested multi-leg order details when supported by the endpoint. -
symbols
Filters to one or more symbols, encoded as the comma-separated parameter expected by the API. -
symbols
Filters to one or more symbols, encoded as the comma-separated parameter expected by the API. -
symbolsCsv
Sets a raw comma-separated symbol filter string. -
side
Filters by order side using the generated Trading model enum. -
side
Filters by a raw order side value supported by the Trading API. -
assetClasses
Filters by asset class using generated Trading model enum values. -
assetClasses
Filters by raw asset class values supported by the Trading API. -
assetClasses
Filters by raw asset class values supported by the Trading API. -
beforeOrderId
Starts order-id pagination before the supplied order id. -
afterOrderId
Starts order-id pagination after the supplied order id. -
build
Builds and validates the immutable request.
-