bluebit
Use to interact with Bluebit over the API
Last updated 2 years ago by aminadav .
MIT · Original npm · Tarball · package.json
$ cnpm install bluebit 
SYNC missed versions from official npm registry.

Bluebit module

Use to interact with Bluebit over the API

Installation

npm i --save bluebit

Or by using yarn

yarn add bluebit

Use

First, you should create an instance of bluebird by using new Bluebit() and pass your auth details. To improve your security we recommend:

  • The api_key put inside your source-code

  • The passpharse put in an enviroment variable.

  • The private_key in a file in a secure storage.

    var Bluebit=require('bluebit') var bluebit=Bluebit({ private_key:'your_private_key', passphrase: 'your_passpharse', api_key: 'your_api_key' })

    bluebit.get_orders().then(orders=>{ console.log('My Active oOrders:',orders) })

Promises

All bluebit functions returning a promises. We recommend using async/await syntax

var Bluebitp({public_key:'...',passpharse:'...',api_key:'...'})
init().then(()=>{
	process.exit()
}).catch(e=>{
	throw e
})

async init(){
	await bluebit.get_orders()
})

Current Tags

  • 1.0.2                                ...           latest (2 years ago)

3 Versions

  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 6
Dependencies (6)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |