GET /token/analytics/trader/{address}/tokens
GET

/v1/token/analytics/trader/{address}/tokens

Trader token-specific metrics

AuthNone — works without a key

Request

GEThttps://api.xrpl.to/v1/token/analytics/trader/rpiFwLYi6Gb1ESHYorn2QG1WU5vw2u4exQ/tokens
Path parameterValueDescription
addressAn XRPL account, its r-address
Query parameterValueDescription
tokentoken id
curl 'https://api.xrpl.to/v1/token/analytics/trader/rpiFwLYi6Gb1ESHYorn2QG1WU5vw2u4exQ/tokens'

Response

200Example response4 ms · just now · 2.4 KB · 91 lines
https://api.xrpl.to/v1/token/analytics/trader/rpiFwLYi6Gb1ESHYorn2QG1WU5vw2u4exQ/tokens
{
  "address": "rpiFwLYi6Gb1ESHYorn2QG1WU5vw2u4exQ",
  "tokens": [
    {
      "tokenId": "0dd550278b74cb6690fdae351e8e0df3",
      "name": "RLUSD",
      "currency": "524C555344000000000000000000000000000000",
      "profit": 172276.6482350012,
      "realizedPnl": 193455.08743238216,
      "unrealizedPnl": -371.3174070316709,
      "volume": 393415002.66405934,
      "trades": 1203916,
      "roi": -0.2409063991699084,
      "tokensBought": 327606096.292626,
      "tokensSold": 328432782.777079,
      "xrpBought": 196621363.00791407,
      "xrpSold": 196793639.65614527,
      "avgBuyPrice": 0.600176142120038,
      "avgSellPrice": 0.599190001656191,
      "firstTradeDate": 1734541501000,
      "lastTradeDate": 1791767011000,
      "stats24h": {
        "volume": 263214.7550169999,
        "trades": 909,
        "profit": -461.49381300000823,
        "roi": -0.350045796728205,
        "buyVolume": 131838.12441499997,
        "sellVolume": 131376.63060199996
      },
      "stats7d": {
        "volume": 5326939.312148001,
        "trades": 12931,
        "profit": 857.4487700029276,
        "roi": 0.032198107051216,
        "buyVolume": 2663040.9316889993,
        "sellVolume": 2663898.380459002
      },
      "stats30d": {
        "volume": 48939300.49590002,
        "trades": 149864,
        "profit": -1163.8757839910686,
        "roi": -0.004756292360252,
        "buyVolume": 24470232.185842007,
        "sellVolume": 24469068.310058016
      }
    },
    {
      "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

An account is its r-address, e.g. rN7n3473SaZBCG4dFL83w7a1RXtXtbk2D9.
OpenAPI