/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": 169298.0290930016, "realizedPnl": 187600.58710807376, "unrealizedPnl": 40.021383074607, "volume": 409764895.0436895, "trades": 1257307, "roi": -0.23414584891097256, "tokensBought": 338326144.908399, "tokensSold": 339159536.782001, "xrpBought": 204797798.50729808, "xrpSold": 204967096.53639138, "avgBuyPrice": 0.605326551286028, "avgSellPrice": 0.604338296015944, "firstTradeDate": 1734541501000, "lastTradeDate": 1793516830000, "stats24h": { "volume": 313453.8868569999, "trades": 1313, "profit": 48944.20033900003, "roi": 37.00749184901354, "buyVolume": 132254.84325899993, "sellVolume": 181199.04359799996 }, "stats7d": { "volume": 5043612.844684, "trades": 17348, "profit": -1682.3861439991742, "roi": -0.066691286318366, "buyVolume": 2522647.6154139997, "sellVolume": 2520965.2292700005 }, "stats30d": { "volume": 24231593.584914003, "trades": 76335, "profit": 5299.156106002629, "roi": 0.043747145248109, "buyVolume": 12113147.214404, "sellVolume": 12118446.370510003 } }, { "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