/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": 171195.42517899946, "realizedPnl": 193746.07931014022, "unrealizedPnl": -346.8482243817198, "volume": 364300490.3169569, "trades": 1101690, "roi": -0.26001207515676455, "tokensBought": 305747628.86517704, "tokensSold": 306571790.1982186, "xrpBought": 182064647.44589058, "xrpSold": 182235842.87106633, "avgBuyPrice": 0.595473620258799, "avgSellPrice": 0.594431218714674, "firstTradeDate": 1734541501000, "lastTradeDate": 1789975982000, "stats24h": { "volume": 2460059.709144, "trades": 5933, "profit": -1210.1524480010848, "roi": -0.098335616657519, "buyVolume": 1230634.9307960004, "sellVolume": 1229424.7783479993 }, "stats7d": { "volume": 19017627.74362801, "trades": 45856, "profit": 810.8996500056237, "roi": 0.008528237471692, "buyVolume": 9508408.421989001, "sellVolume": 9509219.321639007 }, "stats30d": { "volume": 57150813.827402025, "trades": 166877, "profit": 35521.353526022285, "roi": 0.124384738263467, "buyVolume": 28557646.236938003, "sellVolume": 28593167.590464026 } }, { "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.763538477237049, "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