List venues
curl --request QUERY \
--url https://api.plurex.io/api/v1/venues/query/List \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-API-SECRET: <api-key>' \
--data '{
"cursor": null
}'import requests
url = "https://api.plurex.io/api/v1/venues/query/List"
payload = { "cursor": None }
headers = {
"X-API-KEY": "<api-key>",
"X-API-SECRET": "<api-key>",
"Content-Type": "application/json"
}
response = requests.request("QUERY", url, json=payload, headers=headers)
print(response.text)const options = {
method: 'QUERY',
headers: {
'X-API-KEY': '<api-key>',
'X-API-SECRET': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({cursor: null})
};
fetch('https://api.plurex.io/api/v1/venues/query/List', 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.plurex.io/api/v1/venues/query/List",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "QUERY",
CURLOPT_POSTFIELDS => json_encode([
'cursor' => null
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>",
"X-API-SECRET: <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.plurex.io/api/v1/venues/query/List"
payload := strings.NewReader("{\n \"cursor\": null\n}")
req, _ := http.NewRequest("QUERY", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("X-API-SECRET", "<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.customMethod("QUERY","https://api.plurex.io/api/v1/venues/query/List")
.header("X-API-KEY", "<api-key>")
.header("X-API-SECRET", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"cursor\": null\n}")
.asString();require 'uri'
require 'net/http'
class Net::HTTP::Query < Net::HTTPRequest
METHOD = 'QUERY'
REQUEST_HAS_BODY = 'true'
RESPONSE_HAS_BODY = true
end
url = URI("https://api.plurex.io/api/v1/venues/query/List")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Query.new(url)
request["X-API-KEY"] = '<api-key>'
request["X-API-SECRET"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"cursor\": null\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "bybit",
"capabilities": {
"orderBookL2": {
"getOrderBookL2": {
"type": "Supported"
},
"subscribeToOrderBookL2s": {
"type": "Supported"
}
},
"trades": {
"getRecentTrades": {
"type": "Supported"
},
"subscribeToTrades": {
"type": "Supported"
}
},
"prices": {
"traded": {
"getPrice": {
"type": "PerMarket"
},
"subscribeToPrices": {
"type": "PerMarket"
}
},
"mark": {
"getPrice": {
"type": "PerMarket"
},
"subscribeToPrices": {
"type": "PerMarket"
}
},
"index": {
"getPrice": {
"type": "PerMarket"
},
"subscribeToPrices": {
"type": "PerMarket"
}
}
},
"orderBookL1": {
"getOrderBookL1": {
"type": "PerMarket"
},
"subscribeToOrderBookL1s": {
"type": "PerMarket"
}
},
"statistics": {
"getMarketStatistics": {
"type": "PerMarket"
},
"subscribeToMarketStatistics": {
"type": "PerMarket"
}
},
"indicativeFunding": {
"getIndicativeFunding": {
"type": "PerMarket"
},
"subscribeToIndicativeFundings": {
"type": "PerMarket"
}
},
"openInterest": {
"getOpenInterest": {
"type": "PerMarket"
},
"subscribeToOpenInterests": {
"type": "PerMarket"
}
},
"candles": {
"listCandles": {
"byInstrument": {
"type": "PerMarket"
},
"byInstrumentBefore": {
"type": "PerMarket"
}
},
"subscribeToCandles": {
"type": "PerMarket"
}
},
"fundingPeriods": {
"listFundingPeriods": {
"byInstrument": {
"type": "PerMarket"
}
}
}
}
}
],
"nextCursor": null
}Venues and markets
List venues
Lists every venue with the market data it supports.
List venues
curl --request QUERY \
--url https://api.plurex.io/api/v1/venues/query/List \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-API-SECRET: <api-key>' \
--data '{
"cursor": null
}'import requests
url = "https://api.plurex.io/api/v1/venues/query/List"
payload = { "cursor": None }
headers = {
"X-API-KEY": "<api-key>",
"X-API-SECRET": "<api-key>",
"Content-Type": "application/json"
}
response = requests.request("QUERY", url, json=payload, headers=headers)
print(response.text)const options = {
method: 'QUERY',
headers: {
'X-API-KEY': '<api-key>',
'X-API-SECRET': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({cursor: null})
};
fetch('https://api.plurex.io/api/v1/venues/query/List', 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.plurex.io/api/v1/venues/query/List",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "QUERY",
CURLOPT_POSTFIELDS => json_encode([
'cursor' => null
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>",
"X-API-SECRET: <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.plurex.io/api/v1/venues/query/List"
payload := strings.NewReader("{\n \"cursor\": null\n}")
req, _ := http.NewRequest("QUERY", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("X-API-SECRET", "<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.customMethod("QUERY","https://api.plurex.io/api/v1/venues/query/List")
.header("X-API-KEY", "<api-key>")
.header("X-API-SECRET", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"cursor\": null\n}")
.asString();require 'uri'
require 'net/http'
class Net::HTTP::Query < Net::HTTPRequest
METHOD = 'QUERY'
REQUEST_HAS_BODY = 'true'
RESPONSE_HAS_BODY = true
end
url = URI("https://api.plurex.io/api/v1/venues/query/List")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Query.new(url)
request["X-API-KEY"] = '<api-key>'
request["X-API-SECRET"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"cursor\": null\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "bybit",
"capabilities": {
"orderBookL2": {
"getOrderBookL2": {
"type": "Supported"
},
"subscribeToOrderBookL2s": {
"type": "Supported"
}
},
"trades": {
"getRecentTrades": {
"type": "Supported"
},
"subscribeToTrades": {
"type": "Supported"
}
},
"prices": {
"traded": {
"getPrice": {
"type": "PerMarket"
},
"subscribeToPrices": {
"type": "PerMarket"
}
},
"mark": {
"getPrice": {
"type": "PerMarket"
},
"subscribeToPrices": {
"type": "PerMarket"
}
},
"index": {
"getPrice": {
"type": "PerMarket"
},
"subscribeToPrices": {
"type": "PerMarket"
}
}
},
"orderBookL1": {
"getOrderBookL1": {
"type": "PerMarket"
},
"subscribeToOrderBookL1s": {
"type": "PerMarket"
}
},
"statistics": {
"getMarketStatistics": {
"type": "PerMarket"
},
"subscribeToMarketStatistics": {
"type": "PerMarket"
}
},
"indicativeFunding": {
"getIndicativeFunding": {
"type": "PerMarket"
},
"subscribeToIndicativeFundings": {
"type": "PerMarket"
}
},
"openInterest": {
"getOpenInterest": {
"type": "PerMarket"
},
"subscribeToOpenInterests": {
"type": "PerMarket"
}
},
"candles": {
"listCandles": {
"byInstrument": {
"type": "PerMarket"
},
"byInstrumentBefore": {
"type": "PerMarket"
}
},
"subscribeToCandles": {
"type": "PerMarket"
}
},
"fundingPeriods": {
"listFundingPeriods": {
"byInstrument": {
"type": "PerMarket"
}
}
}
}
}
],
"nextCursor": null
}Authorizations
Body
application/json
Response
Successful result