Class AlpacaOrders

java.lang.Object
markets.alpaca.client.trading.AlpacaOrders

public final class AlpacaOrders extends Object
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 Details

    • AlpacaOrders

      public AlpacaOrders(OrdersApi generatedApi)
      Creates a facade around a generated Trading OrdersApi.
    • AlpacaOrders

      public AlpacaOrders(ApiClient tradingClient)
      Creates a facade from a generated Trading ApiClient.
  • Method Details

    • generatedApi

      public OrdersApi generatedApi()
      Returns the generated API for operations not covered by this facade.
    • list

      public List<Order> list(ListOrdersRequest request) throws ApiException
      Lists orders using named request parameters for GET /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

      public ApiResponse<List<Order>> listWithHttpInfo(ListOrdersRequest request) throws ApiException
      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