@gbozee/ultimate 0.0.2-15 → 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 +4 -1
- package/dist/index.js +3 -2
- package/package.json +1 -1
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(
|
|
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
|
@@ -38801,7 +38801,8 @@ class ExchangeAccount {
|
|
|
38801
38801
|
this.app_db.removePosition(short_position);
|
|
38802
38802
|
}
|
|
38803
38803
|
}
|
|
38804
|
-
async triggerBullishMarket(
|
|
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
|
|
38847
|
+
profit_percent,
|
|
38847
38848
|
update_db: true
|
|
38848
38849
|
});
|
|
38849
38850
|
changed = true;
|