GET /api/v1/wallet_stat/{chain}/{wallet}/{period}

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/gmgn/api/v1/wallet_stat/{chain}/{wallet}/{period}Cache cached 1s, never served stale past that windowCost per_call · weight 1 · standard rate classSource billing free

Comprehensive wallet trading statistics: PnL, win rate, buy/sell counts, ROI, and holding distribution

Parameters

nameintypedescription
chainpathstringrequiredBlockchain slug: sol, eth, base, bsc, tron
default: sol
example: sol
walletpathstringrequiredWallet address on the target chain
default: Dr8rkEcrZyQyJRqC8kBc5g6ZPUN59mSSTo8u1wR5gePH
example: Dr8rkEcrZyQyJRqC8kBc5g6ZPUN59mSSTo8u1wR5gePH
periodpathstringrequiredStats period: 1d, 7d, 30d
default: 7d
example: 7d

Response

type: object
pagination: none
sample: {
  "buy": 0,
  "buy_1d": 0,
  "buy_7d": 0,
  "buy_30d": 0,
  "sell": 0,
  "sell_1d": 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/gmgn/api/v1/wallet_stat/sol/Dr8rkEcrZyQyJRqC8kBc5g6ZPUN59mSSTo8u1wR5gePH/7d"