Commit Graph
195 Commits
Author SHA1 Message Date
lun_admin 7cf3a90604 refactor(architecture): Step 3 decouple trading strategies and modularize UI panels
- Extract watering (average cost reduction) strategy logic from AutoTradingManager into service.strategy.WateringStrategy
  - Encapsulate target verification, quota calculation, budget validation, and relaxed volatility thresholds
- Modularize TradingDecisionLog into dedicated UI components and panels:
  - Create ui.component.CommonUiComponents: StatusIndicator, SettingInputField, SettingSwitchField, TimeInputRow, FilterChipWithRightClick, CsvDropZone, and text utility functions
  - Create ui.panel.TradeConfigPanel: encapsulate dual-column trading configuration grids, risk management controls, time schedulers, and advanced bot configurations
  - Reduce TradingDecisionLog from ~1,200 lines to ~260 lines focusing solely on live AI decision feed orchestration
  - Remove dead legacy parseSmartCsv function
- Verified clean build with ./gradlew compileKotlin (0 errors)
2026-11-17 15:06:20 +09:00
lun_admin 4bc83c8fe7 refactor(architecture): Step 2 package restructuring and database/store decoupling
- Extract Exposed database tables (TradeStatus, ConfigTable, AutoTradeTable, TradeLogTable, HolidayTable) from DatabaseFactory into dedicated package database.schema.Tables
- Decouple AutoTradeItem into model.AutoTradeItem with Kotlinx Serializable support
- Decouple in-memory log store TradingLogStore into ui.store.TradingLogStore
- Package root-level Defines.kt into config.Defines with appropriate package declaration
- Extract KisSession singleton state management from model.AppConfig into dedicated model.KisSession
- Update package declarations and import paths across Main.kt, SettingsScreen, TradingDecisionLog, AutoTradingManager, LlamaServerManager, RagService, KisTradeService, and TradingReportManager
- Verified clean build with ./gradlew compileKotlin (0 errors)
2026-11-17 15:01:49 +09:00
lun_admin 69ce5683cf refactor(cleanup): Step 1 remove unused legacy UI files and dead services
- Delete 14 unused legacy UI files (DashboardScreen, CandleChart, StockDetailArea, StockHeader, ActiveTradeRow, AutoTradeSection, AiAnalysisView, BalanceSection, IntegratedOrderSection, MarketSection, MarketStockItemRow, PeriodTrendCard, RealTimeTradeList, TradeLogRow)
- Remove unused AppScreen.Dashboard entry and commented routes in Main.kt
- Delete unreferenced network/KisOverseasService.kt
- Unify duplicate CorpInfo definitions into standalone model/CorpInfo.kt
- Add runtime data and large DART zip/xml files to .gitignore
2026-11-17 14:53:09 +09:00
lun_admin adb1cee556 refactor(network): Phase 3 migrate Telegram curl subprocess to Ktor async client
- Replace OS curl process fork in NewsService.sendTelegramMessage with Ktor asynchronous client.post
- Eliminate ProcessBuilder and platform-dependent shell execution for Telegram alerts
- Update todo.md checklist and completion status
2026-11-17 14:46:35 +09:00
lun_admin 8f563b7c9f feat(trading): Phase 2 reliability, rate limiting, and resource leak prevention
- Implement thread-safe coroutine TokenBucket KisRateLimiter to strictly limit KIS API requests to <= 3/sec (prevent EGW00201 errors)
- Integrate KisRateLimiter across all REST order/balance/quote endpoints in KisTradeService
- Dynamically resolve current and previous year DART report codes (Q3/Semi/Q1/Annual) in NewsService.fetchFinancialGrowth instead of hardcoded 2024
- Support dynamic Ollama model detection via /api/tags in RagService to prevent 404 when model name differs
- Add JVM ShutdownHook to BrowserManager and enable image/CSS resource blocking in DynamicNewsScraper to prevent zombie Chromium processes and speed up scraping
- Add thread-safe dbTransaction wrapper and dbQuery (newSuspendedTransaction) to DatabaseFactory to prevent H2 file lock contention
2026-11-17 14:44:02 +09:00
lun_admin 7f199e6ae7 fix(core): Phase 1 critical stability and memory optimizations
- Lazy initialize RagService.embeddingModel to prevent fixed port mismatch before PortFinder executes
- Replace global pkill in LlamaServerManager with targeted port/PID-based cleanup
- Remove redundant errorStream reader thread in LlamaServerManager and ensure descendant process destruction on stop
- Convert DartCodeManager XML parsing from DOM to StAX streaming to eliminate high heap memory consumption (300MB -> few MB)
- Make shared collections in DynamicNewsScraper and AutoTradingManager thread-safe (ConcurrentHashMap, Collections.synchronizedList)
- Reduce KisTradeService Ktor logging level from ALL to HEADERS/NONE to prevent high I/O overhead and credential exposure
- Add ARCHITECTURE.md and todo.md system documentation
2026-11-17 14:40:15 +09:00
lun_admin 7a7de487a4 ... 2026-10-06 17:55:03 +09:00
lun_admin dab3ab7993 .... 2026-10-06 17:18:49 +09:00
lun_admin 4b1805b9b8 ... 2026-10-06 14:47:26 +09:00
lun_admin 25c1485b1e 가격괴리 취소 버그 수정 2026-10-06 13:07:56 +09:00
lun_admin daf74fbe83 ... 2026-09-22 17:18:21 +09:00
lun_admin 40c70577ca ... 2026-09-21 17:04:53 +09:00
lun_admin bcdb3546fa 분석후 분할 매수, 보유주식 분할 매도 2026-09-16 17:35:06 +09:00
lun_admin 3827698b6f ... 2026-09-15 17:35:11 +09:00
lun_admin c84f4f0cd1 ... 2026-09-15 17:04:57 +09:00
lun_admin a53beb1e18 ... 2026-09-15 16:53:47 +09:00
lun_admin 15793d1852 ... 2026-09-15 16:37:18 +09:00
lun_admin 84f2202f17 ... 2026-09-15 16:17:45 +09:00
lun_admin 1a2fe8b6e6 ..... 2026-09-15 15:35:27 +09:00
lun_admin 0e241205ee ... 2026-09-15 14:29:47 +09:00
lun_admin 8e567f5b69 .... 2026-09-15 14:26:53 +09:00
lun_admin 442cdf0877 .. 2026-09-15 11:37:09 +09:00
lun_admin 3998cf159a .... 2026-09-08 11:30:43 +09:00
lun_admin 5e90ee39bc ... 2026-09-07 14:18:23 +09:00
lun_admin 5882f07e42 ... 2026-08-12 15:22:22 +09:00
lun_admin 302802a53d .... 2026-08-10 17:23:40 +09:00
lun_admin b83eb11cb7 ../. 2026-08-10 11:29:59 +09:00
lun_admin 30ab7bbecf .. 2026-08-10 10:15:13 +09:00
lun_admin 3fdb298caa ... 2026-08-03 16:17:53 +09:00
lun_admin acd26abe1e .... 2026-08-03 11:53:29 +09:00
lun_admin b134dea1e1 ... 2026-07-10 14:55:19 +09:00
lun_admin 7474558136 ... 2026-06-26 10:17:03 +09:00
lun_admin 81ce9b1539 . 2026-06-19 18:08:15 +09:00
lun_admin c55b089fcd ... 2026-06-19 15:17:20 +09:00
lun_admin fd8283c507 ... 2026-06-19 14:40:46 +09:00
lun_admin ce07537eef ... 2026-06-19 14:31:33 +09:00
lun_admin 8e145803d8 .... 2026-06-18 17:56:34 +09:00
lun_admin 27d330677e ... 2026-06-16 13:07:38 +09:00
lun_admin 71fdabfc32 ... 2026-06-15 14:28:12 +09:00
lun_admin 3fd9e3d833 ..... 2026-06-12 13:11:23 +09:00
lun_admin affad2743e .... 2026-06-09 14:16:18 +09:00
lun_admin 075a085b92 ... 2026-06-08 14:45:15 +09:00
lun_admin 355db7fe20 ... 2026-06-04 11:37:08 +09:00
lun_admin 4a72a30ab6 ... 2026-06-04 11:26:33 +09:00
lun_admin df5febfb42 ... 2026-06-04 10:51:24 +09:00
lun_admin aa4f8daadf ... 2026-06-04 10:42:54 +09:00
lun_admin d57f1698af ... 2026-06-03 13:27:05 +09:00
lun_admin 91b616e127 ... 2026-06-02 17:57:00 +09:00
lun_admin 21242d5ca4 ... 2026-06-02 17:10:06 +09:00
lun_admin d26eb34f1d ... 2026-06-02 15:30:17 +09:00