List hosts
curl --request QUERY \
--url https://api.plurex.io/api/v1/hosts/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/hosts/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/hosts/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/hosts/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/hosts/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/hosts/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/hosts/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",
"venueIds": [
"bybit"
],
"modelHostId": null,
"capabilities": {
"orders": {
"getOrder": {
"byId": {
"type": "Supported"
},
"byClientOrderId": {
"type": "Supported"
},
"byClientOrderIdForInstrument": {
"type": "Supported"
}
},
"getOrders": {
"byIds": {
"type": "Supported"
},
"byClientOrderIds": {
"type": "NotSupported"
},
"byClientOrderIdsForInstrument": {
"type": "Supported"
}
},
"listOpenOrders": {
"global": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
},
"byInstrument": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
}
},
"listClosedOrders": {
"global": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
},
"byInstrument": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
},
"globalBefore": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
},
"byInstrumentBefore": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
},
"globalAfter": {
"type": "NotSupported"
},
"byInstrumentAfter": {
"type": "NotSupported"
}
},
"cancelOrder": {
"byId": {
"type": "Supported"
},
"byClientOrderId": {
"type": "Supported"
},
"byClientOrderIdForInstrument": {
"type": "Supported"
}
},
"cancelOrders": {
"byIds": {
"type": "Supported"
},
"byClientOrderIds": {
"type": "NotSupported"
},
"byClientOrderIdsForInstrument": {
"type": "Supported"
}
},
"cancelAllOrders": {
"global": {
"type": "Supported"
},
"byInstrument": {
"type": "Supported"
}
},
"submitOrder": {
"clientOrderId": {
"type": "Supported"
}
}
},
"fills": {
"listFills": {
"byOrderId": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
},
"global": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
},
"byInstrument": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
}
}
},
"marketSettings": {
"getMarketLeverage": {
"type": "PerMarket"
},
"setMarketLeverage": {
"type": "PerMarket"
},
"getMarketPositionMode": {
"type": "PerMarket"
},
"setMarketPositionMode": {
"type": "PerMarket"
}
},
"accountOrders": {
"subscribeToAccountOrders": {
"type": "Supported"
}
},
"accountTransactions": {
"listTransactions": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
},
"subscribeToAccountTransactions": {
"type": "Supported"
},
"supportedTransactionTypes": [
"Deposit",
"Withdrawal",
"TradingFee",
"FundingPayment"
]
}
},
"isPaper": false,
"supportedCredentialTypes": [
"ApiKey"
]
},
{
"id": "bybit-paper",
"venueIds": [
"bybit"
],
"modelHostId": "bybit",
"capabilities": {
"orders": {
"getOrder": {
"byId": {
"type": "Supported"
},
"byClientOrderId": {
"type": "Supported"
},
"byClientOrderIdForInstrument": {
"type": "Supported"
}
},
"getOrders": {
"byIds": {
"type": "Supported"
},
"byClientOrderIds": {
"type": "NotSupported"
},
"byClientOrderIdsForInstrument": {
"type": "Supported"
}
},
"listOpenOrders": {
"global": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
},
"byInstrument": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
}
},
"listClosedOrders": {
"global": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
},
"byInstrument": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
},
"globalBefore": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
},
"byInstrumentBefore": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
},
"globalAfter": {
"type": "NotSupported"
},
"byInstrumentAfter": {
"type": "NotSupported"
}
},
"cancelOrder": {
"byId": {
"type": "Supported"
},
"byClientOrderId": {
"type": "Supported"
},
"byClientOrderIdForInstrument": {
"type": "Supported"
}
},
"cancelOrders": {
"byIds": {
"type": "Supported"
},
"byClientOrderIds": {
"type": "NotSupported"
},
"byClientOrderIdsForInstrument": {
"type": "Supported"
}
},
"cancelAllOrders": {
"global": {
"type": "Supported"
},
"byInstrument": {
"type": "Supported"
}
},
"submitOrder": {
"clientOrderId": {
"type": "Supported"
}
}
},
"fills": {
"listFills": {
"byOrderId": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
},
"global": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
},
"byInstrument": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
}
}
},
"marketSettings": {
"getMarketLeverage": {
"type": "PerMarket"
},
"setMarketLeverage": {
"type": "PerMarket"
},
"getMarketPositionMode": {
"type": "PerMarket"
},
"setMarketPositionMode": {
"type": "PerMarket"
}
},
"accountOrders": {
"subscribeToAccountOrders": {
"type": "Supported"
}
},
"accountTransactions": {
"listTransactions": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
},
"subscribeToAccountTransactions": {
"type": "Supported"
},
"supportedTransactionTypes": [
"Deposit",
"Withdrawal",
"TradingFee",
"Settlement",
"Trade",
"Adjustment",
"FundingPayment"
]
}
},
"isPaper": true,
"supportedCredentialTypes": [
"Paper"
]
}
],
"nextCursor": null
}Hosts and markets
List hosts
Lists every host, real and paper, with the operations it supports.
List hosts
curl --request QUERY \
--url https://api.plurex.io/api/v1/hosts/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/hosts/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/hosts/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/hosts/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/hosts/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/hosts/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/hosts/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",
"venueIds": [
"bybit"
],
"modelHostId": null,
"capabilities": {
"orders": {
"getOrder": {
"byId": {
"type": "Supported"
},
"byClientOrderId": {
"type": "Supported"
},
"byClientOrderIdForInstrument": {
"type": "Supported"
}
},
"getOrders": {
"byIds": {
"type": "Supported"
},
"byClientOrderIds": {
"type": "NotSupported"
},
"byClientOrderIdsForInstrument": {
"type": "Supported"
}
},
"listOpenOrders": {
"global": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
},
"byInstrument": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
}
},
"listClosedOrders": {
"global": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
},
"byInstrument": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
},
"globalBefore": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
},
"byInstrumentBefore": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
},
"globalAfter": {
"type": "NotSupported"
},
"byInstrumentAfter": {
"type": "NotSupported"
}
},
"cancelOrder": {
"byId": {
"type": "Supported"
},
"byClientOrderId": {
"type": "Supported"
},
"byClientOrderIdForInstrument": {
"type": "Supported"
}
},
"cancelOrders": {
"byIds": {
"type": "Supported"
},
"byClientOrderIds": {
"type": "NotSupported"
},
"byClientOrderIdsForInstrument": {
"type": "Supported"
}
},
"cancelAllOrders": {
"global": {
"type": "Supported"
},
"byInstrument": {
"type": "Supported"
}
},
"submitOrder": {
"clientOrderId": {
"type": "Supported"
}
}
},
"fills": {
"listFills": {
"byOrderId": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
},
"global": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
},
"byInstrument": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
}
}
},
"marketSettings": {
"getMarketLeverage": {
"type": "PerMarket"
},
"setMarketLeverage": {
"type": "PerMarket"
},
"getMarketPositionMode": {
"type": "PerMarket"
},
"setMarketPositionMode": {
"type": "PerMarket"
}
},
"accountOrders": {
"subscribeToAccountOrders": {
"type": "Supported"
}
},
"accountTransactions": {
"listTransactions": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
},
"subscribeToAccountTransactions": {
"type": "Supported"
},
"supportedTransactionTypes": [
"Deposit",
"Withdrawal",
"TradingFee",
"FundingPayment"
]
}
},
"isPaper": false,
"supportedCredentialTypes": [
"ApiKey"
]
},
{
"id": "bybit-paper",
"venueIds": [
"bybit"
],
"modelHostId": "bybit",
"capabilities": {
"orders": {
"getOrder": {
"byId": {
"type": "Supported"
},
"byClientOrderId": {
"type": "Supported"
},
"byClientOrderIdForInstrument": {
"type": "Supported"
}
},
"getOrders": {
"byIds": {
"type": "Supported"
},
"byClientOrderIds": {
"type": "NotSupported"
},
"byClientOrderIdsForInstrument": {
"type": "Supported"
}
},
"listOpenOrders": {
"global": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
},
"byInstrument": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
}
},
"listClosedOrders": {
"global": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
},
"byInstrument": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
},
"globalBefore": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
},
"byInstrumentBefore": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
},
"globalAfter": {
"type": "NotSupported"
},
"byInstrumentAfter": {
"type": "NotSupported"
}
},
"cancelOrder": {
"byId": {
"type": "Supported"
},
"byClientOrderId": {
"type": "Supported"
},
"byClientOrderIdForInstrument": {
"type": "Supported"
}
},
"cancelOrders": {
"byIds": {
"type": "Supported"
},
"byClientOrderIds": {
"type": "NotSupported"
},
"byClientOrderIdsForInstrument": {
"type": "Supported"
}
},
"cancelAllOrders": {
"global": {
"type": "Supported"
},
"byInstrument": {
"type": "Supported"
}
},
"submitOrder": {
"clientOrderId": {
"type": "Supported"
}
}
},
"fills": {
"listFills": {
"byOrderId": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
},
"global": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
},
"byInstrument": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
}
}
},
"marketSettings": {
"getMarketLeverage": {
"type": "PerMarket"
},
"setMarketLeverage": {
"type": "PerMarket"
},
"getMarketPositionMode": {
"type": "PerMarket"
},
"setMarketPositionMode": {
"type": "PerMarket"
}
},
"accountOrders": {
"subscribeToAccountOrders": {
"type": "Supported"
}
},
"accountTransactions": {
"listTransactions": {
"type": "Supported",
"defaultOrdering": "ReverseChronological"
},
"subscribeToAccountTransactions": {
"type": "Supported"
},
"supportedTransactionTypes": [
"Deposit",
"Withdrawal",
"TradingFee",
"Settlement",
"Trade",
"Adjustment",
"FundingPayment"
]
}
},
"isPaper": true,
"supportedCredentialTypes": [
"Paper"
]
}
],
"nextCursor": null
}Authorizations
Body
application/json
Response
Successful result