Get asset classes in use
curl --request GET \
--url https://perps-api.vooi.io/exchange/markets/categoriesimport requests
url = "https://perps-api.vooi.io/exchange/markets/categories"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://perps-api.vooi.io/exchange/markets/categories', 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/exchange/markets/categories",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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/exchange/markets/categories"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://perps-api.vooi.io/exchange/markets/categories")
.asString();require 'uri'
require 'net/http'
url = URI("https://perps-api.vooi.io/exchange/markets/categories")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"categories": [
"commodities"
]
}{
"message": "Invalid order id: 123",
"statusCode": 503
}Exchange
Get asset classes in use
Returns the asset classes at least one open market currently belongs to, sorted alphabetically. A category is absent when no open market carries it, so the list is safe to render as the option set for the categories filter on the arbitrage scanner.
GET
/
exchange
/
markets
/
categories
Get asset classes in use
curl --request GET \
--url https://perps-api.vooi.io/exchange/markets/categoriesimport requests
url = "https://perps-api.vooi.io/exchange/markets/categories"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://perps-api.vooi.io/exchange/markets/categories', 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/exchange/markets/categories",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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/exchange/markets/categories"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://perps-api.vooi.io/exchange/markets/categories")
.asString();require 'uri'
require 'net/http'
url = URI("https://perps-api.vooi.io/exchange/markets/categories")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"categories": [
"commodities"
]
}{
"message": "Invalid order id: 123",
"statusCode": 503
}Response
Asset classes at least one open market currently belongs to, sorted alphabetically. Use them as the option list for the categories filter on the arbitrage scanner.
Asset class of the market
Available options:
commodities, crypto, etf-index, forex, pre-ipo, stocks-asia, stocks-us