GET
/
wallet
/
{chain}
/
{walletAddress}
curl --request GET \
  --url https://api-dex.chainstream.io/wallet/{chain}/{walletAddress} \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "1",
    "chain": "solana",
    "walletAddress": "HN7cABqLq46Es1jh92dQQisAq662SmxELLLsHHe4YWrH",
    "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",
    "averageBuyPrice": "1.23",
    "averageSellPrice": "1.23",
    "unrealizedProfitInUsd": "123.45",
    "unrealizedProfitRatio": "12.34",
    "realizedProfitInUsd": "45.67",
    "realizedProfitRatio": "4.56",
    "totalRealizedProfitInUsd": "169.12",
    "totalRealizedProfitRatio": "16.91"
  }
]

Authorizations

Authorization
string
header
required

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

Path Parameters

chain
enum<string>
required

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

Available options:
sol,
base
walletAddress
string
required

钱包地址

Example:

"MJKqp326RZCHnAAbew9MDdui3iCKWco7fsK9sVuZTX2"

Query Parameters

tokenAddress
string

代币地址

Example:

"6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"

Response

200 - application/json
id
number
required

记录标识符

Example:

"1"

chain
string
required

区块链网络

Example:

"solana"

walletAddress
string
required

钱包地址

Example:

"HN7cABqLq46Es1jh92dQQisAq662SmxELLLsHHe4YWrH"

tokenAddress
string
required

代币合约地址

Example:

"6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"

tokenPriceInUsd
number
required

当前代币美元价格

Example:

"1.23"

openTime
number
required

持仓开始时间

Example:

"1741780514000"

closeTime
number
required

持仓结束时间

Example:

"1741780514000"

lastTime
number
required

最后更新时间

Example:

"1741780514000"

balance
number
required

当前代币余额

Example:

"1000"

buyAmount
number
required

买入代币总量

Example:

"1500"

buyAmountInUsd
number
required

买入代币总美元价值

Example:

"1845"

buys
number
required

买入交易次数

Example:

"10"

sellAmount
number
required

卖出代币总量

Example:

"500"

sellAmountInUsd
number
required

卖出代币总美元价值

Example:

"615"

sells
number
required

卖出交易次数

Example:

"5"

averageBuyPrice
number
required

平均买入价格

Example:

"1.23"

averageSellPrice
number
required

平均卖出价格

Example:

"1.23"

unrealizedProfitInUsd
number
required

未实现盈利(美元)

Example:

"123.45"

unrealizedProfitRatio
number
required

未实现盈利比率

Example:

"12.34"

realizedProfitInUsd
number
required

已实现盈利(美元)

Example:

"45.67"

realizedProfitRatio
number
required

已实现盈利比率

Example:

"4.56"

totalRealizedProfitInUsd
number
required

总实现盈利(美元)

Example:

"169.12"

totalRealizedProfitRatio
number
required

总实现盈利比率

Example:

"16.91"