# binance-api-lightweight

> A light version of the binance-api focused on simplicity

### Setup

    npm i binance-api-lightweight

### Getting started

1. Retreive your Binance `API key` and `secret` following [this guide](https://3commas.zendesk.com/hc/en-us/articles/360000221733-Binance-creating-an-API-key-)

2. Import the module and instantiate a new `BinanceAPI` class as follows:
```
    var client = new BinanceAPI("APIKEY", "SECRET");
```

> Note: The API key is required for authentication, however, some functions still work without it as follows:
```
    var client = new BinanceAPI();
```
### Supported functions

- history
- trades
- kline
- ticker
- orderBooks
- account
- products
- exchangeInfo
- openOrders
- myTrades
- buyLimit
- sellLimit
- buyMarket
- queryOrder
- cancel

### Found a bug?

Please submit the issue [here](https://github.com/MyIsaak/binance-api-lightweight/issues)

Pull requests are welcome :)
