@drift-labs/sdk 2.48.0-beta.1 → 2.48.0-beta.2
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/driftClient.js +6 -6
- package/package.json +1 -1
- package/src/driftClient.ts +7 -6
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.48.0-beta.
|
|
1
|
+
2.48.0-beta.2
|
package/lib/driftClient.js
CHANGED
|
@@ -2647,9 +2647,9 @@ class DriftClient {
|
|
|
2647
2647
|
auctionDuration: auctionDuration || 0,
|
|
2648
2648
|
auctionStartPrice: auctionStartPrice || numericConstants_1.ZERO,
|
|
2649
2649
|
auctionEndPrice: auctionEndPrice || numericConstants_1.ZERO,
|
|
2650
|
-
reduceOnly: reduceOnly
|
|
2651
|
-
postOnly: postOnly
|
|
2652
|
-
immediateOrCancel: immediateOrCancel
|
|
2650
|
+
reduceOnly: reduceOnly != undefined ? reduceOnly : null,
|
|
2651
|
+
postOnly: postOnly != undefined ? postOnly : null,
|
|
2652
|
+
immediateOrCancel: immediateOrCancel != undefined ? immediateOrCancel : null,
|
|
2653
2653
|
policy: policy || null,
|
|
2654
2654
|
maxTs: maxTs || null,
|
|
2655
2655
|
};
|
|
@@ -2698,9 +2698,9 @@ class DriftClient {
|
|
|
2698
2698
|
oraclePriceOffset: newOraclePriceOffset || null,
|
|
2699
2699
|
triggerPrice: newTriggerPrice || null,
|
|
2700
2700
|
triggerCondition: newTriggerCondition || null,
|
|
2701
|
-
auctionDuration: auctionDuration ||
|
|
2702
|
-
auctionStartPrice: auctionStartPrice ||
|
|
2703
|
-
auctionEndPrice: auctionEndPrice ||
|
|
2701
|
+
auctionDuration: auctionDuration || null,
|
|
2702
|
+
auctionStartPrice: auctionStartPrice || null,
|
|
2703
|
+
auctionEndPrice: auctionEndPrice || null,
|
|
2704
2704
|
reduceOnly: reduceOnly || false,
|
|
2705
2705
|
postOnly: postOnly || null,
|
|
2706
2706
|
immediateOrCancel: immediateOrCancel || false,
|
package/package.json
CHANGED
package/src/driftClient.ts
CHANGED
|
@@ -4654,9 +4654,10 @@ export class DriftClient {
|
|
|
4654
4654
|
auctionDuration: auctionDuration || 0,
|
|
4655
4655
|
auctionStartPrice: auctionStartPrice || ZERO,
|
|
4656
4656
|
auctionEndPrice: auctionEndPrice || ZERO,
|
|
4657
|
-
reduceOnly: reduceOnly
|
|
4658
|
-
postOnly: postOnly
|
|
4659
|
-
immediateOrCancel:
|
|
4657
|
+
reduceOnly: reduceOnly != undefined ? reduceOnly : null,
|
|
4658
|
+
postOnly: postOnly != undefined ? postOnly : null,
|
|
4659
|
+
immediateOrCancel:
|
|
4660
|
+
immediateOrCancel != undefined ? immediateOrCancel : null,
|
|
4660
4661
|
policy: policy || null,
|
|
4661
4662
|
maxTs: maxTs || null,
|
|
4662
4663
|
};
|
|
@@ -4769,9 +4770,9 @@ export class DriftClient {
|
|
|
4769
4770
|
oraclePriceOffset: newOraclePriceOffset || null,
|
|
4770
4771
|
triggerPrice: newTriggerPrice || null,
|
|
4771
4772
|
triggerCondition: newTriggerCondition || null,
|
|
4772
|
-
auctionDuration: auctionDuration ||
|
|
4773
|
-
auctionStartPrice: auctionStartPrice ||
|
|
4774
|
-
auctionEndPrice: auctionEndPrice ||
|
|
4773
|
+
auctionDuration: auctionDuration || null,
|
|
4774
|
+
auctionStartPrice: auctionStartPrice || null,
|
|
4775
|
+
auctionEndPrice: auctionEndPrice || null,
|
|
4775
4776
|
reduceOnly: reduceOnly || false,
|
|
4776
4777
|
postOnly: postOnly || null,
|
|
4777
4778
|
immediateOrCancel: immediateOrCancel || false,
|