@gbozee/ultimate 0.0.2-170 → 0.0.2-172

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
@@ -61244,8 +61244,8 @@ class ExchangePosition {
61244
61244
  const diff = Math.abs(avg_qty - max_size);
61245
61245
  const ratio = diff / avg_qty;
61246
61246
  if (avg_qty > max_size && ratio > 0.01) {
61247
- await this.cancelOrders({
61248
- limit: true
61247
+ await this.cancelExchangeOrder({
61248
+ type: "limit"
61249
61249
  });
61250
61250
  }
61251
61251
  }
@@ -62452,14 +62452,15 @@ class ExchangeAccount {
62452
62452
  });
62453
62453
  }
62454
62454
  async followStop(payload) {
62455
- const { symbol, kind, fee_percent, focus_position } = payload;
62455
+ const { symbol, place, kind, fee_percent, focus_position } = payload;
62456
62456
  const main_position = await this.getFocusPosition({
62457
62457
  symbol,
62458
62458
  kind
62459
62459
  });
62460
62460
  return await main_position.followStop({
62461
62461
  focus_position,
62462
- fee_percent
62462
+ fee_percent,
62463
+ place
62463
62464
  });
62464
62465
  }
62465
62466
  async increasePositionAtStop(payload) {
package/dist/index.d.ts CHANGED
@@ -2404,6 +2404,7 @@ declare class ExchangeAccount$1 {
2404
2404
  kind: "long" | "short";
2405
2405
  fee_percent?: number;
2406
2406
  focus_position: ExchangePosition;
2407
+ place?: boolean;
2407
2408
  }): Promise<any>;
2408
2409
  increasePositionAtStop(payload: {
2409
2410
  symbol: string;
package/dist/index.js CHANGED
@@ -61184,8 +61184,8 @@ class ExchangePosition {
61184
61184
  const diff = Math.abs(avg_qty - max_size);
61185
61185
  const ratio = diff / avg_qty;
61186
61186
  if (avg_qty > max_size && ratio > 0.01) {
61187
- await this.cancelOrders({
61188
- limit: true
61187
+ await this.cancelExchangeOrder({
61188
+ type: "limit"
61189
61189
  });
61190
61190
  }
61191
61191
  }
@@ -62392,14 +62392,15 @@ class ExchangeAccount {
62392
62392
  });
62393
62393
  }
62394
62394
  async followStop(payload) {
62395
- const { symbol, kind, fee_percent, focus_position } = payload;
62395
+ const { symbol, place, kind, fee_percent, focus_position } = payload;
62396
62396
  const main_position = await this.getFocusPosition({
62397
62397
  symbol,
62398
62398
  kind
62399
62399
  });
62400
62400
  return await main_position.followStop({
62401
62401
  focus_position,
62402
- fee_percent
62402
+ fee_percent,
62403
+ place
62403
62404
  });
62404
62405
  }
62405
62406
  async increasePositionAtStop(payload) {
@@ -67914,8 +67914,8 @@ class ExchangePosition {
67914
67914
  const diff = Math.abs(avg_qty - max_size);
67915
67915
  const ratio = diff / avg_qty;
67916
67916
  if (avg_qty > max_size && ratio > 0.01) {
67917
- await this.cancelOrders({
67918
- limit: true
67917
+ await this.cancelExchangeOrder({
67918
+ type: "limit"
67919
67919
  });
67920
67920
  }
67921
67921
  }
@@ -69122,14 +69122,15 @@ class ExchangeAccount {
69122
69122
  });
69123
69123
  }
69124
69124
  async followStop(payload) {
69125
- const { symbol, kind, fee_percent, focus_position } = payload;
69125
+ const { symbol, place, kind, fee_percent, focus_position } = payload;
69126
69126
  const main_position = await this.getFocusPosition({
69127
69127
  symbol,
69128
69128
  kind
69129
69129
  });
69130
69130
  return await main_position.followStop({
69131
69131
  focus_position,
69132
- fee_percent
69132
+ fee_percent,
69133
+ place
69133
69134
  });
69134
69135
  }
69135
69136
  async increasePositionAtStop(payload) {
@@ -67887,8 +67887,8 @@ class ExchangePosition {
67887
67887
  const diff = Math.abs(avg_qty - max_size);
67888
67888
  const ratio = diff / avg_qty;
67889
67889
  if (avg_qty > max_size && ratio > 0.01) {
67890
- await this.cancelOrders({
67891
- limit: true
67890
+ await this.cancelExchangeOrder({
67891
+ type: "limit"
67892
67892
  });
67893
67893
  }
67894
67894
  }
@@ -69095,14 +69095,15 @@ class ExchangeAccount {
69095
69095
  });
69096
69096
  }
69097
69097
  async followStop(payload) {
69098
- const { symbol, kind, fee_percent, focus_position } = payload;
69098
+ const { symbol, place, kind, fee_percent, focus_position } = payload;
69099
69099
  const main_position = await this.getFocusPosition({
69100
69100
  symbol,
69101
69101
  kind
69102
69102
  });
69103
69103
  return await main_position.followStop({
69104
69104
  focus_position,
69105
- fee_percent
69105
+ fee_percent,
69106
+ place
69106
69107
  });
69107
69108
  }
69108
69109
  async increasePositionAtStop(payload) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gbozee/ultimate",
3
3
  "type": "module",
4
- "version": "0.0.2-170",
4
+ "version": "0.0.2-172",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",