Skip to content

DataPoint

Represents a single OHLCV candlestick data point.

Example

ts
{
  time: '2025-01-10T14:30:00Z',
  open: 195.32,
  high: 197.85,
  low: 194.10,
  close: 196.74,
  volume: 3241087
}

Properties

time

  • Type: string

An ISO 8601 UTC timestamp string representing the start of the candle's time period (e.g. '2025-01-10T14:30:00Z').

open

  • Type: number

The opening price for the time period.

high

  • Type: number

The highest price reached during the time period.

low

  • Type: number

The lowest price reached during the time period.

close

  • Type: number

The closing price for the time period.

volume

  • Type: number

The total trading volume during the time period.

TypeScript

ts
interface DataPoint {
  time: string;
  open: number;
  high: number;
  low: number;
  close: number;
  volume: number;
}

React Candlesticks is available on npm and GitHub under the MIT License.