zaif
v0.2.0
Published
Zaif API wrapper for Node.js
Downloads
17
Readme
zaif
Node.js library for the Zaif Exchange API
This package support for Zaif Exchange API Ver 1.05.02.
Install
npm install zaif
Usage
If you only use Public API, you don't need key and secret.
const Zaif = require('zaif');
const zaif = new Zaif('YOUR_KEY', 'YOUR_SECRET');
Please read Zaif Exchange API documentation for details.
Public API
The return type of all methods is Promise
.
zaif.lastPrice(currencyPair)
zaif.ticker(currencyPair)
zaif.trades(currencyPair)
zaif.depth(currencyPair)
Private API
The return type of all methods is Promise
.
zaif.getInfo()
zaif.getInfo2()
zaif.getPersonalInfo()
zaif.tradeHistory(params={})
zaif.activeOrders(currencyPair)
zaif.trade(currencyPair, action, price, amount, limit=null)
zaif.cancelOrder(orderId)
zaif.withdraw(currency, address, amount, params={})
zaif.depositHistory(currency, params={})
zaif.withdrawHistory(currency, params={})
Streaming API
zaif.stream(currencyPair)
License
MIT License