Skip to content
EliteChart

Price

Documentation


Documentation / @elitechart/elitechart / Price

code
type Price = number & {
  __brand: "Price";
};

Defined in: core/dist/index.d.ts:32

Price in the instrument's quote currency. Finite (may be zero or negative, e.g. spreads or futures basis).

Type Declaration

__brand

code
readonly __brand: "Price";

Example

code
import { asPrice } from '@elitechart/core';
const close: Price = asPrice(67_432.55);