List several funds' assets
curl --request GET \
--url https://api.starke.finance/v1/vaults/assetsimport requests
url = "https://api.starke.finance/v1/vaults/assets"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.starke.finance/v1/vaults/assets', 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.starke.finance/v1/vaults/assets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.starke.finance/v1/vaults/assets"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.starke.finance/v1/vaults/assets")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.starke.finance/v1/vaults/assets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"Fund1111111111111111111111111111111111111111": [
{
"mint": "So11111111111111111111111111111111111111112",
"balance": 120.5,
"name": "Wrapped SOL",
"symbol": "SOL",
"decimals": 9,
"icon_url": "https://example.com/icons/sol.png",
"price_usd": 150.25,
"value_usd": 18105.125,
"allocation_share": 64.4
},
{
"mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"balance": 10000,
"name": "USD Coin",
"symbol": "USDC",
"decimals": 6,
"icon_url": "https://example.com/icons/usdc.png",
"price_usd": 1,
"value_usd": 10000,
"allocation_share": 35.6
}
]
}{
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}Vaults
List several funds' assets
Returns the current assets of each fund in ids, keyed by fund address. Each asset has its token mint, name, symbol, decimals and icon_url; the fund’s balance in whole tokens; price_usd, the asset’s latest price; value_usd, the balance times that price; and allocation_share, its share of the fund’s value, in percent. A fund’s assets are sorted by value, largest first. Assets with a zero balance are left out, and a fund with no assets is left out of the object.
GET
/
v1
/
vaults
/
assets
List several funds' assets
curl --request GET \
--url https://api.starke.finance/v1/vaults/assetsimport requests
url = "https://api.starke.finance/v1/vaults/assets"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.starke.finance/v1/vaults/assets', 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.starke.finance/v1/vaults/assets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.starke.finance/v1/vaults/assets"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.starke.finance/v1/vaults/assets")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.starke.finance/v1/vaults/assets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"Fund1111111111111111111111111111111111111111": [
{
"mint": "So11111111111111111111111111111111111111112",
"balance": 120.5,
"name": "Wrapped SOL",
"symbol": "SOL",
"decimals": 9,
"icon_url": "https://example.com/icons/sol.png",
"price_usd": 150.25,
"value_usd": 18105.125,
"allocation_share": 64.4
},
{
"mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"balance": 10000,
"name": "USD Coin",
"symbol": "USDC",
"decimals": 6,
"icon_url": "https://example.com/icons/usdc.png",
"price_usd": 1,
"value_usd": 10000,
"allocation_share": 35.6
}
]
}{
"errors": [
{
"path": "<string>",
"message": "<string>"
}
]
}Query Parameters
Comma-separated fund addresses, 1 to 50 of them.
Response
The assets of each fund, keyed by fund address.