List host markets
curl --request QUERY \
--url https://api.plurex.io/api/v1/hosts/query/ListMarkets \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-API-SECRET: <api-key>' \
--data '
{
"hostId": "bybit",
"base": "BTC",
"quote": "USDT",
"types": [
"Spot",
"Perp"
],
"search": null,
"cursor": null
}
'import requests
url = "https://api.plurex.io/api/v1/hosts/query/ListMarkets"
payload = {
"hostId": "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({
hostId: 'bybit',
base: 'BTC',
quote: 'USDT',
types: ['Spot', 'Perp'],
search: null,
cursor: null
})
};
fetch('https://api.plurex.io/api/v1/hosts/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/hosts/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([
'hostId' => '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/hosts/query/ListMarkets"
payload := strings.NewReader("{\n \"hostId\": \"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/hosts/query/ListMarkets")
.header("X-API-KEY", "<api-key>")
.header("X-API-SECRET", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"hostId\": \"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/hosts/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 \"hostId\": \"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": [
{
"venueId": "bybit",
"symbol": "BTC-USDT-PERP",
"instrument": {
"type": "Perp",
"base": "BTC",
"quote": "USDT"
},
"contractDetails": {
"contractType": "Linear",
"settlementAsset": "USDT",
"contractSize": "1",
"contractSizeAsset": "BTC"
},
"orderTypes": {
"limit": {
"price": {
"increment": "0.1"
},
"size": {
"increment": "0.001",
"min": "0.001"
},
"value": {
"min": "5"
},
"options": {
"supportsReduceOnly": true,
"supportedTimeInForce": [
"GTC",
"IOC",
"FOK"
],
"supportsPostOnly": true,
"supportsPositionEffect": false
}
},
"market": {
"sizingSupport": {
"buy": [
"Size"
],
"sell": [
"Size"
]
},
"size": {
"increment": "0.001",
"min": "0.001"
},
"notional": null,
"options": {
"supportsReduceOnly": true,
"supportedTimeInForce": [
"IOC"
],
"supportsPositionEffect": false
}
},
"triggerLimit": {
"price": {
"increment": "0.1"
},
"size": {
"increment": "0.001",
"min": "0.001"
},
"value": {
"min": "5"
},
"options": {
"supportsReduceOnly": true,
"supportedTimeInForce": [
"GTC",
"IOC",
"FOK"
],
"supportsPostOnly": true,
"supportsPositionEffect": false
},
"trigger": {
"price": {
"increment": "0.1"
},
"referencePrice": {
"type": "UserSelectable",
"prices": [
"LastTrade",
"Mark",
"Index"
]
},
"sellConditions": [
"RefPriceGTE",
"RefPriceLTE"
],
"buyConditions": [
"RefPriceGTE",
"RefPriceLTE"
]
}
},
"triggerMarket": {
"sizingSupport": {
"buy": [
"Size"
],
"sell": [
"Size"
]
},
"size": {
"increment": "0.001",
"min": "0.001"
},
"notional": null,
"options": {
"supportsReduceOnly": true,
"supportedTimeInForce": [
"IOC"
],
"supportsPositionEffect": false
},
"trigger": {
"price": {
"increment": "0.1"
},
"referencePrice": {
"type": "UserSelectable",
"prices": [
"LastTrade",
"Mark",
"Index"
]
},
"sellConditions": [
"RefPriceGTE",
"RefPriceLTE"
],
"buyConditions": [
"RefPriceGTE",
"RefPriceLTE"
]
}
}
},
"settings": {
"leverage": {
"min": "1",
"max": "100",
"step": "0.01",
"get": true,
"setEffectScope": {
"type": "Market"
}
},
"positionMode": {
"values": [
"Netting",
"Hedging"
],
"get": true,
"setEffectScope": {
"type": "MarketGroup"
}
}
}
},
{
"venueId": "bybit",
"symbol": "BTC-USDT-SPOT",
"instrument": {
"type": "Spot",
"base": "BTC",
"quote": "USDT"
},
"contractDetails": {
"contractType": "Spot",
"settlementAsset": null,
"contractSize": "1",
"contractSizeAsset": "BTC"
},
"orderTypes": {
"limit": {
"price": {
"increment": "0.01"
},
"size": {
"increment": "0.000001",
"min": "0.000048"
},
"value": {
"min": "5"
},
"options": {
"supportsReduceOnly": false,
"supportedTimeInForce": [
"GTC",
"IOC",
"FOK"
],
"supportsPostOnly": true,
"supportsPositionEffect": false
}
},
"market": {
"sizingSupport": {
"buy": [
"Size",
"Notional"
],
"sell": [
"Size"
]
},
"size": {
"increment": "0.000001",
"min": "0.000048"
},
"notional": {
"increment": "0.00000001",
"min": "5"
},
"options": {
"supportsReduceOnly": false,
"supportedTimeInForce": [
"IOC"
],
"supportsPositionEffect": false
}
},
"triggerLimit": {
"price": {
"increment": "0.01"
},
"size": {
"increment": "0.000001",
"min": "0.000048"
},
"value": {
"min": "5"
},
"options": {
"supportsReduceOnly": false,
"supportedTimeInForce": [
"GTC",
"IOC",
"FOK"
],
"supportsPostOnly": true,
"supportsPositionEffect": false
},
"trigger": {
"price": {
"increment": "0.1"
},
"referencePrice": {
"type": "HostSelected",
"price": "LastTrade"
},
"sellConditions": [
"RefPriceGTE",
"RefPriceLTE"
],
"buyConditions": [
"RefPriceGTE",
"RefPriceLTE"
]
}
},
"triggerMarket": null
},
"settings": {
"leverage": null,
"positionMode": null
}
}
],
"nextCursor": null
}Hosts and markets
List host markets
Lists a host’s markets with their order types, order rules and settings, optionally filtered. Option markets are not listed.
List host markets
curl --request QUERY \
--url https://api.plurex.io/api/v1/hosts/query/ListMarkets \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-API-SECRET: <api-key>' \
--data '
{
"hostId": "bybit",
"base": "BTC",
"quote": "USDT",
"types": [
"Spot",
"Perp"
],
"search": null,
"cursor": null
}
'import requests
url = "https://api.plurex.io/api/v1/hosts/query/ListMarkets"
payload = {
"hostId": "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({
hostId: 'bybit',
base: 'BTC',
quote: 'USDT',
types: ['Spot', 'Perp'],
search: null,
cursor: null
})
};
fetch('https://api.plurex.io/api/v1/hosts/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/hosts/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([
'hostId' => '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/hosts/query/ListMarkets"
payload := strings.NewReader("{\n \"hostId\": \"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/hosts/query/ListMarkets")
.header("X-API-KEY", "<api-key>")
.header("X-API-SECRET", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"hostId\": \"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/hosts/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 \"hostId\": \"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": [
{
"venueId": "bybit",
"symbol": "BTC-USDT-PERP",
"instrument": {
"type": "Perp",
"base": "BTC",
"quote": "USDT"
},
"contractDetails": {
"contractType": "Linear",
"settlementAsset": "USDT",
"contractSize": "1",
"contractSizeAsset": "BTC"
},
"orderTypes": {
"limit": {
"price": {
"increment": "0.1"
},
"size": {
"increment": "0.001",
"min": "0.001"
},
"value": {
"min": "5"
},
"options": {
"supportsReduceOnly": true,
"supportedTimeInForce": [
"GTC",
"IOC",
"FOK"
],
"supportsPostOnly": true,
"supportsPositionEffect": false
}
},
"market": {
"sizingSupport": {
"buy": [
"Size"
],
"sell": [
"Size"
]
},
"size": {
"increment": "0.001",
"min": "0.001"
},
"notional": null,
"options": {
"supportsReduceOnly": true,
"supportedTimeInForce": [
"IOC"
],
"supportsPositionEffect": false
}
},
"triggerLimit": {
"price": {
"increment": "0.1"
},
"size": {
"increment": "0.001",
"min": "0.001"
},
"value": {
"min": "5"
},
"options": {
"supportsReduceOnly": true,
"supportedTimeInForce": [
"GTC",
"IOC",
"FOK"
],
"supportsPostOnly": true,
"supportsPositionEffect": false
},
"trigger": {
"price": {
"increment": "0.1"
},
"referencePrice": {
"type": "UserSelectable",
"prices": [
"LastTrade",
"Mark",
"Index"
]
},
"sellConditions": [
"RefPriceGTE",
"RefPriceLTE"
],
"buyConditions": [
"RefPriceGTE",
"RefPriceLTE"
]
}
},
"triggerMarket": {
"sizingSupport": {
"buy": [
"Size"
],
"sell": [
"Size"
]
},
"size": {
"increment": "0.001",
"min": "0.001"
},
"notional": null,
"options": {
"supportsReduceOnly": true,
"supportedTimeInForce": [
"IOC"
],
"supportsPositionEffect": false
},
"trigger": {
"price": {
"increment": "0.1"
},
"referencePrice": {
"type": "UserSelectable",
"prices": [
"LastTrade",
"Mark",
"Index"
]
},
"sellConditions": [
"RefPriceGTE",
"RefPriceLTE"
],
"buyConditions": [
"RefPriceGTE",
"RefPriceLTE"
]
}
}
},
"settings": {
"leverage": {
"min": "1",
"max": "100",
"step": "0.01",
"get": true,
"setEffectScope": {
"type": "Market"
}
},
"positionMode": {
"values": [
"Netting",
"Hedging"
],
"get": true,
"setEffectScope": {
"type": "MarketGroup"
}
}
}
},
{
"venueId": "bybit",
"symbol": "BTC-USDT-SPOT",
"instrument": {
"type": "Spot",
"base": "BTC",
"quote": "USDT"
},
"contractDetails": {
"contractType": "Spot",
"settlementAsset": null,
"contractSize": "1",
"contractSizeAsset": "BTC"
},
"orderTypes": {
"limit": {
"price": {
"increment": "0.01"
},
"size": {
"increment": "0.000001",
"min": "0.000048"
},
"value": {
"min": "5"
},
"options": {
"supportsReduceOnly": false,
"supportedTimeInForce": [
"GTC",
"IOC",
"FOK"
],
"supportsPostOnly": true,
"supportsPositionEffect": false
}
},
"market": {
"sizingSupport": {
"buy": [
"Size",
"Notional"
],
"sell": [
"Size"
]
},
"size": {
"increment": "0.000001",
"min": "0.000048"
},
"notional": {
"increment": "0.00000001",
"min": "5"
},
"options": {
"supportsReduceOnly": false,
"supportedTimeInForce": [
"IOC"
],
"supportsPositionEffect": false
}
},
"triggerLimit": {
"price": {
"increment": "0.01"
},
"size": {
"increment": "0.000001",
"min": "0.000048"
},
"value": {
"min": "5"
},
"options": {
"supportsReduceOnly": false,
"supportedTimeInForce": [
"GTC",
"IOC",
"FOK"
],
"supportsPostOnly": true,
"supportsPositionEffect": false
},
"trigger": {
"price": {
"increment": "0.1"
},
"referencePrice": {
"type": "HostSelected",
"price": "LastTrade"
},
"sellConditions": [
"RefPriceGTE",
"RefPriceLTE"
],
"buyConditions": [
"RefPriceGTE",
"RefPriceLTE"
]
}
},
"triggerMarket": null
},
"settings": {
"leverage": null,
"positionMode": null
}
}
],
"nextCursor": null
}Authorizations
Body
application/json
Lists the markets a host can trade.
Response
Successful result