cURL
curl --request POST \
--url https://api.woox.io/v3/trade/cancelAllAfter \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--header 'x-api-signature: <x-api-signature>' \
--header 'x-api-timestamp: <x-api-timestamp>' \
--data '
{
"triggerAfter": "1711534302938"
}
'import requests
url = "https://api.woox.io/v3/trade/cancelAllAfter"
payload = { "triggerAfter": "1711534302938" }
headers = {
"x-api-key": "<x-api-key>",
"x-api-signature": "<x-api-signature>",
"x-api-timestamp": "<x-api-timestamp>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-api-key': '<x-api-key>',
'x-api-signature': '<x-api-signature>',
'x-api-timestamp': '<x-api-timestamp>',
'Content-Type': 'application/json'
},
body: JSON.stringify({triggerAfter: '1711534302938'})
};
fetch('https://api.woox.io/v3/trade/cancelAllAfter', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.woox.io/v3/trade/cancelAllAfter",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'triggerAfter' => '1711534302938'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <x-api-key>",
"x-api-signature: <x-api-signature>",
"x-api-timestamp: <x-api-timestamp>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.woox.io/v3/trade/cancelAllAfter"
payload := strings.NewReader("{\n \"triggerAfter\": \"1711534302938\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<x-api-key>")
req.Header.Add("x-api-signature", "<x-api-signature>")
req.Header.Add("x-api-timestamp", "<x-api-timestamp>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.woox.io/v3/trade/cancelAllAfter")
.header("x-api-key", "<x-api-key>")
.header("x-api-signature", "<x-api-signature>")
.header("x-api-timestamp", "<x-api-timestamp>")
.header("Content-Type", "application/json")
.body("{\n \"triggerAfter\": \"1711534302938\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.woox.io/v3/trade/cancelAllAfter")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<x-api-key>'
request["x-api-signature"] = '<x-api-signature>'
request["x-api-timestamp"] = '<x-api-timestamp>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"triggerAfter\": \"1711534302938\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"timestamp": 123,
"data": {
"expectedTriggerTime": 123
}
}Trading
Cancel all after
Cancel all after
POST
/
v3
/
trade
/
cancelAllAfter
cURL
curl --request POST \
--url https://api.woox.io/v3/trade/cancelAllAfter \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--header 'x-api-signature: <x-api-signature>' \
--header 'x-api-timestamp: <x-api-timestamp>' \
--data '
{
"triggerAfter": "1711534302938"
}
'import requests
url = "https://api.woox.io/v3/trade/cancelAllAfter"
payload = { "triggerAfter": "1711534302938" }
headers = {
"x-api-key": "<x-api-key>",
"x-api-signature": "<x-api-signature>",
"x-api-timestamp": "<x-api-timestamp>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-api-key': '<x-api-key>',
'x-api-signature': '<x-api-signature>',
'x-api-timestamp': '<x-api-timestamp>',
'Content-Type': 'application/json'
},
body: JSON.stringify({triggerAfter: '1711534302938'})
};
fetch('https://api.woox.io/v3/trade/cancelAllAfter', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.woox.io/v3/trade/cancelAllAfter",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'triggerAfter' => '1711534302938'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <x-api-key>",
"x-api-signature: <x-api-signature>",
"x-api-timestamp: <x-api-timestamp>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.woox.io/v3/trade/cancelAllAfter"
payload := strings.NewReader("{\n \"triggerAfter\": \"1711534302938\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<x-api-key>")
req.Header.Add("x-api-signature", "<x-api-signature>")
req.Header.Add("x-api-timestamp", "<x-api-timestamp>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.woox.io/v3/trade/cancelAllAfter")
.header("x-api-key", "<x-api-key>")
.header("x-api-signature", "<x-api-signature>")
.header("x-api-timestamp", "<x-api-timestamp>")
.header("Content-Type", "application/json")
.body("{\n \"triggerAfter\": \"1711534302938\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.woox.io/v3/trade/cancelAllAfter")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<x-api-key>'
request["x-api-signature"] = '<x-api-signature>'
request["x-api-timestamp"] = '<x-api-timestamp>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"triggerAfter\": \"1711534302938\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"timestamp": 123,
"data": {
"expectedTriggerTime": 123
}
}Limit: 10 requests per 1 second
Provide a dead man switch to ensure user orders are canceled in case of an outage. If called repeatedly, the new timeout offset will replace the existing one if already set.When count down hits 0, all of the user’s ordinary and algo orders will be canceled. This API is only available to VIP users. Please reach out to customer service for more information.
Provide a dead man switch to ensure user orders are canceled in case of an outage. If called repeatedly, the new timeout offset will replace the existing one if already set.When count down hits 0, all of the user’s ordinary and algo orders will be canceled. This API is only available to VIP users. Please reach out to customer service for more information.
Headers
api-key
Example:
"abcdef123456"
api-signature
Example:
"signaturestring"
api-timestamp
Example:
"1718943200000"
Body
application/json
Timeout in ms. Max timeout can be set to 900000. To cancel this timer, set timeout to 0.
Example:
"1711534302938"
⌘I