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.5.6 to 0.5.7

4

dist/websocket.js

@@ -29,3 +29,3 @@ 'use strict';

var depth = function depth(payload, cb) {
var cache = (Array.isArray(payload) ? payload : [payload]).forEach(function (symbol) {
var cache = (Array.isArray(payload) ? payload : [payload]).map(function (symbol) {
var w = new _ws2.default(BASE + '/' + symbol.toLowerCase() + '@depth');

@@ -54,2 +54,4 @@ w.on('message', function (msg) {

});
return w;
});

@@ -56,0 +58,0 @@

{
"name": "binance-api-node",
"version": "0.5.6",
"version": "0.5.7",
"description": "A node API wrapper for Binance",

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

@@ -9,3 +9,3 @@ import WebSocket from 'ws'

const depth = (payload, cb) => {
const cache = (Array.isArray(payload) ? payload : [payload]).forEach(symbol => {
const cache = (Array.isArray(payload) ? payload : [payload]).map(symbol => {
const w = new WebSocket(`${BASE}/${symbol.toLowerCase()}@depth`)

@@ -31,2 +31,4 @@ w.on('message', msg => {

})
return w
})

@@ -33,0 +35,0 @@

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