This endpoint will return the top traders for a given pair.
unmarshal.Protocol
.getTopTraders("pancakeswap_v2", "token address")
.then(({data}) => console.log(data))
NOTE: This endpoint is dexx specific and supported only by pancakeswap v2 contract.
OK
curl -i -X GET \ 'https://api.unmarshal.com/v2/:pair/top-traders?token=0x2fa5daf6fe0708fbd63b1a7d1592577284f52256&auth_key=YOUR_API_KEY_HERE'
[- {
- "user_address": "0xf59742b240426fdc41d61954a49f55f2a377313d",
- "number_of_transactions": 205,
- "total_value_bought": 132343.48699951172,
- "total_value_sold": 281512.8594894409,
- "total_value_traded": 413856.34648895264,
- "trade_value_per_transaction": 2018.8114462875737,
- "net_value_bought": -149169.3724899292,
- "total_usd_value_bought": 101478.3389614856,
- "total_usd_value_sold": 215858.4303993135,
- "total_usd_value_traded": 317336.7693607991,
- "trade_usd_value_per_transaction": 1547.9842407843857,
- "net_usd_value_bought": -114380.09143782791
}, - {
- "user_address": "0x62d5e272a28f1d697bba571c12d0009a61eeb768",
- "number_of_transactions": 41,
- "total_value_bought": 87583.07312011719,
- "total_value_sold": 0,
- "total_value_traded": 87583.07312011719,
- "trade_value_per_transaction": 2136.1725151248093,
- "net_value_bought": 87583.07312011719,
- "total_usd_value_bought": 67156.94880704346,
- "total_usd_value_traded": 67156.94880704346,
- "trade_usd_value_per_transaction": 1637.9743611474012,
- "net_usd_value_bought": 67156.94880704346
}
]