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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    12
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    12
  • 1.0.2
    3
  • 1.0.1
    4
  • 1.0.0
    3

Package Sidebar

Install

npm i d3fc-candle

Weekly Downloads

4

Version

1.0.3

License

ISC

Unpacked Size

4.04 kB

Total Files

4

Last publish

Collaborators

  • hamroctopus