Skip to content
EliteChart

Tick

Documentation


Documentation / @elitechart/core / Tick

Defined in: data/types.ts:50

A single trade tick. side is optional because not every datafeed exposes the maker / taker direction.

Example

code
import { asPrice, asTimestampMs, asVolume, type Tick } from '@elitechart/core';
const tick: Tick = {
  time: asTimestampMs(Date.now()),
  price: asPrice(67_500),
  size: asVolume(0.25),
  side: 'buy',
};

Properties

price

code
readonly price: Price;

Defined in: data/types.ts:52


side?

code
readonly optional side?: "buy" | "sell";

Defined in: data/types.ts:54


size

code
readonly size: Volume;

Defined in: data/types.ts:53


time

code
readonly time: TimestampMs;

Defined in: data/types.ts:51