跳转到主要内容
GET
/
v1
/
wallet
/
{chain}
/
{walletAddress}
钱包 - 盈亏
curl --request GET \
  --url https://api-dex.chainstream.io/v1/wallet/{chain}/{walletAddress} \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "1",
    "chain": "solana",
    "walletAddress": "oQPnhXAbLbMuKHESaGrbXT17CyvWCpLyERSJA9HCYd7",
    "tokenAddress": "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
    "tokenPriceInUsd": "1.23",
    "openTime": "1741780514000",
    "closeTime": "1741780514000",
    "lastTime": "1741780514000",
    "balance": "1000",
    "buyAmount": "1500",
    "buyAmountInUsd": "1845",
    "buys": "10",
    "sellAmount": "500",
    "sellAmountInUsd": "615",
    "sells": "5",
    "averageBuyPriceInUsd": "1.23",
    "averageSellPriceInUsd": "1.23",
    "unrealizedProfitInUsd": "123.45",
    "unrealizedProfitRatio": "12.34",
    "realizedProfitInUsd": "45.67",
    "realizedProfitRatio": "4.56",
    "totalRealizedProfitInUsd": "169.12",
    "totalRealizedProfitRatio": "16.91"
  }
]

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

路径参数

chain
enum<string>
必填

支持网络中列出的区块链名称

可用选项:
sol,
base,
bsc,
polygon,
arbitrum,
optimism,
avalanche,
eth,
zksync,
sui
walletAddress
string
必填

钱包地址

示例:

"MJKqp326RZCHnAAbew9MDdui3iCKWco7fsK9sVuZTX2"

查询参数

tokenAddress
string

代币地址

示例:

"6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"

响应

200 - application/json
id
number
必填

记录标识符

示例:

"1"

chain
string
必填

区块链网络

示例:

"solana"

walletAddress
string
必填

钱包地址

示例:

"oQPnhXAbLbMuKHESaGrbXT17CyvWCpLyERSJA9HCYd7"

tokenAddress
string
必填

代币合约地址

示例:

"6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"

tokenPriceInUsd
number
必填

当前代币美元价格

示例:

"1.23"

openTime
number
必填

持仓开始时间

示例:

"1741780514000"

closeTime
number
必填

持仓结束时间

示例:

"1741780514000"

lastTime
number
必填

最后更新时间

示例:

"1741780514000"

balance
number
必填

当前代币余额

示例:

"1000"

buyAmount
number
必填

买入代币总量

示例:

"1500"

buyAmountInUsd
number
必填

买入代币总美元价值

示例:

"1845"

buys
number
必填

买入交易次数

示例:

"10"

sellAmount
number
必填

卖出代币总量

示例:

"500"

sellAmountInUsd
number
必填

卖出代币总美元价值

示例:

"615"

sells
number
必填

卖出交易次数

示例:

"5"

averageBuyPriceInUsd
number
必填

平均买入价格

示例:

"1.23"

averageSellPriceInUsd
number
必填

平均卖出价格

示例:

"1.23"

unrealizedProfitInUsd
number
必填

未实现盈利(美元)

示例:

"123.45"

unrealizedProfitRatio
number
必填

未实现盈利比率

示例:

"12.34"

realizedProfitInUsd
number
必填

已实现盈利(美元)

示例:

"45.67"

realizedProfitRatio
number
必填

已实现盈利比率

示例:

"4.56"

totalRealizedProfitInUsd
number
必填

总实现盈利(美元)

示例:

"169.12"

totalRealizedProfitRatio
number
必填

总实现盈利比率

示例:

"16.91"