/v1/market/history
Daily closes of a major crypto asset from Binance spot (USDT, UTC days; the last is today's, still open)
Request
https://api.xrpl.to/v1/market/history?asset=XRP&days=7| Query parameter | Value | Description |
|---|---|---|
| asset | BTC|ETH|XRP|SOL|BNB|DOGE|ADA|LTC|XLM|HBAR (required) | |
| days | int 1-365 (default 30) |
curl 'https://api.xrpl.to/v1/market/history?asset=XRP&days=7'
Response
https://api.xrpl.to/v1/market/history?asset=XRP&days=7{ "success": true, "asset": "XRP", "quote": "USDT", "days": 7, "closes": [ { "date": "2026-10-25", "close": 1.2962 }, { "date": "2026-10-26", "close": 1.3092 }, { "date": "2026-10-27", "close": 1.3313 }, { "date": "2026-10-28", "close": 1.326 }, { "date": "2026-10-29", "close": 1.2377 } ], "note": "Binance spot daily candles, UTC days; the last is today's, still open.", "source": "Binance" }
Long arrays and strings are shortened in the example; Send request for the full answer.
{ success, asset, quote, days, closes[] {date, close}, note, source }
What it does
Daily closes of a major crypto asset from Binance spot (USDT, UTC days; the last is today's, still open)