@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.js
CHANGED
|
@@ -1122,8 +1122,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1122
1122
|
name: "Stable Yield",
|
|
1123
1123
|
shortName: "STB",
|
|
1124
1124
|
color: "#6B7280",
|
|
1125
|
-
scanIntervalMin:
|
|
1126
|
-
scanIntervalMax:
|
|
1125
|
+
scanIntervalMin: 12e4,
|
|
1126
|
+
scanIntervalMax: 18e4,
|
|
1127
1127
|
tradeFrequency: 0.15,
|
|
1128
1128
|
positionSizeMin: 5,
|
|
1129
1129
|
positionSizeMax: 15,
|
|
@@ -1144,8 +1144,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1144
1144
|
name: "Conservative Shield",
|
|
1145
1145
|
shortName: "CON",
|
|
1146
1146
|
color: "#10B981",
|
|
1147
|
-
scanIntervalMin:
|
|
1148
|
-
scanIntervalMax:
|
|
1147
|
+
scanIntervalMin: 9e4,
|
|
1148
|
+
scanIntervalMax: 15e4,
|
|
1149
1149
|
tradeFrequency: 0.25,
|
|
1150
1150
|
positionSizeMin: 10,
|
|
1151
1151
|
positionSizeMax: 20,
|
|
@@ -1169,8 +1169,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1169
1169
|
name: "Balanced Alpha",
|
|
1170
1170
|
shortName: "BAL",
|
|
1171
1171
|
color: "#3B82F6",
|
|
1172
|
-
scanIntervalMin:
|
|
1173
|
-
scanIntervalMax:
|
|
1172
|
+
scanIntervalMin: 75e3,
|
|
1173
|
+
scanIntervalMax: 12e4,
|
|
1174
1174
|
tradeFrequency: 0.4,
|
|
1175
1175
|
positionSizeMin: 15,
|
|
1176
1176
|
positionSizeMax: 35,
|
|
@@ -1191,8 +1191,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1191
1191
|
name: "Smart Rebalance",
|
|
1192
1192
|
shortName: "SRB",
|
|
1193
1193
|
color: "#06B6D4",
|
|
1194
|
-
scanIntervalMin:
|
|
1195
|
-
scanIntervalMax:
|
|
1194
|
+
scanIntervalMin: 8e4,
|
|
1195
|
+
scanIntervalMax: 13e4,
|
|
1196
1196
|
tradeFrequency: 0.35,
|
|
1197
1197
|
positionSizeMin: 12,
|
|
1198
1198
|
positionSizeMax: 30,
|
|
@@ -1216,8 +1216,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1216
1216
|
name: "Growth Momentum",
|
|
1217
1217
|
shortName: "GRO",
|
|
1218
1218
|
color: "#8B5CF6",
|
|
1219
|
-
scanIntervalMin:
|
|
1220
|
-
scanIntervalMax:
|
|
1219
|
+
scanIntervalMin: 7e4,
|
|
1220
|
+
scanIntervalMax: 11e4,
|
|
1221
1221
|
tradeFrequency: 0.45,
|
|
1222
1222
|
positionSizeMin: 20,
|
|
1223
1223
|
positionSizeMax: 40,
|
|
@@ -1238,8 +1238,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1238
1238
|
name: "Trend Hunter",
|
|
1239
1239
|
shortName: "TRH",
|
|
1240
1240
|
color: "#EC4899",
|
|
1241
|
-
scanIntervalMin:
|
|
1242
|
-
scanIntervalMax:
|
|
1241
|
+
scanIntervalMin: 65e3,
|
|
1242
|
+
scanIntervalMax: 1e5,
|
|
1243
1243
|
tradeFrequency: 0.48,
|
|
1244
1244
|
positionSizeMin: 22,
|
|
1245
1245
|
positionSizeMax: 42,
|
|
@@ -1263,8 +1263,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1263
1263
|
name: "Aggressive Momentum",
|
|
1264
1264
|
shortName: "AGG",
|
|
1265
1265
|
color: "#EF4444",
|
|
1266
|
-
scanIntervalMin:
|
|
1267
|
-
scanIntervalMax:
|
|
1266
|
+
scanIntervalMin: 6e4,
|
|
1267
|
+
scanIntervalMax: 1e5,
|
|
1268
1268
|
tradeFrequency: 0.5,
|
|
1269
1269
|
positionSizeMin: 25,
|
|
1270
1270
|
positionSizeMax: 50,
|
|
@@ -1285,8 +1285,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1285
1285
|
name: "Leverage Maximizer",
|
|
1286
1286
|
shortName: "LEV",
|
|
1287
1287
|
color: "#F97316",
|
|
1288
|
-
scanIntervalMin:
|
|
1289
|
-
scanIntervalMax:
|
|
1288
|
+
scanIntervalMin: 55e3,
|
|
1289
|
+
scanIntervalMax: 9e4,
|
|
1290
1290
|
tradeFrequency: 0.55,
|
|
1291
1291
|
positionSizeMin: 30,
|
|
1292
1292
|
positionSizeMax: 55,
|
|
@@ -1310,8 +1310,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1310
1310
|
name: "AI Quant Alpha",
|
|
1311
1311
|
shortName: "AQA",
|
|
1312
1312
|
color: "#A855F7",
|
|
1313
|
-
scanIntervalMin:
|
|
1314
|
-
scanIntervalMax:
|
|
1313
|
+
scanIntervalMin: 7e4,
|
|
1314
|
+
scanIntervalMax: 11e4,
|
|
1315
1315
|
tradeFrequency: 0.42,
|
|
1316
1316
|
positionSizeMin: 18,
|
|
1317
1317
|
positionSizeMax: 38,
|
|
@@ -1332,8 +1332,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1332
1332
|
name: "Neural Trader",
|
|
1333
1333
|
shortName: "NRT",
|
|
1334
1334
|
color: "#14B8A6",
|
|
1335
|
-
scanIntervalMin:
|
|
1336
|
-
scanIntervalMax:
|
|
1335
|
+
scanIntervalMin: 7e4,
|
|
1336
|
+
scanIntervalMax: 105e3,
|
|
1337
1337
|
tradeFrequency: 0.44,
|
|
1338
1338
|
positionSizeMin: 20,
|
|
1339
1339
|
positionSizeMax: 40,
|
|
@@ -1354,8 +1354,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1354
1354
|
name: "Quantum Edge",
|
|
1355
1355
|
shortName: "QTE",
|
|
1356
1356
|
color: "#6366F1",
|
|
1357
|
-
scanIntervalMin:
|
|
1358
|
-
scanIntervalMax:
|
|
1357
|
+
scanIntervalMin: 6e4,
|
|
1358
|
+
scanIntervalMax: 1e5,
|
|
1359
1359
|
tradeFrequency: 0.5,
|
|
1360
1360
|
positionSizeMin: 25,
|
|
1361
1361
|
positionSizeMax: 50,
|
|
@@ -1590,7 +1590,7 @@ var init_BotSimulationEngine = __esm({
|
|
|
1590
1590
|
},
|
|
1591
1591
|
delay
|
|
1592
1592
|
});
|
|
1593
|
-
delay += rand3(
|
|
1593
|
+
delay += rand3(4e3, 6e3);
|
|
1594
1594
|
const thinkingMessages = this.generateThinkingProcess(strategy, pair, price);
|
|
1595
1595
|
for (const thinking of thinkingMessages) {
|
|
1596
1596
|
entries.push({
|
|
@@ -1603,7 +1603,7 @@ var init_BotSimulationEngine = __esm({
|
|
|
1603
1603
|
},
|
|
1604
1604
|
delay
|
|
1605
1605
|
});
|
|
1606
|
-
delay += rand3(
|
|
1606
|
+
delay += rand3(3e3, 5e3);
|
|
1607
1607
|
}
|
|
1608
1608
|
const indicatorParts = [];
|
|
1609
1609
|
if (strategy.primaryIndicators.includes("RSI") || strategy.primaryIndicators.includes("MACD")) {
|
|
@@ -1635,8 +1635,8 @@ var init_BotSimulationEngine = __esm({
|
|
|
1635
1635
|
},
|
|
1636
1636
|
delay
|
|
1637
1637
|
});
|
|
1638
|
-
delay += rand3(
|
|
1639
|
-
if (Math.random() < 0.
|
|
1638
|
+
delay += rand3(4e3, 6e3);
|
|
1639
|
+
if (Math.random() < 0.08) {
|
|
1640
1640
|
const sentiment = Math.random() > 0.4 ? "Bullish" : "Bearish";
|
|
1641
1641
|
entries.push({
|
|
1642
1642
|
entry: {
|
|
@@ -1648,9 +1648,9 @@ var init_BotSimulationEngine = __esm({
|
|
|
1648
1648
|
},
|
|
1649
1649
|
delay
|
|
1650
1650
|
});
|
|
1651
|
-
delay += rand3(
|
|
1651
|
+
delay += rand3(5e3, 8e3);
|
|
1652
1652
|
}
|
|
1653
|
-
if (Math.random() < 0.
|
|
1653
|
+
if (Math.random() < 0.3) {
|
|
1654
1654
|
const analysis = this.generateAnalysis(strategy, indicators, pair);
|
|
1655
1655
|
entries.push({
|
|
1656
1656
|
entry: {
|
|
@@ -1662,7 +1662,7 @@ var init_BotSimulationEngine = __esm({
|
|
|
1662
1662
|
},
|
|
1663
1663
|
delay
|
|
1664
1664
|
});
|
|
1665
|
-
delay += rand3(
|
|
1665
|
+
delay += rand3(5e3, 8e3);
|
|
1666
1666
|
}
|
|
1667
1667
|
const signal = this.evaluateSignal(strategy, indicators);
|
|
1668
1668
|
state.lastSignal = signal.direction;
|
|
@@ -1686,7 +1686,7 @@ var init_BotSimulationEngine = __esm({
|
|
|
1686
1686
|
},
|
|
1687
1687
|
delay
|
|
1688
1688
|
});
|
|
1689
|
-
delay += rand3(
|
|
1689
|
+
delay += rand3(5e3, 8e3);
|
|
1690
1690
|
entries.push({
|
|
1691
1691
|
entry: {
|
|
1692
1692
|
strategyId: strategy.id,
|
|
@@ -1698,7 +1698,7 @@ var init_BotSimulationEngine = __esm({
|
|
|
1698
1698
|
},
|
|
1699
1699
|
delay
|
|
1700
1700
|
});
|
|
1701
|
-
delay += rand3(
|
|
1701
|
+
delay += rand3(5e3, 7e3);
|
|
1702
1702
|
const decision = this.makeTradeDecision(strategy, signal, state);
|
|
1703
1703
|
if (decision.execute) {
|
|
1704
1704
|
entries.push({
|