@drift-labs/sdk 2.34.1-beta.7 → 2.34.1-beta.8

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 CHANGED
@@ -1 +1 @@
1
- 2.34.1-beta.7
1
+ 2.34.1-beta.8
package/lib/types.d.ts CHANGED
@@ -949,6 +949,9 @@ export declare class PostOnlyParams {
949
949
  static readonly TRY_POST_ONLY: {
950
950
  tryPostOnly: {};
951
951
  };
952
+ static readonly SLIDE: {
953
+ slide: {};
954
+ };
952
955
  }
953
956
  export type NecessaryOrderParams = {
954
957
  orderType: OrderType;
package/lib/types.js CHANGED
@@ -248,6 +248,7 @@ exports.PostOnlyParams = PostOnlyParams;
248
248
  PostOnlyParams.NONE = { none: {} };
249
249
  PostOnlyParams.MUST_POST_ONLY = { mustPostOnly: {} }; // Tx fails if order can't be post only
250
250
  PostOnlyParams.TRY_POST_ONLY = { tryPostOnly: {} }; // Tx succeeds and order not placed if can't be post only
251
+ PostOnlyParams.SLIDE = { slide: {} }; // Modify price to be post only if can't be post only
251
252
  class ModifyOrderPolicy {
252
253
  }
253
254
  exports.ModifyOrderPolicy = ModifyOrderPolicy;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drift-labs/sdk",
3
- "version": "2.34.1-beta.7",
3
+ "version": "2.34.1-beta.8",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "author": "crispheaney",
package/src/types.ts CHANGED
@@ -899,6 +899,7 @@ export class PostOnlyParams {
899
899
  static readonly NONE = { none: {} };
900
900
  static readonly MUST_POST_ONLY = { mustPostOnly: {} }; // Tx fails if order can't be post only
901
901
  static readonly TRY_POST_ONLY = { tryPostOnly: {} }; // Tx succeeds and order not placed if can't be post only
902
+ static readonly SLIDE = { slide: {} }; // Modify price to be post only if can't be post only
902
903
  }
903
904
 
904
905
  export type NecessaryOrderParams = {