Comparing version 1.3.5 to 1.3.6
# 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 @@ { |
@@ -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 = {}; |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60987
905
707
1