@gbozee/ultimate 0.0.2-14 → 0.0.2-16

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.d.ts CHANGED
@@ -598,7 +598,10 @@ declare class ExchangeAccount$1 {
598
598
  revert?: boolean;
599
599
  }): Promise<import("pocketbase").RecordModel[]>;
600
600
  windDownSymbol(symbol: string, risk_reward?: number): Promise<void>;
601
- triggerBullishMarket(symbol: string): Promise<any>;
601
+ triggerBullishMarket(payload: {
602
+ symbol: string;
603
+ profit_percent?: number;
604
+ }): Promise<any>;
602
605
  }
603
606
  declare class App {
604
607
  private app_db;
package/dist/index.js CHANGED
@@ -38729,7 +38729,7 @@ class ExchangeAccount {
38729
38729
  async windDownSymbol(symbol, risk_reward = 199) {
38730
38730
  const positions = await this.syncAccount({
38731
38731
  symbol,
38732
- as_view: true
38732
+ update: true
38733
38733
  });
38734
38734
  let long_position = positions.find((x) => x.kind === "long");
38735
38735
  let short_position = positions.find((x) => x.kind === "short");
@@ -38801,7 +38801,8 @@ class ExchangeAccount {
38801
38801
  this.app_db.removePosition(short_position);
38802
38802
  }
38803
38803
  }
38804
- async triggerBullishMarket(symbol) {
38804
+ async triggerBullishMarket(payload) {
38805
+ const { symbol, profit_percent = 10 } = payload;
38805
38806
  const bullish_instance = await this.app_db.getBullishMarket(symbol);
38806
38807
  if (!bullish_instance) {
38807
38808
  return false;
@@ -38843,7 +38844,7 @@ class ExchangeAccount {
38843
38844
  risk_reward: long_config.risk_reward,
38844
38845
  risk: long_config.risk,
38845
38846
  symbol,
38846
- profit_percent: 1,
38847
+ profit_percent,
38847
38848
  update_db: true
38848
38849
  });
38849
38850
  changed = true;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gbozee/ultimate",
3
3
  "type": "module",
4
- "version": "0.0.2-14",
4
+ "version": "0.0.2-16",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",