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|1M (default: 5m; 1w from Monday 00:00 UTC, 1M the calendar month) | |
| 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, ch, cp (the change against the close before, and in %) } }What it does
OHLC candlestick streaming
- Notes
- Max 10 subscriptions per connection. Candles join as in GET /ohlc: a kline's o (and every initial row's o but the first) is the previous candle's close, not the interval's first trade; prices keep 9 significant digits