Get execution plan for canceling orders
curl --request POST \
--url https://api.lootexplus.com/v1/orders/cancel \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"chainId": 1868,
"orderHashes": [
"0xaabdbab8b4485b784e00d80943964da179a92257248e665b0f035d4daabe85f8"
]
}
'import requests
url = "https://api.lootexplus.com/v1/orders/cancel"
payload = {
"chainId": 1868,
"orderHashes": ["0xaabdbab8b4485b784e00d80943964da179a92257248e665b0f035d4daabe85f8"]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
chainId: 1868,
orderHashes: ['0xaabdbab8b4485b784e00d80943964da179a92257248e665b0f035d4daabe85f8']
})
};
fetch('https://api.lootexplus.com/v1/orders/cancel', 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.lootexplus.com/v1/orders/cancel",
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([
'chainId' => 1868,
'orderHashes' => [
'0xaabdbab8b4485b784e00d80943964da179a92257248e665b0f035d4daabe85f8'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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.lootexplus.com/v1/orders/cancel"
payload := strings.NewReader("{\n \"chainId\": 1868,\n \"orderHashes\": [\n \"0xaabdbab8b4485b784e00d80943964da179a92257248e665b0f035d4daabe85f8\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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.lootexplus.com/v1/orders/cancel")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"chainId\": 1868,\n \"orderHashes\": [\n \"0xaabdbab8b4485b784e00d80943964da179a92257248e665b0f035d4daabe85f8\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lootexplus.com/v1/orders/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"chainId\": 1868,\n \"orderHashes\": [\n \"0xaabdbab8b4485b784e00d80943964da179a92257248e665b0f035d4daabe85f8\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"steps": [
{
"id": "cancel-orders",
"items": [
{
"type": "transaction",
"data": {
"to": "0xa313d4f11e69a320a68167e7aafacea8f3413593",
"data": "0xfd9f1e100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000002db47b0ecc1812d6d2153b15a4ef7a78c7bb4bdd000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000688662e40000000000000000000000000000000000000000000000000000000068adefe400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004def1a133f99cf1e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000300000000000000000000000083b6f1af26b671c280932a2210bc9f593e905be00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000015c2a7b13fd0000000000000000000000000000000000000000000000000000015c2a7b13fd00000000000000000000000000002db47b0ecc1812d6d2153b15a4ef7a78c7bb4bdd00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000071afd498d000000000000000000000000000000000000000000000000000000071afd498d000000000000000000000000000044bc1e612e11d0acd2c43218ea55717ac28e3a40"
},
"hashes": [
"0x9a9262f6e73a65f99466834ccfff8e0e135db91dc558eafb17273c6064fe0b26"
]
}
]
}
]
}Orders
Cancel Orders
Returns the execution plan required to cancel orders on the exchange.
POST
/
v1
/
orders
/
cancel
Get execution plan for canceling orders
curl --request POST \
--url https://api.lootexplus.com/v1/orders/cancel \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"chainId": 1868,
"orderHashes": [
"0xaabdbab8b4485b784e00d80943964da179a92257248e665b0f035d4daabe85f8"
]
}
'import requests
url = "https://api.lootexplus.com/v1/orders/cancel"
payload = {
"chainId": 1868,
"orderHashes": ["0xaabdbab8b4485b784e00d80943964da179a92257248e665b0f035d4daabe85f8"]
}
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
chainId: 1868,
orderHashes: ['0xaabdbab8b4485b784e00d80943964da179a92257248e665b0f035d4daabe85f8']
})
};
fetch('https://api.lootexplus.com/v1/orders/cancel', 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.lootexplus.com/v1/orders/cancel",
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([
'chainId' => 1868,
'orderHashes' => [
'0xaabdbab8b4485b784e00d80943964da179a92257248e665b0f035d4daabe85f8'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$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.lootexplus.com/v1/orders/cancel"
payload := strings.NewReader("{\n \"chainId\": 1868,\n \"orderHashes\": [\n \"0xaabdbab8b4485b784e00d80943964da179a92257248e665b0f035d4daabe85f8\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<api-key>")
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.lootexplus.com/v1/orders/cancel")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"chainId\": 1868,\n \"orderHashes\": [\n \"0xaabdbab8b4485b784e00d80943964da179a92257248e665b0f035d4daabe85f8\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.lootexplus.com/v1/orders/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"chainId\": 1868,\n \"orderHashes\": [\n \"0xaabdbab8b4485b784e00d80943964da179a92257248e665b0f035d4daabe85f8\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"steps": [
{
"id": "cancel-orders",
"items": [
{
"type": "transaction",
"data": {
"to": "0xa313d4f11e69a320a68167e7aafacea8f3413593",
"data": "0xfd9f1e100000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000200000000000000000000000002db47b0ecc1812d6d2153b15a4ef7a78c7bb4bdd000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001600000000000000000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000688662e40000000000000000000000000000000000000000000000000000000068adefe400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004def1a133f99cf1e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000300000000000000000000000083b6f1af26b671c280932a2210bc9f593e905be00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000015c2a7b13fd0000000000000000000000000000000000000000000000000000015c2a7b13fd00000000000000000000000000002db47b0ecc1812d6d2153b15a4ef7a78c7bb4bdd00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000071afd498d000000000000000000000000000000000000000000000000000000071afd498d000000000000000000000000000044bc1e612e11d0acd2c43218ea55717ac28e3a40"
},
"hashes": [
"0x9a9262f6e73a65f99466834ccfff8e0e135db91dc558eafb17273c6064fe0b26"
]
}
]
}
]
}Authorizations
Body
application/json
Response
200 - application/json
Order cancellation execution plan
Execution steps
Show child attributes
Show child attributes