Deactivate broker settings for a specific exchange
curl --request DELETE \
--url https://perps-api.vooi.io/broker/exchanges/{exchange} \
--header 'X-Broker-Key: <x-broker-key>'import requests
url = "https://perps-api.vooi.io/broker/exchanges/{exchange}"
headers = {"X-Broker-Key": "<x-broker-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'X-Broker-Key': '<x-broker-key>'}};
fetch('https://perps-api.vooi.io/broker/exchanges/{exchange}', 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://perps-api.vooi.io/broker/exchanges/{exchange}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"X-Broker-Key: <x-broker-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"
"net/http"
"io"
)
func main() {
url := "https://perps-api.vooi.io/broker/exchanges/{exchange}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("X-Broker-Key", "<x-broker-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://perps-api.vooi.io/broker/exchanges/{exchange}")
.header("X-Broker-Key", "<x-broker-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://perps-api.vooi.io/broker/exchanges/{exchange}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["X-Broker-Key"] = '<x-broker-key>'
response = http.request(request)
puts response.read_bodyBroker
Deactivate broker settings for a specific exchange
Adds a settings record with no identifier and no fees effective from now, which deactivates the broker configuration for this exchange: the exchange stops being listed by GET /broker/exchanges, new orders carry no builder attribution, and builder approval falls back to caller-supplied identifier and maxFeeBps. Earlier records stay in history so past statistics are unchanged.
DELETE
/
broker
/
exchanges
/
{exchange}
Deactivate broker settings for a specific exchange
curl --request DELETE \
--url https://perps-api.vooi.io/broker/exchanges/{exchange} \
--header 'X-Broker-Key: <x-broker-key>'import requests
url = "https://perps-api.vooi.io/broker/exchanges/{exchange}"
headers = {"X-Broker-Key": "<x-broker-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'X-Broker-Key': '<x-broker-key>'}};
fetch('https://perps-api.vooi.io/broker/exchanges/{exchange}', 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://perps-api.vooi.io/broker/exchanges/{exchange}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"X-Broker-Key: <x-broker-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"
"net/http"
"io"
)
func main() {
url := "https://perps-api.vooi.io/broker/exchanges/{exchange}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("X-Broker-Key", "<x-broker-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://perps-api.vooi.io/broker/exchanges/{exchange}")
.header("X-Broker-Key", "<x-broker-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://perps-api.vooi.io/broker/exchanges/{exchange}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["X-Broker-Key"] = '<x-broker-key>'
response = http.request(request)
puts response.read_body