/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| 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'
Response
https://api.xrpl.to/v1/market/history{
"success": false,
"error": "asset must be one of BTC, ETH, XRP, SOL, BNB, DOGE, ADA, LTC, XLM, HBAR"
}{ 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)