GET /sparkline/batch
GET

/v1/sparkline/batch

Batch sparklines for multiple tokens (cached 30s)

AuthNone — works without a key

Request

GEThttps://api.xrpl.to/v1/sparkline/batch?md5s=0dd550278b74cb6690fdae351e8e0df3
Query parameterValueDescription
md5scomma-separated md5 hashes (required, max 100)
period24h|7d (default: 7d)
maxPointsint (default: 50, range 2-500)
vs_currencyXRP|USD (default: XRP)
curl 'https://api.xrpl.to/v1/sparkline/batch?md5s=0dd550278b74cb6690fdae351e8e0df3'

Response

200Example response31 ms · just now · 0.2 KB · 11 lines
https://api.xrpl.to/v1/sparkline/batch?md5s=0dd550278b74cb6690fdae351e8e0df3
{
  "sparklines": {
    "0dd550278b74cb6690fdae351e8e0df3": [
      "0.65690100110032145775",
      "0.66582381337934770649",
      "0.65770899999999998808",
      "0.65972076478391761256",
      "0.66535148855761772069"
    ]
  }
}

Long arrays and strings are shortened in the example; Send request for the full answer.

Shapeas documented
{ sparklines: { <md5>: [price, ...] } }

What it does

Batch sparklines for multiple tokens (cached 30s)

Each token comes back with its md5, the id every Token endpoint takes. Go to Token →
OpenAPI