POST/data/v2/token/buy-sell-stats
Auth X-Hub-Key from API_HUB_KEYExecute
POST /run/uniswap/data/v2/token/buy-sell-statsCache executed live on every call — a read-only POST answer is never cachedCost free · weight 0 · standard rate classSource billing freeFetch buy/sell swap counts, USD/token volumes, and unique buyer/seller counts for a token.
Try this endpoint
Reads the credential from API_HUB_KEY; it never appears in the URL.
curl -sX POST "https://openapihub.dev/run/uniswap/data/v2/token/buy-sell-stats" \
-H "X-Hub-Key: $API_HUB_KEY" -H "Content-Type: application/json" \
-d '{"token": {"chainId": 1, "address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"}, "chainIds": [1], "window": "BUY_SELL_STATS_WINDOW_ONE_DAY"}'Parameters
| name | in | type | description | |
|---|---|---|---|---|
token | body | dict | required | Token identifier {chainId: int|str, address: str}. example: {"chainId":1,"address":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"} |
chainIds | body | list[int] | required | List of numeric chain IDs (or chain names such as 'ethereum', 'base', 'arbitrum', 'unichain'). example: [1] |
window | body | strBUY_SELL_STATS_WINDOW_FIVE_MINUTES | BUY_SELL_STATS_WINDOW_ONE_HOUR | BUY_SELL_STATS_WINDOW_FOUR_HOURS | BUY_SELL_STATS_WINDOW_ONE_DAY | BUY_SELL_STATS_WINDOW_ONE_WEEK | BUY_SELL_STATS_WINDOW_ONE_MONTH | required | Aggregation window for buy/sell flow. default: BUY_SELL_STATS_WINDOW_ONE_DAYexample: BUY_SELL_STATS_WINDOW_ONE_DAY |
Response
type: object
pagination: none
sample: {
"stats": {
"buyCount": "int",
"sellCount": "int",
"buyVolumeUsd": "float",
"sellVolumeUsd": "float",
"uniqueBuyers": "int",
"uniqueSellers": "int"
}
}