Bittrex API Wrapper
This is a simple Bittrex API wrapper. It gives you the ability to send any request to Bittrex's API, or to send known requests via a simple class.
I recommend to read the official API in order to better understand and use this module.
Installation
npm install bittrex-api-wrapper
Instanciation
const bittrex = '<API_KEY>' '<API_SECRET>';
API
This wrapper provides the entire Bittrex API. It follows a very simple nomenclature:
bittrex<public|market|account><methodCamelCase>parameters;
Each method returns a promise. Bittrex responses are pre-treated, meaning that
any method will throw an error if the response does not contain success:true
As an example:
const bittrex = '<API_KEY>' '<API_SECRET>'; bittrexaccount;
Every parameter is in the order the API documentation gives it
Request
You can also use #request
to perform manual requests:
bittrex;
Which will also return a Promise
Testing
In the test/test.js file you will find some simple tests. You can just enter your api_key
and api_secret
to be able to launch them.