GET
/
wallet
/
{chain}
/
{walletAddress}
/
balance
curl --request GET \
  --url https://api-dex.chainstream.io/wallet/{chain}/{walletAddress}/balance \
  --header 'Authorization: Bearer <token>'
{
  "totalBalancesInUsd": "1000000",
  "totalProfitInUsd": "1000000",
  "balances": [
    {
      "tokenAddress": "So11111111111111111111111111111111111111112",
      "amount": "2675.098457775",
      "valueInUsd": "366908.31721324675",
      "name": "Solana",
      "symbol": "SOL",
      "imageUrl": "https://solana.com/images/solana-logo.png",
      "priceInSol": "137.15",
      "priceInUsd": "137.15",
      "priceChangeRatioInUsd24h": "5.23",
      "unrealizedProfitInUsd": "123.45",
      "unrealizedProfitRatio": "12.34",
      "openTime": "1741780466000",
      "closeTime": "1741780466000",
      "buys": 10,
      "buyAmount": "1500",
      "buyAmountInUsd": "1845",
      "sells": 5,
      "sellAmount": "500",
      "sellAmountInUsd": "615",
      "averageBuyPrice": "1.23",
      "averageSellPrice": "1.23",
      "realizedProfitInUsd": "1234.56",
      "realizedProfitRatio": "12.34",
      "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"

Response

200 - application/json
totalBalancesInUsd
string
required

钱包总价值

Example:

"1000000"

totalProfitInUsd
string
required

总盈亏(美元)

Example:

"1000000"

balances
object[]
required

钱包余额详情