/v1/sparkline/batch
Batch sparklines for multiple tokens (each rebuilt on the token's next trade)
Request
https://api.xrpl.to/v1/sparkline/batch?md5s=0dd550278b74cb6690fdae351e8e0df3| Query parameter | Value | Description |
|---|---|---|
| md5s | comma-separated md5 hashes (required, max 100) | |
| period | 24h|7d (default: 7d) | |
| maxPoints | int (default: 50, range 2-500) | |
| vs_currency | XRP|USD (default: XRP) |
curl 'https://api.xrpl.to/v1/sparkline/batch?md5s=0dd550278b74cb6690fdae351e8e0df3'
Response
https://api.xrpl.to/v1/sparkline/batch?md5s=0dd550278b74cb6690fdae351e8e0df3{ "sparklines": { "0dd550278b74cb6690fdae351e8e0df3": [ "0.7711383429976609305", "0.77511385087813566841", "0.77139016321092090944", "0.76550394670539501085", "0.77040739999999996446" ] } }
Long arrays and strings are shortened in the example; Send request for the full answer.
{ sparklines: { <md5>: [price, ...] } }
What it does
Batch sparklines for multiple tokens (each rebuilt on the token's next trade)