/v1/token/analytics/trader/{address}/tokens
Trader token-specific metrics
Request
https://api.xrpl.to/v1/token/analytics/trader/rpiFwLYi6Gb1ESHYorn2QG1WU5vw2u4exQ/tokens| Path parameter | Value | Description |
|---|---|---|
| address | An XRPL account, its r-address |
| Query parameter | Value | Description |
|---|---|---|
| token | token id |
curl 'https://api.xrpl.to/v1/token/analytics/trader/rpiFwLYi6Gb1ESHYorn2QG1WU5vw2u4exQ/tokens'
Response
https://api.xrpl.to/v1/token/analytics/trader/rpiFwLYi6Gb1ESHYorn2QG1WU5vw2u4exQ/tokens{ "address": "rpiFwLYi6Gb1ESHYorn2QG1WU5vw2u4exQ", "tokens": [ { "tokenId": "0dd550278b74cb6690fdae351e8e0df3", "name": "RLUSD", "currency": "524C555344000000000000000000000000000000", "profit": 173109.22331599976, "realizedPnl": 190682.8472591819, "unrealizedPnl": -301.08370476737764, "volume": 400072986.42161775, "trades": 1222119, "roi": -0.23828079515390652, "tokensBought": 332023062.123866, "tokensSold": 332856766.083885, "xrpBought": 199949938.59915107, "xrpSold": 200123047.82246667, "avgBuyPrice": 0.602217018661664, "avgSellPrice": 0.601228721221285, "firstTradeDate": 1734541501000, "lastTradeDate": 1792392190000, "stats24h": { "volume": 763951.3005710001, "trades": 2662, "profit": 2105.9893990005367, "roi": 0.552865356816529, "buyVolume": 380922.6555859998, "sellVolume": 383028.6449850003 }, "stats7d": { "volume": 6663277.999116, "trades": 18215, "profit": 710.7588080014102, "roi": 0.021335883972814, "buyVolume": 3331283.6201539994, "sellVolume": 3331994.378962001 }, "stats30d": { "volume": 40423826.80645499, "trades": 132167, "profit": 3099.3854449801147, "roi": 0.015335624283541, "buyVolume": 20210363.710505, "sellVolume": 20213463.09594998 } }, { "tokenId": "2dcc7e07c7dcb3d23667abe448d57778", "name": "EUR", "currency": "EUR", "profit": 189.23317300000002, "realizedPnl": 224.674802, "unrealizedPnl": -35.441629, "volume": 260.116431, "trades": 8, "roi": 0, "tokensBought": 18.9498, "tokensSold": 127.4, "xrpBought": 35.441629, "xrpSold": 224.674802, "avgBuyPrice": 1.87029039884326, "avgSellPrice": 1.76353847723705, "firstTradeDate": 1701484851000, "lastTradeDate": 1704283831000, "stats24h": { "volume": 0, "trades": 0, "profit": 0, "roi": 0, "buyVolume": 0, "sellVolume": 0 }, "stats7d": { "volume": 0, "trades": 0, "profit": 0, "roi": 0, "buyVolume": 0, "sellVolume": 0 }, "stats30d": { "volume": 0, "trades": 0, "profit": 0, "roi": 0, "buyVolume": 0, "sellVolume": 0 } } ] }
What it does
Trader token-specific metrics