from compass_api_sdk import CompassAPI
with CompassAPI(
api_key_auth="<YOUR_API_KEY_HERE>",
) as compass_api:
res = compass_api.tokenized_assets.tokenized_assets_positions(owner="0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
# Handle response
print(res)import { CompassApiSDK } from "@compass-labs/api-sdk";
const compassApiSDK = new CompassApiSDK({
apiKeyAuth: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await compassApiSDK.tokenizedAssets.tokenizedAssetsPositions({
owner: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
});
console.log(result);
}
run();curl --request GET \
--url https://api.compasslabs.ai/v2/tokenized_assets/positions \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.compasslabs.ai/v2/tokenized_assets/positions', 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.compasslabs.ai/v2/tokenized_assets/positions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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.compasslabs.ai/v2/tokenized_assets/positions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.compasslabs.ai/v2/tokenized_assets/positions")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.compasslabs.ai/v2/tokenized_assets/positions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"owner": "0x2ed5C9c14E1F8baA94CD3e9b5b6e3F8e3D27504F",
"positions": [
{
"balance": "20.745964",
"balance_usd": "7361.10",
"contract_address": "0xf6b1117ec07684D3958caD8BEb1b302bfD21103f",
"current_price_usd": "354.82",
"decimals": 18,
"name": "Tesla, Inc.",
"symbol": "TSLAon",
"underlying_ticker": "TSLA"
},
{
"balance": "5.000000",
"balance_usd": "1145.65",
"contract_address": "0x6cdcF8C170552DCA1a4dD8Bb1aB6dB7e7E0bF7c4",
"current_price_usd": "229.13",
"decimals": 18,
"name": "Apple Inc.",
"symbol": "AAPLon",
"underlying_ticker": "AAPL"
}
],
"total_usd": "8506.75"
}{
"error": "<string>",
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"error": "<string>",
"message": "<string>"
}List positions
Get an owner’s tokenized-asset holdings, priced and aggregated.
Returns positions across every asset family the account holds — Ondo equities,
Midas RWA yield tokens, and IXS managed vaults — each valued in USD (equities
from the Ondo feed, RWA at the latest indexed NAV) with a total_usd total.
The account is derived from owner; pass chain for Base (Midas) or BNB Smart
Chain (IXS) holdings.
from compass_api_sdk import CompassAPI
with CompassAPI(
api_key_auth="<YOUR_API_KEY_HERE>",
) as compass_api:
res = compass_api.tokenized_assets.tokenized_assets_positions(owner="0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B")
# Handle response
print(res)import { CompassApiSDK } from "@compass-labs/api-sdk";
const compassApiSDK = new CompassApiSDK({
apiKeyAuth: "<YOUR_API_KEY_HERE>",
});
async function run() {
const result = await compassApiSDK.tokenizedAssets.tokenizedAssetsPositions({
owner: "0x29F20a192328eF1aD35e1564aBFf4Be9C5ce5f7B",
});
console.log(result);
}
run();curl --request GET \
--url https://api.compasslabs.ai/v2/tokenized_assets/positions \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.compasslabs.ai/v2/tokenized_assets/positions', 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.compasslabs.ai/v2/tokenized_assets/positions",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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.compasslabs.ai/v2/tokenized_assets/positions"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.compasslabs.ai/v2/tokenized_assets/positions")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.compasslabs.ai/v2/tokenized_assets/positions")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"owner": "0x2ed5C9c14E1F8baA94CD3e9b5b6e3F8e3D27504F",
"positions": [
{
"balance": "20.745964",
"balance_usd": "7361.10",
"contract_address": "0xf6b1117ec07684D3958caD8BEb1b302bfD21103f",
"current_price_usd": "354.82",
"decimals": 18,
"name": "Tesla, Inc.",
"symbol": "TSLAon",
"underlying_ticker": "TSLA"
},
{
"balance": "5.000000",
"balance_usd": "1145.65",
"contract_address": "0x6cdcF8C170552DCA1a4dD8Bb1aB6dB7e7E0bF7c4",
"current_price_usd": "229.13",
"decimals": 18,
"name": "Apple Inc.",
"symbol": "AAPLon",
"underlying_ticker": "AAPL"
}
],
"total_usd": "8506.75"
}{
"error": "<string>",
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"error": "<string>",
"message": "<string>"
}Query Parameters
The address of the owner of the Tokenized Assets Account to get positions for. The account address is derived deterministically from this owner; balances are read from the derived account.
Network to read positions on (defaults to Ethereum). Equities exist on Ethereum only; RWA yield assets also exist on Base. The chain to use.
base, ethereum, arbitrum, hyperevm, tempo, bsc, robinhood, ethereum_sepolia Response
Successful Response
On-chain tokenized-equity holdings for an owner's Tokenized Assets Account.
Owner address from the request. Balances are read from the Tokenized Assets Account address derived from this owner.
Sum of balance_usd across positions where the price is known.
Non-zero positions only; tokens with a zero balance are omitted.
Show child attributes
Show child attributes
Account-level PnL summed across positions that have a known PnL; null when no position can be priced.
Show child attributes
Show child attributes
Was this page helpful?