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

bitmex-orderbook

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitmex-orderbook - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

package.json
{
"name": "bitmex-orderbook",
"version": "1.0.2",
"version": "1.0.3",
"description": "BitMEX WebSocket-driven Orderbook",

@@ -5,0 +5,0 @@ "main": "src/OrderBook.js",

@@ -23,3 +23,3 @@ # BitMEX OrderBook

// Top 5 bid prices, starting at third best (index: 2).
// Top 5 bid prices, skipping the first 2.
const [thirdBestBid] = orderBookL2.getBidprices(5, 2);

@@ -26,0 +26,0 @@

@@ -184,7 +184,7 @@ const debug = require("debug")("bitmex-orderbook");

getAskPrices(count = 0, skip = 0) {
return [...this._asks.values()].slice(skip, Math.min(count || this.depth, this.depth));
return [...this._asks.values()].slice(skip, skip + Math.min(count || this.depth, this.depth));
}
getBidPrices(count = 0, skip = 0) {
return [...this._bids.values()].slice(skip, Math.min(count || this.depth, this.depth));
return [...this._bids.values()].slice(skip, skip + Math.min(count || this.depth, this.depth));
}

@@ -191,0 +191,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