POST
/
v1
/
wallet
/
{chain}
/
{walletAddress}
/
calculate-pnl
Wallet - Calculate PNL
curl --request POST \
  --url https://api-dex.chainstream.io/v1/wallet/{chain}/{walletAddress}/calculate-pnl \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "tokenAddresses": [
    "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN",
    "6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN"
  ]
}'
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

Available options:
sol,
base,
bsc,
polygon,
arbitrum,
optimism,
avalanche,
ethereum,
zksync,
sui
walletAddress
string
required

An address of a wallet

Example:

"MJKqp326RZCHnAAbew9MDdui3iCKWco7fsK9sVuZTX2"

Body

application/json

Response

200 - application/json

The response is of type boolean.