Skip to main content
POST
/
v2
/
wallet
/
{chain}
/
{walletAddress}
/
calculate-pnl
Wallet - Calculate PNL
curl --request POST \
  --url https://api.dex.chainstream.io/v2/wallet/{chain}/{walletAddress}/calculate-pnl \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "tokenAddresses": [
    "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
    "So11111111111111111111111111111111111111112"
  ]
}
'
{
  "success": true
}

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

A chain name listed in supported networks Supported blockchain chains

Available options:
sol,
eth,
bsc
walletAddress
string
required

An address of a wallet

Body

application/json
tokenAddresses
string[] | null
Example:
[
"6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
"So11111111111111111111111111111111111111112"
]

Response

200 - application/json

Successful response

success
boolean
required
Example:

true