跳转到主要内容
GET
SDK
钱包的净值走势,以 USD 和 SOL 计。每个点是该小时或该天(UTC)结束时的净值。
  • 通过 Wallet V2 请求过的钱包会记录净值,并在最后一次请求后继续记录 30 天。请求一个尚未记录的钱包会开始记录它。
  • 钱包开始记录之前的点只计入代币,不含 DeFi 仓位,includesPositions 为 false。传入 includesPositions=true 可排除这些点。
  • changePercent 是相对前一个点的变化。在从仅含代币的点切换到完整点的位置为 null。
  • change 将最新的点与 24 小时前和 30 天前比较。30 天变化需要超过 30 天的时间范围。
响应中的 time 为 Unix 毫秒;time_from 和 time_to 为 Unix 秒。

SDK Example

授权

x-api-key
string
header
必填

API Key for authentication

路径参数

wallet
string
默认值:CN8w8cuh87gZYjhpaPxbD78GTrBmUKmVysqgsC9uYu9i
必填

钱包地址。

查询参数

interval
enum<string>
默认值:1d

1d 每天一个点(单次最多 5 年,默认 365 天),1h 每小时一个点(单次最多 90 天,默认 7 天)。

可用选项:
1d,
1h
time_from
integer

开始时间,Unix 秒,包含该时间。默认为 time_to 之前 7 天(1h)或 365 天(1d)。

time_to
integer

结束时间,Unix 秒,包含该时间。默认为当前时间。不能早于 time_from。

includesPositions
boolean

true 只返回包含 DeFi 仓位的点,不返回较早的仅含代币的点。

响应

钱包的净值历史。

wallet
string
必填
interval
enum<string>
必填
可用选项:
1h,
1d
change
object
必填

Change between the latest point and the points 24 hours and 30 days earlier. Null when there is no earlier point to compare with, or when one of the two points counts tokens only. The 30-day change needs a time range longer than 30 days.

points
object[]
必填