binance-api-node
Advanced tools
Comparing version 0.10.31 to 0.10.32
@@ -411,5 +411,11 @@ "use strict"; | ||
}, | ||
getOrderOco: function getOrderOco(payload) { | ||
return privCall('/api/v3/orderList', payload); | ||
}, | ||
cancelOrder: function cancelOrder(payload) { | ||
return privCall('/api/v3/order', payload, 'DELETE'); | ||
}, | ||
cancelOrderOco: function cancelOrderOco(payload) { | ||
return privCall('/api/v3/orderList', payload, 'DELETE'); | ||
}, | ||
cancelOpenOrders: function cancelOpenOrders(payload) { | ||
@@ -416,0 +422,0 @@ return privCall('/api/v3/openOrders', payload, 'DELETE'); |
@@ -16,10 +16,2 @@ "use strict"; | ||
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } | ||
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } | ||
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } | ||
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } | ||
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } | ||
@@ -43,2 +35,10 @@ | ||
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } | ||
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } | ||
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } | ||
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } | ||
var endpoints = { | ||
@@ -87,4 +87,9 @@ base: 'wss://stream.binance.com:9443/ws', | ||
var cache = (Array.isArray(payload) ? payload : [payload]).map(function (symbol) { | ||
var w = (0, _openWebsocket.default)("".concat(variator === 'futures' ? endpoints.futures : endpoints.base, "/").concat(symbol.toLowerCase(), "@depth")); | ||
var _symbol$toLowerCase$s = symbol.toLowerCase().split('@'), | ||
_symbol$toLowerCase$s2 = _slicedToArray(_symbol$toLowerCase$s, 2), | ||
symbolName = _symbol$toLowerCase$s2[0], | ||
updateSpeed = _symbol$toLowerCase$s2[1]; | ||
var w = (0, _openWebsocket.default)("".concat(variator === 'futures' ? endpoints.futures : endpoints.base, "/").concat(symbolName, "@depth").concat(updateSpeed ? "@".concat(updateSpeed) : '')); | ||
w.onmessage = function (msg) { | ||
@@ -145,4 +150,10 @@ var obj = JSON.parse(msg.data); | ||
level = _ref.level; | ||
var w = (0, _openWebsocket.default)("".concat(variator === 'futures' ? endpoints.futures : endpoints.base, "/").concat(symbol.toLowerCase(), "@depth").concat(level)); | ||
var _symbol$toLowerCase$s3 = symbol.toLowerCase().split('@'), | ||
_symbol$toLowerCase$s4 = _slicedToArray(_symbol$toLowerCase$s3, 2), | ||
symbolName = _symbol$toLowerCase$s4[0], | ||
updateSpeed = _symbol$toLowerCase$s4[1]; | ||
var w = (0, _openWebsocket.default)("".concat(variator === 'futures' ? endpoints.futures : endpoints.base, "/").concat(symbolName, "@depth").concat(level).concat(updateSpeed ? "@".concat(updateSpeed) : '')); | ||
w.onmessage = function (msg) { | ||
@@ -149,0 +160,0 @@ var obj = JSON.parse(msg.data); |
{ | ||
"name": "binance-api-node", | ||
"version": "0.10.31", | ||
"version": "0.10.32", | ||
"description": "A node API wrapper for Binance", | ||
@@ -5,0 +5,0 @@ "main": "dist", |
Sorry, the diff of this file is too big to display
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
162283
2507
3202