0.0.36 • Published 7 years ago

bitfinex-api-promise-wrapper v0.0.36

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

bitfinex-api-promise-wrapper

wrapper for bitfinex api with promise

Install

npm i bitfinex-api-promise-wrapper --save

Import

import BFX from 'bitfinex-api-promise-wrapper'

Setup

const bfx = new BFX({
  API_KEY: YOUR_API_KEY,
  API_SECRET: YOUR_API_SECRET
})

Usage

// tiker
bfx.ticker('ethbtc')
  .then(data => console.log(data)) // ticker data
  .catch(console.error)
  
// wallet balance
bfx.walletBalance()
  .then(data => console.log(data)) // wallet data
  .catch(console.error)
0.0.36

7 years ago

0.0.35

7 years ago

0.0.2

7 years ago