POST Cancel All Orders
Cancels all active orders across all accounts in NT8.
Cancel all NT8 orders
Name
Value
import requests
token = 'my-secret-token'
url = "https://app.crosstrade.io/v1/api/orders/cancelall"
headers = {
"Authorization": f"Bearer {token}",
"Content-Type": "application/json"
}
data = {}
try:
response = requests.post(url, headers=headers, json=data)
print(f"Response Code: {response.status_code}, Response Text: {response.text}")
except Exception as e:
print(f"An error occurred: {e}")Last updated