Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TurtleTrace2026/TurtleTrace
/ functions
Functions
442 in github.com/TurtleTrace2026/TurtleTrace
⨍
Functions
442
◇
Types & classes
160
↓ 2 callers
Function
parseRateInput
(value: number)
src/components/welcome/InitialConfig.tsx:53
↓ 2 callers
Function
saveEmotionTags
(tags: EmotionTag[])
src/services/tagService.ts:65
↓ 2 callers
Function
saveImportedReviews
(reviews: DailyReview[])
src/services/exportService.ts:236
↓ 2 callers
Function
saveReasonTags
(tags: ReasonTag[])
src/services/tagService.ts:101
↓ 2 callers
Function
setLastActiveAccount
(id: string)
src/services/accountService.ts:227
↓ 2 callers
Function
toggleReason
(reasonId: string)
src/components/dashboard/PositionManager.tsx:537
↓ 2 callers
Function
useAiConfig
()
src/hooks/useAiConfig.ts:13
↓ 1 callers
Function
addBatchToPosition
(position: Position, batch: PositionBatch)
src/services/batchService.ts:129
↓ 1 callers
Function
addEmotionTag
(name: string)
src/services/tagService.ts:70
↓ 1 callers
Function
addHistoryRecord
(record: Omit<TCalcRecord, 'id' | 'createdAt'>)
src/services/tCalculatorService.ts:129
↓ 1 callers
Function
addReasonTag
(name: string)
src/services/tagService.ts:106
↓ 1 callers
Function
analyzeDailyReview
( review: DailyReview, endpoint: string, apiKey: string )
src/services/dailyReviewAIService.ts:61
↓ 1 callers
Function
analyzeNews
( news: Array<{ title: string; content: string }>, endpoint: string, apiKey: string )
src/services/aiService.ts:70
↓ 1 callers
Function
applyPrivacyPreset
(preset: PrivacyPreset)
src/components/share/EnhancedShareDialog.tsx:98
↓ 1 callers
Function
applyTemplate
(template: string)
src/components/dashboard/review/sections/SummarySection.tsx:21
↓ 1 callers
Function
calculateBatchSellAllocation
( batches: PositionBatch[], sellQuantity: number )
src/services/batchService.ts:70
↓ 1 callers
Function
calculateClearedProfit
(positions: Position[])
src/utils/calculations.ts:87
↓ 1 callers
Function
calculateCostPrice
( totalBuyAmount: number, totalSellAmount: number, quantity: number )
src/components/dashboard/PositionManager.tsx:62
↓ 1 callers
Function
calculatePositionProfit
(position: Position)
src/utils/calculations.ts:4
↓ 1 callers
Function
calculateProfitSummary
(positions: Position[])
src/utils/calculations.ts:43
↓ 1 callers
Function
checkBatchUnlockStatus
(batch: PositionBatch)
src/services/batchService.ts:319
↓ 1 callers
Function
checkReviewExists
()
src/components/dashboard/review/ReviewTab.tsx:64
↓ 1 callers
Function
checkWeeklyReviewExists
()
src/components/dashboard/review/ReviewTab.tsx:69
↓ 1 callers
Function
clearHistory
()
src/services/tCalculatorService.ts:157
↓ 1 callers
Function
convertSymbolToSecId
(symbol: string)
src/services/stockService.ts:18
↓ 1 callers
Function
convertToBatchMode
(position: Position)
src/services/batchService.ts:228
↓ 1 callers
Function
copyImageToClipboard
(blob: Blob)
src/utils/shareUtils.ts:447
↓ 1 callers
Method
copyImageToClipboard
* 复制图片到剪贴板
src/services/shareService.ts:395
↓ 1 callers
Method
copyTextToClipboard
* 复制文本到剪贴板
src/services/shareService.ts:412
↓ 1 callers
Function
createBatch
(params: { quantity: number costPrice: number buyDate?: number unlockDate?: number isLocked?: boolea
src/services/batchService.ts:102
↓ 1 callers
Function
createDefaultStorage
()
src/services/accountService.ts:38
↓ 1 callers
Method
createEvent
创建新事件
src/services/eventService.ts:186
↓ 1 callers
Function
deleteAccount
(id: string)
src/services/accountService.ts:165
↓ 1 callers
Function
deleteBatchFromPosition
(position: Position, batchId: string)
src/services/batchService.ts:166
↓ 1 callers
Function
deleteEmotionTag
(id: string)
src/services/tagService.ts:82
↓ 1 callers
Method
deleteEvent
删除事件
src/services/eventService.ts:57
↓ 1 callers
Function
deleteHistoryRecord
(id: string)
src/services/tCalculatorService.ts:148
↓ 1 callers
Function
deleteReasonTag
(id: string)
src/services/tagService.ts:118
↓ 1 callers
Function
downloadImage
(blob: Blob, filename: string = 'ai-analysis.png')
src/utils/shareUtils.ts:435
↓ 1 callers
Function
drawFallbackLogo
(ctx: CanvasRenderingContext2D, x: number, y: number, size: number)
src/utils/shareUtils.ts:138
↓ 1 callers
Function
executeBatchSell
( position: Position, transaction: Transaction, allocation: { batchId: string; quantity: number }[] )
src/services/batchService.ts:187
↓ 1 callers
Function
exportCompleteData
(positions: Position[], summary: ProfitSummary)
src/services/exportService.ts:83
↓ 1 callers
Function
exportReviewsData
()
src/services/exportService.ts:104
↓ 1 callers
Function
exportReviewsToMarkdown
()
src/services/exportService.ts:124
↓ 1 callers
Function
exportToCSV
(positions: Position[], summary: ProfitSummary)
src/services/exportService.ts:14
↓ 1 callers
Function
exportToJSON
(positions: Position[], summary: ProfitSummary)
src/services/exportService.ts:69
↓ 1 callers
Method
exportToMarkdown
* 导出周复盘为Markdown
src/services/weeklyReviewService.ts:113
↓ 1 callers
Function
extractTodayTransactions
()
src/components/dashboard/review/sections/OperationsSection.tsx:62
↓ 1 callers
Method
formatCostPrice
* 应用脱敏配置到成本价
src/services/shareService.ts:54
↓ 1 callers
Function
formatDate
(timestamp: number)
src/components/dashboard/TCalculator/HistoryList.tsx:21
↓ 1 callers
Function
formatDate
(dateStr: string)
src/components/dashboard/eventCalendar/EventSelector.tsx:78
↓ 1 callers
Function
formatDate
(dateStr: string)
src/components/dashboard/review/ReviewShareDialog.tsx:120
↓ 1 callers
Function
formatDateDisplay
(dateStr: string)
src/components/dashboard/eventCalendar/TimelineView.tsx:30
↓ 1 callers
Function
formatDateDisplay
(dateStr: string)
src/components/dashboard/eventCalendar/TodayEvents.tsx:42
↓ 1 callers
Function
formatDateShort
(dateStr: string)
src/components/dashboard/eventCalendar/KanbanView.tsx:39
↓ 1 callers
Function
formatIndexCode
(code: string, market: number)
src/components/dashboard/review/sections/MarketDataSection.tsx:514
↓ 1 callers
Method
formatMoney
* 格式化金额
src/services/shareService.ts:64
↓ 1 callers
Function
formatNewsContent
(content: string)
src/services/newsService.ts:83
↓ 1 callers
Function
formatPublishTime
(timeStr: string)
src/components/dashboard/NewsFeed.tsx:65
↓ 1 callers
Method
formatQuantity
* 应用脱敏配置到数量
src/services/shareService.ts:44
↓ 1 callers
Method
generateImage
* 生成图片
src/services/shareService.ts:136
↓ 1 callers
Method
generateMarkdown
* 生成 Markdown
src/services/shareService.ts:235
↓ 1 callers
Method
generatePDF
* 生成 PDF
src/services/shareService.ts:170
↓ 1 callers
Function
generateShareText
()
src/components/dashboard/ShareDialog.tsx:79
↓ 1 callers
Function
generateShareText
()
src/components/dashboard/StockShareDialog.tsx:77
↓ 1 callers
Function
generateShareText
()
src/components/dashboard/ClearedProfitShareDialog.tsx:73
↓ 1 callers
Function
generateShareText
()
src/components/dashboard/review/ReviewShareDialog.tsx:47
↓ 1 callers
Function
getAccount
(id: string)
src/services/accountService.ts:90
↓ 1 callers
Function
getAccountIcon
(type: string)
src/components/dashboard/AccountSwitcher.tsx:13
↓ 1 callers
Function
getActualLockStatus
(batch: PositionBatch)
src/components/dashboard/PositionBatch/BatchList.tsx:31
↓ 1 callers
Function
getAllAccountStats
()
src/services/accountService.ts:316
↓ 1 callers
Method
getEvent
获取单个事件
src/services/eventService.ts:26
↓ 1 callers
Method
getEventsByDate
按日期获取事件
src/services/eventService.ts:72
↓ 1 callers
Method
getEventsByRange
按日期范围获取事件
src/services/eventService.ts:78
↓ 1 callers
Function
getExpectationConfig
(expectation?: ExpectationGap)
src/components/news/NewsAnalysis.tsx:86
↓ 1 callers
Method
getImageSize
* 获取图片尺寸配置
src/services/shareService.ts:442
↓ 1 callers
Function
getIndustries
()
src/services/stockDatabase.ts:165
↓ 1 callers
Function
getLastInput
()
src/services/tCalculatorService.ts:92
↓ 1 callers
Method
getLogoBase64
* 获取 logo 的 base64 编码
src/services/weeklyReviewService.ts:385
↓ 1 callers
Method
getLogoBase64
* 获取 logo 的 base64 编码
src/services/reviewService.ts:507
↓ 1 callers
Function
getPopularStocks
(limit: number = 10)
src/services/stockDatabase.ts:128
↓ 1 callers
Function
getProfitColor
(value: number)
src/components/dashboard/review/ReviewShareDialog.tsx:126
↓ 1 callers
Function
getProfitLevel
()
src/components/dashboard/ShareDialog.tsx:171
↓ 1 callers
Function
getProfitLevel
()
src/components/dashboard/StockShareDialog.tsx:164
↓ 1 callers
Function
getProfitLevel
()
src/components/dashboard/ClearedProfitShareDialog.tsx:158
↓ 1 callers
Function
getSellableQuantity
(batches: PositionBatch[])
src/services/batchService.ts:95
↓ 1 callers
Function
getSentimentConfig
(sentiment?: Sentiment)
src/components/news/NewsAnalysis.tsx:74
↓ 1 callers
Function
getTagById
(id: string)
src/data/presetEventTags.ts:49
↓ 1 callers
Function
getTagCategories
()
src/data/presetEventTags.ts:44
↓ 1 callers
Function
getTagsByCategory
(category: string)
src/data/presetEventTags.ts:39
↓ 1 callers
Function
getTimeHorizonConfig
(timeHorizon?: TimeHorizon)
src/components/news/NewsAnalysis.tsx:82
↓ 1 callers
Function
getTodayDate
()
src/components/dashboard/review/ReviewTab.tsx:118
↓ 1 callers
Function
getTotalStats
()
src/services/accountService.ts:325
↓ 1 callers
Function
getTransactionSummary
(position: Position)
src/components/dashboard/PositionManager.tsx:400
↓ 1 callers
Function
getWeekNumber
获取周数
src/types/weeklyReview.ts:123
↓ 1 callers
Function
handleAddBatch
(position: Position)
src/components/dashboard/PositionManager.tsx:474
↓ 1 callers
Function
handleAddEvent
(date?: string)
src/components/dashboard/eventCalendar/EventCalendar.tsx:88
↓ 1 callers
Function
handleAddTag
()
src/components/dashboard/PositionManager.tsx:427
↓ 1 callers
Function
handleAnalyze
(item: NewsItem, e: React.MouseEvent)
src/components/dashboard/NewsFeed.tsx:90
↓ 1 callers
Function
handleChange
(key: keyof FeeConfig, value: string)
src/components/dashboard/TCalculator/FeeSettings.tsx:16
← previous
next →
101–200 of 442, ranked by callers