strong-roots-capital / binance-candle

Interface for a Binance candle
https://www.npmjs.com/package/@strong-roots-capital/binance-candle
0 stars 0 forks source link
binance candle interface

binance-candle Build status npm version codecov

Interface for a Binance candle

Install

npm install @strong-roots-capital/binance-candle

Use

import BinanceCandle from '@strong-roots-capital/binance-candle'

The BinanceCandle interface is defined as

/**
 * An atomic unit of time-series data as returned by the Binance
 * exchange API.
 */
interface BinanceCandle {
    /**
     * Time of current candle open.
     */
    openTime: number,
    /**
     * Opening value of current Candle.
     */
    open: string,
    /**
     * Highest value observed during current Candle.
     */
    high: string,
    /**
     * Lowest value observed during current Candle.
     */
    low: string,
    /**
     * Closing value of current Candle.
     */
    close: string,
    /**
     * Volume observed during current Candle.
     */
    volume: string,
    /**
     * Time that current candle closes.
     */
    closeTime: number,
    /**
     * Volume in units of tradepair-numerator.
     */
    quoteAssetVolume: string,
    /**
     * Number of trades recorded during current Candle.
     */
    trades?: number,
    /**
     * Volume in units of tradepair-denominator.
     */
    baseAssetVolume: string
}

Related