joemccann / timeframe-exchange-mappings

Normalize human readable timeframe strings to the respective exchange format.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SYNOPSIS

đź“–Normalize human readable timeframe strings to the respective exchange format.

USAGE

npm i -S joemccann/timeframe-exchange-mappings

In your node.js app:

const {
  binance,
  coinbase
} = require('timeframe-exchange-mappings')

console.log(binance['1d']) // '1d'

console.log(coinbase['1d']) // 86400

TESTS

npm i -D
npm test

LICENSE

MIT

About

Normalize human readable timeframe strings to the respective exchange format.


Languages

Language:JavaScript 100.0%