wss://api.xrpl.to/ws/ohlc/{md5}
OHLC candlestick streaming
Request
wss://api.xrpl.to/ws/ohlc/0dd550278b74cb6690fdae351e8e0df3| Path parameter | Value | Description |
|---|---|---|
| md5 | The token's md5 (md5 of issuer_currency) |
| Query | Value | Description |
|---|---|---|
| interval | 1m|5m|15m|30m|1h|2h|4h|1d|1w (default: 5m) | |
| vs_currency | XRP|USD|EUR|JPY|CNH (default: USD) | |
| snapshot | 0 to skip the initial frame (default: 1) |
wscat -c 'wss://api.xrpl.to/ws/ohlc/0dd550278b74cb6690fdae351e8e0df3'
Response
initial: { type, md5, interval, vs_currency, count, ohlc: [[time, o, h, l, c, volume]] } — last 100 intervals (omitted with snapshot=0); updates: { e: "kline", E, s, k: { t, T, i, o, h, l, c, v, x } }