Package markets.alpaca.client.trading
Class AlpacaOrders
java.lang.Object
markets.alpaca.client.trading.AlpacaOrders
Handwritten convenience facade for common Trading API order workflows.
This class wraps the generated Trading OrdersApi and provides typed request objects
for common operations while preserving access to the generated API through generatedApi(). For endpoint-level details, see the Trading OpenAPI spec used to generate
markets.alpaca.client.openapi.trading.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAlpacaOrders(OrdersApi generatedApi) Creates a facade around a generated TradingOrdersApi.AlpacaOrders(ApiClient tradingClient) Creates a facade from a generated TradingApiClient. -
Method Summary
Modifier and TypeMethodDescriptionReturns the generated API for operations not covered by this facade.list(ListOrdersRequest request) Lists orders using named request parameters forGET /v2/orders.listWithHttpInfo(ListOrdersRequest request) Lists orders and includes the generated client's HTTP response metadata.
-
Constructor Details
-
AlpacaOrders
Creates a facade around a generated TradingOrdersApi. -
AlpacaOrders
Creates a facade from a generated TradingApiClient.
-
-
Method Details
-
generatedApi
Returns the generated API for operations not covered by this facade. -
list
Lists orders using named request parameters forGET /v2/orders.The request object validates SDK-level constraints such as the documented 1-500 limit range and mutually exclusive time-vs-order-id pagination modes.
- Throws:
ApiException
-
listWithHttpInfo
Lists orders and includes the generated client's HTTP response metadata.Use this overload when callers need status codes, response headers, or rate-limit headers in addition to the deserialized order list.
- Throws:
ApiException
-