Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

bigone-js

zejie1ISC1.0.0

the sdk of bigone.one

bigone

readme

document

https://open.big.one/docs/api.html

install

npm install bigone-js

example

const API = require('./index.js')

API.init({
  key: 'key',
  secret: 'secret'
})

// ticker
// API.getTicker('ETH-USDT').then(data => {
//   console.log(data)
// })


// API.getBalance().then(data => {
//   console.log(data)
// })


// API.createOrder('ETH-USDT', 'BID', '400', '0.06').then(data => {
//   console.log(data)
// })

// API.cancelOrder('63818300').then(data => {
//   console.log(data)
// })


// API.getDepth('ETH-USDT').then(data => {
//   console.log(data)
// })


// API.getOrders('ETH-USDT', 'PENDING').then(data => {
//   console.log(data)
// })


// API.getOrderByid('100').then(data => {
//   console.log(data)
// })