XRPL Historical Token Data
Every token traded on the XRP Ledger’s exchange has a price history: open, high, low and close for each period, with the XRP traded. On xrpl.to it is on the token’s chart, in a CSV file, and in a free API, for all 20,468 tokens the site lists.
From the chart
Open a token’s page, pick the time frame and candle size on the chart, and use the CSV button on the chart’s toolbar to save those candles. Prices can be shown in XRP or in a fiat currency.
From the API
curl "https://api.xrpl.to/v1/ohlc/0413ca7cfc258dfaf698c02fe304e607?range=1M&interval=1d"
{
"success": true,
"interval": "1d",
"vs_currency": "XRP",
"length": 31,
"ohlc": [
[
1792195200000,
0.00760807587,
0.0076291874,
0.00760807587,
0.00761335375,
32.85879
],
[
1792281600000,
0.00761335375,
0.00773295881,
0.00753971035,
0.00754959441,
147.200878
],
[
1792368000000,
0.00754959441,
0.00773021818,
0.00754959441,
0.00773021818,
96.960289
]
]
}| range | 1D, 5D, 7D, 1M, 3M, 1Y, 5Y or ALL: the window |
| interval | 1m, 5m, 15m, 30m, 1h, 2h, 4h, 1d or 1w: the candle size |
| vs_currency | XRP (default), USD, EUR, JPY or CNH |
| resolution, cb, to | page back through long histories: cb candles (up to 5,000) ending before the time in to |
A full walk-through, including paging a token’s whole history day by day: OHLC price API guide. Live prices as they change: WebSocket guide.
Credit and terms
The API is free to call, with or without a key. An app, site, bot or dashboard that shows the data must show a visible, clickable “Data by xrpl.to” credit on the same screen, and storing the data to serve it again from your own API needs permission first (API terms).
Questions
- Where can I download historical prices for an XRP Ledger token?
- On the token’s page on xrpl.to: the chart’s toolbar has a CSV button that saves the candles on screen. For more, or for automation, the free API returns the same candles.
- How far back does the history go?
- To the token’s first trade on the XRP Ledger’s exchange. range=ALL covers all of it; for a long history in small candles, page back with resolution, cb and to.
- Do I need an API key?
- No. The candle API works without a key at a lower rate limit. Any app that shows the data must credit xrpl.to with a visible link.