Cancel All Orders

DELETE https://api.sfox.com/v1/orders/open

Cancel all open orders.

Responses

200

Responds with an array of all of the orders listed in the request that were able to begin cancelation (Cancel Pending) or were successfully canceled (Canceled)

{ 
  "orders": [
    {"id": 2, "status": "Cancel pending"},
    {"id": 3, "status": "Canceled"}
  ]
}

Example Requests

curl -X DELETE \
  -H 'Authorization: Bearer <API_TOKEN>' \
  'https://api.sfox.com/v1/orders/open'

Last updated