@strong-roots-capital/binance-candle
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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'

/**
 * An atomic unit of time-series data as returned by the Binance
 * exchange API.
 */
export default 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

Package Sidebar

Install

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

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

5.35 kB

Total Files

4

Last publish

Collaborators

  • amchelle
  • hamroctopus