@grvt/client 1.6.17 → 1.6.18

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.
@@ -1,4 +1,5 @@
1
1
  export declare enum EPositionMarginType {
2
+ ISOLATED = "ISOLATED",
2
3
  CROSS = "CROSS"
3
4
  }
4
5
  export declare const EPositionMarginTypeInt: Record<EPositionMarginType, number>;
@@ -3,9 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.EPositionMarginTypeInt = exports.EPositionMarginType = void 0;
4
4
  var EPositionMarginType;
5
5
  (function (EPositionMarginType) {
6
+ // Isolated Margin Mode: each position is allocated a fixed amount of collateral
7
+ EPositionMarginType["ISOLATED"] = "ISOLATED";
6
8
  // Cross Margin Mode: uses all available funds in your account as collateral across all cross margin positions
7
9
  EPositionMarginType["CROSS"] = "CROSS";
8
10
  })(EPositionMarginType || (exports.EPositionMarginType = EPositionMarginType = {}));
9
11
  exports.EPositionMarginTypeInt = Object.freeze({
12
+ [EPositionMarginType.ISOLATED]: 1,
10
13
  [EPositionMarginType.CROSS]: 2
11
14
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grvt/client",
3
- "version": "1.6.17",
3
+ "version": "1.6.18",
4
4
  "description": "Node.js & JavaScript client for GRVT REST APIs & WebSockets",
5
5
  "repository": {
6
6
  "type": "git",