DELETE https://api.sfox.com/v1/orders/open
DELETE
https://api.sfox.com/v1/orders/open
Cancel all open orders.
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)
Cancel Pending
Canceled
{ "orders": [ {"id": 2, "status": "Cancel pending"}, {"id": 3, "status": "Canceled"} ] }
curl -X DELETE \ -H 'Authorization: Bearer <API_TOKEN>' \ 'https://api.sfox.com/v1/orders/open'
const axios = require('axios'); axios({ method: 'delete', url: 'https://api.sfox.com/v1/orders/open', headers: { 'Authorization': 'Bearer <API_KEY>' } }).then(response => { console.log(response) }).catch(err => { console.error(err) });
import requests data = requests.delete( "https://api.sfox.com/v1/orders/open", headers={ "Authorization": "Bearer <API_KEY>", } ) print(data)
Last updated 7 months ago