d3fc-candle
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

d3fc-candle Build status npm version

Interface for d3fc candle data

Install

npm install d3fc-candle

Use

import Candle from 'd3fc-candle'

The Candle interface is defined as

/**
 * An atomic unit of d3fc financial time-series data.
 *
 * This interface was extracted from
 * https://github.com/d3fc/d3fc/tree/master/packages/d3fc-random-data
 */
interface Candle {
    /**
     * Date of Candle open.
     */
    date: Date,
    /**
     * Opening value of Candle.
     */
    open: number,
    /**
     * Highest value observed during Candle.
     */
    high: number,
    /**
     * Lowest value observed during Candle.
     */
    low: number
    /**
     * Closing value of Candle.
     */
    close: number,
    /**
     * Volume observed in Candle.
     */
    volume: number
}

Related

Readme

Keywords

Package Sidebar

Install

npm i d3fc-candle

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

4.04 kB

Total Files

4

Last publish

Collaborators

  • hamroctopus