Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cryptocj520/meteora2
/ functions
Functions
3,742 in github.com/cryptocj520/meteora2
⨍
Functions
3,742
◇
Types & classes
541
↓ 2 callers
Method
checkInstanceHealth
* 🔍 检查单个实例健康状态
src/services/strategy/StrategyHealthChecker.ts:199
↓ 2 callers
Method
cleanup
* 清理组件
web/public/js/components/strategy-monitor/StrategyMonitor.js:239
↓ 2 callers
Method
cleanup
* 清理组件
web/public/js/components/simple-y-monitor/SimpleYStrategyMonitor.js:240
↓ 2 callers
Method
cleanup
* 清理资源
web/public/js/components/jupiter/jupiter-manager.js:497
↓ 2 callers
Method
cleanupCurrentPage
* 🔧 页面切换前的清理工作
web/public/js/app.js:295
↓ 2 callers
Method
cleanupHistory
* 🧹 清理评估历史
src/services/modules/SmartStopLossModule.ts:501
↓ 2 callers
Method
cleanupSinglePositionCore
* 🆕 清理单个头寸 - 核心方法,供高级重试使用
src/services/strategy/executors/simple-y-modules/SimpleYUtilityService.ts:735
↓ 2 callers
Method
clear
* 清空表单
web/public/js/forms/DynamicForm.js:548
↓ 2 callers
Method
clearBenchmarkYieldRates
()
src/services/business/analytics/UnifiedDataProvider.ts:173
↓ 2 callers
Method
clearCache
()
web/public/js/libs/chart.min.js:13
↓ 2 callers
Method
clearExpiredData
* 🔥 新增:清理过期的localStorage数据
web/public/js/components/pool-crawler/PoolCrawlerMonitor.js:2025
↓ 2 callers
Method
clearFieldError
(fieldName)
web/public/js/components/simple-y-create/SimpleYCreator.js:1891
↓ 2 callers
Method
clearFieldError
* 清除字段错误
web/public/js/forms/DynamicForm.js:475
↓ 2 callers
Method
closePosition
* 关闭头寸 (统一方法,使用PositionManager) * @param {string} positionAddress - 头寸地址 * @param {string} password - 钱包密码 (可选)
web/public/js/api.js:544
↓ 2 callers
Method
closePosition
* 统一关闭头寸方法 (使用PositionManager) * @param {string} positionAddress - 头寸地址 * @param {string} password - 钱包密码 (可选)
web/public/js/components/position/position-core.js:449
↓ 2 callers
Method
collectFormData
* 收集表单数据
web/public/js/components/simple-y-create/SimpleYCreator.js:1287
↓ 2 callers
Method
collectMarketData
* 收集市场数据 - 完整复刻连锁头寸策略的实现
src/services/strategy/executors/simple-y-modules/SimpleYMonitoringService.ts:384
↓ 2 callers
Method
createAnalyticsServiceForInstance
* 为指定实例创建完整的PositionAnalyticsService
src/services/business/InstanceAwareServiceFactory.ts:68
↓ 2 callers
Method
createChainPosition
* 📝 创建连锁头寸
src/services/strategy/executors/ChainPositionExecutor.ts:271
↓ 2 callers
Method
createInstanceLogger
(instanceId: string)
src/services/strategy/executors/ChainPositionExecutor.ts:1791
↓ 2 callers
Method
createSmartStopLossModuleForInstance
* 为指定实例创建SmartStopLossModule
src/services/business/InstanceAwareServiceFactory.ts:93
↓ 2 callers
Method
createTextInput
* 创建文本输入框
web/public/js/forms/DynamicForm.js:203
↓ 2 callers
Function
ct
(t,e)
web/public/js/libs/chart.min.js:7
↓ 2 callers
Method
darkenColor
* 颜色加深函数 * @param {string} color - 颜色值 * @param {number} percent - 加深百分比 * @returns {string} 加深后的颜色
web/public/js/forms/FormRenderer.js:612
↓ 2 callers
Method
decryptWallet
* 解密钱包数据
src/services/blockchain/WalletService.ts:650
↓ 2 callers
Method
deleteSync
* 删除状态 (内部同步方法)
src/services/internal/StateService.ts:177
↓ 2 callers
Method
destroy
* 销毁头寸管理器
web/public/js/components/position/position-manager.js:343
↓ 2 callers
Method
diff
()
web/public/js/libs/chart.min.js:13
↓ 2 callers
Method
disconnect
* 断开连接
web/public/js/components/strategy-monitor/StrategyMonitor.js:213
↓ 2 callers
Method
disconnect
* 断开连接
web/public/js/components/strategy-monitor/ConnectionManager.js:239
↓ 2 callers
Method
disconnect
* 断开连接
web/public/js/components/simple-y-monitor/ConnectionManager.js:239
↓ 2 callers
Function
dn
(t)
web/public/js/libs/chart.min.js:13
↓ 2 callers
Method
drawBackground
()
web/public/js/libs/chart.min.js:13
↓ 2 callers
Method
drawBorder
()
web/public/js/libs/chart.min.js:13
↓ 2 callers
Method
drawGrid
(t)
web/public/js/libs/chart.min.js:13
↓ 2 callers
Method
drawLabels
(t)
web/public/js/libs/chart.min.js:13
↓ 2 callers
Method
drawTitle
()
web/public/js/libs/chart.min.js:13
↓ 2 callers
Function
ds
web/public/js/libs/chart.min.js:13
↓ 2 callers
Function
ei
(t)
web/public/js/libs/chart.min.js:13
↓ 2 callers
Method
emit
* 事件发射 * @param {string} eventName - 事件名称 * @param {*} data - 事件数据
web/public/js/strategies/base/BaseStrategy.js:170
↓ 2 callers
Method
ensureDirectory
* 🔧 修复:确保目录存在,增强父目录创建和错误处理
src/infrastructure/logging/LogWriter.ts:261
↓ 2 callers
Method
evaluate
* 🎯 主要评估方法 - 分析市场数据并生成止损决策
src/services/modules/SmartStopLossModule.ts:218
↓ 2 callers
Method
execute
()
src/services/modules/SynchronousRetryManager.ts:38
↓ 2 callers
Method
execute
(instanceId: string)
src/services/strategy/StrategyRegistry.ts:12
↓ 2 callers
Method
executeAsyncStopLossWithRetry
* 🛑 执行带重试的异步止损操作
src/services/strategy/executors/mixins/SynchronousRetryMixin.ts:189
↓ 2 callers
Method
executeBatchCleanupWithRetry
* 🧹 执行带智能重试的批量清理操作
src/services/strategy/executors/mixins/SynchronousRetryMixin.ts:266
↓ 2 callers
Method
executeCleanupRetry
* 🧹 执行清理重试 - 使用重试管理器
src/services/strategy/executors/ChainPositionExecutor.ts:2597
↓ 2 callers
Method
executeCleanupWithRetry
* 🧹 执行带重试的清理操作
src/services/strategy/executors/mixins/SynchronousRetryMixin.ts:229
↓ 2 callers
Method
executeFullStopLoss
* 🆕 执行完全止损 - 委托给风险服务
src/services/strategy/executors/SimpleYExecutor.ts:618
↓ 2 callers
Method
executeFullStopLoss
* 🛑 执行完全止损
src/services/strategy/executors/ChainPositionExecutor.ts:1157
↓ 2 callers
Method
executeSwapWithLock
* 🔒 执行带锁的代币交换操作,防止并发冲突
src/services/strategy/executors/ChainPositionExecutor.ts:2741
↓ 2 callers
Method
executeSwapWithLock
* 🆕 执行代币交换(带锁定机制) - 防止并发操作
src/services/strategy/executors/simple-y-modules/SimpleYRiskService.ts:282
↓ 2 callers
Method
executeTokenSwapWithCustomRetry
* 🆕 执行代币交换(带重试机制) - 专用于头寸重建和止损的自定义重试逻辑
src/services/strategy/executors/simple-y-modules/SimpleYRiskService.ts:316
↓ 2 callers
Method
extractTimestampFromId
* 从策略ID中提取时间戳 * 支持格式:chain_position_1750597447747_mifo4u
web/public/js/components/analytics/simple-analytics.js:550
↓ 2 callers
Method
extractYield
* 收益提取操作 - 修改记录逻辑,使用准确的待提取收益数值
src/services/business/analytics/YieldOperator.ts:201
↓ 2 callers
Function
fa
(t,e)
web/public/js/libs/chart.min.js:13
↓ 2 callers
Method
fallbackCopyToClipboard
* 降级复制方案
web/public/js/components/strategy-monitor/UIManager.js:942
↓ 2 callers
Method
fallbackCopyToClipboard
* 降级复制方案
web/public/js/components/simple-y-monitor/UIManager.js:942
↓ 2 callers
Method
filterInstances
* 🔍 应用筛选
web/public/js/components/health/health-monitor.js:417
↓ 2 callers
Method
flush
* 刷新所有日志
src/infrastructure/logging/LoggerService.ts:597
↓ 2 callers
Method
flush
* 刷新所有待写入的日志
src/infrastructure/logging/LogWriter.ts:66
↓ 2 callers
Method
formatBusinessMessage
* 格式化业务消息
src/infrastructure/logging/LoggerService.ts:689
↓ 2 callers
Method
formatDate
(dateString)
web/public/js/components/position/position-ui.js:817
↓ 2 callers
Method
formatDuration
* 格式化持续时间
src/services/business/InstanceAwareServiceFactory.ts:294
↓ 2 callers
Method
formatFromAtomicUnits
* 将原子单位转换为人类可读数量 * @param {string|number} atomicAmount 原子单位数量 * @param {number} decimals 代币精度 * @returns {string} 人类可读数量
web/public/js/components/jupiter/jupiter-core.js:106
↓ 2 callers
Method
formatPercent
* 格式化百分比
web/public/js/components/strategy-monitor/UIManager.js:1115
↓ 2 callers
Method
formatPercent
* 格式化百分比
web/public/js/components/simple-y-monitor/UIManager.js:1115
↓ 2 callers
Method
formatPercentage
* 格式化百分比
web/public/js/components/pool-crawler/PoolCrawlerMonitor.js:1938
↓ 2 callers
Method
formatRelativeTime
* 格式化相对时间
web/public/js/utils/formatter.js:119
↓ 2 callers
Method
formatTime
* 🎨 工具方法 - 格式化时间
web/public/js/components/health/health-monitor.js:627
↓ 2 callers
Method
formatToAtomicUnits
* 将人类可读数量转换为原子单位 * @param {string|number} amount 人类可读数量 * @param {number} decimals 代币精度 * @returns {string} 原子单位数量
web/public/js/components/jupiter/jupiter-core.js:84
↓ 2 callers
Method
formatTokenAmount
* 格式化代币数量 (已弃用,请使用formatFromAtomicUnits) * @param {string|number} amount 数量 * @param {number} decimals 小数位数 * @deprecated 使用formatFromA
web/public/js/components/jupiter/jupiter-core.js:393
↓ 2 callers
Method
generateCSS
* 生成CSS样式
web/public/js/forms/FormRenderer.js:189
↓ 2 callers
Method
generateMockPositionMetrics
()
web/public/js/components/monitor/monitor-core.js:546
↓ 2 callers
Method
generateMockStrategyMetrics
()
web/public/js/components/monitor/monitor-core.js:555
↓ 2 callers
Method
getAccountXTokenBalance
* 🔍 获取账户X代币余额
src/services/strategy/executors/ChainPositionExecutor.ts:1322
↓ 2 callers
Method
getAccountXTokenBalance
(context: SimpleYModuleContext)
src/services/strategy/executors/simple-y-modules/types.ts:90
↓ 2 callers
Method
getAll
* 获取所有状态数据
src/services/internal/StateService.ts:210
↓ 2 callers
Method
getAllStrategies
()
src/types/interfaces.ts:762
↓ 2 callers
Method
getApiBaseUrl
* 获取API基础URL * @returns {string} API基础URL
web/public/js/components/strategy-monitor/EnvironmentAdapter.js:99
↓ 2 callers
Method
getApiBaseUrl
* 获取API基础URL * @returns {string} API基础URL
web/public/js/components/simple-y-monitor/EnvironmentAdapter.js:99
↓ 2 callers
Method
getAvailableStrategies
* 获取所有有数据的策略ID列表
web/public/js/services/strategy-data-storage.js:201
↓ 2 callers
Method
getBinInfo
(poolAddress: string, binId: number)
src/types/interfaces.ts:525
↓ 2 callers
Method
getCompleteAnalyticsReport
()
src/types/analytics-types.ts:278
↓ 2 callers
Method
getConnectionStatus
* 获取连接状态
web/public/js/components/strategy-monitor/StrategyMonitor.js:274
↓ 2 callers
Method
getConnectionStatus
* 获取连接状态
web/public/js/components/simple-y-monitor/SimpleYStrategyMonitor.js:275
↓ 2 callers
Method
getContext
()
web/public/js/libs/chart.min.js:13
↓ 2 callers
Method
getCurrentPollingInfo
()
src/services/business/analytics/UnifiedDataProvider.ts:157
↓ 2 callers
Method
getDataRange
* 查询策略的历史数据 * @param {string} strategyId 策略ID * @param {number} startTime 开始时间戳 * @param {number} endTime 结束时间戳 * @param {array} d
web/public/js/services/strategy-data-storage.js:158
↓ 2 callers
Method
getDevicePixelRatio
()
web/public/js/libs/chart.min.js:13
↓ 2 callers
Method
getElementsAtEventForMode
(t,e,i,s)
web/public/js/libs/chart.min.js:13
↓ 2 callers
Method
getFilters
()
src/types/pool-crawler-types.ts:285
↓ 2 callers
Method
getHealthConfig
()
web/public/js/services/api-service.js:336
↓ 2 callers
Method
getInstanceStats
* 获取所有实例统计信息
src/services/business/InstanceAwareServiceFactory.ts:227
↓ 2 callers
Method
getInstanceStatus
(instanceId: string)
src/services/strategy/StrategyManager.ts:42
↓ 2 callers
Method
getLatestBlockhash
()
src/types/interfaces.ts:241
↓ 2 callers
Method
getLayout
* 获取布局 * @param {string} name - 布局名称 * @returns {Object} 布局配置
web/public/js/forms/FormRenderer.js:544
↓ 2 callers
Method
getNetworkCongestion
* 获取网络拥堵状态 (简化版本)
src/services/external/JupiterService.backup.ts:677
↓ 2 callers
Method
getNetworkCongestion
* 获取网络拥堵状态 (简化版本)
src/services/external/JupiterService.v6.ts:677
↓ 2 callers
Method
getPixelForValue
(t,e)
web/public/js/libs/chart.min.js:13
← previous
next →
701–800 of 3,742, ranked by callers