timeseries-record
v1.0.1
Published
Interface for time-series record data
Downloads
9
Readme
timeseries-record
Interface for time-series record data
Install
npm install timeseries-record
Use
import Record from 'timeseries-record'
The Record
interface is defined as
/**
* An atomic unit of time-series data.
*
* For convenience, this is the same definition of Record as
* implemented in package `talib-binding`.
*/
interface Record {
/**
* Time that the current Record began, in units of milliseconds
* elapsed since January 1, 1970.
*/
Time: number,
/**
* Opening value of current Record.
*/
Open: number,
/**
* Highest value observed during current Record.
*/
High: number,
/**
* Lowest value observed during current Record.
*/
Low: number,
/**
* Closing value of current Record.
*/
Close: number,
/**
* Volume observed in current Record.
*/
Volume: number
}