binance-api-node
Advanced tools
Comparing version 0.10.2 to 0.10.3
@@ -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 |
{ | ||
"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", |
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
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
107685
1879