/v1/traders/{account}/rotations
Per-account token rotation flow (XRP bought/sold per token in window)
Request
https://api.xrpl.to/v1/traders/rpiFwLYi6Gb1ESHYorn2QG1WU5vw2u4exQ/rotations| Path parameter | Value | Description |
|---|---|---|
| account | An XRPL account, its r-address |
| Query parameter | Value | Description |
|---|---|---|
| period | 24h|7d|30d (default 24h) | |
| minXrp | float (default 0.01) |
curl 'https://api.xrpl.to/v1/traders/rpiFwLYi6Gb1ESHYorn2QG1WU5vw2u4exQ/rotations'
Response
https://api.xrpl.to/v1/traders/rpiFwLYi6Gb1ESHYorn2QG1WU5vw2u4exQ/rotations{ "success": true, "period": "24h", "account": "rpiFwLYi6Gb1ESHYorn2QG1WU5vw2u4exQ", "totalTrades": 1101690, "tokensTraded": 1, "rotationCount": 1, "tokens": [ { "md5": "0dd550278b74cb6690fdae351e8e0df3", "name": "RLUSD", "currency": "524C555344000000000000000000000000000000", "slug": "rMxCKbEDwqr76QuheSUMdEGf4B9xJ8m5De-524C555344000000000000000000000000000000", "bought": 1230634.9307960004, "sold": 1229424.7783479993, "net": 1210.1524480010848, "trades": 1101690 } ] }
{ success, period, account, totalTrades, tokensTraded, rotationCount, tokens[] }
What it does
Per-account token rotation flow (XRP bought/sold per token in window)