Skip to main content
Get comprehensive portfolio data for a blockchain address including assets, protocol positions, and net worth across multiple chains.
Interactive Playground: Test this endpoint in the API Playground. Get your API key at data.octav.fi
Cost: 1 credit per call

Endpoint


Parameters

addresses
string
required
EVM or SOL wallet address to retrieve portfolio data for
includeImages
boolean
default:"false"
Include image URLs for chains, assets, and protocolsUseful for displaying logos in your application UI
includeExplorerUrls
boolean
default:"false"
Include blockchain explorer URLs for assets and transactionsLinks to Etherscan, Arbiscan, etc. for easy navigation
waitForSync
boolean
default:"false"
Wait for fresh data if cache is stale
  • false: Return cached data immediately (recommended)
  • true: Wait for sync if data is older than 1 minute

Response

Portfolio Object

address
string
The wallet address
networth
string
Total portfolio net worth in USD
cashBalance
string
Available cash balance
dailyIncome
string
Income generated today
dailyExpense
string
Expenses incurred today
fees
string
Total fees in native asset
feesFiat
string
Total fees in USD
lastUpdated
string
Last sync timestamp (milliseconds since epoch)
openPnl
string
Unrealized profit/loss (if available, otherwise “N/A”)
closedPnl
string
Realized profit/loss (if available, otherwise “N/A”)
totalCostBasis
string
Total cost basis of holdings (if available, otherwise “N/A”)
assetByProtocols
object
Assets organized by protocol (wallet, lending, staking, etc.), keyed by protocol identifier.Each protocol contains:
  • key: Protocol identifier
  • name: Protocol display name
  • value: Total value in USD
  • chains: Object keyed by chain identifier. Each chain holds a protocolPositions object whose entries contain the assets[] array.
Asset path: assetByProtocols.<protocol>.chains.<chain>.protocolPositions.<POSITION>.assets[]Each asset contains symbol, name, balance, price, value, decimal, contract, chainKey, and chainContract. The on-chain token address is contract (native assets use the zero address); chainContract is the <chain>:<contract> composite key.
chains
object
Per-chain totals, keyed by chain identifier.Each chain contains:
  • key: Chain identifier (e.g., “ethereum”, “arbitrum”)
  • name: Chain display name
  • chainId: Numeric chain ID
  • value: Total value on this chain
  • valuePercentile: Share of total net worth on this chain
  • totalCostBasis, totalClosedPnl, totalOpenPnl: Cost basis and P&L (or “N/A”)

Example Request


Example Response


Data Freshness

The Portfolio endpoint uses intelligent caching to balance data freshness with performance:
Cache Duration: 1 minuteWhen data is less than 1 minute old:
  • Cached data returned immediately
  • Response time: under 100ms
When data is more than 1 minute old:
  • Cached data returned immediately
  • Background sync initiated for next request
  • Next request gets fresh data
With waitForSync=true:
  • Waits for sync if data is stale
  • Returns data less than 1 minute old
  • Response time: Variable (1-10 seconds)
For most use cases:
  • Use default waitForSync=false
  • Data fresher than 1 minute is sufficient
  • Fast response times
For real-time tracking:
  • Set waitForSync=true when you need the absolute latest data
  • Accept longer response times
  • Consider rate limits
For background updates:
  • Call endpoint periodically to keep cache warm
  • Background sync ensures next request is fresh

Use Cases

Display portfolio overview with net worth and asset breakdown:

Error Responses

Invalid parameters provided.
Common causes:
  • Missing addresses parameter
  • Invalid address format
Authentication failed.
Solution: Check your API key in the Authorization header
Rate limit exceeded.
Solution: Wait for the specified time or implement retry logic
Insufficient credits.
Solution: Purchase more credits at data.octav.fi

Transactions

View transaction history for this address

Token Overview

Get detailed token breakdown by protocol

Historical Portfolio

View portfolio value at specific dates

Status

Check when portfolio was last synced