跳转到主要内容
GET
SDK

SDK Example

授权

x-api-key
string
header
必填

用于鉴权的 API Key

路径参数

wallet
string
必填

Solana 钱包地址(Base58,约 32–44 字符)

Pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$
token
string
必填

Solana 代币 mint 地址(Base58,约 32–44 字符)

Pattern: ^[1-9A-HJ-NP-Za-km-z]{32,44}$

查询参数

pnlMode
enum<string>
默认值:strict

对被无效 PnL 启发式标记的仓位:strict 归零;adjusted 按成本基础封顶;raw 不改动已实现盈亏。API 也接受别名 pnl_modemode

可用选项:
strict,
adjusted,
raw

响应

Successful response.

A single token position for a wallet.

wallet
string
identity
object

Unified wallet identity. Only fields with known values are returned; a wallet can carry multiple tags at once.

pnlMode
enum<string>
可用选项:
strict,
adjusted,
raw
token
string

Token mint address (base58).

pnl
object

Realized, unrealized, and total profit/loss in USD.

invested
number | null

Total cost basis (USD spent buying this token).

proceeds
number | null

Total USD received from sales of this token.

roi
number | null

Return on investment percentage.

current
object
volume
object
averages
object
counts
object
timing
object
meta
object

Basic token metadata and current market data.

portfolioPercent
number | null

This position's value as a percentage of the wallet's total holdings value. Only present on the positions endpoint.