trades
Get per-account per-token trading stats
get
/trader/{account}/token/{tokenSlug}
operationId: trade-accountTokenStats

Returns a single account's aggregated trading stats for any pair involving the supplied token (either base or quote side). tokenSlug is either the literal XRP or a currency.issuer slug. windowDays=0 returns lifetime stats; otherwise the window is the trailing N days from now (default 30, max 365). firstTradeAt / lastTradeAt are the earliest/latest day the trader touched the token (daily granularity). pnlXrpDrops is always null — cost-basis computation is not yet available.

Unlock protected endpoints

Enter your Bearer token once to enable every protected route in this API reference.

HTTP bearer

Saved for this browser tab only. The credential is never sent until you test an endpoint.

Authorizations
NameLocationDetails
BearerAuthAuthorization header · bearerJWT issued by the Honeycluster auth service for the `indexer` audience. Present as `Authorization: Bearer <token>`.
Path Parameters
NameTypeDefaultDescription
account
required
string
XRPL classic address (r-address) to profile.
tokenSlug
required
string
Asset identifier. Either the literal `XRP` or a `currency.issuer` tokenSlug (e.g. `USD.rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B`). Pair sides are checked on both base and quote, so the returned stats include every pair that involves the token.
Query Parameters
NameTypeDefaultDescription
windowDays
integer30
Responses
200
application/json
Successful response
FieldTypeDescription
account
string
Echoed account.
tokenSlug
string
Echoed token slug — `XRP` or `currency.issuer`.
tradeCount
integer
Number of trades the account executed on any pair involving the token.
volumeXrpDrops
string
Sum of base-side volume across every pair involving the token within the window. Decimal string — only denominated in XRP drops on XRP-base pairs (same unit caveat as `trade.traderProfile`).
firstTradeAt
object
Start of the earliest daily bucket the account traded the token in, Unix-seconds. `null` when no trades exist in the window. Daily granularity.
lastTradeAt
object
Start of the latest daily bucket the account traded the token in, Unix-seconds. `null` when no trades exist in the window. Daily granularity.
pnlXrpDrops
object
Realized PnL in XRP drops. `null` — cost-basis computation is not yet available.
Example
Json
{
  "account": "rExampleTrader1234567890",
  "tokenSlug": "USD.rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B",
  "tradeCount": 142,
  "volumeXrpDrops": "184500000000",
  "firstTradeAt": 1743033600,
  "lastTradeAt": 1745712000,
  "pnlXrpDrops": null
}
400
application/json
Invalid input data
FieldTypeDescription
message
string
The error message
code
string
The error code
issues
object[]
An array of issues that were responsible for the error
issues[].message
string
Example
Json
{
  "code": "BAD_REQUEST",
  "message": "Invalid input data",
  "issues": []
}
401
application/json
Authorization not provided
FieldTypeDescription
message
string
The error message
code
string
The error code
issues
object[]
An array of issues that were responsible for the error
issues[].message
string
Example
Json
{
  "code": "UNAUTHORIZED",
  "message": "Authorization not provided",
  "issues": []
}
403
application/json
Insufficient access
FieldTypeDescription
message
string
The error message
code
string
The error code
issues
object[]
An array of issues that were responsible for the error
issues[].message
string
Example
Json
{
  "code": "FORBIDDEN",
  "message": "Insufficient access",
  "issues": []
}
404
application/json
Not found
FieldTypeDescription
message
string
The error message
code
string
The error code
issues
object[]
An array of issues that were responsible for the error
issues[].message
string
Example
Json
{
  "code": "NOT_FOUND",
  "message": "Not found",
  "issues": []
}
500
application/json
Internal server error
FieldTypeDescription
message
string
The error message
code
string
The error code
issues
object[]
An array of issues that were responsible for the error
issues[].message
string
Example
Json
{
  "code": "INTERNAL_SERVER_ERROR",
  "message": "Internal server error",
  "issues": []
}