GET /priapi/v1/dx/market/v2/pnl/wallet-profile/summary

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/web3okx/priapi/v1/dx/market/v2/pnl/wallet-profile/summaryCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Native token balance (amount and USD value) plus DEX PnL summary for an address on one chain

Step 2 of the native-balance workflow: call once per chainId returned by all-chains. nativeTokenBalanceAmount and nativeTokenBalanceUsd are the balance fields. Live values confirmed 2026-09-01: 6.6421... ETH (~$16,461) on chainId=1 and 1.4028... OKB (~$158) on chainId=196 for the example address. periodType=1 was the only observed value; other values are unverified.

Parameters

nameintypedescription
periodTypequeryintrequiredTime window; 1 was the only observed value — other values such as 3, 7, or 30 are unverified.
example: 1
chainIdqueryintrequired
example: 1
walletAddressquerystrrequired
example: 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045

Response

type: object
pagination: none
sample: {
  "nativeTokenBalanceAmount": "str",
  "nativeTokenBalanceUsd": "str",
  "avgCostBuy": "str",
  "datePnlList": "array[7] object{profit:str,timestamp:int}",
  "totalPnl": "str",
  "totalTxsBuy": "int",
  "totalTxsSell": "int",
  "topTokens": "array[0]",
  "winRateList": "array[0]"
}

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/web3okx/priapi/v1/dx/market/v2/pnl/wallet-profile/summary?periodType=1&chainId=1&walletAddress=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"