@strong-roots-capital/bin-size-to-timeframe
v1.0.3
Published
Convert a BitMEX bin-size to a Trading View timeframe
Downloads
13
Readme
bin-size-to-timeframe
Convert a BitMEX bin-size to a Trading View timeframe
Install
npm install @strong-roots-capital/bin-size-to-timeframe
Use
import binSizeToTimeframe from '@strong-roots-capital/bin-size-to-timeframe'
binSizeToTimeframe('1m')
//=> '1'
binSizeToTimeframe('5m')
//=> '5'
binSizeToTimeframe('1h')
//=> '1H'
binSizeToTimeframe('1d')
//=> '1D'