GET /priapi/v1/dx/market/v2/trading-history/statistics

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

Wallet trading-history statistics for a token

Parameters

nameintypedescription
chainIdqueryintrequired
example: 1
tokenAddressquerystrrequired
example: 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
walletAddressquerystrrequired
example: 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045

Response

type: object
pagination: none
sample: {
  "boughtAvgPrice": "str",
  "boughtVolume": "str",
  "buyAmount": "str",
  "buyCount": "str",
  "buyValue": "str",
  "chainId": "int",
  "holdAmount": "str",
  "holdAmountPercentage": "str",
  "holdAvgPrice": "str",
  "holdVolume": "str",
  "holderRank": "int",
  "holdingTime": "str",
  "isPnlSupported": "bool",
  "lastHoldingTime": "str",
  "lastTradeTime": "str",
  "maxHoldAmount": "str",
  "

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/trading-history/statistics?chainId=1&tokenAddress=0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2&walletAddress=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045"