Room OHLC

Overview

The OHLC (Open, High, Low, Close) room provides candlestick/OHLC data for specific coins at various time intervals.

Channel Format

OHLC.{bucket_minutes}-{coin_id}

Example: OHLC.5-0xdba34672e30cb065b1f93e3ab55318768fd6fef66c15942c9f7cb846e2f900e7::usdc::USDC (5-minute candlesticks)

Supported Time Buckets

Bucket
Description

1

1 minute

5

5 minutes

15

15 minutes

30

30 minutes

60

1 hour

240

4 hours

1440

1 day

10080

1 week

43200

1 month

Subscription

See: WebSocket Setup for general WebSocket connection and management details.

Client Subscription Message

Server Response Data Format

OHLC candlestick data:

Data Fields

Field
Type
Description

timestamp

number

Candle start time in milliseconds

open

number

Opening price for the period

high

number

Highest price during the period

low

number

Lowest price during the period

close

number

Closing price for the period

volume

number

Trading volume during the period

Example Usage

JavaScript - Price Chart

TypeScript - Chart Component

React + TradingView Lightweight Charts

Multiple Timeframes

Unsubscription

Client Unsubscription Message

See also: WebSocket Setup for general WebSocket connection and management details.

Last updated