@strong-roots-capital/bin-size-to-timeframe
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

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

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

    Package Sidebar

    Install

    npm i @strong-roots-capital/bin-size-to-timeframe

    Weekly Downloads

    5

    Version

    1.0.3

    License

    ISC

    Unpacked Size

    4.74 kB

    Total Files

    4

    Last publish

    Collaborators

    • amchelle
    • hamroctopus