Historical Token Who Bought/Sold
Beta — subject to breaking changes.
Aggregated buy/sell volumes per trader for a specific token over a historical date range. Labels are resolved at the query end date using temporal label history tables to avoid forward-looking bias.
Key differences from /tgm/who-bought-sold:
Accepts an explicit
date_range(no rolling default)Labels resolved at
date_to, not the current stateResponse uses
gross_token_volume/gross_volume_usd(bought + sold totals) and addsis_smart_moneymin_trade_volume_usdfilter is applied server-side (default 10 USD)
API key for authentication
Request model for the historical who-bought-sold endpoint.
Returns aggregated buy/sell volumes per trader for a token with temporally-correct labels resolved at date_to. Uses label history tables to avoid forward-looking bias.
Blockchain chain. Currently base, bnb, ethereum, solana.
ethereumPossible values: Token contract address
0x6982508145454ce325ddbe47a25d4ec3d2311933Whether to return net buyers or net sellers
BUYPossible values: Optional filters applied server-side
Sort order. Defaults to bought_volume_usd DESC. Only the first element is used.
Historical TGM who-bought-sold data
Bad Request
Unauthorized
Payment Required
Forbidden
Not Found
Unprocessable Content
Too Many Requests
Internal Server Error
Bad Gateway
Service Unavailable
Gateway Timeout
POST /api/v1beta1/tgm/historical-who-bought-sold HTTP/1.1
Host: api.nansen.ai
apikey: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 357
{
"chain": "ethereum",
"token_address": "0x6982508145454ce325ddbe47a25d4ec3d2311933",
"date_range": {
"from": "2025-06-01T00:00:00Z",
"to": "2025-06-07T23:59:59Z"
},
"buy_or_sell": "BUY",
"pagination": {
"page": 1,
"per_page": 10
},
"filters": {
"include_labels": [
"Whale",
"Smart Trader"
],
"trade_volume_usd": {
"min": 10
}
},
"order_by": [
{
"field": "bought_volume_usd",
"direction": "ASC"
}
]
}{
"data": [
{
"address": "0x28c6c06298d514db089934071355e5743bf21d60",
"address_label": "Whale",
"is_smart_money": true,
"bought_token_volume": 1000.5,
"sold_token_volume": 500.25,
"gross_token_volume": 1500.75,
"bought_volume_usd": 25000,
"sold_volume_usd": 12500,
"gross_volume_usd": 37500
}
],
"pagination": {
"page": 1,
"per_page": 10,
"is_last_page": true
}
}Last updated
Was this helpful?