JSPM

@strong-roots-capital/binance-candle-to-record

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q26339F
  • License ISC

Map a Binance candle to a talib record

Package Exports

  • @strong-roots-capital/binance-candle-to-record

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@strong-roots-capital/binance-candle-to-record) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

binance-candle-to-record Build status npm version codecov

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
}