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.31 to 0.10.32

6

dist/http-client.js

@@ -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');

31

dist/websocket.js

@@ -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

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