@drift-labs/sdk 2.34.1-beta.3 → 2.34.1-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VERSION +1 -1
- package/lib/dlob/DLOB.js +3 -12
- package/package.json +1 -1
- package/src/dlob/DLOB.ts +3 -12
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.34.1-beta.
|
|
1
|
+
2.34.1-beta.4
|
package/lib/dlob/DLOB.js
CHANGED
|
@@ -490,18 +490,9 @@ class DLOB {
|
|
|
490
490
|
return nodesToFill;
|
|
491
491
|
}
|
|
492
492
|
// All bids/asks that can expire
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
nodeLists.floatingLimit.bid.getGenerator(),
|
|
497
|
-
nodeLists.market.bid.getGenerator(),
|
|
498
|
-
];
|
|
499
|
-
const askGenerators = [
|
|
500
|
-
nodeLists.takingLimit.ask.getGenerator(),
|
|
501
|
-
nodeLists.restingLimit.ask.getGenerator(),
|
|
502
|
-
nodeLists.floatingLimit.ask.getGenerator(),
|
|
503
|
-
nodeLists.market.ask.getGenerator(),
|
|
504
|
-
];
|
|
493
|
+
// dont try to expire limit orders with tif as its inefficient use of blockspace
|
|
494
|
+
const bidGenerators = [nodeLists.market.bid.getGenerator()];
|
|
495
|
+
const askGenerators = [nodeLists.market.ask.getGenerator()];
|
|
505
496
|
for (const bidGenerator of bidGenerators) {
|
|
506
497
|
for (const bid of bidGenerator) {
|
|
507
498
|
if ((0, __1.isOrderExpired)(bid.order, ts)) {
|
package/package.json
CHANGED
package/src/dlob/DLOB.ts
CHANGED
|
@@ -930,18 +930,9 @@ export class DLOB {
|
|
|
930
930
|
}
|
|
931
931
|
|
|
932
932
|
// All bids/asks that can expire
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
nodeLists.floatingLimit.bid.getGenerator(),
|
|
937
|
-
nodeLists.market.bid.getGenerator(),
|
|
938
|
-
];
|
|
939
|
-
const askGenerators = [
|
|
940
|
-
nodeLists.takingLimit.ask.getGenerator(),
|
|
941
|
-
nodeLists.restingLimit.ask.getGenerator(),
|
|
942
|
-
nodeLists.floatingLimit.ask.getGenerator(),
|
|
943
|
-
nodeLists.market.ask.getGenerator(),
|
|
944
|
-
];
|
|
933
|
+
// dont try to expire limit orders with tif as its inefficient use of blockspace
|
|
934
|
+
const bidGenerators = [nodeLists.market.bid.getGenerator()];
|
|
935
|
+
const askGenerators = [nodeLists.market.ask.getGenerator()];
|
|
945
936
|
|
|
946
937
|
for (const bidGenerator of bidGenerators) {
|
|
947
938
|
for (const bid of bidGenerator) {
|