/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-12", "close": 1.3422 }, { "date": "2026-10-13", "close": 1.3661 }, { "date": "2026-10-14", "close": 1.3316 }, { "date": "2026-10-15", "close": 1.3349 }, { "date": "2026-10-16", "close": 1.3115 } ], "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)