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

strong-roots-capital/to-binance-timeframe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

to-binance-timeframe Build status npm version codecov

Convert a TradingView timeframe to a Binance timeframe

Install

npm install @strong-roots-capital/to-binance-timeframe

Use

import { toBinanceTimeframe } from '@strong-roots-capital/to-binance-timeframe'

toBinanceTimeframe('3')
//=> '3m'

toBinanceTimeframe('12H')
//=> '12h'

toBinanceTimefram('1W')
//=> '1w'

Related

binance-candle