Trading

Cancel all of a user's orders in a specific market

delete/orders/all/{slug}

Response

All orders successfully cancelled

messagestring required

Confirmation message for cancelling all orders

canceledstring[]

Array of successfully cancelled order IDs

Example response

{
  "message": "Orders canceled successfully",
  "canceled": [
    "611badac-8dfc-48a0-b09e-59654adea1c5"
  ],
  "failed": [
    {
      "orderId": "b53f0e4b-1529-45cc-ad39-e27f4c6eab5a",
      "reason": "ORDER_NOT_FOUND",
      "message": "Order not found or already canceled"
    }
  ]
}

Changes

Changed in 4 of the 32 revisions of this API.7

    • added the non-success response with the status

      response-non-success-status-added

    • removed the non-success response with the status

      response-non-success-status-removed

    • added the non-success response with the status

      response-non-success-status-added

    • the endpoint scheme security HmacAuth was added to the API

      api-security-added

    • the endpoint scheme security ApiKeyAuth was removed from the API

      api-security-removed

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • the endpoint scheme security ApiKeyAuth was added to the API

      api-security-added

    • the endpoint scheme security bearer was removed from the API

      api-security-removed