@one_deploy/sdk 1.2.4 → 1.2.5
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/hooks/index.js +31 -31
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +31 -31
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.js +31 -31
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +31 -31
- package/dist/index.mjs.map +1 -1
- package/dist/react-native.js +31 -31
- package/dist/react-native.js.map +1 -1
- package/dist/react-native.mjs +31 -31
- package/dist/react-native.mjs.map +1 -1
- package/dist/services/index.js +31 -31
- package/dist/services/index.js.map +1 -1
- package/dist/services/index.mjs +31 -31
- package/dist/services/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/services/forex/BotSimulationEngine.ts +33 -33
package/dist/services/index.js
CHANGED
|
@@ -2586,8 +2586,8 @@ var STRATEGY_PERSONALITIES = [
|
|
|
2586
2586
|
name: "Stable Yield",
|
|
2587
2587
|
shortName: "STB",
|
|
2588
2588
|
color: "#6B7280",
|
|
2589
|
-
scanIntervalMin:
|
|
2590
|
-
scanIntervalMax:
|
|
2589
|
+
scanIntervalMin: 12e4,
|
|
2590
|
+
scanIntervalMax: 18e4,
|
|
2591
2591
|
tradeFrequency: 0.15,
|
|
2592
2592
|
positionSizeMin: 5,
|
|
2593
2593
|
positionSizeMax: 15,
|
|
@@ -2608,8 +2608,8 @@ var STRATEGY_PERSONALITIES = [
|
|
|
2608
2608
|
name: "Conservative Shield",
|
|
2609
2609
|
shortName: "CON",
|
|
2610
2610
|
color: "#10B981",
|
|
2611
|
-
scanIntervalMin:
|
|
2612
|
-
scanIntervalMax:
|
|
2611
|
+
scanIntervalMin: 9e4,
|
|
2612
|
+
scanIntervalMax: 15e4,
|
|
2613
2613
|
tradeFrequency: 0.25,
|
|
2614
2614
|
positionSizeMin: 10,
|
|
2615
2615
|
positionSizeMax: 20,
|
|
@@ -2633,8 +2633,8 @@ var STRATEGY_PERSONALITIES = [
|
|
|
2633
2633
|
name: "Balanced Alpha",
|
|
2634
2634
|
shortName: "BAL",
|
|
2635
2635
|
color: "#3B82F6",
|
|
2636
|
-
scanIntervalMin:
|
|
2637
|
-
scanIntervalMax:
|
|
2636
|
+
scanIntervalMin: 75e3,
|
|
2637
|
+
scanIntervalMax: 12e4,
|
|
2638
2638
|
tradeFrequency: 0.4,
|
|
2639
2639
|
positionSizeMin: 15,
|
|
2640
2640
|
positionSizeMax: 35,
|
|
@@ -2655,8 +2655,8 @@ var STRATEGY_PERSONALITIES = [
|
|
|
2655
2655
|
name: "Smart Rebalance",
|
|
2656
2656
|
shortName: "SRB",
|
|
2657
2657
|
color: "#06B6D4",
|
|
2658
|
-
scanIntervalMin:
|
|
2659
|
-
scanIntervalMax:
|
|
2658
|
+
scanIntervalMin: 8e4,
|
|
2659
|
+
scanIntervalMax: 13e4,
|
|
2660
2660
|
tradeFrequency: 0.35,
|
|
2661
2661
|
positionSizeMin: 12,
|
|
2662
2662
|
positionSizeMax: 30,
|
|
@@ -2680,8 +2680,8 @@ var STRATEGY_PERSONALITIES = [
|
|
|
2680
2680
|
name: "Growth Momentum",
|
|
2681
2681
|
shortName: "GRO",
|
|
2682
2682
|
color: "#8B5CF6",
|
|
2683
|
-
scanIntervalMin:
|
|
2684
|
-
scanIntervalMax:
|
|
2683
|
+
scanIntervalMin: 7e4,
|
|
2684
|
+
scanIntervalMax: 11e4,
|
|
2685
2685
|
tradeFrequency: 0.45,
|
|
2686
2686
|
positionSizeMin: 20,
|
|
2687
2687
|
positionSizeMax: 40,
|
|
@@ -2702,8 +2702,8 @@ var STRATEGY_PERSONALITIES = [
|
|
|
2702
2702
|
name: "Trend Hunter",
|
|
2703
2703
|
shortName: "TRH",
|
|
2704
2704
|
color: "#EC4899",
|
|
2705
|
-
scanIntervalMin:
|
|
2706
|
-
scanIntervalMax:
|
|
2705
|
+
scanIntervalMin: 65e3,
|
|
2706
|
+
scanIntervalMax: 1e5,
|
|
2707
2707
|
tradeFrequency: 0.48,
|
|
2708
2708
|
positionSizeMin: 22,
|
|
2709
2709
|
positionSizeMax: 42,
|
|
@@ -2727,8 +2727,8 @@ var STRATEGY_PERSONALITIES = [
|
|
|
2727
2727
|
name: "Aggressive Momentum",
|
|
2728
2728
|
shortName: "AGG",
|
|
2729
2729
|
color: "#EF4444",
|
|
2730
|
-
scanIntervalMin:
|
|
2731
|
-
scanIntervalMax:
|
|
2730
|
+
scanIntervalMin: 6e4,
|
|
2731
|
+
scanIntervalMax: 1e5,
|
|
2732
2732
|
tradeFrequency: 0.5,
|
|
2733
2733
|
positionSizeMin: 25,
|
|
2734
2734
|
positionSizeMax: 50,
|
|
@@ -2749,8 +2749,8 @@ var STRATEGY_PERSONALITIES = [
|
|
|
2749
2749
|
name: "Leverage Maximizer",
|
|
2750
2750
|
shortName: "LEV",
|
|
2751
2751
|
color: "#F97316",
|
|
2752
|
-
scanIntervalMin:
|
|
2753
|
-
scanIntervalMax:
|
|
2752
|
+
scanIntervalMin: 55e3,
|
|
2753
|
+
scanIntervalMax: 9e4,
|
|
2754
2754
|
tradeFrequency: 0.55,
|
|
2755
2755
|
positionSizeMin: 30,
|
|
2756
2756
|
positionSizeMax: 55,
|
|
@@ -2774,8 +2774,8 @@ var STRATEGY_PERSONALITIES = [
|
|
|
2774
2774
|
name: "AI Quant Alpha",
|
|
2775
2775
|
shortName: "AQA",
|
|
2776
2776
|
color: "#A855F7",
|
|
2777
|
-
scanIntervalMin:
|
|
2778
|
-
scanIntervalMax:
|
|
2777
|
+
scanIntervalMin: 7e4,
|
|
2778
|
+
scanIntervalMax: 11e4,
|
|
2779
2779
|
tradeFrequency: 0.42,
|
|
2780
2780
|
positionSizeMin: 18,
|
|
2781
2781
|
positionSizeMax: 38,
|
|
@@ -2796,8 +2796,8 @@ var STRATEGY_PERSONALITIES = [
|
|
|
2796
2796
|
name: "Neural Trader",
|
|
2797
2797
|
shortName: "NRT",
|
|
2798
2798
|
color: "#14B8A6",
|
|
2799
|
-
scanIntervalMin:
|
|
2800
|
-
scanIntervalMax:
|
|
2799
|
+
scanIntervalMin: 7e4,
|
|
2800
|
+
scanIntervalMax: 105e3,
|
|
2801
2801
|
tradeFrequency: 0.44,
|
|
2802
2802
|
positionSizeMin: 20,
|
|
2803
2803
|
positionSizeMax: 40,
|
|
@@ -2818,8 +2818,8 @@ var STRATEGY_PERSONALITIES = [
|
|
|
2818
2818
|
name: "Quantum Edge",
|
|
2819
2819
|
shortName: "QTE",
|
|
2820
2820
|
color: "#6366F1",
|
|
2821
|
-
scanIntervalMin:
|
|
2822
|
-
scanIntervalMax:
|
|
2821
|
+
scanIntervalMin: 6e4,
|
|
2822
|
+
scanIntervalMax: 1e5,
|
|
2823
2823
|
tradeFrequency: 0.5,
|
|
2824
2824
|
positionSizeMin: 25,
|
|
2825
2825
|
positionSizeMax: 50,
|
|
@@ -3074,7 +3074,7 @@ var BotSimulationEngine = class {
|
|
|
3074
3074
|
},
|
|
3075
3075
|
delay
|
|
3076
3076
|
});
|
|
3077
|
-
delay += rand3(
|
|
3077
|
+
delay += rand3(4e3, 6e3);
|
|
3078
3078
|
const thinkingMessages = this.generateThinkingProcess(strategy, pair, price);
|
|
3079
3079
|
for (const thinking of thinkingMessages) {
|
|
3080
3080
|
entries.push({
|
|
@@ -3087,7 +3087,7 @@ var BotSimulationEngine = class {
|
|
|
3087
3087
|
},
|
|
3088
3088
|
delay
|
|
3089
3089
|
});
|
|
3090
|
-
delay += rand3(
|
|
3090
|
+
delay += rand3(3e3, 5e3);
|
|
3091
3091
|
}
|
|
3092
3092
|
const indicatorParts = [];
|
|
3093
3093
|
if (strategy.primaryIndicators.includes("RSI") || strategy.primaryIndicators.includes("MACD")) {
|
|
@@ -3119,8 +3119,8 @@ var BotSimulationEngine = class {
|
|
|
3119
3119
|
},
|
|
3120
3120
|
delay
|
|
3121
3121
|
});
|
|
3122
|
-
delay += rand3(
|
|
3123
|
-
if (Math.random() < 0.
|
|
3122
|
+
delay += rand3(4e3, 6e3);
|
|
3123
|
+
if (Math.random() < 0.08) {
|
|
3124
3124
|
const sentiment = Math.random() > 0.4 ? "Bullish" : "Bearish";
|
|
3125
3125
|
entries.push({
|
|
3126
3126
|
entry: {
|
|
@@ -3132,9 +3132,9 @@ var BotSimulationEngine = class {
|
|
|
3132
3132
|
},
|
|
3133
3133
|
delay
|
|
3134
3134
|
});
|
|
3135
|
-
delay += rand3(
|
|
3135
|
+
delay += rand3(5e3, 8e3);
|
|
3136
3136
|
}
|
|
3137
|
-
if (Math.random() < 0.
|
|
3137
|
+
if (Math.random() < 0.3) {
|
|
3138
3138
|
const analysis = this.generateAnalysis(strategy, indicators, pair);
|
|
3139
3139
|
entries.push({
|
|
3140
3140
|
entry: {
|
|
@@ -3146,7 +3146,7 @@ var BotSimulationEngine = class {
|
|
|
3146
3146
|
},
|
|
3147
3147
|
delay
|
|
3148
3148
|
});
|
|
3149
|
-
delay += rand3(
|
|
3149
|
+
delay += rand3(5e3, 8e3);
|
|
3150
3150
|
}
|
|
3151
3151
|
const signal = this.evaluateSignal(strategy, indicators);
|
|
3152
3152
|
state.lastSignal = signal.direction;
|
|
@@ -3170,7 +3170,7 @@ var BotSimulationEngine = class {
|
|
|
3170
3170
|
},
|
|
3171
3171
|
delay
|
|
3172
3172
|
});
|
|
3173
|
-
delay += rand3(
|
|
3173
|
+
delay += rand3(5e3, 8e3);
|
|
3174
3174
|
entries.push({
|
|
3175
3175
|
entry: {
|
|
3176
3176
|
strategyId: strategy.id,
|
|
@@ -3182,7 +3182,7 @@ var BotSimulationEngine = class {
|
|
|
3182
3182
|
},
|
|
3183
3183
|
delay
|
|
3184
3184
|
});
|
|
3185
|
-
delay += rand3(
|
|
3185
|
+
delay += rand3(5e3, 7e3);
|
|
3186
3186
|
const decision = this.makeTradeDecision(strategy, signal, state);
|
|
3187
3187
|
if (decision.execute) {
|
|
3188
3188
|
entries.push({
|