@one_deploy/sdk 1.2.3 → 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/components/index.js.map +1 -1
- package/dist/components/index.mjs.map +1 -1
- 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 +32 -32
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +32 -32
- package/dist/index.mjs.map +1 -1
- package/dist/providers/index.js +1 -1
- package/dist/providers/index.js.map +1 -1
- package/dist/providers/index.mjs +1 -1
- package/dist/providers/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/providers/OneProvider.tsx +1 -1
- package/src/providers/ThirdwebProvider.tsx +1 -1
- package/src/services/forex/BotSimulationEngine.ts +33 -33
package/dist/hooks/index.mjs
CHANGED
|
@@ -1120,8 +1120,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1120
1120
|
name: "Stable Yield",
|
|
1121
1121
|
shortName: "STB",
|
|
1122
1122
|
color: "#6B7280",
|
|
1123
|
-
scanIntervalMin:
|
|
1124
|
-
scanIntervalMax:
|
|
1123
|
+
scanIntervalMin: 12e4,
|
|
1124
|
+
scanIntervalMax: 18e4,
|
|
1125
1125
|
tradeFrequency: 0.15,
|
|
1126
1126
|
positionSizeMin: 5,
|
|
1127
1127
|
positionSizeMax: 15,
|
|
@@ -1142,8 +1142,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1142
1142
|
name: "Conservative Shield",
|
|
1143
1143
|
shortName: "CON",
|
|
1144
1144
|
color: "#10B981",
|
|
1145
|
-
scanIntervalMin:
|
|
1146
|
-
scanIntervalMax:
|
|
1145
|
+
scanIntervalMin: 9e4,
|
|
1146
|
+
scanIntervalMax: 15e4,
|
|
1147
1147
|
tradeFrequency: 0.25,
|
|
1148
1148
|
positionSizeMin: 10,
|
|
1149
1149
|
positionSizeMax: 20,
|
|
@@ -1167,8 +1167,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1167
1167
|
name: "Balanced Alpha",
|
|
1168
1168
|
shortName: "BAL",
|
|
1169
1169
|
color: "#3B82F6",
|
|
1170
|
-
scanIntervalMin:
|
|
1171
|
-
scanIntervalMax:
|
|
1170
|
+
scanIntervalMin: 75e3,
|
|
1171
|
+
scanIntervalMax: 12e4,
|
|
1172
1172
|
tradeFrequency: 0.4,
|
|
1173
1173
|
positionSizeMin: 15,
|
|
1174
1174
|
positionSizeMax: 35,
|
|
@@ -1189,8 +1189,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1189
1189
|
name: "Smart Rebalance",
|
|
1190
1190
|
shortName: "SRB",
|
|
1191
1191
|
color: "#06B6D4",
|
|
1192
|
-
scanIntervalMin:
|
|
1193
|
-
scanIntervalMax:
|
|
1192
|
+
scanIntervalMin: 8e4,
|
|
1193
|
+
scanIntervalMax: 13e4,
|
|
1194
1194
|
tradeFrequency: 0.35,
|
|
1195
1195
|
positionSizeMin: 12,
|
|
1196
1196
|
positionSizeMax: 30,
|
|
@@ -1214,8 +1214,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1214
1214
|
name: "Growth Momentum",
|
|
1215
1215
|
shortName: "GRO",
|
|
1216
1216
|
color: "#8B5CF6",
|
|
1217
|
-
scanIntervalMin:
|
|
1218
|
-
scanIntervalMax:
|
|
1217
|
+
scanIntervalMin: 7e4,
|
|
1218
|
+
scanIntervalMax: 11e4,
|
|
1219
1219
|
tradeFrequency: 0.45,
|
|
1220
1220
|
positionSizeMin: 20,
|
|
1221
1221
|
positionSizeMax: 40,
|
|
@@ -1236,8 +1236,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1236
1236
|
name: "Trend Hunter",
|
|
1237
1237
|
shortName: "TRH",
|
|
1238
1238
|
color: "#EC4899",
|
|
1239
|
-
scanIntervalMin:
|
|
1240
|
-
scanIntervalMax:
|
|
1239
|
+
scanIntervalMin: 65e3,
|
|
1240
|
+
scanIntervalMax: 1e5,
|
|
1241
1241
|
tradeFrequency: 0.48,
|
|
1242
1242
|
positionSizeMin: 22,
|
|
1243
1243
|
positionSizeMax: 42,
|
|
@@ -1261,8 +1261,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1261
1261
|
name: "Aggressive Momentum",
|
|
1262
1262
|
shortName: "AGG",
|
|
1263
1263
|
color: "#EF4444",
|
|
1264
|
-
scanIntervalMin:
|
|
1265
|
-
scanIntervalMax:
|
|
1264
|
+
scanIntervalMin: 6e4,
|
|
1265
|
+
scanIntervalMax: 1e5,
|
|
1266
1266
|
tradeFrequency: 0.5,
|
|
1267
1267
|
positionSizeMin: 25,
|
|
1268
1268
|
positionSizeMax: 50,
|
|
@@ -1283,8 +1283,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1283
1283
|
name: "Leverage Maximizer",
|
|
1284
1284
|
shortName: "LEV",
|
|
1285
1285
|
color: "#F97316",
|
|
1286
|
-
scanIntervalMin:
|
|
1287
|
-
scanIntervalMax:
|
|
1286
|
+
scanIntervalMin: 55e3,
|
|
1287
|
+
scanIntervalMax: 9e4,
|
|
1288
1288
|
tradeFrequency: 0.55,
|
|
1289
1289
|
positionSizeMin: 30,
|
|
1290
1290
|
positionSizeMax: 55,
|
|
@@ -1308,8 +1308,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1308
1308
|
name: "AI Quant Alpha",
|
|
1309
1309
|
shortName: "AQA",
|
|
1310
1310
|
color: "#A855F7",
|
|
1311
|
-
scanIntervalMin:
|
|
1312
|
-
scanIntervalMax:
|
|
1311
|
+
scanIntervalMin: 7e4,
|
|
1312
|
+
scanIntervalMax: 11e4,
|
|
1313
1313
|
tradeFrequency: 0.42,
|
|
1314
1314
|
positionSizeMin: 18,
|
|
1315
1315
|
positionSizeMax: 38,
|
|
@@ -1330,8 +1330,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1330
1330
|
name: "Neural Trader",
|
|
1331
1331
|
shortName: "NRT",
|
|
1332
1332
|
color: "#14B8A6",
|
|
1333
|
-
scanIntervalMin:
|
|
1334
|
-
scanIntervalMax:
|
|
1333
|
+
scanIntervalMin: 7e4,
|
|
1334
|
+
scanIntervalMax: 105e3,
|
|
1335
1335
|
tradeFrequency: 0.44,
|
|
1336
1336
|
positionSizeMin: 20,
|
|
1337
1337
|
positionSizeMax: 40,
|
|
@@ -1352,8 +1352,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1352
1352
|
name: "Quantum Edge",
|
|
1353
1353
|
shortName: "QTE",
|
|
1354
1354
|
color: "#6366F1",
|
|
1355
|
-
scanIntervalMin:
|
|
1356
|
-
scanIntervalMax:
|
|
1355
|
+
scanIntervalMin: 6e4,
|
|
1356
|
+
scanIntervalMax: 1e5,
|
|
1357
1357
|
tradeFrequency: 0.5,
|
|
1358
1358
|
positionSizeMin: 25,
|
|
1359
1359
|
positionSizeMax: 50,
|
|
@@ -1588,7 +1588,7 @@ var init_BotSimulationEngine = __esm({
|
|
|
1588
1588
|
},
|
|
1589
1589
|
delay
|
|
1590
1590
|
});
|
|
1591
|
-
delay += rand3(
|
|
1591
|
+
delay += rand3(4e3, 6e3);
|
|
1592
1592
|
const thinkingMessages = this.generateThinkingProcess(strategy, pair, price);
|
|
1593
1593
|
for (const thinking of thinkingMessages) {
|
|
1594
1594
|
entries.push({
|
|
@@ -1601,7 +1601,7 @@ var init_BotSimulationEngine = __esm({
|
|
|
1601
1601
|
},
|
|
1602
1602
|
delay
|
|
1603
1603
|
});
|
|
1604
|
-
delay += rand3(
|
|
1604
|
+
delay += rand3(3e3, 5e3);
|
|
1605
1605
|
}
|
|
1606
1606
|
const indicatorParts = [];
|
|
1607
1607
|
if (strategy.primaryIndicators.includes("RSI") || strategy.primaryIndicators.includes("MACD")) {
|
|
@@ -1633,8 +1633,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1633
1633
|
},
|
|
1634
1634
|
delay
|
|
1635
1635
|
});
|
|
1636
|
-
delay += rand3(
|
|
1637
|
-
if (Math.random() < 0.
|
|
1636
|
+
delay += rand3(4e3, 6e3);
|
|
1637
|
+
if (Math.random() < 0.08) {
|
|
1638
1638
|
const sentiment = Math.random() > 0.4 ? "Bullish" : "Bearish";
|
|
1639
1639
|
entries.push({
|
|
1640
1640
|
entry: {
|
|
@@ -1646,9 +1646,9 @@ var init_BotSimulationEngine = __esm({
|
|
|
1646
1646
|
},
|
|
1647
1647
|
delay
|
|
1648
1648
|
});
|
|
1649
|
-
delay += rand3(
|
|
1649
|
+
delay += rand3(5e3, 8e3);
|
|
1650
1650
|
}
|
|
1651
|
-
if (Math.random() < 0.
|
|
1651
|
+
if (Math.random() < 0.3) {
|
|
1652
1652
|
const analysis = this.generateAnalysis(strategy, indicators, pair);
|
|
1653
1653
|
entries.push({
|
|
1654
1654
|
entry: {
|
|
@@ -1660,7 +1660,7 @@ var init_BotSimulationEngine = __esm({
|
|
|
1660
1660
|
},
|
|
1661
1661
|
delay
|
|
1662
1662
|
});
|
|
1663
|
-
delay += rand3(
|
|
1663
|
+
delay += rand3(5e3, 8e3);
|
|
1664
1664
|
}
|
|
1665
1665
|
const signal = this.evaluateSignal(strategy, indicators);
|
|
1666
1666
|
state.lastSignal = signal.direction;
|
|
@@ -1684,7 +1684,7 @@ var init_BotSimulationEngine = __esm({
|
|
|
1684
1684
|
},
|
|
1685
1685
|
delay
|
|
1686
1686
|
});
|
|
1687
|
-
delay += rand3(
|
|
1687
|
+
delay += rand3(5e3, 8e3);
|
|
1688
1688
|
entries.push({
|
|
1689
1689
|
entry: {
|
|
1690
1690
|
strategyId: strategy.id,
|
|
@@ -1696,7 +1696,7 @@ var init_BotSimulationEngine = __esm({
|
|
|
1696
1696
|
},
|
|
1697
1697
|
delay
|
|
1698
1698
|
});
|
|
1699
|
-
delay += rand3(
|
|
1699
|
+
delay += rand3(5e3, 7e3);
|
|
1700
1700
|
const decision = this.makeTradeDecision(strategy, signal, state);
|
|
1701
1701
|
if (decision.execute) {
|
|
1702
1702
|
entries.push({
|