@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/package.json
CHANGED
|
@@ -215,7 +215,7 @@ export function OneProvider({
|
|
|
215
215
|
useEffect(() => {
|
|
216
216
|
const fetchClientConfig = async () => {
|
|
217
217
|
try {
|
|
218
|
-
const response = await fetch(`${config.oneEngineUrl}/v1/config/thirdweb`);
|
|
218
|
+
const response = await fetch(`${config.oneEngineUrl}/api/v1/config/thirdweb`);
|
|
219
219
|
|
|
220
220
|
if (response.ok) {
|
|
221
221
|
const data = await response.json();
|
|
@@ -120,7 +120,7 @@ export function OneThirdwebProvider({
|
|
|
120
120
|
const fetchClientConfig = async () => {
|
|
121
121
|
try {
|
|
122
122
|
const engineUrl = config.engineUrl || DEFAULT_ENGINE_URL;
|
|
123
|
-
const response = await fetch(`${engineUrl}/v1/config/thirdweb`);
|
|
123
|
+
const response = await fetch(`${engineUrl}/api/v1/config/thirdweb`);
|
|
124
124
|
|
|
125
125
|
if (response.ok) {
|
|
126
126
|
const data = await response.json();
|
|
@@ -313,8 +313,8 @@ export const STRATEGY_PERSONALITIES: StrategyPersonality[] = [
|
|
|
313
313
|
name: 'Stable Yield',
|
|
314
314
|
shortName: 'STB',
|
|
315
315
|
color: '#6B7280',
|
|
316
|
-
scanIntervalMin:
|
|
317
|
-
scanIntervalMax:
|
|
316
|
+
scanIntervalMin: 120000,
|
|
317
|
+
scanIntervalMax: 180000,
|
|
318
318
|
tradeFrequency: 0.15,
|
|
319
319
|
positionSizeMin: 5,
|
|
320
320
|
positionSizeMax: 15,
|
|
@@ -335,8 +335,8 @@ export const STRATEGY_PERSONALITIES: StrategyPersonality[] = [
|
|
|
335
335
|
name: 'Conservative Shield',
|
|
336
336
|
shortName: 'CON',
|
|
337
337
|
color: '#10B981',
|
|
338
|
-
scanIntervalMin:
|
|
339
|
-
scanIntervalMax:
|
|
338
|
+
scanIntervalMin: 90000,
|
|
339
|
+
scanIntervalMax: 150000,
|
|
340
340
|
tradeFrequency: 0.25,
|
|
341
341
|
positionSizeMin: 10,
|
|
342
342
|
positionSizeMax: 20,
|
|
@@ -361,8 +361,8 @@ export const STRATEGY_PERSONALITIES: StrategyPersonality[] = [
|
|
|
361
361
|
name: 'Balanced Alpha',
|
|
362
362
|
shortName: 'BAL',
|
|
363
363
|
color: '#3B82F6',
|
|
364
|
-
scanIntervalMin:
|
|
365
|
-
scanIntervalMax:
|
|
364
|
+
scanIntervalMin: 75000,
|
|
365
|
+
scanIntervalMax: 120000,
|
|
366
366
|
tradeFrequency: 0.4,
|
|
367
367
|
positionSizeMin: 15,
|
|
368
368
|
positionSizeMax: 35,
|
|
@@ -383,8 +383,8 @@ export const STRATEGY_PERSONALITIES: StrategyPersonality[] = [
|
|
|
383
383
|
name: 'Smart Rebalance',
|
|
384
384
|
shortName: 'SRB',
|
|
385
385
|
color: '#06B6D4',
|
|
386
|
-
scanIntervalMin:
|
|
387
|
-
scanIntervalMax:
|
|
386
|
+
scanIntervalMin: 80000,
|
|
387
|
+
scanIntervalMax: 130000,
|
|
388
388
|
tradeFrequency: 0.35,
|
|
389
389
|
positionSizeMin: 12,
|
|
390
390
|
positionSizeMax: 30,
|
|
@@ -409,8 +409,8 @@ export const STRATEGY_PERSONALITIES: StrategyPersonality[] = [
|
|
|
409
409
|
name: 'Growth Momentum',
|
|
410
410
|
shortName: 'GRO',
|
|
411
411
|
color: '#8B5CF6',
|
|
412
|
-
scanIntervalMin:
|
|
413
|
-
scanIntervalMax:
|
|
412
|
+
scanIntervalMin: 70000,
|
|
413
|
+
scanIntervalMax: 110000,
|
|
414
414
|
tradeFrequency: 0.45,
|
|
415
415
|
positionSizeMin: 20,
|
|
416
416
|
positionSizeMax: 40,
|
|
@@ -431,8 +431,8 @@ export const STRATEGY_PERSONALITIES: StrategyPersonality[] = [
|
|
|
431
431
|
name: 'Trend Hunter',
|
|
432
432
|
shortName: 'TRH',
|
|
433
433
|
color: '#EC4899',
|
|
434
|
-
scanIntervalMin:
|
|
435
|
-
scanIntervalMax:
|
|
434
|
+
scanIntervalMin: 65000,
|
|
435
|
+
scanIntervalMax: 100000,
|
|
436
436
|
tradeFrequency: 0.48,
|
|
437
437
|
positionSizeMin: 22,
|
|
438
438
|
positionSizeMax: 42,
|
|
@@ -457,8 +457,8 @@ export const STRATEGY_PERSONALITIES: StrategyPersonality[] = [
|
|
|
457
457
|
name: 'Aggressive Momentum',
|
|
458
458
|
shortName: 'AGG',
|
|
459
459
|
color: '#EF4444',
|
|
460
|
-
scanIntervalMin:
|
|
461
|
-
scanIntervalMax:
|
|
460
|
+
scanIntervalMin: 60000,
|
|
461
|
+
scanIntervalMax: 100000,
|
|
462
462
|
tradeFrequency: 0.5,
|
|
463
463
|
positionSizeMin: 25,
|
|
464
464
|
positionSizeMax: 50,
|
|
@@ -479,8 +479,8 @@ export const STRATEGY_PERSONALITIES: StrategyPersonality[] = [
|
|
|
479
479
|
name: 'Leverage Maximizer',
|
|
480
480
|
shortName: 'LEV',
|
|
481
481
|
color: '#F97316',
|
|
482
|
-
scanIntervalMin:
|
|
483
|
-
scanIntervalMax:
|
|
482
|
+
scanIntervalMin: 55000,
|
|
483
|
+
scanIntervalMax: 90000,
|
|
484
484
|
tradeFrequency: 0.55,
|
|
485
485
|
positionSizeMin: 30,
|
|
486
486
|
positionSizeMax: 55,
|
|
@@ -505,8 +505,8 @@ export const STRATEGY_PERSONALITIES: StrategyPersonality[] = [
|
|
|
505
505
|
name: 'AI Quant Alpha',
|
|
506
506
|
shortName: 'AQA',
|
|
507
507
|
color: '#A855F7',
|
|
508
|
-
scanIntervalMin:
|
|
509
|
-
scanIntervalMax:
|
|
508
|
+
scanIntervalMin: 70000,
|
|
509
|
+
scanIntervalMax: 110000,
|
|
510
510
|
tradeFrequency: 0.42,
|
|
511
511
|
positionSizeMin: 18,
|
|
512
512
|
positionSizeMax: 38,
|
|
@@ -527,8 +527,8 @@ export const STRATEGY_PERSONALITIES: StrategyPersonality[] = [
|
|
|
527
527
|
name: 'Neural Trader',
|
|
528
528
|
shortName: 'NRT',
|
|
529
529
|
color: '#14B8A6',
|
|
530
|
-
scanIntervalMin:
|
|
531
|
-
scanIntervalMax:
|
|
530
|
+
scanIntervalMin: 70000,
|
|
531
|
+
scanIntervalMax: 105000,
|
|
532
532
|
tradeFrequency: 0.44,
|
|
533
533
|
positionSizeMin: 20,
|
|
534
534
|
positionSizeMax: 40,
|
|
@@ -549,8 +549,8 @@ export const STRATEGY_PERSONALITIES: StrategyPersonality[] = [
|
|
|
549
549
|
name: 'Quantum Edge',
|
|
550
550
|
shortName: 'QTE',
|
|
551
551
|
color: '#6366F1',
|
|
552
|
-
scanIntervalMin:
|
|
553
|
-
scanIntervalMax:
|
|
552
|
+
scanIntervalMin: 60000,
|
|
553
|
+
scanIntervalMax: 100000,
|
|
554
554
|
tradeFrequency: 0.5,
|
|
555
555
|
positionSizeMin: 25,
|
|
556
556
|
positionSizeMax: 50,
|
|
@@ -856,7 +856,7 @@ class BotSimulationEngine {
|
|
|
856
856
|
},
|
|
857
857
|
delay,
|
|
858
858
|
});
|
|
859
|
-
delay += rand(
|
|
859
|
+
delay += rand(4000, 6000); // 4-6s after SCAN (slower)
|
|
860
860
|
|
|
861
861
|
// 2. THINKING - AI reasoning process (new)
|
|
862
862
|
const thinkingMessages = this.generateThinkingProcess(strategy, pair, price);
|
|
@@ -871,7 +871,7 @@ class BotSimulationEngine {
|
|
|
871
871
|
},
|
|
872
872
|
delay,
|
|
873
873
|
});
|
|
874
|
-
delay += rand(
|
|
874
|
+
delay += rand(3000, 5000); // 3-5s between thoughts (slower)
|
|
875
875
|
}
|
|
876
876
|
|
|
877
877
|
// 3. INDICATOR - Always (slower delay)
|
|
@@ -906,10 +906,10 @@ class BotSimulationEngine {
|
|
|
906
906
|
},
|
|
907
907
|
delay,
|
|
908
908
|
});
|
|
909
|
-
delay += rand(
|
|
909
|
+
delay += rand(4000, 6000); // 4-6s after INDICATOR (slower)
|
|
910
910
|
|
|
911
|
-
// 4. NEWS -
|
|
912
|
-
if (Math.random() < 0.
|
|
911
|
+
// 4. NEWS - 8% chance (less frequent)
|
|
912
|
+
if (Math.random() < 0.08) {
|
|
913
913
|
const sentiment = Math.random() > 0.4 ? 'Bullish' : 'Bearish';
|
|
914
914
|
entries.push({
|
|
915
915
|
entry: {
|
|
@@ -921,11 +921,11 @@ class BotSimulationEngine {
|
|
|
921
921
|
},
|
|
922
922
|
delay,
|
|
923
923
|
});
|
|
924
|
-
delay += rand(
|
|
924
|
+
delay += rand(5000, 8000); // 5-8s after NEWS (slower)
|
|
925
925
|
}
|
|
926
926
|
|
|
927
|
-
// 5. ANALYSIS -
|
|
928
|
-
if (Math.random() < 0.
|
|
927
|
+
// 5. ANALYSIS - 30% chance (less frequent)
|
|
928
|
+
if (Math.random() < 0.30) {
|
|
929
929
|
const analysis = this.generateAnalysis(strategy, indicators, pair);
|
|
930
930
|
entries.push({
|
|
931
931
|
entry: {
|
|
@@ -937,7 +937,7 @@ class BotSimulationEngine {
|
|
|
937
937
|
},
|
|
938
938
|
delay,
|
|
939
939
|
});
|
|
940
|
-
delay += rand(
|
|
940
|
+
delay += rand(5000, 8000); // 5-8s after ANALYSIS (slower)
|
|
941
941
|
}
|
|
942
942
|
|
|
943
943
|
// 6-10. Signal evaluation and potential trade
|
|
@@ -965,7 +965,7 @@ class BotSimulationEngine {
|
|
|
965
965
|
},
|
|
966
966
|
delay,
|
|
967
967
|
});
|
|
968
|
-
delay += rand(
|
|
968
|
+
delay += rand(5000, 8000); // 5-8s after STRATEGY (slower)
|
|
969
969
|
|
|
970
970
|
// 7. SIGNAL
|
|
971
971
|
entries.push({
|
|
@@ -979,7 +979,7 @@ class BotSimulationEngine {
|
|
|
979
979
|
},
|
|
980
980
|
delay,
|
|
981
981
|
});
|
|
982
|
-
delay += rand(
|
|
982
|
+
delay += rand(5000, 7000); // 5-7s after SIGNAL (slower)
|
|
983
983
|
|
|
984
984
|
// 8. DECISION
|
|
985
985
|
const decision = this.makeTradeDecision(strategy, signal, state);
|