Interface OrderService
-
- All Implemented Interfaces:
public interface OrderService
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceOrderService.WithRawResponseA view of OrderService that provides access to raw HTTP responses for each method.
-
Method Summary
-
-
Method Detail
-
withRawResponse
abstract OrderService.WithRawResponse withRawResponse()
Returns a view of this service that provides access to raw HTTP responses for each method.
-
withOptions
abstract OrderService withOptions(Consumer<ClientOptions.Builder> modifier)
Returns a view of this service with the given option modifications applied.
The original service is not modified.
-
stocks
abstract StockService stocks()
-
retrieve
Order retrieve(String orderId, OrderRetrieveParams params)
Get a specific
Orderby its ID.
-
retrieve
Order retrieve(String orderId, OrderRetrieveParams params, RequestOptions requestOptions)
-
retrieve
Order retrieve(OrderRetrieveParams params)
-
retrieve
abstract Order retrieve(OrderRetrieveParams params, RequestOptions requestOptions)
-
list
List<Order> list(String accountId)
Get a list of all
Ordersunder theAccount.<br>OptionallyOrderscan be filtered by chain ID, transaction hash, or client order ID.
-
list
List<Order> list(String accountId, OrderListParams params, RequestOptions requestOptions)
-
list
List<Order> list(String accountId, OrderListParams params)
-
list
abstract List<Order> list(OrderListParams params, RequestOptions requestOptions)
-
list
List<Order> list(OrderListParams params)
-
list
List<Order> list(String accountId, RequestOptions requestOptions)
-
batchCancel
OrderBatchCancelResponse batchCancel(String accountId, OrderBatchCancelParams params)
Cancel multiple
Ordersby their IDs in a single request. Note that this requires theOrderIDs, not theOrderRequestIDs. Once you submit a cancellation request, it cannot be undone. Be advised that orders with a status of PENDING_FILL, PENDING_ESCROW, FILLED, REJECTED, or CANCELLED cannot be cancelled.Ordercancellation is not guaranteed nor is it immediate. TheOrdersmay still be executed if the cancellation request is not received in time.The response will indicate which orders were successfully queued to cancel and which failed to queue. Check the status using the "Get Order by ID" endpoint to confirm whether individual
Ordershave been cancelled.
-
batchCancel
OrderBatchCancelResponse batchCancel(String accountId, OrderBatchCancelParams params, RequestOptions requestOptions)
-
batchCancel
OrderBatchCancelResponse batchCancel(OrderBatchCancelParams params)
-
batchCancel
abstract OrderBatchCancelResponse batchCancel(OrderBatchCancelParams params, RequestOptions requestOptions)
-
cancel
Order cancel(String orderId, OrderCancelParams params)
Cancel an
Orderby its ID. Note that this requires theOrderID, not theOrderRequestID. Once you submit a cancellation request, it cannot be undone. Be advised that orders with a status of PENDING_FILL, PENDING_ESCROW, FILLED, REJECTED, or CANCELLED cannot be cancelled.Ordercancellation is not guaranteed nor is it immediate. TheOrdermay still be executed if the cancellation request is not received in time.Check the status using the "Get Order by ID" endpoint to confirm whether the
Orderhas been cancelled.
-
cancel
Order cancel(String orderId, OrderCancelParams params, RequestOptions requestOptions)
-
cancel
Order cancel(OrderCancelParams params)
-
cancel
abstract Order cancel(OrderCancelParams params, RequestOptions requestOptions)
-
getFulfillments
List<Fulfillment> getFulfillments(String orderId, OrderGetFulfillmentsParams params)
Get
OrderFulfillmentsfor a specificOrder.
-
getFulfillments
List<Fulfillment> getFulfillments(String orderId, OrderGetFulfillmentsParams params, RequestOptions requestOptions)
-
getFulfillments
List<Fulfillment> getFulfillments(OrderGetFulfillmentsParams params)
-
getFulfillments
abstract List<Fulfillment> getFulfillments(OrderGetFulfillmentsParams params, RequestOptions requestOptions)
-
-
-
-