/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": 84156.23495200177, "realizedPnl": 186863.55727025727, "unrealizedPnl": 2085.669867247416, "volume": 450026214.5322435, "trades": 1353558, "roi": -0.21355596694304385, "tokensBought": 358654874.784307, "tokensSold": 359419751.232375, "xrpBought": 224971029.14864686, "xrpSold": 225055185.3835966, "avgBuyPrice": 0.627263268856845, "avgSellPrice": 0.626162542853946, "firstTradeDate": 1734541501000, "lastTradeDate": 1795234590000, "stats24h": { "volume": 5804042.8491870025, "trades": 8959, "profit": -89754.29014700558, "roi": -3.045720374323834, "buyVolume": 2946898.569667004, "sellVolume": 2857144.2795199985 }, "stats7d": { "volume": 25114611.454617016, "trades": 42915, "profit": -86594.36522100493, "roi": -0.687223983170195, "buyVolume": 12600602.90991901, "sellVolume": 12514008.544698006 }, "stats30d": { "volume": 47635299.17194201, "trades": 121153, "profit": -85377.70514200255, "roi": -0.357822691249385, "buyVolume": 23860338.43854201, "sellVolume": 23774960.733400006 } }, { "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