@strong-roots-capital/binance-candle-to-record
v1.0.0
Published
Map a Binance candle to a talib record
Downloads
2
Readme
binance-candle-to-record
Map a Binance candle to a talib record
Install
npm install @strong-roots-capital/binance-candle-to-record
Use
import { binanceCandleToRecord } from '@strong-roots-capital/binance-candle-to-record'
const binanceRecord = {
openTime: 1508328900000,
open: '0.05655000',
high: '0.05656500',
low: '0.05613200',
close: '0.05632400',
volume: '68.88800000',
closeTime: 1508329199999,
quoteAssetVolume: '2.29500857',
trades: 85,
baseAssetVolume: '40.61900000'
}
binanceCandleToRecord(binanceRecord)
//=> {
Time: 1508328900000,
Open: 0.05655000,
High: 0.05656500,
Low: 0.05613200,
Close: 0.05632400,
Volume: 68.88800000
}