Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 860 Bytes

README.md

File metadata and controls

39 lines (30 loc) · 860 Bytes

zebitex-node

Node.js client for Zebitex exchange API

API documentation

Getting started

const ApiClient = require('zebitex-node')
const testEnv = true // set to false to use in production
const client = new ApiClient('<Access key>', '<Secret key>', TestEnv) // instantiate your client
  • retrieve you assets balances
client.funds().then(console.log)

  • open a new order
client.newOrder('ltc', // quote currency
  'btc', // base currency
  'ask', // order side (bid or ask)
  '0.321', // price
  '0.123', // volume
  'ltcbtc', // market
  'limit' // order type
).then(console.log)
  • cancel an opened order
let orderId=1234
client.cancelOrder(orderId).then(console.log)