Real-time OHLC (Open, High, Low, Close) data for market analysis
onchain
data, but it will soon be available for offchain
data as well.Open WebSocket Connection
Subscribe to Asset Pair
Receive OHLC Updates
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
pair | string | Yes | - | The trading pair you want to subscribe to (e.g., “BTC/USD”) |
network | string | Yes | - | The blockchain network to fetch data from (e.g., “mainnet”) |
interval | string | Yes | - | Time interval for each candle. Options include: “1min”, “5min”, “15min”, “30min”, “1hour”, “4hour”, “1day”, “1week” |
candles_to_get | string | No | ”10” | Number of historical candles to receive on initial subscription |
Field | Type | Description |
---|---|---|
time | string | ISO 8601 timestamp marking the start of the candle period |
open | string | Opening price for the period (in raw price format) |
high | string | Highest price reached during the period (in raw price format) |
low | string | Lowest price reached during the period (in raw price format) |
close | string | Closing price for the period (in raw price format) |