POST
/
v1
/
wallet
/
{chain}
/
{walletAddress}
/
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

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

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

钱包地址

Example:

"MJKqp326RZCHnAAbew9MDdui3iCKWco7fsK9sVuZTX2"

Body

application/json

Response

200 - application/json

The response is of type boolean.