cURL
curl --request PUT \
--url https://api.woox.io/v3/trade/algoOrder \
--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 '
{
"algoOrderId": 123,
"clientAlgoOrderId": 123,
"quantity": "<string>",
"visibleQuantity": 123,
"triggerPrice": "<string>",
"triggerPriceType": "<string>",
"price": "<string>"
}
'import requests
url = "https://api.woox.io/v3/trade/algoOrder"
payload = {
"algoOrderId": 123,
"clientAlgoOrderId": 123,
"quantity": "<string>",
"visibleQuantity": 123,
"triggerPrice": "<string>",
"triggerPriceType": "<string>",
"price": "<string>"
}
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.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
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({
algoOrderId: 123,
clientAlgoOrderId: 123,
quantity: '<string>',
visibleQuantity: 123,
triggerPrice: '<string>',
triggerPriceType: '<string>',
price: '<string>'
})
};
fetch('https://api.woox.io/v3/trade/algoOrder', 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/algoOrder",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'algoOrderId' => 123,
'clientAlgoOrderId' => 123,
'quantity' => '<string>',
'visibleQuantity' => 123,
'triggerPrice' => '<string>',
'triggerPriceType' => '<string>',
'price' => '<string>'
]),
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/algoOrder"
payload := strings.NewReader("{\n \"algoOrderId\": 123,\n \"clientAlgoOrderId\": 123,\n \"quantity\": \"<string>\",\n \"visibleQuantity\": 123,\n \"triggerPrice\": \"<string>\",\n \"triggerPriceType\": \"<string>\",\n \"price\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.woox.io/v3/trade/algoOrder")
.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 \"algoOrderId\": 123,\n \"clientAlgoOrderId\": 123,\n \"quantity\": \"<string>\",\n \"visibleQuantity\": 123,\n \"triggerPrice\": \"<string>\",\n \"triggerPriceType\": \"<string>\",\n \"price\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.woox.io/v3/trade/algoOrder")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.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 \"algoOrderId\": 123,\n \"clientAlgoOrderId\": 123,\n \"quantity\": \"<string>\",\n \"visibleQuantity\": 123,\n \"triggerPrice\": \"<string>\",\n \"triggerPriceType\": \"<string>\",\n \"price\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"timestamp": 123,
"data": {}
}Trading
Edit algo order
edit algo order
PUT
/
v3
/
trade
/
algoOrder
cURL
curl --request PUT \
--url https://api.woox.io/v3/trade/algoOrder \
--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 '
{
"algoOrderId": 123,
"clientAlgoOrderId": 123,
"quantity": "<string>",
"visibleQuantity": 123,
"triggerPrice": "<string>",
"triggerPriceType": "<string>",
"price": "<string>"
}
'import requests
url = "https://api.woox.io/v3/trade/algoOrder"
payload = {
"algoOrderId": 123,
"clientAlgoOrderId": 123,
"quantity": "<string>",
"visibleQuantity": 123,
"triggerPrice": "<string>",
"triggerPriceType": "<string>",
"price": "<string>"
}
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.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
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({
algoOrderId: 123,
clientAlgoOrderId: 123,
quantity: '<string>',
visibleQuantity: 123,
triggerPrice: '<string>',
triggerPriceType: '<string>',
price: '<string>'
})
};
fetch('https://api.woox.io/v3/trade/algoOrder', 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/algoOrder",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'algoOrderId' => 123,
'clientAlgoOrderId' => 123,
'quantity' => '<string>',
'visibleQuantity' => 123,
'triggerPrice' => '<string>',
'triggerPriceType' => '<string>',
'price' => '<string>'
]),
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/algoOrder"
payload := strings.NewReader("{\n \"algoOrderId\": 123,\n \"clientAlgoOrderId\": 123,\n \"quantity\": \"<string>\",\n \"visibleQuantity\": 123,\n \"triggerPrice\": \"<string>\",\n \"triggerPriceType\": \"<string>\",\n \"price\": \"<string>\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.woox.io/v3/trade/algoOrder")
.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 \"algoOrderId\": 123,\n \"clientAlgoOrderId\": 123,\n \"quantity\": \"<string>\",\n \"visibleQuantity\": 123,\n \"triggerPrice\": \"<string>\",\n \"triggerPriceType\": \"<string>\",\n \"price\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.woox.io/v3/trade/algoOrder")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.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 \"algoOrderId\": 123,\n \"clientAlgoOrderId\": 123,\n \"quantity\": \"<string>\",\n \"visibleQuantity\": 123,\n \"triggerPrice\": \"<string>\",\n \"triggerPriceType\": \"<string>\",\n \"price\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"timestamp": 123,
"data": {}
}Limit: 5 requests per 1 second
Edit algo order by algo order id.
Edit algo order by algo order id.
Headers
api-key
Example:
"abcdef123456"
api-signature
Example:
"signaturestring"
api-timestamp
Example:
"1718943200000"
Body
application/json
- Stop
- OCO
- Trailing stop
- Positional TP/SL
- TP/SL
- Bracket
- Stop bracket
Algo order Id; Either algoOrderId or clientOrderId is required. If both are passed, algoOrderId will be used.
Algo order client order Id; Either algoOrderId or clientAlgoOrderId is required. If both are passed, algoOrderId will be used.
Order quantity, not required for POSITIONAL_TP_SL order
The order quantity shown on orderbook; for POSITIONAL_TP_SL order, visibleQuantity applies directly to the child orders
New trigger price
New trigger price type, currently only support MARKET_PRICE (i.e. last price)
New order price, only applicable if type is LIMIT
⌘I