Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

strong-roots-capital/bin-size-to-timeframe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bin-size-to-timeframe Build status npm version codecov

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'

Related