api-poloniex

1.0.54 • Public • Published

api-poloniex

Descripcion

Contents

Install

npm install api-poloniex --save

Usage

Public api usage

const api = require('api-poloniex')();

api.public.returnTicker().then((ticker)=>{
    console.log(ticker.BTC_LTC);
}).catch((err)=>{
    console.log(err);
});

Push api usage

const api = require('api-poloniex')();

api.public.returnTicker().then((ticker)=>{
    console.log(ticker.BTC_LTC);
}).catch((err)=>{
    console.log(err);
});

Trading api usage

const apiKey = 'apiKey...........';
const secret = 'secret..................................';
const api = require('api-poloniex')(apiKey, secret);

api.trading.returnBalances().then((balances) => {
    console.log(balances.BTC);
})

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i api-poloniex

Weekly Downloads

9

Version

1.0.54

License

MIT

Last publish

Collaborators

  • megatone