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

binance-api-node

Package Overview
Dependencies
Maintainers
1
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

binance-api-node - npm Package Compare versions

Comparing version 0.10.2 to 0.10.3

22

dist/websocket.js

@@ -377,2 +377,20 @@ "use strict";

},
// https://github.com/binance-exchange/binance-official-api-docs/blob/master/user-data-stream.md#account-update
outboundAccountPosition: function outboundAccountPosition(m) {
return {
balances: m.B.map(function (_ref2) {
var a = _ref2.a,
f = _ref2.f,
l = _ref2.l;
return {
asset: a,
free: f,
locked: l
};
}),
eventTime: m.E,
eventType: 'outboundAccountPosition',
lastAccountUpdate: m.u
};
},
// https://github.com/binance-exchange/binance-official-api-docs/blob/master/user-data-stream.md#order-update

@@ -499,4 +517,4 @@ executionReport: function executionReport(m) {

var makeStream = function makeStream(isReconnecting) {
return getDataStream().then(function (_ref2) {
var listenKey = _ref2.listenKey;
return getDataStream().then(function (_ref3) {
var listenKey = _ref3.listenKey;
w = (0, _openWebsocket.default)("".concat(variator === 'futures' ? FUTURES : BASE, "/").concat(listenKey));

@@ -503,0 +521,0 @@

@@ -283,3 +283,3 @@ // tslint:disable:interface-name

export type UserDataStreamEvent = OutboundAccountInfo | ExecutionReport | BalanceUpdate
export type UserDataStreamEvent = OutboundAccountInfo | ExecutionReport | BalanceUpdate | OutboundAccountPosition

@@ -677,2 +677,9 @@ export interface WebSocket {

export interface OutboundAccountPosition {
balances: AssetBalance[]
eventTime: number
eventType: 'outboundAccountPosition'
lastAccountUpdate: number
}
export interface ExecutionReport {

@@ -679,0 +686,0 @@ commission: string // Commission amount

2

package.json
{
"name": "binance-api-node",
"version": "0.10.2",
"version": "0.10.3",
"description": "A node API wrapper for Binance",

@@ -5,0 +5,0 @@ "main": "dist",

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