npm.io
1.0.0 • Published 7 years ago

bittrex-api-js

Licence
MIT
Version
1.0.0
Deps
0
Size
5 kB
Vulns
0
Weekly
0

bittrex-js

Very simple Bittrex API wrapper for Node JS.

Created by GAFO TECH;

Information for the API can be found here

Installation

npm install bittrex-js

Usage

Usage of bittrex-js is very simple. There is only one method after initialization: req.

To make an API call, just call the req method with the endpoint and data object as parameters.

var Bittrex = require('bittrex-js');

(async () => {
  var b = new Bittrex('apiKey', 'apiSecret');

  var ticker = await b.req('/public/getticker', {market: 'BTC'});

})

Endpoints

Request parameters coming soon

Public API
  • /public/getmarkets
  • /public/getmarkets
  • /public/getcurrencies
  • /public/getticker
  • /public/getmarketsummaries
  • /public/getmarketsummary
  • /public/getorderbook
  • /public/getmarkethistory
Market API
  • /market/buylimit
  • /market/selllimit
  • /market/cancel
  • /market/getopenorders
Account API
  • /account/getbalances
  • /account/getbalance
  • /account/getdepositaddress
  • /account/withdraw
  • /account/getorder
  • /account/getorderhistory
  • /account/getwithdrawalhistory
  • /account/getdeposithistory