List venue markets
curl --request QUERY \
--url https://api.plurex.io/api/v1/venues/query/ListMarkets \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-API-SECRET: <api-key>' \
--data '
{
"venueId": "bybit",
"base": "BTC",
"quote": "USDT",
"types": [
"Spot",
"Perp"
],
"search": null,
"cursor": null
}
'import requests
url = "https://api.plurex.io/api/v1/venues/query/ListMarkets"
payload = {
"venueId": "bybit",
"base": "BTC",
"quote": "USDT",
"types": ["Spot", "Perp"],
"search": None,
"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({
venueId: 'bybit',
base: 'BTC',
quote: 'USDT',
types: ['Spot', 'Perp'],
search: null,
cursor: null
})
};
fetch('https://api.plurex.io/api/v1/venues/query/ListMarkets', 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/ListMarkets",
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([
'venueId' => 'bybit',
'base' => 'BTC',
'quote' => 'USDT',
'types' => [
'Spot',
'Perp'
],
'search' => null,
'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/ListMarkets"
payload := strings.NewReader("{\n \"venueId\": \"bybit\",\n \"base\": \"BTC\",\n \"quote\": \"USDT\",\n \"types\": [\n \"Spot\",\n \"Perp\"\n ],\n \"search\": null,\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/ListMarkets")
.header("X-API-KEY", "<api-key>")
.header("X-API-SECRET", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"venueId\": \"bybit\",\n \"base\": \"BTC\",\n \"quote\": \"USDT\",\n \"types\": [\n \"Spot\",\n \"Perp\"\n ],\n \"search\": null,\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/ListMarkets")
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 \"venueId\": \"bybit\",\n \"base\": \"BTC\",\n \"quote\": \"USDT\",\n \"types\": [\n \"Spot\",\n \"Perp\"\n ],\n \"search\": null,\n \"cursor\": null\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"symbol": "BTC-USDT-PERP",
"instrument": {
"type": "Perp",
"base": "BTC",
"quote": "USDT"
},
"increments": {
"price": "0.1",
"size": "0.001"
},
"contractDetails": {
"contractType": "Linear",
"settlementAsset": "USDT",
"contractSize": "1",
"contractSizeAsset": "BTC"
},
"marketData": {
"prices": {
"traded": {
"get": true,
"subscribe": true
},
"mark": {
"get": true,
"subscribe": true
},
"index": {
"get": true,
"subscribe": true
}
},
"orderBookL1": {
"get": true,
"subscribe": true
},
"statistics": {
"window": {
"type": "Rolling",
"length": "PT24H"
},
"supportedFields": [
"High",
"Low",
"PreviousClose",
"VolumeBase",
"VolumeQuote"
],
"get": true,
"subscribe": true
},
"indicativeFunding": {
"get": true,
"subscribe": true
},
"openInterest": {
"unit": "BaseAsset",
"get": true,
"subscribe": true
},
"candles": {
"traded": {
"supportedIntervals": [
"Minute1",
"Hour1",
"Day1"
],
"list": true,
"listBefore": true,
"subscribe": false
},
"mark": {
"supportedIntervals": [
"Minute1",
"Hour1",
"Day1"
],
"list": true,
"listBefore": true,
"subscribe": false
},
"index": {
"supportedIntervals": [
"Minute1",
"Hour1",
"Day1"
],
"list": true,
"listBefore": true,
"subscribe": false
}
},
"fundingPeriods": {
"list": true
}
}
},
{
"symbol": "BTC-USDT-SPOT",
"instrument": {
"type": "Spot",
"base": "BTC",
"quote": "USDT"
},
"increments": {
"price": "0.01",
"size": "0.000001"
},
"contractDetails": {
"contractType": "Spot",
"settlementAsset": null,
"contractSize": "1",
"contractSizeAsset": "BTC"
},
"marketData": {
"prices": {
"traded": {
"get": true,
"subscribe": true
},
"mark": null,
"index": null
},
"orderBookL1": {
"get": true,
"subscribe": true
},
"statistics": {
"window": {
"type": "Rolling",
"length": "PT24H"
},
"supportedFields": [
"High",
"Low",
"PreviousClose",
"VolumeBase",
"VolumeQuote"
],
"get": true,
"subscribe": true
},
"indicativeFunding": null,
"openInterest": null,
"candles": {
"traded": {
"supportedIntervals": [
"Minute1",
"Hour1",
"Day1"
],
"list": true,
"listBefore": true,
"subscribe": false
},
"mark": null,
"index": null
},
"fundingPeriods": null
}
}
],
"nextCursor": null
}Venues and markets
List venue markets
Lists a venue’s markets with the market data each one supports, optionally filtered. Option markets are not listed.
List venue markets
curl --request QUERY \
--url https://api.plurex.io/api/v1/venues/query/ListMarkets \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-API-SECRET: <api-key>' \
--data '
{
"venueId": "bybit",
"base": "BTC",
"quote": "USDT",
"types": [
"Spot",
"Perp"
],
"search": null,
"cursor": null
}
'import requests
url = "https://api.plurex.io/api/v1/venues/query/ListMarkets"
payload = {
"venueId": "bybit",
"base": "BTC",
"quote": "USDT",
"types": ["Spot", "Perp"],
"search": None,
"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({
venueId: 'bybit',
base: 'BTC',
quote: 'USDT',
types: ['Spot', 'Perp'],
search: null,
cursor: null
})
};
fetch('https://api.plurex.io/api/v1/venues/query/ListMarkets', 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/ListMarkets",
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([
'venueId' => 'bybit',
'base' => 'BTC',
'quote' => 'USDT',
'types' => [
'Spot',
'Perp'
],
'search' => null,
'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/ListMarkets"
payload := strings.NewReader("{\n \"venueId\": \"bybit\",\n \"base\": \"BTC\",\n \"quote\": \"USDT\",\n \"types\": [\n \"Spot\",\n \"Perp\"\n ],\n \"search\": null,\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/ListMarkets")
.header("X-API-KEY", "<api-key>")
.header("X-API-SECRET", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"venueId\": \"bybit\",\n \"base\": \"BTC\",\n \"quote\": \"USDT\",\n \"types\": [\n \"Spot\",\n \"Perp\"\n ],\n \"search\": null,\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/ListMarkets")
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 \"venueId\": \"bybit\",\n \"base\": \"BTC\",\n \"quote\": \"USDT\",\n \"types\": [\n \"Spot\",\n \"Perp\"\n ],\n \"search\": null,\n \"cursor\": null\n}"
response = http.request(request)
puts response.read_body{
"items": [
{
"symbol": "BTC-USDT-PERP",
"instrument": {
"type": "Perp",
"base": "BTC",
"quote": "USDT"
},
"increments": {
"price": "0.1",
"size": "0.001"
},
"contractDetails": {
"contractType": "Linear",
"settlementAsset": "USDT",
"contractSize": "1",
"contractSizeAsset": "BTC"
},
"marketData": {
"prices": {
"traded": {
"get": true,
"subscribe": true
},
"mark": {
"get": true,
"subscribe": true
},
"index": {
"get": true,
"subscribe": true
}
},
"orderBookL1": {
"get": true,
"subscribe": true
},
"statistics": {
"window": {
"type": "Rolling",
"length": "PT24H"
},
"supportedFields": [
"High",
"Low",
"PreviousClose",
"VolumeBase",
"VolumeQuote"
],
"get": true,
"subscribe": true
},
"indicativeFunding": {
"get": true,
"subscribe": true
},
"openInterest": {
"unit": "BaseAsset",
"get": true,
"subscribe": true
},
"candles": {
"traded": {
"supportedIntervals": [
"Minute1",
"Hour1",
"Day1"
],
"list": true,
"listBefore": true,
"subscribe": false
},
"mark": {
"supportedIntervals": [
"Minute1",
"Hour1",
"Day1"
],
"list": true,
"listBefore": true,
"subscribe": false
},
"index": {
"supportedIntervals": [
"Minute1",
"Hour1",
"Day1"
],
"list": true,
"listBefore": true,
"subscribe": false
}
},
"fundingPeriods": {
"list": true
}
}
},
{
"symbol": "BTC-USDT-SPOT",
"instrument": {
"type": "Spot",
"base": "BTC",
"quote": "USDT"
},
"increments": {
"price": "0.01",
"size": "0.000001"
},
"contractDetails": {
"contractType": "Spot",
"settlementAsset": null,
"contractSize": "1",
"contractSizeAsset": "BTC"
},
"marketData": {
"prices": {
"traded": {
"get": true,
"subscribe": true
},
"mark": null,
"index": null
},
"orderBookL1": {
"get": true,
"subscribe": true
},
"statistics": {
"window": {
"type": "Rolling",
"length": "PT24H"
},
"supportedFields": [
"High",
"Low",
"PreviousClose",
"VolumeBase",
"VolumeQuote"
],
"get": true,
"subscribe": true
},
"indicativeFunding": null,
"openInterest": null,
"candles": {
"traded": {
"supportedIntervals": [
"Minute1",
"Hour1",
"Day1"
],
"list": true,
"listBefore": true,
"subscribe": false
},
"mark": null,
"index": null
},
"fundingPeriods": null
}
}
],
"nextCursor": null
}Authorizations
Body
application/json
Lists a venue's markets, optionally filtered by asset, instrument type or symbol search.
Response
Successful result