跳转到主要内容
GET
SDK
一次调用获取钱包的完整投资组合:所持代币,以及在借贷、流动性、质押、杠杆和挂单平台上的 DeFi 仓位。
  • 净值:以 USD 和 SOL 计,以及过去 24 小时的变化。
  • 拆分:按类别(holdings、lending、liquidity、staking 等)和按平台。每个列表的合计等于 netWorth.usd。
  • 收益率:按当前利率,钱包一年能赚多少,已扣除借款成本。apy 只按产生收益的部分计算,而不是整个净值。
  • 可领取奖励:现在就能领取的奖励,计入净值。
  • 最大持仓:价值最高的 10 个代币,以及各自价格来源的池子。代币名称、符号和 logo 在 tokens 中。
  • 身份与钱包年龄:钱包的已知标签,以及首次入金的时间和来源。
如果某个平台暂时无法加载,它不会计入合计,请求仍会成功。没有价格的代币不计入。百分比直接用数字表示:6.99 即 6.99%。 数据最多可能延迟约一分钟。updatedAt 表示数据获取时间。 使用 Get Portfolio Platforms 查看支持的平台。

SDK Example

授权

x-api-key
string
header
必填

API Key for authentication

路径参数

wallet
string
默认值:CN8w8cuh87gZYjhpaPxbD78GTrBmUKmVysqgsC9uYu9i
必填

钱包地址。

响应

钱包概览。

wallet
string
必填
slot
integer
必填

Solana slot the data was fetched at.

updatedAt
integer
必填

When the data was fetched, in Unix milliseconds.

netWorth
object
必填
breakdown
object
必填

Net worth split by category and by platform. Each list adds up to netWorth.usd.

yield
object
必填

What the wallet earns in a year at today's rates: interest and rewards, minus borrowing costs. Only positions and tokens with a known rate count.

claimable
object
必填
topHoldings
object[]
必填

The 10 most valuable tokens, largest first.

counts
object
必填
identity
object | null

Known labels for the wallet, such as a name, KOL profile or exchange. Null when none are known.

age
object | null

When the wallet received its first incoming transfer (its first funding). Null when unknown.

tokens
object

Details of each token in topHoldings: name, symbol, decimals, logo and supply, plus metadata link, description, creator and socials when known.