@one_deploy/sdk 1.2.1 → 1.2.3
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/{ForexPoolDataGenerator-eUgwsU_B.d.ts → ForexPoolDataGenerator-B3DCN6_i.d.ts} +1 -1
- package/dist/{ForexPoolDataGenerator--__twRwl.d.mts → ForexPoolDataGenerator-DWVj6mGW.d.mts} +1 -1
- package/dist/{OneForexTradeHistory-TlKxjbFF.d.ts → OneForexTradeHistory-BMbwdkMm.d.ts} +1 -1
- package/dist/{OneForexTradeHistory-iDySMcw0.d.mts → OneForexTradeHistory-DACfkJQF.d.mts} +1 -1
- package/dist/components/index.d.mts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/config/index.d.mts +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/{console-BfTMA7ah.d.mts → console-BoAIxikK.d.mts} +28 -1
- package/dist/{console-BfTMA7ah.d.ts → console-BoAIxikK.d.ts} +28 -1
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.js +385 -24
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +385 -24
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +385 -24
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +385 -24
- package/dist/index.mjs.map +1 -1
- package/dist/providers/index.d.mts +1 -1
- package/dist/providers/index.d.ts +1 -1
- package/dist/react-native.d.mts +4 -4
- package/dist/react-native.d.ts +4 -4
- package/dist/react-native.js +356 -22
- package/dist/react-native.js.map +1 -1
- package/dist/react-native.mjs +354 -23
- package/dist/react-native.mjs.map +1 -1
- package/dist/services/index.d.mts +2 -2
- package/dist/services/index.d.ts +2 -2
- package/dist/services/index.js +225 -22
- package/dist/services/index.js.map +1 -1
- package/dist/services/index.mjs +225 -22
- package/dist/services/index.mjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/{useForexTrading-ZgW_G40Q.d.ts → useForexTrading-BB4eUlHO.d.ts} +1 -1
- package/dist/{useForexTrading-BleeSor8.d.mts → useForexTrading-xJwkxnhd.d.mts} +1 -1
- package/package.json +1 -1
- package/src/react-native.ts +16 -1
- package/src/services/forex/BotSimulationEngine.ts +447 -19
- package/src/services/forex/index.ts +12 -1
|
@@ -8,7 +8,7 @@ import { OneConfig } from '../config/index.mjs';
|
|
|
8
8
|
import { O as OneEngineClient, a as EngineWalletBalance, e as OnrampSessionRequest, S as SwapQuoteRequest, i as SwapQuote } from '../engine-BeVuHpVx.mjs';
|
|
9
9
|
import { User, Token, AIStrategy, AIOrder } from '../types/index.mjs';
|
|
10
10
|
export { inAppWallet, smartWallet } from 'thirdweb/wallets';
|
|
11
|
-
import '../console-
|
|
11
|
+
import '../console-BoAIxikK.mjs';
|
|
12
12
|
|
|
13
13
|
interface ThirdwebAuthOptions {
|
|
14
14
|
email?: boolean;
|
|
@@ -8,7 +8,7 @@ import { OneConfig } from '../config/index.js';
|
|
|
8
8
|
import { O as OneEngineClient, a as EngineWalletBalance, e as OnrampSessionRequest, S as SwapQuoteRequest, i as SwapQuote } from '../engine-DSc1Em4V.js';
|
|
9
9
|
import { User, Token, AIStrategy, AIOrder } from '../types/index.js';
|
|
10
10
|
export { inAppWallet, smartWallet } from 'thirdweb/wallets';
|
|
11
|
-
import '../console-
|
|
11
|
+
import '../console-BoAIxikK.js';
|
|
12
12
|
|
|
13
13
|
interface ThirdwebAuthOptions {
|
|
14
14
|
email?: boolean;
|
package/dist/react-native.d.mts
CHANGED
|
@@ -3,11 +3,11 @@ export { AIAgent, AIAgentCycleParams, AIAgentPerformance, AIAgentSubscriptionPar
|
|
|
3
3
|
export { CHAIN_CONFIGS, COINGECKO_IDS, OneConfig, TOKEN_NAMES, getConfig, initOneSDK } from './config/index.mjs';
|
|
4
4
|
import { E as EngineAuthResponse, O as OneEngineClient } from './engine-BeVuHpVx.mjs';
|
|
5
5
|
export { b as EngineTransactionRequest, d as EngineTransactionResponse, a as EngineWalletBalance, g as OnrampQuote, f as OnrampSession, e as OnrampSessionRequest, h as OnrampTransaction, j as SwapExecuteRequest, i as SwapQuote, S as SwapQuoteRequest, k as SwapResult, c as createOneEngineClient } from './engine-BeVuHpVx.mjs';
|
|
6
|
-
export { F as ForexPoolDataGenerator, P as PriceService, f as forexSimulationEngine, p as priceService } from './ForexPoolDataGenerator
|
|
6
|
+
export { F as ForexPoolDataGenerator, P as PriceService, f as forexSimulationEngine, p as priceService } from './ForexPoolDataGenerator-DWVj6mGW.mjs';
|
|
7
7
|
export { OneSDKError, capitalize, checksumAddress, formatDate, formatDateTime, formatNumber, formatPercent, formatRelativeTime, formatTokenAmount, formatUSD, isOneSDKError, isValidAddress, isValidEmail, isValidPhone, omit, pick, retry, shortenAddress, sleep, slugify, truncate } from './utils/index.mjs';
|
|
8
|
-
export { C as CHAIN_CONFIG, D as DEFAULT_SHARE_RATES, O as OneChainSelector, i as OneChainSelectorProps, b as OneCycleSelector, k as OneCycleSelectorProps, e as OneForexCapitalSplit, n as OneForexCapitalSplitProps, f as OneForexConsoleView, o as OneForexConsoleViewProps, g as OneForexPairSelector, p as OneForexPairSelectorProps, d as OneForexPoolCard, m as OneForexPoolCardProps, h as OneForexTradeHistory, q as OneForexTradeHistoryProps, c as OnePairSelector, l as OnePairSelectorProps, a as OneTierSelector, j as OneTierSelectorProps, P as PAIR_ICONS, T as Tier } from './OneForexTradeHistory-
|
|
9
|
-
export { g as UseForexInvestmentsResult, i as UseForexPoolDataResult, U as UseForexPoolsResult, h as UseForexSimulationResult, j as UseForexTradingResult, e as clearForexAccessToken, s as setForexAccessToken, f as setForexEngineUrl, a as useForexInvestments, c as useForexPoolData, u as useForexPools, b as useForexSimulation, d as useForexTrading } from './useForexTrading-
|
|
10
|
-
export { M as AGENT_STATUS_COLORS, G as AIDecision, A as AILogType, D as AIPosition, U as AIQuantConsoleOptions, y as AI_LOG_COLORS, V as AgentConsoleOptions, L as AgentStatus, a as BotLogEntry, B as BotLogType, c as BotState, N as CombinedLogEntry, K as ConsoleMetrics, Y as DEFAULT_CONSOLE_METRICS, W as DEFAULT_CONSOLE_OPTIONS, X as DEFAULT_RISK_STATUS, E as DecisionAction, v as FOREX_AGENT, F as FOREX_CAPITAL_SPLIT, h as FOREX_CURRENCY_PAIRS, f as FOREX_CYCLE_OPTIONS, z as FOREX_LOG_COLORS, k as FOREX_POOL_DEFAULTS, u as ForexAgent, g as ForexCurrencyPair, e as ForexCycleOption, p as ForexInvestment, t as ForexLogEntry, s as ForexLogType, j as ForexPool, n as ForexPoolDailySnapshot, m as ForexPoolTransaction, l as ForexPoolTransactionType, i as ForexPoolType, o as ForexPosition, r as ForexTradeRecord, q as ForexTradeStatus, I as IndicatorSnapshot, P as PositionSide, C as PositionStatus, H as RISK_LEVEL_COLORS, R as RiskStatus, S as StrategyPersonality, J as TRADING_STATUS_COLORS, Q as TradingConsoleOptions, O as TradingConsoleState, T as TradingStatus, b as botSimulationEngine, w as calculateForexNetProfit, Z as calculateRiskLevel, d as computePoolAllocations, x as estimateForexProfit, _ as formatPnl } from './console-
|
|
8
|
+
export { C as CHAIN_CONFIG, D as DEFAULT_SHARE_RATES, O as OneChainSelector, i as OneChainSelectorProps, b as OneCycleSelector, k as OneCycleSelectorProps, e as OneForexCapitalSplit, n as OneForexCapitalSplitProps, f as OneForexConsoleView, o as OneForexConsoleViewProps, g as OneForexPairSelector, p as OneForexPairSelectorProps, d as OneForexPoolCard, m as OneForexPoolCardProps, h as OneForexTradeHistory, q as OneForexTradeHistoryProps, c as OnePairSelector, l as OnePairSelectorProps, a as OneTierSelector, j as OneTierSelectorProps, P as PAIR_ICONS, T as Tier } from './OneForexTradeHistory-DACfkJQF.mjs';
|
|
9
|
+
export { g as UseForexInvestmentsResult, i as UseForexPoolDataResult, U as UseForexPoolsResult, h as UseForexSimulationResult, j as UseForexTradingResult, e as clearForexAccessToken, s as setForexAccessToken, f as setForexEngineUrl, a as useForexInvestments, c as useForexPoolData, u as useForexPools, b as useForexSimulation, d as useForexTrading } from './useForexTrading-xJwkxnhd.mjs';
|
|
10
|
+
export { M as AGENT_STATUS_COLORS, G as AIDecision, A as AILogType, D as AIPosition, U as AIQuantConsoleOptions, y as AI_LOG_COLORS, V as AgentConsoleOptions, L as AgentStatus, a as BotLogEntry, B as BotLogType, c as BotState, N as CombinedLogEntry, K as ConsoleMetrics, a3 as CycleConfig, Y as DEFAULT_CONSOLE_METRICS, W as DEFAULT_CONSOLE_OPTIONS, X as DEFAULT_RISK_STATUS, E as DecisionAction, v as FOREX_AGENT, F as FOREX_CAPITAL_SPLIT, h as FOREX_CURRENCY_PAIRS, f as FOREX_CYCLE_OPTIONS, z as FOREX_LOG_COLORS, k as FOREX_POOL_DEFAULTS, u as ForexAgent, g as ForexCurrencyPair, e as ForexCycleOption, p as ForexInvestment, t as ForexLogEntry, s as ForexLogType, j as ForexPool, n as ForexPoolDailySnapshot, m as ForexPoolTransaction, l as ForexPoolTransactionType, i as ForexPoolType, o as ForexPosition, r as ForexTradeRecord, q as ForexTradeStatus, a1 as INVESTMENT_CYCLES, a0 as INVESTMENT_TIERS, I as IndicatorSnapshot, a2 as InvestmentTier, P as PositionSide, C as PositionStatus, H as RISK_LEVEL_COLORS, R as RiskStatus, $ as STRATEGY_PERSONALITIES, S as StrategyPersonality, J as TRADING_STATUS_COLORS, a4 as TierConfig, Q as TradingConsoleOptions, O as TradingConsoleState, T as TradingStatus, b as botSimulationEngine, w as calculateForexNetProfit, Z as calculateRiskLevel, d as computePoolAllocations, x as estimateForexProfit, _ as formatPnl } from './console-BoAIxikK.mjs';
|
|
11
11
|
import 'react';
|
|
12
12
|
import 'react-native';
|
|
13
13
|
|
package/dist/react-native.d.ts
CHANGED
|
@@ -3,11 +3,11 @@ export { AIAgent, AIAgentCycleParams, AIAgentPerformance, AIAgentSubscriptionPar
|
|
|
3
3
|
export { CHAIN_CONFIGS, COINGECKO_IDS, OneConfig, TOKEN_NAMES, getConfig, initOneSDK } from './config/index.js';
|
|
4
4
|
import { E as EngineAuthResponse, O as OneEngineClient } from './engine-DSc1Em4V.js';
|
|
5
5
|
export { b as EngineTransactionRequest, d as EngineTransactionResponse, a as EngineWalletBalance, g as OnrampQuote, f as OnrampSession, e as OnrampSessionRequest, h as OnrampTransaction, j as SwapExecuteRequest, i as SwapQuote, S as SwapQuoteRequest, k as SwapResult, c as createOneEngineClient } from './engine-DSc1Em4V.js';
|
|
6
|
-
export { F as ForexPoolDataGenerator, P as PriceService, f as forexSimulationEngine, p as priceService } from './ForexPoolDataGenerator-
|
|
6
|
+
export { F as ForexPoolDataGenerator, P as PriceService, f as forexSimulationEngine, p as priceService } from './ForexPoolDataGenerator-B3DCN6_i.js';
|
|
7
7
|
export { OneSDKError, capitalize, checksumAddress, formatDate, formatDateTime, formatNumber, formatPercent, formatRelativeTime, formatTokenAmount, formatUSD, isOneSDKError, isValidAddress, isValidEmail, isValidPhone, omit, pick, retry, shortenAddress, sleep, slugify, truncate } from './utils/index.js';
|
|
8
|
-
export { C as CHAIN_CONFIG, D as DEFAULT_SHARE_RATES, O as OneChainSelector, i as OneChainSelectorProps, b as OneCycleSelector, k as OneCycleSelectorProps, e as OneForexCapitalSplit, n as OneForexCapitalSplitProps, f as OneForexConsoleView, o as OneForexConsoleViewProps, g as OneForexPairSelector, p as OneForexPairSelectorProps, d as OneForexPoolCard, m as OneForexPoolCardProps, h as OneForexTradeHistory, q as OneForexTradeHistoryProps, c as OnePairSelector, l as OnePairSelectorProps, a as OneTierSelector, j as OneTierSelectorProps, P as PAIR_ICONS, T as Tier } from './OneForexTradeHistory-
|
|
9
|
-
export { g as UseForexInvestmentsResult, i as UseForexPoolDataResult, U as UseForexPoolsResult, h as UseForexSimulationResult, j as UseForexTradingResult, e as clearForexAccessToken, s as setForexAccessToken, f as setForexEngineUrl, a as useForexInvestments, c as useForexPoolData, u as useForexPools, b as useForexSimulation, d as useForexTrading } from './useForexTrading-
|
|
10
|
-
export { M as AGENT_STATUS_COLORS, G as AIDecision, A as AILogType, D as AIPosition, U as AIQuantConsoleOptions, y as AI_LOG_COLORS, V as AgentConsoleOptions, L as AgentStatus, a as BotLogEntry, B as BotLogType, c as BotState, N as CombinedLogEntry, K as ConsoleMetrics, Y as DEFAULT_CONSOLE_METRICS, W as DEFAULT_CONSOLE_OPTIONS, X as DEFAULT_RISK_STATUS, E as DecisionAction, v as FOREX_AGENT, F as FOREX_CAPITAL_SPLIT, h as FOREX_CURRENCY_PAIRS, f as FOREX_CYCLE_OPTIONS, z as FOREX_LOG_COLORS, k as FOREX_POOL_DEFAULTS, u as ForexAgent, g as ForexCurrencyPair, e as ForexCycleOption, p as ForexInvestment, t as ForexLogEntry, s as ForexLogType, j as ForexPool, n as ForexPoolDailySnapshot, m as ForexPoolTransaction, l as ForexPoolTransactionType, i as ForexPoolType, o as ForexPosition, r as ForexTradeRecord, q as ForexTradeStatus, I as IndicatorSnapshot, P as PositionSide, C as PositionStatus, H as RISK_LEVEL_COLORS, R as RiskStatus, S as StrategyPersonality, J as TRADING_STATUS_COLORS, Q as TradingConsoleOptions, O as TradingConsoleState, T as TradingStatus, b as botSimulationEngine, w as calculateForexNetProfit, Z as calculateRiskLevel, d as computePoolAllocations, x as estimateForexProfit, _ as formatPnl } from './console-
|
|
8
|
+
export { C as CHAIN_CONFIG, D as DEFAULT_SHARE_RATES, O as OneChainSelector, i as OneChainSelectorProps, b as OneCycleSelector, k as OneCycleSelectorProps, e as OneForexCapitalSplit, n as OneForexCapitalSplitProps, f as OneForexConsoleView, o as OneForexConsoleViewProps, g as OneForexPairSelector, p as OneForexPairSelectorProps, d as OneForexPoolCard, m as OneForexPoolCardProps, h as OneForexTradeHistory, q as OneForexTradeHistoryProps, c as OnePairSelector, l as OnePairSelectorProps, a as OneTierSelector, j as OneTierSelectorProps, P as PAIR_ICONS, T as Tier } from './OneForexTradeHistory-BMbwdkMm.js';
|
|
9
|
+
export { g as UseForexInvestmentsResult, i as UseForexPoolDataResult, U as UseForexPoolsResult, h as UseForexSimulationResult, j as UseForexTradingResult, e as clearForexAccessToken, s as setForexAccessToken, f as setForexEngineUrl, a as useForexInvestments, c as useForexPoolData, u as useForexPools, b as useForexSimulation, d as useForexTrading } from './useForexTrading-BB4eUlHO.js';
|
|
10
|
+
export { M as AGENT_STATUS_COLORS, G as AIDecision, A as AILogType, D as AIPosition, U as AIQuantConsoleOptions, y as AI_LOG_COLORS, V as AgentConsoleOptions, L as AgentStatus, a as BotLogEntry, B as BotLogType, c as BotState, N as CombinedLogEntry, K as ConsoleMetrics, a3 as CycleConfig, Y as DEFAULT_CONSOLE_METRICS, W as DEFAULT_CONSOLE_OPTIONS, X as DEFAULT_RISK_STATUS, E as DecisionAction, v as FOREX_AGENT, F as FOREX_CAPITAL_SPLIT, h as FOREX_CURRENCY_PAIRS, f as FOREX_CYCLE_OPTIONS, z as FOREX_LOG_COLORS, k as FOREX_POOL_DEFAULTS, u as ForexAgent, g as ForexCurrencyPair, e as ForexCycleOption, p as ForexInvestment, t as ForexLogEntry, s as ForexLogType, j as ForexPool, n as ForexPoolDailySnapshot, m as ForexPoolTransaction, l as ForexPoolTransactionType, i as ForexPoolType, o as ForexPosition, r as ForexTradeRecord, q as ForexTradeStatus, a1 as INVESTMENT_CYCLES, a0 as INVESTMENT_TIERS, I as IndicatorSnapshot, a2 as InvestmentTier, P as PositionSide, C as PositionStatus, H as RISK_LEVEL_COLORS, R as RiskStatus, $ as STRATEGY_PERSONALITIES, S as StrategyPersonality, J as TRADING_STATUS_COLORS, a4 as TierConfig, Q as TradingConsoleOptions, O as TradingConsoleState, T as TradingStatus, b as botSimulationEngine, w as calculateForexNetProfit, Z as calculateRiskLevel, d as computePoolAllocations, x as estimateForexProfit, _ as formatPnl } from './console-BoAIxikK.js';
|
|
11
11
|
import 'react';
|
|
12
12
|
import 'react-native';
|
|
13
13
|
|
package/dist/react-native.js
CHANGED
|
@@ -3956,14 +3956,191 @@ init_ForexSimulationEngine();
|
|
|
3956
3956
|
init_ForexPoolDataGenerator();
|
|
3957
3957
|
|
|
3958
3958
|
// src/services/forex/BotSimulationEngine.ts
|
|
3959
|
+
var INVESTMENT_TIERS = {
|
|
3960
|
+
starter: {
|
|
3961
|
+
id: "starter",
|
|
3962
|
+
name: "Starter",
|
|
3963
|
+
nameCn: "\u5165\u95E8\u7248",
|
|
3964
|
+
minInvestment: 100,
|
|
3965
|
+
maxInvestment: 999,
|
|
3966
|
+
color: "#6B7280",
|
|
3967
|
+
icon: "\u{1F331}"
|
|
3968
|
+
},
|
|
3969
|
+
basic: {
|
|
3970
|
+
id: "basic",
|
|
3971
|
+
name: "Basic",
|
|
3972
|
+
nameCn: "\u57FA\u7840\u7248",
|
|
3973
|
+
minInvestment: 1e3,
|
|
3974
|
+
maxInvestment: 4999,
|
|
3975
|
+
color: "#3B82F6",
|
|
3976
|
+
icon: "\u{1F4CA}"
|
|
3977
|
+
},
|
|
3978
|
+
standard: {
|
|
3979
|
+
id: "standard",
|
|
3980
|
+
name: "Standard",
|
|
3981
|
+
nameCn: "\u6807\u51C6\u7248",
|
|
3982
|
+
minInvestment: 5e3,
|
|
3983
|
+
maxInvestment: 19999,
|
|
3984
|
+
color: "#10B981",
|
|
3985
|
+
icon: "\u{1F48E}"
|
|
3986
|
+
},
|
|
3987
|
+
premium: {
|
|
3988
|
+
id: "premium",
|
|
3989
|
+
name: "Premium",
|
|
3990
|
+
nameCn: "\u9AD8\u7EA7\u7248",
|
|
3991
|
+
minInvestment: 2e4,
|
|
3992
|
+
maxInvestment: 49999,
|
|
3993
|
+
color: "#8B5CF6",
|
|
3994
|
+
icon: "\u{1F451}"
|
|
3995
|
+
},
|
|
3996
|
+
elite: {
|
|
3997
|
+
id: "elite",
|
|
3998
|
+
name: "Elite",
|
|
3999
|
+
nameCn: "\u7CBE\u82F1\u7248",
|
|
4000
|
+
minInvestment: 5e4,
|
|
4001
|
+
maxInvestment: 99999,
|
|
4002
|
+
color: "#F59E0B",
|
|
4003
|
+
icon: "\u{1F3C6}"
|
|
4004
|
+
},
|
|
4005
|
+
vip: {
|
|
4006
|
+
id: "vip",
|
|
4007
|
+
name: "VIP",
|
|
4008
|
+
nameCn: "VIP\u4E13\u5C5E",
|
|
4009
|
+
minInvestment: 1e5,
|
|
4010
|
+
maxInvestment: Infinity,
|
|
4011
|
+
color: "#EF4444",
|
|
4012
|
+
icon: "\u{1F525}"
|
|
4013
|
+
}
|
|
4014
|
+
};
|
|
4015
|
+
var INVESTMENT_CYCLES = [
|
|
4016
|
+
{
|
|
4017
|
+
id: "flexible",
|
|
4018
|
+
days: 0,
|
|
4019
|
+
name: "Flexible",
|
|
4020
|
+
nameCn: "\u7075\u6D3B\u671F",
|
|
4021
|
+
profitSharePercent: 30,
|
|
4022
|
+
// Platform 30%, User 70%
|
|
4023
|
+
bonusMultiplier: 1,
|
|
4024
|
+
earlyWithdrawPenalty: 0
|
|
4025
|
+
},
|
|
4026
|
+
{
|
|
4027
|
+
id: "week",
|
|
4028
|
+
days: 7,
|
|
4029
|
+
name: "7 Days",
|
|
4030
|
+
nameCn: "7\u5929\u671F",
|
|
4031
|
+
profitSharePercent: 25,
|
|
4032
|
+
// Platform 25%, User 75%
|
|
4033
|
+
bonusMultiplier: 1.1,
|
|
4034
|
+
earlyWithdrawPenalty: 5
|
|
4035
|
+
},
|
|
4036
|
+
{
|
|
4037
|
+
id: "biweek",
|
|
4038
|
+
days: 14,
|
|
4039
|
+
name: "14 Days",
|
|
4040
|
+
nameCn: "14\u5929\u671F",
|
|
4041
|
+
profitSharePercent: 22,
|
|
4042
|
+
// Platform 22%, User 78%
|
|
4043
|
+
bonusMultiplier: 1.2,
|
|
4044
|
+
earlyWithdrawPenalty: 8
|
|
4045
|
+
},
|
|
4046
|
+
{
|
|
4047
|
+
id: "month",
|
|
4048
|
+
days: 30,
|
|
4049
|
+
name: "30 Days",
|
|
4050
|
+
nameCn: "30\u5929\u671F",
|
|
4051
|
+
profitSharePercent: 20,
|
|
4052
|
+
// Platform 20%, User 80%
|
|
4053
|
+
bonusMultiplier: 1.35,
|
|
4054
|
+
earlyWithdrawPenalty: 10
|
|
4055
|
+
},
|
|
4056
|
+
{
|
|
4057
|
+
id: "quarter",
|
|
4058
|
+
days: 90,
|
|
4059
|
+
name: "90 Days",
|
|
4060
|
+
nameCn: "90\u5929\u671F",
|
|
4061
|
+
profitSharePercent: 15,
|
|
4062
|
+
// Platform 15%, User 85%
|
|
4063
|
+
bonusMultiplier: 1.5,
|
|
4064
|
+
earlyWithdrawPenalty: 15
|
|
4065
|
+
},
|
|
4066
|
+
{
|
|
4067
|
+
id: "halfyear",
|
|
4068
|
+
days: 180,
|
|
4069
|
+
name: "180 Days",
|
|
4070
|
+
nameCn: "180\u5929\u671F",
|
|
4071
|
+
profitSharePercent: 12,
|
|
4072
|
+
// Platform 12%, User 88%
|
|
4073
|
+
bonusMultiplier: 1.8,
|
|
4074
|
+
earlyWithdrawPenalty: 20
|
|
4075
|
+
},
|
|
4076
|
+
{
|
|
4077
|
+
id: "year",
|
|
4078
|
+
days: 365,
|
|
4079
|
+
name: "365 Days",
|
|
4080
|
+
nameCn: "365\u5929\u671F",
|
|
4081
|
+
profitSharePercent: 10,
|
|
4082
|
+
// Platform 10%, User 90%
|
|
4083
|
+
bonusMultiplier: 2,
|
|
4084
|
+
earlyWithdrawPenalty: 25
|
|
4085
|
+
}
|
|
4086
|
+
];
|
|
3959
4087
|
var STRATEGY_PERSONALITIES = [
|
|
4088
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
4089
|
+
// CONSERVATIVE STRATEGIES (保守型) - Low risk, stable returns
|
|
4090
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
4091
|
+
{
|
|
4092
|
+
id: "stable-yield-01",
|
|
4093
|
+
name: "Stable Yield",
|
|
4094
|
+
shortName: "STB",
|
|
4095
|
+
color: "#6B7280",
|
|
4096
|
+
scanIntervalMin: 8e4,
|
|
4097
|
+
scanIntervalMax: 12e4,
|
|
4098
|
+
tradeFrequency: 0.15,
|
|
4099
|
+
positionSizeMin: 5,
|
|
4100
|
+
positionSizeMax: 15,
|
|
4101
|
+
leverageMin: 1,
|
|
4102
|
+
leverageMax: 3,
|
|
4103
|
+
primaryIndicators: ["Bollinger", "Volume"],
|
|
4104
|
+
riskTolerance: "low",
|
|
4105
|
+
preferredPairs: ["BTC/USDT", "ETH/USDT"],
|
|
4106
|
+
rsiBias: 45,
|
|
4107
|
+
tier: "starter",
|
|
4108
|
+
dailyYieldMin: 0.15,
|
|
4109
|
+
dailyYieldMax: 0.25,
|
|
4110
|
+
description: "\u7A33\u5065\u6536\u76CA\u7B56\u7565\uFF0C\u4F4E\u98CE\u9669\u4F4E\u6CE2\u52A8\uFF0C\u9002\u5408\u65B0\u624B\u5165\u95E8",
|
|
4111
|
+
category: "conservative"
|
|
4112
|
+
},
|
|
4113
|
+
{
|
|
4114
|
+
id: "conservative-shield-01",
|
|
4115
|
+
name: "Conservative Shield",
|
|
4116
|
+
shortName: "CON",
|
|
4117
|
+
color: "#10B981",
|
|
4118
|
+
scanIntervalMin: 6e4,
|
|
4119
|
+
scanIntervalMax: 9e4,
|
|
4120
|
+
tradeFrequency: 0.25,
|
|
4121
|
+
positionSizeMin: 10,
|
|
4122
|
+
positionSizeMax: 20,
|
|
4123
|
+
leverageMin: 2,
|
|
4124
|
+
leverageMax: 5,
|
|
4125
|
+
primaryIndicators: ["Bollinger", "Volume", "RSI"],
|
|
4126
|
+
riskTolerance: "low",
|
|
4127
|
+
preferredPairs: ["BTC/USDT", "ETH/USDT"],
|
|
4128
|
+
rsiBias: 45,
|
|
4129
|
+
tier: "basic",
|
|
4130
|
+
dailyYieldMin: 0.25,
|
|
4131
|
+
dailyYieldMax: 0.4,
|
|
4132
|
+
description: "\u4FDD\u5B88\u9632\u5FA1\u7B56\u7565\uFF0C\u6CE8\u91CD\u8D44\u91D1\u5B89\u5168\uFF0C\u7A33\u5B9A\u6536\u76CA",
|
|
4133
|
+
category: "conservative"
|
|
4134
|
+
},
|
|
4135
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
4136
|
+
// BALANCED STRATEGIES (平衡型) - Moderate risk, balanced returns
|
|
4137
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
3960
4138
|
{
|
|
3961
|
-
id: "balanced-01",
|
|
4139
|
+
id: "balanced-alpha-01",
|
|
3962
4140
|
name: "Balanced Alpha",
|
|
3963
4141
|
shortName: "BAL",
|
|
3964
4142
|
color: "#3B82F6",
|
|
3965
4143
|
scanIntervalMin: 45e3,
|
|
3966
|
-
// 45-70s between cycles (slower for readability)
|
|
3967
4144
|
scanIntervalMax: 7e4,
|
|
3968
4145
|
tradeFrequency: 0.4,
|
|
3969
4146
|
positionSizeMin: 15,
|
|
@@ -3973,33 +4150,91 @@ var STRATEGY_PERSONALITIES = [
|
|
|
3973
4150
|
primaryIndicators: ["RSI", "MACD"],
|
|
3974
4151
|
riskTolerance: "medium",
|
|
3975
4152
|
preferredPairs: ["BTC/USDT", "ETH/USDT", "SOL/USDT"],
|
|
3976
|
-
rsiBias: 50
|
|
4153
|
+
rsiBias: 50,
|
|
4154
|
+
tier: "standard",
|
|
4155
|
+
dailyYieldMin: 0.4,
|
|
4156
|
+
dailyYieldMax: 0.65,
|
|
4157
|
+
description: "\u5E73\u8861\u578B\u7B56\u7565\uFF0C\u98CE\u9669\u6536\u76CA\u5747\u8861\uFF0C\u9002\u5408\u7A33\u5065\u6295\u8D44\u8005",
|
|
4158
|
+
category: "balanced"
|
|
3977
4159
|
},
|
|
3978
4160
|
{
|
|
3979
|
-
id: "
|
|
3980
|
-
name: "
|
|
3981
|
-
shortName: "
|
|
3982
|
-
color: "#
|
|
3983
|
-
scanIntervalMin:
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
4161
|
+
id: "smart-rebalance-01",
|
|
4162
|
+
name: "Smart Rebalance",
|
|
4163
|
+
shortName: "SRB",
|
|
4164
|
+
color: "#06B6D4",
|
|
4165
|
+
scanIntervalMin: 5e4,
|
|
4166
|
+
scanIntervalMax: 75e3,
|
|
4167
|
+
tradeFrequency: 0.35,
|
|
4168
|
+
positionSizeMin: 12,
|
|
4169
|
+
positionSizeMax: 30,
|
|
4170
|
+
leverageMin: 3,
|
|
4171
|
+
leverageMax: 8,
|
|
4172
|
+
primaryIndicators: ["RSI", "EMA", "Volume"],
|
|
4173
|
+
riskTolerance: "medium",
|
|
4174
|
+
preferredPairs: ["BTC/USDT", "ETH/USDT", "BNB/USDT", "SOL/USDT"],
|
|
4175
|
+
rsiBias: 50,
|
|
4176
|
+
tier: "standard",
|
|
4177
|
+
dailyYieldMin: 0.45,
|
|
4178
|
+
dailyYieldMax: 0.7,
|
|
4179
|
+
description: "\u667A\u80FD\u518D\u5E73\u8861\u7B56\u7565\uFF0C\u52A8\u6001\u8C03\u6574\u6301\u4ED3\uFF0C\u4F18\u5316\u6536\u76CA",
|
|
4180
|
+
category: "balanced"
|
|
3995
4181
|
},
|
|
4182
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
4183
|
+
// GROWTH STRATEGIES (成长型) - Higher risk, higher returns
|
|
4184
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
3996
4185
|
{
|
|
3997
|
-
id: "
|
|
4186
|
+
id: "growth-momentum-01",
|
|
4187
|
+
name: "Growth Momentum",
|
|
4188
|
+
shortName: "GRO",
|
|
4189
|
+
color: "#8B5CF6",
|
|
4190
|
+
scanIntervalMin: 4e4,
|
|
4191
|
+
scanIntervalMax: 6e4,
|
|
4192
|
+
tradeFrequency: 0.45,
|
|
4193
|
+
positionSizeMin: 20,
|
|
4194
|
+
positionSizeMax: 40,
|
|
4195
|
+
leverageMin: 5,
|
|
4196
|
+
leverageMax: 12,
|
|
4197
|
+
primaryIndicators: ["RSI", "MACD", "EMA"],
|
|
4198
|
+
riskTolerance: "medium",
|
|
4199
|
+
preferredPairs: ["BTC/USDT", "ETH/USDT", "SOL/USDT", "AVAX/USDT"],
|
|
4200
|
+
rsiBias: 52,
|
|
4201
|
+
tier: "premium",
|
|
4202
|
+
dailyYieldMin: 0.6,
|
|
4203
|
+
dailyYieldMax: 0.95,
|
|
4204
|
+
description: "\u6210\u957F\u52A8\u91CF\u7B56\u7565\uFF0C\u8FFD\u6C42\u8F83\u9AD8\u6536\u76CA\uFF0C\u9002\u5408\u6709\u7ECF\u9A8C\u6295\u8D44\u8005",
|
|
4205
|
+
category: "growth"
|
|
4206
|
+
},
|
|
4207
|
+
{
|
|
4208
|
+
id: "trend-hunter-01",
|
|
4209
|
+
name: "Trend Hunter",
|
|
4210
|
+
shortName: "TRH",
|
|
4211
|
+
color: "#EC4899",
|
|
4212
|
+
scanIntervalMin: 38e3,
|
|
4213
|
+
scanIntervalMax: 55e3,
|
|
4214
|
+
tradeFrequency: 0.48,
|
|
4215
|
+
positionSizeMin: 22,
|
|
4216
|
+
positionSizeMax: 42,
|
|
4217
|
+
leverageMin: 5,
|
|
4218
|
+
leverageMax: 15,
|
|
4219
|
+
primaryIndicators: ["EMA", "MACD", "Volume", "Bollinger"],
|
|
4220
|
+
riskTolerance: "medium",
|
|
4221
|
+
preferredPairs: ["BTC/USDT", "ETH/USDT", "SOL/USDT", "ARB/USDT", "OP/USDT"],
|
|
4222
|
+
rsiBias: 53,
|
|
4223
|
+
tier: "premium",
|
|
4224
|
+
dailyYieldMin: 0.65,
|
|
4225
|
+
dailyYieldMax: 1,
|
|
4226
|
+
description: "\u8D8B\u52BF\u730E\u624B\u7B56\u7565\uFF0C\u6355\u6349\u5E02\u573A\u8D8B\u52BF\uFF0C\u8FFD\u6C42\u8D85\u989D\u6536\u76CA",
|
|
4227
|
+
category: "growth"
|
|
4228
|
+
},
|
|
4229
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
4230
|
+
// AGGRESSIVE STRATEGIES (激进型) - High risk, high returns
|
|
4231
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
4232
|
+
{
|
|
4233
|
+
id: "aggressive-momentum-01",
|
|
3998
4234
|
name: "Aggressive Momentum",
|
|
3999
4235
|
shortName: "AGG",
|
|
4000
4236
|
color: "#EF4444",
|
|
4001
4237
|
scanIntervalMin: 35e3,
|
|
4002
|
-
// 35-55s between cycles (slower for readability)
|
|
4003
4238
|
scanIntervalMax: 55e3,
|
|
4004
4239
|
tradeFrequency: 0.5,
|
|
4005
4240
|
positionSizeMin: 25,
|
|
@@ -4009,7 +4244,103 @@ var STRATEGY_PERSONALITIES = [
|
|
|
4009
4244
|
primaryIndicators: ["RSI", "MACD", "EMA", "Volume"],
|
|
4010
4245
|
riskTolerance: "high",
|
|
4011
4246
|
preferredPairs: ["BTC/USDT", "ETH/USDT", "SOL/USDT", "DOGE/USDT", "AVAX/USDT"],
|
|
4012
|
-
rsiBias: 55
|
|
4247
|
+
rsiBias: 55,
|
|
4248
|
+
tier: "elite",
|
|
4249
|
+
dailyYieldMin: 0.85,
|
|
4250
|
+
dailyYieldMax: 1.4,
|
|
4251
|
+
description: "\u6FC0\u8FDB\u52A8\u91CF\u7B56\u7565\uFF0C\u9AD8\u98CE\u9669\u9AD8\u6536\u76CA\uFF0C\u9002\u5408\u98CE\u9669\u627F\u53D7\u80FD\u529B\u5F3A\u7684\u6295\u8D44\u8005",
|
|
4252
|
+
category: "aggressive"
|
|
4253
|
+
},
|
|
4254
|
+
{
|
|
4255
|
+
id: "leverage-maximizer-01",
|
|
4256
|
+
name: "Leverage Maximizer",
|
|
4257
|
+
shortName: "LEV",
|
|
4258
|
+
color: "#F97316",
|
|
4259
|
+
scanIntervalMin: 3e4,
|
|
4260
|
+
scanIntervalMax: 5e4,
|
|
4261
|
+
tradeFrequency: 0.55,
|
|
4262
|
+
positionSizeMin: 30,
|
|
4263
|
+
positionSizeMax: 55,
|
|
4264
|
+
leverageMin: 10,
|
|
4265
|
+
leverageMax: 25,
|
|
4266
|
+
primaryIndicators: ["RSI", "MACD", "EMA", "Volume", "Bollinger"],
|
|
4267
|
+
riskTolerance: "high",
|
|
4268
|
+
preferredPairs: ["BTC/USDT", "ETH/USDT", "SOL/USDT", "DOGE/USDT", "AVAX/USDT", "ARB/USDT"],
|
|
4269
|
+
rsiBias: 55,
|
|
4270
|
+
tier: "elite",
|
|
4271
|
+
dailyYieldMin: 1,
|
|
4272
|
+
dailyYieldMax: 1.8,
|
|
4273
|
+
description: "\u6760\u6746\u6700\u5927\u5316\u7B56\u7565\uFF0C\u8FFD\u6C42\u6781\u81F4\u6536\u76CA\uFF0C\u9700\u8981\u4E13\u4E1A\u6295\u8D44\u7ECF\u9A8C",
|
|
4274
|
+
category: "aggressive"
|
|
4275
|
+
},
|
|
4276
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
4277
|
+
// QUANTITATIVE STRATEGIES (量化型) - AI-driven, advanced algorithms
|
|
4278
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
4279
|
+
{
|
|
4280
|
+
id: "ai-quant-alpha-01",
|
|
4281
|
+
name: "AI Quant Alpha",
|
|
4282
|
+
shortName: "AQA",
|
|
4283
|
+
color: "#A855F7",
|
|
4284
|
+
scanIntervalMin: 42e3,
|
|
4285
|
+
scanIntervalMax: 65e3,
|
|
4286
|
+
tradeFrequency: 0.42,
|
|
4287
|
+
positionSizeMin: 18,
|
|
4288
|
+
positionSizeMax: 38,
|
|
4289
|
+
leverageMin: 4,
|
|
4290
|
+
leverageMax: 12,
|
|
4291
|
+
primaryIndicators: ["RSI", "MACD", "EMA", "Volume", "Bollinger"],
|
|
4292
|
+
riskTolerance: "medium",
|
|
4293
|
+
preferredPairs: ["BTC/USDT", "ETH/USDT", "SOL/USDT", "BNB/USDT"],
|
|
4294
|
+
rsiBias: 51,
|
|
4295
|
+
tier: "premium",
|
|
4296
|
+
dailyYieldMin: 0.7,
|
|
4297
|
+
dailyYieldMax: 1.1,
|
|
4298
|
+
description: "AI\u91CF\u5316Alpha\u7B56\u7565\uFF0C\u673A\u5668\u5B66\u4E60\u9A71\u52A8\uFF0C\u667A\u80FD\u98CE\u63A7",
|
|
4299
|
+
category: "quantitative"
|
|
4300
|
+
},
|
|
4301
|
+
{
|
|
4302
|
+
id: "neural-trader-01",
|
|
4303
|
+
name: "Neural Trader",
|
|
4304
|
+
shortName: "NRT",
|
|
4305
|
+
color: "#14B8A6",
|
|
4306
|
+
scanIntervalMin: 4e4,
|
|
4307
|
+
scanIntervalMax: 62e3,
|
|
4308
|
+
tradeFrequency: 0.44,
|
|
4309
|
+
positionSizeMin: 20,
|
|
4310
|
+
positionSizeMax: 40,
|
|
4311
|
+
leverageMin: 5,
|
|
4312
|
+
leverageMax: 15,
|
|
4313
|
+
primaryIndicators: ["RSI", "MACD", "EMA", "Volume", "Bollinger"],
|
|
4314
|
+
riskTolerance: "medium",
|
|
4315
|
+
preferredPairs: ["BTC/USDT", "ETH/USDT", "SOL/USDT", "AVAX/USDT", "LINK/USDT"],
|
|
4316
|
+
rsiBias: 52,
|
|
4317
|
+
tier: "elite",
|
|
4318
|
+
dailyYieldMin: 0.8,
|
|
4319
|
+
dailyYieldMax: 1.25,
|
|
4320
|
+
description: "\u795E\u7ECF\u7F51\u7EDC\u4EA4\u6613\u7B56\u7565\uFF0C\u6DF1\u5EA6\u5B66\u4E60\u6A21\u578B\uFF0C\u81EA\u9002\u5E94\u5E02\u573A",
|
|
4321
|
+
category: "quantitative"
|
|
4322
|
+
},
|
|
4323
|
+
{
|
|
4324
|
+
id: "quantum-edge-01",
|
|
4325
|
+
name: "Quantum Edge",
|
|
4326
|
+
shortName: "QTE",
|
|
4327
|
+
color: "#6366F1",
|
|
4328
|
+
scanIntervalMin: 35e3,
|
|
4329
|
+
scanIntervalMax: 55e3,
|
|
4330
|
+
tradeFrequency: 0.5,
|
|
4331
|
+
positionSizeMin: 25,
|
|
4332
|
+
positionSizeMax: 50,
|
|
4333
|
+
leverageMin: 8,
|
|
4334
|
+
leverageMax: 20,
|
|
4335
|
+
primaryIndicators: ["RSI", "MACD", "EMA", "Volume", "Bollinger"],
|
|
4336
|
+
riskTolerance: "high",
|
|
4337
|
+
preferredPairs: ["BTC/USDT", "ETH/USDT", "SOL/USDT", "AVAX/USDT", "ARB/USDT", "OP/USDT"],
|
|
4338
|
+
rsiBias: 54,
|
|
4339
|
+
tier: "vip",
|
|
4340
|
+
dailyYieldMin: 1.2,
|
|
4341
|
+
dailyYieldMax: 2,
|
|
4342
|
+
description: "VIP\u91CF\u5B50\u4F18\u52BF\u7B56\u7565\uFF0C\u9876\u7EA7AI\u7B97\u6CD5\uFF0C\u6781\u81F4\u6536\u76CA\u8FFD\u6C42",
|
|
4343
|
+
category: "quantitative"
|
|
4013
4344
|
}
|
|
4014
4345
|
];
|
|
4015
4346
|
var PAIR_PRICES = {
|
|
@@ -4894,6 +5225,8 @@ exports.DEFAULT_CONSOLE_OPTIONS = DEFAULT_CONSOLE_OPTIONS;
|
|
|
4894
5225
|
exports.DEFAULT_RISK_STATUS = DEFAULT_RISK_STATUS;
|
|
4895
5226
|
exports.DEFAULT_SHARE_RATES = DEFAULT_SHARE_RATES;
|
|
4896
5227
|
exports.FOREX_LOG_COLORS = FOREX_LOG_COLORS;
|
|
5228
|
+
exports.INVESTMENT_CYCLES = INVESTMENT_CYCLES;
|
|
5229
|
+
exports.INVESTMENT_TIERS = INVESTMENT_TIERS;
|
|
4897
5230
|
exports.ORDER_STATUS_CONFIG = ORDER_STATUS_CONFIG;
|
|
4898
5231
|
exports.OneChainSelector = OneChainSelector;
|
|
4899
5232
|
exports.OneCycleSelector = OneCycleSelector;
|
|
@@ -4912,6 +5245,7 @@ exports.PriceService = PriceService;
|
|
|
4912
5245
|
exports.RISK_LEVELS = RISK_LEVELS;
|
|
4913
5246
|
exports.RISK_LEVEL_COLORS = RISK_LEVEL_COLORS;
|
|
4914
5247
|
exports.STRATEGY_CATEGORIES = STRATEGY_CATEGORIES;
|
|
5248
|
+
exports.STRATEGY_PERSONALITIES = STRATEGY_PERSONALITIES;
|
|
4915
5249
|
exports.TOKEN_NAMES = TOKEN_NAMES;
|
|
4916
5250
|
exports.TRADING_STATUS_COLORS = TRADING_STATUS_COLORS;
|
|
4917
5251
|
exports.botSimulationEngine = botSimulationEngine;
|