# binance_rest_api

> Getting fresh orders in real time. Documentation for the Binance APIs and Streams.

Latest version **4.0.1** (published 2018-04-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install binance_rest_api
pnpm add binance_rest_api
yarn add binance_rest_api
bun add binance_rest_api
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.0.1 |
| Published | 2018-04-18 |
| First published | 2018-04-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Kupi.net |
| Maintainers | bitcoinment |
| Keywords | binance.com, benance, benans, binanse, crypto, finances, api, developing, ethereum, bitcoin, mining, trading, stock, exchanges |

## Links

- npm: https://www.npmjs.com/package/binance_rest_api
- Homepage: http://kupi.net
- Issues: http://kupi.net/p/support
- npm.io page: https://npm.io/package/binance_rest_api

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) *

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 4.0.1 (latest) — 2018-04-18
- 3.2.1 — 2018-04-18

## README

![binance_rest_api](https://raw.github.com/bitcoinment/binance_rest_api/master/binance_rest_api.gif)

# Best API for Binance.com (2018)

Getting fresh orders in real time. 
Documentation for the Binance APIs and Streams.

[Check out the Interactive Demo](http://kupi.net/p/docs-api)

With this module, you can develop your own crypto-bots, analyze crypto-markets and of course, make money.

Our web-service works 24 hours and keeps high loads

The data of all exchanges come in a single format and contain extended information (links for switching to trading pairs, best asks and bids, exchange rates and much more).

---

- FREE!
- The actuality of orders is 5-30 seconds!
- Data from most exchanges
- Round-the-clock support


### Installation Instructions
    $ npm install binance_rest_api

### Init example
```javascript
// Also you can use require method:
// var binance_rest_api = require("binance_rest_api")
import binance_rest_api from 'binance_rest_api';
let KUPINET = new binance_rest_api('freeApi'); // Init Free Api Key

async function getAllStocks() {
    let response = await KUPINET.getAllStocks()
    console.log(response)
}

getAllStocks()
```

### Stocks API
```javascript
import binance_rest_api from 'binance_rest_api';
let KUPINET = new binance_rest_api('freeApi'); // Init Free Api Key

// Get all stocks
async function getAllStocks() {
    let response = await KUPINET.getAllStocks()
    console.log(response)
}

// Get orders by Stock name
async function getStocksOrders() {
    let response = await KUPINET.getStocksOrders('Binance','ETH','BTC')
    console.log(response)
}

// Get all pairs from the Stock
async function getStocksAllPairs() {
    let response = await KUPINET.getStocksAllPairs('Binance')
    console.log(response)
}
```

### Pairs API
```javascript
import binance_rest_api from 'binance_rest_api';
let KUPINET = new binance_rest_api('freeApi'); // Init Free Api Key

// Find best prices for Pair in all Stocks
async function getPairBestPrices() {
    let response = await KUPINET.getPairBestPrices('LTC','ETH')
    console.log(response)
}
```
### Find Best Prices API
```javascript
import binance_rest_api from 'binance_rest_api';
let KUPINET = new binance_rest_api('freeApi'); // Init Free Api Key

// Find best ASK
async function getCoinBestPricesAsk() {
    let response = await KUPINET.getCoinBestPricesAsk('LTC','ETH')
    console.log(response)
}

//Find best BID
async function getCoinBestPricesBid() {
    let response = await KUPINET.getCoinBestPricesBid('LTC','ETH')
    console.log(response)
}
```
### Cryptocurrency Converter (Calculator) API
```javascript
import binance_rest_api from 'binance_rest_api';
let KUPINET = new binance_rest_api('freeApi'); // Init Free Api Key

// Coins list
async function getCalcData() {
    let response = await KUPINET.getCalcData()
    console.log(response)
}

// Convert Coin to Coin
async function getCalculation() {
    let response = await KUPINET.getCalculation('LTC','ETH', 10)
    console.log(response)
}
```

## In the future
- Unloading historical trade data
- Multi-trading through a single terminal
- Tool for crypto arbitrage
- API for JavaScript, PHP, C#
- Launch of a decentralized exchange
- Widget (calculator) for integration with sites


## About us
 We are a team of crypto developers. Our goal is to make the most convenient crypto services possible.
[Contact with us](http://kupi.net/p/support)

---
_Source: https://npm.io/package/binance_rest_api · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
