Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

binance

Package Overview
Dependencies
Maintainers
2
Versions
171
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

binance - npm Package Compare versions

Comparing version 1.3.5 to 1.3.6

5

CHANGELOG.md
# Changelog
## 1.3.6
- Bump dependencies. #104, #106, #107, #108.
- Add depositAddressWithNetwork and allCoinsInformation REST methods. #100
## 1.3.5

@@ -4,0 +9,0 @@

@@ -118,2 +118,8 @@ const _ = require('underscore');

},
outboundAccountPositionEvent: {
e: 'eventType',
E: 'eventTime',
u: 'lastUpdateTime',
B: 'balances'
},
balances: [

@@ -120,0 +126,0 @@ {

29

lib/rest.js

@@ -5,5 +5,6 @@ const request = require('request');

const crypto = require('crypto');
const Beautifier = require('./beautifier.js');
const assert = require('assert');
const Beautifier = require('./beautifier.js');
class BinanceRest {

@@ -430,2 +431,28 @@ constructor({

depositAddressWithNetwork(query = {}, callback) {
if (_.isString(query)) {
query = { asset: query };
}
this._setTimestamp(query);
return this._makeRequest(
query,
callback,
'sapi/v1/capital/deposit/hisrec',
'SIGNED'
);
}
allCoinsInformation(query = {}, callback) {
if (_.isString(query)) {
query = { asset: query };
}
this._setTimestamp(query);
return this._makeRequest(
query,
callback,
'sapi/v1/capital/config/getall',
'SIGNED'
);
}
accountStatus(callback) {

@@ -432,0 +459,0 @@ const query = {};

3

lib/ws.js
const WebSocket = require('ws');
const Beautifier = require('./beautifier.js');
const _ = require('underscore');
const Beautifier = require('./beautifier.js');
const BinanceErrors = Object.freeze({

@@ -6,0 +7,0 @@ INVALID_LISTEN_KEY: -1125

{
"name": "binance",
"version": "1.3.5",
"version": "1.3.6",
"description": "node.js wrapper for the Binance REST and WebSocket APIs",
"main": "./lib/binance.js",
"files": [
"lib/*"
],
"scripts": {

@@ -43,2 +46,6 @@ "test": "mocha",

],
"funding": {
"type": "individual",
"url": "https://github.com/sponsors/tiagosiebler"
},
"license": "MIT",

@@ -45,0 +52,0 @@ "devDependencies": {

@@ -642,2 +642,23 @@ ![npm downloads](https://img.shields.io/npm/dt/binance.svg)

```javascript
{
eventType: 'outboundAccountPosition',
eventTime: 1513808673916,
lastUpdateTime: 1499405658848,
balances: [
{
asset: 'BTC',
availableBalance: '0.00301025',
onOrderBalance: '0.00000000'
},
{
asset: 'BNB',
availableBalance: '0.00032331',
onOrderBalance: '0.00000000'
},
...
]
}
```
# Processing

@@ -644,0 +665,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc