1.0.5 • Published 5 years ago

@strong-roots-capital/indicator-record v1.0.5

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

indicator-record Build status npm version

Interface for Records transformed by indicators

Install

npm install @strong-roots-capital/indicator-record

Use

import IndicatorRecord from '@strong-roots-capital/indicator-record'

The IndicatorRecord interface is defined as

/**
 * Collection of one or more indicator values derived from source
 * time-series record.
 */
interface IndicatorRecord<T = any> {
    /**
     * Context of record data.
     */
    context: RecordContext
    /**
     * Time-series record data.
     */
    record: Record
    /**
     * Map of indicator name and associated values (objects), in a
     * shape analogous to Records.
     */
    indicators: Map<string, T>
}

Related