/timeframe-exchange-mappings

Normalize human readable timeframe strings to the respective exchange format.

Primary LanguageJavaScript

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