Vault Shareholders
List all vaults
Returns every vault in the system, each paired with its subaccount id, paginated by page and page_size. Unauthenticated and read-only.
POST
/
public
/
get_vaults
List all vaults
curl --request POST \
--url https://api.derive.xyz/v3/public/get_vaults \
--header 'Content-Type: application/json' \
--data '
{
"page": 1,
"page_size": 100
}
'import requests
url = "https://api.derive.xyz/v3/public/get_vaults"
payload = {
"page": 1,
"page_size": 100
}
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({page: 1, page_size: 100})
};
fetch('https://api.derive.xyz/v3/public/get_vaults', 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/public/get_vaults",
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([
'page' => 1,
'page_size' => 100
]),
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/public/get_vaults"
payload := strings.NewReader("{\n \"page\": 1,\n \"page_size\": 100\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/public/get_vaults")
.header("Content-Type", "application/json")
.body("{\n \"page\": 1,\n \"page_size\": 100\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.derive.xyz/v3/public/get_vaults")
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 \"page\": 1,\n \"page_size\": 100\n}"
response = http.request(request)
puts response.read_body{
"pagination": {
"count": 1,
"num_pages": 1
},
"vaults": [
{
"curator": "<string>",
"curator_shares": "<string>",
"description": "<string>",
"name": "<string>",
"protocol": {
"closed": true,
"config": {
"cooldown_sec": 1,
"deposit_spot_asset": "<string>",
"management_fee_bps": 1,
"max_slippage_bps": 1,
"performance_fee_bps": 1,
"benchmark_asset": "<string>"
},
"global_hwm": "<string>",
"last_fee_settled_at_sec": 1,
"protocol_fee_share_bps": 1,
"subaccount_id": 1,
"total_shares": "<string>"
},
"whitelist_only": true,
"benchmark_price": null,
"mtm_cap": null,
"nav_benchmark": null,
"nav_usd": null,
"simulated_share_price_usd": null
}
]
}Body
application/json
Related topics
List vaults a wallet curatesList all referral codesList a wallet's pending vault requests⌘I
List all vaults
curl --request POST \
--url https://api.derive.xyz/v3/public/get_vaults \
--header 'Content-Type: application/json' \
--data '
{
"page": 1,
"page_size": 100
}
'import requests
url = "https://api.derive.xyz/v3/public/get_vaults"
payload = {
"page": 1,
"page_size": 100
}
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({page: 1, page_size: 100})
};
fetch('https://api.derive.xyz/v3/public/get_vaults', 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/public/get_vaults",
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([
'page' => 1,
'page_size' => 100
]),
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/public/get_vaults"
payload := strings.NewReader("{\n \"page\": 1,\n \"page_size\": 100\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/public/get_vaults")
.header("Content-Type", "application/json")
.body("{\n \"page\": 1,\n \"page_size\": 100\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.derive.xyz/v3/public/get_vaults")
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 \"page\": 1,\n \"page_size\": 100\n}"
response = http.request(request)
puts response.read_body{
"pagination": {
"count": 1,
"num_pages": 1
},
"vaults": [
{
"curator": "<string>",
"curator_shares": "<string>",
"description": "<string>",
"name": "<string>",
"protocol": {
"closed": true,
"config": {
"cooldown_sec": 1,
"deposit_spot_asset": "<string>",
"management_fee_bps": 1,
"max_slippage_bps": 1,
"performance_fee_bps": 1,
"benchmark_asset": "<string>"
},
"global_hwm": "<string>",
"last_fee_settled_at_sec": 1,
"protocol_fee_share_bps": 1,
"subaccount_id": 1,
"total_shares": "<string>"
},
"whitelist_only": true,
"benchmark_price": null,
"mtm_cap": null,
"nav_benchmark": null,
"nav_usd": null,
"simulated_share_price_usd": null
}
]
}