@strong-roots-capital/binance-candle
v1.0.0
Published
Interface for a Binance candle
Downloads
3
Readme
binance-candle
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
}