Coinbase Prime API
cURL
curl --request POST \ --url https://api.prime.coinbase.com/v1/portfolios/{portfolio_id}/orders/{order_id}/cancel
{ "id": "82c879c1-84e1-44ed-a8c2-1ac239cf09ad" }
Cancel an order. (Filled orders cannot be canceled.)
OrdersService ordersService = PrimeServiceFactory.cancelOrdersService(client); CancelOrderRequest request = new CancelOrderRequest.Builder() .portfolioId("PORTFOLIO_ID_HERE") .orderId("ORDER_ID_HERE") .build()); CancelOrderResponse orderResponse = ordersService.cancelOrder(request);
The ID of the portfolio under which the order was placed
The order ID generated by Coinbase upon order submission
A successful response.
The response is of type object.
object
Was this page helpful?