Access Token·InactiveLog in to your Public account to generate your access code.
Order Placement

Cancel order

Request order cancellation

Submits an asynchronous request to cancel the specified order. Note: While most cancellations are processed immediately during market hours, this is not guaranteed. Always use the GET /{orderId} endpoint to confirm whether the order has been cancelled.

DELETE/userapigateway/trading/{accountId}/order/{orderId}

Parameters

Path Parameters

string
string

Parameters

NameTypeRequiredDescription
accountIdstringYes-
orderIdstring (uuid)Yes-

Body

application/json

No request body defined

Responses

Response

200application/json

Cancellation request submitted successfully.

No response body defined

curl --request DELETE \
  --url https://api.public.com/userapigateway/trading/{accountId}/order/{orderId} \
  --header 'Authorization: Bearer YOUR_API_KEY'
This response has no body data.
The Public Individual API is for your own personal, non-commercial use. Unauthorized access is prohibited. You are responsible for all trades made via the API. Learn more