curl --request GET \
--url https://{host}/v1/portfolio \
--header 'Authorization: Bearer <token>'import requests
url = "https://{host}/v1/portfolio"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v1/portfolio', 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://{host}/v1/portfolio",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://{host}/v1/portfolio"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{host}/v1/portfolio")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/v1/portfolio")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"asOf": 123,
"spot": {
"balancesValueUsd": "123.456789",
"chains": [
{
"chain": "solana",
"nativeBalance": {
"native": "123.456789",
"usd": "123.456789"
},
"positionsValue": {
"native": "123.456789",
"usd": "123.456789"
},
"stableBalanceUsd": "123.456789",
"valueUsd": "123.456789"
}
],
"positionsValueUsd": "123.456789",
"valueUsd": "123.456789"
},
"totalValueUsd": "123.456789",
"wallets": [
{
"addresses": {
"evm": "<string>",
"solana": "<string>"
},
"spot": {
"balancesValueUsd": "123.456789",
"chains": [
{
"chain": "solana",
"nativeBalance": {
"native": "123.456789",
"usd": "123.456789"
},
"positionsValue": {
"native": "123.456789",
"usd": "123.456789"
},
"stableBalanceUsd": "123.456789",
"valueUsd": "123.456789"
}
],
"positionsValueUsd": "123.456789",
"valueUsd": "123.456789"
},
"stats": {
"max": {
"buckets": {
"loss": 1,
"moonshot": 1,
"pump": 1,
"rekt": 1,
"win": 1
},
"chains": [
{
"chain": "solana",
"open": 1,
"realized": {
"native": "123.456789",
"usd": "123.456789"
},
"unrealized": {
"native": "123.456789",
"usd": "123.456789"
}
}
],
"open": 1,
"realizedUsd": "123.456789",
"trades": {
"buys": 1,
"sells": 1,
"total": 1
},
"unrealizedUsd": "123.456789"
},
"oneDay": {
"buckets": {
"loss": 1,
"moonshot": 1,
"pump": 1,
"rekt": 1,
"win": 1
},
"chains": [
{
"chain": "solana",
"open": 1,
"realized": {
"native": "123.456789",
"usd": "123.456789"
},
"unrealized": {
"native": "123.456789",
"usd": "123.456789"
}
}
],
"open": 1,
"realizedUsd": "123.456789",
"trades": {
"buys": 1,
"sells": 1,
"total": 1
},
"unrealizedUsd": "123.456789"
},
"sevenDays": {
"buckets": {
"loss": 1,
"moonshot": 1,
"pump": 1,
"rekt": 1,
"win": 1
},
"chains": [
{
"chain": "solana",
"open": 1,
"realized": {
"native": "123.456789",
"usd": "123.456789"
},
"unrealized": {
"native": "123.456789",
"usd": "123.456789"
}
}
],
"open": 1,
"realizedUsd": "123.456789",
"trades": {
"buys": 1,
"sells": 1,
"total": 1
},
"unrealizedUsd": "123.456789"
},
"thirtyDays": {
"buckets": {
"loss": 1,
"moonshot": 1,
"pump": 1,
"rekt": 1,
"win": 1
},
"chains": [
{
"chain": "solana",
"open": 1,
"realized": {
"native": "123.456789",
"usd": "123.456789"
},
"unrealized": {
"native": "123.456789",
"usd": "123.456789"
}
}
],
"open": 1,
"realizedUsd": "123.456789",
"trades": {
"buys": 1,
"sells": 1,
"total": 1
},
"unrealizedUsd": "123.456789"
}
}
}
],
"stats": {
"max": {
"buckets": {
"loss": 1,
"moonshot": 1,
"pump": 1,
"rekt": 1,
"win": 1
},
"chains": [
{
"chain": "solana",
"open": 1,
"realized": {
"native": "123.456789",
"usd": "123.456789"
},
"unrealized": {
"native": "123.456789",
"usd": "123.456789"
}
}
],
"open": 1,
"realizedUsd": "123.456789",
"trades": {
"buys": 1,
"sells": 1,
"total": 1
},
"unrealizedUsd": "123.456789"
},
"oneDay": {
"buckets": {
"loss": 1,
"moonshot": 1,
"pump": 1,
"rekt": 1,
"win": 1
},
"chains": [
{
"chain": "solana",
"open": 1,
"realized": {
"native": "123.456789",
"usd": "123.456789"
},
"unrealized": {
"native": "123.456789",
"usd": "123.456789"
}
}
],
"open": 1,
"realizedUsd": "123.456789",
"trades": {
"buys": 1,
"sells": 1,
"total": 1
},
"unrealizedUsd": "123.456789"
},
"sevenDays": {
"buckets": {
"loss": 1,
"moonshot": 1,
"pump": 1,
"rekt": 1,
"win": 1
},
"chains": [
{
"chain": "solana",
"open": 1,
"realized": {
"native": "123.456789",
"usd": "123.456789"
},
"unrealized": {
"native": "123.456789",
"usd": "123.456789"
}
}
],
"open": 1,
"realizedUsd": "123.456789",
"trades": {
"buys": 1,
"sells": 1,
"total": 1
},
"unrealizedUsd": "123.456789"
},
"thirtyDays": {
"buckets": {
"loss": 1,
"moonshot": 1,
"pump": 1,
"rekt": 1,
"win": 1
},
"chains": [
{
"chain": "solana",
"open": 1,
"realized": {
"native": "123.456789",
"usd": "123.456789"
},
"unrealized": {
"native": "123.456789",
"usd": "123.456789"
}
}
],
"open": 1,
"realizedUsd": "123.456789",
"trades": {
"buys": 1,
"sells": 1,
"total": 1
},
"unrealizedUsd": "123.456789"
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>"
}
}The summed spot holdings of the named wallets, per chain, with each wallet's share.
wallets names 1 to 100 addresses. Each costs one credit.
An EVM address counts on every EVM chain in scope, and
a Solana address on Solana. chains narrows the scope, and without it the read covers every
spot chain. A value is the gas and stablecoin balances plus the open positions at each
token’s latest price. An open position in a stablecoin that a balance row can hold counts at
1wherenobalancerowholdsit.Apositionwithoutapriceaddsnothing.Neitherdoesoneworthmorethanitstoken′smarketcap.Neitherdoesonewhosetokenhasnoknownmarketcapandunder1,000 of liquidity. hideLowLiquidity=true drops an open position on a thin token
from the values and the stats. A thin token has under $1,000 of liquidity, or none known. A
stablecoin that a balance row can hold is never thin.
include=stats adds performance over the standard timeframes, for the portfolio and for each
wallet.
curl --request GET \
--url https://{host}/v1/portfolio \
--header 'Authorization: Bearer <token>'import requests
url = "https://{host}/v1/portfolio"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{host}/v1/portfolio', 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://{host}/v1/portfolio",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://{host}/v1/portfolio"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{host}/v1/portfolio")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{host}/v1/portfolio")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"asOf": 123,
"spot": {
"balancesValueUsd": "123.456789",
"chains": [
{
"chain": "solana",
"nativeBalance": {
"native": "123.456789",
"usd": "123.456789"
},
"positionsValue": {
"native": "123.456789",
"usd": "123.456789"
},
"stableBalanceUsd": "123.456789",
"valueUsd": "123.456789"
}
],
"positionsValueUsd": "123.456789",
"valueUsd": "123.456789"
},
"totalValueUsd": "123.456789",
"wallets": [
{
"addresses": {
"evm": "<string>",
"solana": "<string>"
},
"spot": {
"balancesValueUsd": "123.456789",
"chains": [
{
"chain": "solana",
"nativeBalance": {
"native": "123.456789",
"usd": "123.456789"
},
"positionsValue": {
"native": "123.456789",
"usd": "123.456789"
},
"stableBalanceUsd": "123.456789",
"valueUsd": "123.456789"
}
],
"positionsValueUsd": "123.456789",
"valueUsd": "123.456789"
},
"stats": {
"max": {
"buckets": {
"loss": 1,
"moonshot": 1,
"pump": 1,
"rekt": 1,
"win": 1
},
"chains": [
{
"chain": "solana",
"open": 1,
"realized": {
"native": "123.456789",
"usd": "123.456789"
},
"unrealized": {
"native": "123.456789",
"usd": "123.456789"
}
}
],
"open": 1,
"realizedUsd": "123.456789",
"trades": {
"buys": 1,
"sells": 1,
"total": 1
},
"unrealizedUsd": "123.456789"
},
"oneDay": {
"buckets": {
"loss": 1,
"moonshot": 1,
"pump": 1,
"rekt": 1,
"win": 1
},
"chains": [
{
"chain": "solana",
"open": 1,
"realized": {
"native": "123.456789",
"usd": "123.456789"
},
"unrealized": {
"native": "123.456789",
"usd": "123.456789"
}
}
],
"open": 1,
"realizedUsd": "123.456789",
"trades": {
"buys": 1,
"sells": 1,
"total": 1
},
"unrealizedUsd": "123.456789"
},
"sevenDays": {
"buckets": {
"loss": 1,
"moonshot": 1,
"pump": 1,
"rekt": 1,
"win": 1
},
"chains": [
{
"chain": "solana",
"open": 1,
"realized": {
"native": "123.456789",
"usd": "123.456789"
},
"unrealized": {
"native": "123.456789",
"usd": "123.456789"
}
}
],
"open": 1,
"realizedUsd": "123.456789",
"trades": {
"buys": 1,
"sells": 1,
"total": 1
},
"unrealizedUsd": "123.456789"
},
"thirtyDays": {
"buckets": {
"loss": 1,
"moonshot": 1,
"pump": 1,
"rekt": 1,
"win": 1
},
"chains": [
{
"chain": "solana",
"open": 1,
"realized": {
"native": "123.456789",
"usd": "123.456789"
},
"unrealized": {
"native": "123.456789",
"usd": "123.456789"
}
}
],
"open": 1,
"realizedUsd": "123.456789",
"trades": {
"buys": 1,
"sells": 1,
"total": 1
},
"unrealizedUsd": "123.456789"
}
}
}
],
"stats": {
"max": {
"buckets": {
"loss": 1,
"moonshot": 1,
"pump": 1,
"rekt": 1,
"win": 1
},
"chains": [
{
"chain": "solana",
"open": 1,
"realized": {
"native": "123.456789",
"usd": "123.456789"
},
"unrealized": {
"native": "123.456789",
"usd": "123.456789"
}
}
],
"open": 1,
"realizedUsd": "123.456789",
"trades": {
"buys": 1,
"sells": 1,
"total": 1
},
"unrealizedUsd": "123.456789"
},
"oneDay": {
"buckets": {
"loss": 1,
"moonshot": 1,
"pump": 1,
"rekt": 1,
"win": 1
},
"chains": [
{
"chain": "solana",
"open": 1,
"realized": {
"native": "123.456789",
"usd": "123.456789"
},
"unrealized": {
"native": "123.456789",
"usd": "123.456789"
}
}
],
"open": 1,
"realizedUsd": "123.456789",
"trades": {
"buys": 1,
"sells": 1,
"total": 1
},
"unrealizedUsd": "123.456789"
},
"sevenDays": {
"buckets": {
"loss": 1,
"moonshot": 1,
"pump": 1,
"rekt": 1,
"win": 1
},
"chains": [
{
"chain": "solana",
"open": 1,
"realized": {
"native": "123.456789",
"usd": "123.456789"
},
"unrealized": {
"native": "123.456789",
"usd": "123.456789"
}
}
],
"open": 1,
"realizedUsd": "123.456789",
"trades": {
"buys": 1,
"sells": 1,
"total": 1
},
"unrealizedUsd": "123.456789"
},
"thirtyDays": {
"buckets": {
"loss": 1,
"moonshot": 1,
"pump": 1,
"rekt": 1,
"win": 1
},
"chains": [
{
"chain": "solana",
"open": 1,
"realized": {
"native": "123.456789",
"usd": "123.456789"
},
"unrealized": {
"native": "123.456789",
"usd": "123.456789"
}
}
],
"open": 1,
"realizedUsd": "123.456789",
"trades": {
"buys": 1,
"sells": 1,
"total": 1
},
"unrealizedUsd": "123.456789"
}
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "<string>",
"details": "<unknown>"
}
}Authorizations
Query Parameters
Response
The named wallets' spot holdings. A gas balance without a price has a null USD value, which no total counts.
The summed spot holdings of the named wallets.