curl --request GET \
--url https://test.deribit.com/api/v2/private/get_members \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 58,
"method": "private/get_members",
"params": {}
}
'import requests
url = "https://test.deribit.com/api/v2/private/get_members"
payload = {
"jsonrpc": "2.0",
"id": 58,
"method": "private/get_members",
"params": {}
}
headers = {"Content-Type": "application/json"}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({jsonrpc: '2.0', id: 58, method: 'private/get_members', params: {}})
};
fetch('https://test.deribit.com/api/v2/private/get_members', 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://test.deribit.com/api/v2/private/get_members",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'jsonrpc' => '2.0',
'id' => 58,
'method' => 'private/get_members',
'params' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://test.deribit.com/api/v2/private/get_members"
payload := strings.NewReader("{\n \"jsonrpc\": \"2.0\",\n \"id\": 58,\n \"method\": \"private/get_members\",\n \"params\": {}\n}")
req, _ := http.NewRequest("GET", url, payload)
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.get("https://test.deribit.com/api/v2/private/get_members")
.header("Content-Type", "application/json")
.body("{\n \"jsonrpc\": \"2.0\",\n \"id\": 58,\n \"method\": \"private/get_members\",\n \"params\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://test.deribit.com/api/v2/private/get_members")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"jsonrpc\": \"2.0\",\n \"id\": 58,\n \"method\": \"private/get_members\",\n \"params\": {}\n}"
response = http.request(request)
puts response.read_body{
"jsonrpc": "2.0",
"id": 58,
"result": {
"members": [
{
"member_id": 195,
"main_uid": 57874,
"name": "Member1",
"is_active": true,
"accounts": [
85867
],
"m_tstamp": 1690000000000
}
],
"is_direct_access_allowed": true
}
}private/get_members
Retrieves the list of Direct Access members configured for the account. A member represents an external identity (e.g. a FIX or Direct Access order gateway user) that can be granted Direct Access trading rights on the account or one of its subaccounts.
This method is dedicated to Starbase. See Starbase Account Model for an explanation of Members, portfolios, and their relationship to Deribit accounts.
When called from a subaccount, only members whose accounts include that subaccount are
returned, and only the name and is_active fields are included for each of them.
Scope: account:read
curl --request GET \
--url https://test.deribit.com/api/v2/private/get_members \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"id": 58,
"method": "private/get_members",
"params": {}
}
'import requests
url = "https://test.deribit.com/api/v2/private/get_members"
payload = {
"jsonrpc": "2.0",
"id": 58,
"method": "private/get_members",
"params": {}
}
headers = {"Content-Type": "application/json"}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({jsonrpc: '2.0', id: 58, method: 'private/get_members', params: {}})
};
fetch('https://test.deribit.com/api/v2/private/get_members', 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://test.deribit.com/api/v2/private/get_members",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'jsonrpc' => '2.0',
'id' => 58,
'method' => 'private/get_members',
'params' => [
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://test.deribit.com/api/v2/private/get_members"
payload := strings.NewReader("{\n \"jsonrpc\": \"2.0\",\n \"id\": 58,\n \"method\": \"private/get_members\",\n \"params\": {}\n}")
req, _ := http.NewRequest("GET", url, payload)
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.get("https://test.deribit.com/api/v2/private/get_members")
.header("Content-Type", "application/json")
.body("{\n \"jsonrpc\": \"2.0\",\n \"id\": 58,\n \"method\": \"private/get_members\",\n \"params\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://test.deribit.com/api/v2/private/get_members")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"jsonrpc\": \"2.0\",\n \"id\": 58,\n \"method\": \"private/get_members\",\n \"params\": {}\n}"
response = http.request(request)
puts response.read_body{
"jsonrpc": "2.0",
"id": 58,
"result": {
"members": [
{
"member_id": 195,
"main_uid": 57874,
"name": "Member1",
"is_active": true,
"accounts": [
85867
],
"m_tstamp": 1690000000000
}
],
"is_direct_access_allowed": true
}
}Response
Success response
The JSON-RPC version (2.0)
2.0 Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Name of the member.
64"Member1"
Whether the member is active. Only active members have Direct Access trading rights.
true
Member identifier. Only present when the request is made from the main account.
x >= 1195
User ID of the main account the member belongs to. Only present when the request is made from the main account.
x >= 157874
List of (sub)account user ids the member has Direct Access trading rights on. Only present when the request is made from the main account.
x >= 1[85867]
Timestamp of the last modification of the member, in milliseconds since the UNIX epoch. Only present when the request is made from the main account.
x >= 01690000000000
Whether Direct Access trading is enabled for the account.
true
The id that was sent in the request
Related topics
private/delete_memberprivate/set_memberprivate/get_transfersprivate/get_withdrawalsprivate/get_depositsWas this page helpful?