serum-vial
Advanced tools
Comparing version 1.4.1 to 1.4.2
@@ -225,8 +225,7 @@ "use strict"; | ||
const bidsDiff = accountsData.bids !== undefined ? this._getL2Diff(this._currentL2Snapshot.bids, newL2Snapshot.bids) : []; | ||
if (l3Diff.length > 0) { | ||
// publish l3Diff only if full l3 snapshot was not requested | ||
if (l3Diff.length > 0 && this._l3SnapshotPublishRequested === false) { | ||
for (let i = 0; i < l3Diff.length; i++) { | ||
const message = l3Diff[i]; | ||
if (this._l3SnapshotPublishRequested === false) { | ||
yield this._putInEnvelope(message, true); | ||
} | ||
yield this._putInEnvelope(message, true); | ||
// detect l2 trades based on fills | ||
@@ -233,0 +232,0 @@ if (message.type === 'fill' && message.maker === false) { |
{ | ||
"name": "serum-vial", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=15" |
@@ -325,9 +325,8 @@ import { EVENT_QUEUE_LAYOUT, Market, Orderbook, getLayoutVersion } from '@project-serum/serum' | ||
if (l3Diff.length > 0) { | ||
// publish l3Diff only if full l3 snapshot was not requested | ||
if (l3Diff.length > 0 && this._l3SnapshotPublishRequested === false) { | ||
for (let i = 0; i < l3Diff.length; i++) { | ||
const message = l3Diff[i]! | ||
if (this._l3SnapshotPublishRequested === false) { | ||
yield this._putInEnvelope(message, true) | ||
} | ||
yield this._putInEnvelope(message, true) | ||
@@ -334,0 +333,0 @@ // detect l2 trades based on fills |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
298334
4370