@gbozee/ultimate 0.0.2-195 → 0.0.2-196

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/dist/index.cjs CHANGED
@@ -59413,6 +59413,13 @@ async function placeStopOrder(client, payload) {
59413
59413
  type: "stop",
59414
59414
  kind: payload.kind
59415
59415
  });
59416
+ if (payload.hedge) {
59417
+ const r_kind = payload.kind === "long" ? "short" : "long";
59418
+ await cancelAllOrders(client, symbol, {
59419
+ type: "stop",
59420
+ kind: r_kind
59421
+ });
59422
+ }
59416
59423
  }
59417
59424
  const spread = 1.00005;
59418
59425
  const order = {
@@ -60047,7 +60054,9 @@ class BinanceExchange extends BaseExchange {
60047
60054
  balanceAfterTransfer: 0,
60048
60055
  marginRequirementAfterTransfer: 0,
60049
60056
  warnings,
60050
- errors: [`Failed to preview transfer: ${error instanceof Error ? error.message : error}`]
60057
+ errors: [
60058
+ `Failed to preview transfer: ${error instanceof Error ? error.message : error}`
60059
+ ]
60051
60060
  };
60052
60061
  }
60053
60062
  }
package/dist/index.js CHANGED
@@ -59350,6 +59350,13 @@ async function placeStopOrder(client, payload) {
59350
59350
  type: "stop",
59351
59351
  kind: payload.kind
59352
59352
  });
59353
+ if (payload.hedge) {
59354
+ const r_kind = payload.kind === "long" ? "short" : "long";
59355
+ await cancelAllOrders(client, symbol, {
59356
+ type: "stop",
59357
+ kind: r_kind
59358
+ });
59359
+ }
59353
59360
  }
59354
59361
  const spread = 1.00005;
59355
59362
  const order = {
@@ -59984,7 +59991,9 @@ class BinanceExchange extends BaseExchange {
59984
59991
  balanceAfterTransfer: 0,
59985
59992
  marginRequirementAfterTransfer: 0,
59986
59993
  warnings,
59987
- errors: [`Failed to preview transfer: ${error instanceof Error ? error.message : error}`]
59994
+ errors: [
59995
+ `Failed to preview transfer: ${error instanceof Error ? error.message : error}`
59996
+ ]
59988
59997
  };
59989
59998
  }
59990
59999
  }
@@ -65986,6 +65986,13 @@ async function placeStopOrder(client, payload) {
65986
65986
  type: "stop",
65987
65987
  kind: payload.kind
65988
65988
  });
65989
+ if (payload.hedge) {
65990
+ const r_kind = payload.kind === "long" ? "short" : "long";
65991
+ await cancelAllOrders(client, symbol, {
65992
+ type: "stop",
65993
+ kind: r_kind
65994
+ });
65995
+ }
65989
65996
  }
65990
65997
  const spread = 1.00005;
65991
65998
  const order = {
@@ -66620,7 +66627,9 @@ class BinanceExchange extends BaseExchange {
66620
66627
  balanceAfterTransfer: 0,
66621
66628
  marginRequirementAfterTransfer: 0,
66622
66629
  warnings,
66623
- errors: [`Failed to preview transfer: ${error instanceof Error ? error.message : error}`]
66630
+ errors: [
66631
+ `Failed to preview transfer: ${error instanceof Error ? error.message : error}`
66632
+ ]
66624
66633
  };
66625
66634
  }
66626
66635
  }
@@ -65959,6 +65959,13 @@ async function placeStopOrder(client, payload) {
65959
65959
  type: "stop",
65960
65960
  kind: payload.kind
65961
65961
  });
65962
+ if (payload.hedge) {
65963
+ const r_kind = payload.kind === "long" ? "short" : "long";
65964
+ await cancelAllOrders(client, symbol, {
65965
+ type: "stop",
65966
+ kind: r_kind
65967
+ });
65968
+ }
65962
65969
  }
65963
65970
  const spread = 1.00005;
65964
65971
  const order = {
@@ -66593,7 +66600,9 @@ class BinanceExchange extends BaseExchange {
66593
66600
  balanceAfterTransfer: 0,
66594
66601
  marginRequirementAfterTransfer: 0,
66595
66602
  warnings,
66596
- errors: [`Failed to preview transfer: ${error instanceof Error ? error.message : error}`]
66603
+ errors: [
66604
+ `Failed to preview transfer: ${error instanceof Error ? error.message : error}`
66605
+ ]
66597
66606
  };
66598
66607
  }
66599
66608
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gbozee/ultimate",
3
3
  "type": "module",
4
- "version": "0.0.2-195",
4
+ "version": "0.0.2-196",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",