private/get_account
Returns account-level information for a given wallet address: the list of its subaccount IDs, WebSocket rate limits (matching, non-matching, perp, and option messages per second) and any per-endpoint overrides, cancel-on-disconnect and RFQ-maker flags, the account creation timestamp, and a fee_info block with fee discounts and per-instrument maker/taker fee overrides expressed as decimals. Returns an account-not-found error if the wallet has never been registered.
curl --request POST \
--url https://api.derive.xyz/v3/private/get_account \
--header 'Content-Type: application/json' \
--data '
{
"wallet": "<string>"
}
'import requests
url = "https://api.derive.xyz/v3/private/get_account"
payload = { "wallet": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({wallet: '<string>'})
};
fetch('https://api.derive.xyz/v3/private/get_account', 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.derive.xyz/v3/private/get_account",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'wallet' => '<string>'
]),
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://api.derive.xyz/v3/private/get_account"
payload := strings.NewReader("{\n \"wallet\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.derive.xyz/v3/private/get_account")
.header("Content-Type", "application/json")
.body("{\n \"wallet\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.derive.xyz/v3/private/get_account")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"wallet\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"cancel_on_disconnect": true,
"fallback_subaccount_id": 1,
"fee_info": {
"base_fee_discount": "<string>",
"rfq_maker_discount": "<string>",
"rfq_taker_discount": "<string>",
"option_maker_fee": "<string>",
"option_taker_fee": "<string>",
"perp_maker_fee": "<string>",
"perp_taker_fee": "<string>",
"spot_maker_fee": "<string>",
"spot_taker_fee": "<string>"
},
"is_rfq_maker": true,
"per_endpoint_tps": {},
"subaccount_ids": [
1
],
"wallet": "<string>",
"websocket_matching_tps": 1,
"websocket_non_matching_tps": 1,
"websocket_option_tps": 1,
"websocket_perp_tps": 1,
"whitelisted_recipients": [
"<string>"
],
"creation_timestamp_sec": 1,
"referral_code": "<string>"
}Body
20-byte Ethereum address as a 0x-prefixed lowercase hex string.
42^0x[0-9a-fA-F]{40}$Response
Success
Subaccount that receives deposits whose requested destination is unusable — unknown manager id, or the per-wallet subaccount cap already reached. Allocated with the account, and always in the fallback risk universe (id 0).
x >= 0Show child attributes
Show child attributes
Show child attributes
Show child attributes
x >= 0x >= 0x >= 0x >= 0x >= 0Recipients that session keys may withdraw or transfer ERC-20s to. The owner and Admin-scoped session keys bypass this list.
x >= 0curl --request POST \
--url https://api.derive.xyz/v3/private/get_account \
--header 'Content-Type: application/json' \
--data '
{
"wallet": "<string>"
}
'import requests
url = "https://api.derive.xyz/v3/private/get_account"
payload = { "wallet": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({wallet: '<string>'})
};
fetch('https://api.derive.xyz/v3/private/get_account', 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.derive.xyz/v3/private/get_account",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'wallet' => '<string>'
]),
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://api.derive.xyz/v3/private/get_account"
payload := strings.NewReader("{\n \"wallet\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.derive.xyz/v3/private/get_account")
.header("Content-Type", "application/json")
.body("{\n \"wallet\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.derive.xyz/v3/private/get_account")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"wallet\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"cancel_on_disconnect": true,
"fallback_subaccount_id": 1,
"fee_info": {
"base_fee_discount": "<string>",
"rfq_maker_discount": "<string>",
"rfq_taker_discount": "<string>",
"option_maker_fee": "<string>",
"option_taker_fee": "<string>",
"perp_maker_fee": "<string>",
"perp_taker_fee": "<string>",
"spot_maker_fee": "<string>",
"spot_taker_fee": "<string>"
},
"is_rfq_maker": true,
"per_endpoint_tps": {},
"subaccount_ids": [
1
],
"wallet": "<string>",
"websocket_matching_tps": 1,
"websocket_non_matching_tps": 1,
"websocket_option_tps": 1,
"websocket_perp_tps": 1,
"whitelisted_recipients": [
"<string>"
],
"creation_timestamp_sec": 1,
"referral_code": "<string>"
}