Commit Graph
100 Commits
Author SHA1 Message Date
lun_admin 03d5eaeed1 feat(trade): add optional overnight reservation sell for holdings 2026-11-17 16:59:58 +09:00
lun_admin e3968347f6 feat(ui): auto-scroll to latest decision on new items and enhance stream data management tools 2026-11-17 16:51:54 +09:00
lun_admin 9fecec21c6 fix(rag): filter chat vs embedding models for Ollama and improve Lucene index cleanup 2026-11-17 16:36:39 +09:00
lun_admin b124c5da15 ... 2026-11-17 16:27:32 +09:00
lun_admin 2cbf988a8a feat(trading): add split vs single order toggles for buy and sell execution
- Add useSplitBuy and useSplitSell boolean toggles to TradeConfig
- Implement conditional 2-stage split order vs single all-in order for buys and sells in AutoTradingManager
- Safely route 100% single orders when toggles are OFF or when holding/order quantity is 1
- Add '2중 분할 매매 주문 전략' card to TradeConfigPanel under Basic & Risk tab
- Verified with compileKotlin and full project build
2026-11-17 16:22:05 +09:00
lun_admin 7f6ca963f3 fix(network): restore system curl for Telegram and guard against buy order exceeding available balance
- Revert Telegram alert dispatch to system curl (ProcessBuilder) in NewsService to avoid TLS ProtocolVersion handshake error
- Add pre-order available deposit and budget check in AutoTradingManager to prevent KIS error '주문가능금액을 초과 했습니다'
- Skip buy and log WATCH when stock price exceeds assigned budget or available cash
- Verified with compileKotlin and full project build
2026-11-17 16:14:41 +09:00
lun_admin 5514356c53 feat(rag): support hybrid Ollama/local embedding routing with Lucene DB maintenance
- Added automatic Ollama embedding model discovery in LlamaServerManager (bge, nomic, embed, minilm)
- Implemented dynamic routing in RagService for embeddings (Ollama 11434 vs local llama-server 8081)
- Added embedding model consistency check with embed_model.tag to prevent Lucene vector dimension mismatches
- Added Lucene store maintenance functions: getLuceneStats, resetLuceneStore, and automatic 50MB retention cleanup
- Added real-time Lucene status display and one-click '벡터 DB 초기화' button to TradeConfigPanel
- Verified with compileKotlin and full project build
2026-11-17 16:08:23 +09:00
lun_admin e2c2dca278 feat(ui): relocate CSV dropzone to settings tab and display active AI model name
- Moved CsvDropZone from decision log stream to TradeConfigPanel under Schedule & Filters tab
- Added universe stock pool card displaying current loaded stock count
- Added active AI engine & model card showing main LLM and embedding models
- Exposed RagService.getDisplayModelName() to dynamically resolve Ollama or local GGUF models
- Display active model badge on the GlobalStatusBar for instant visibility
- Verified with compileKotlin and full project build
2026-11-17 15:56:56 +09:00
lun_admin 00ddd0bbc8 fix(trading): enable max holding count check and fix stop loss config persistence
- Remove firstSet guard in AppConfig.setValues to immediately persist stop loss and risk settings to DB
- Normalize LOSS_MAX_MONEY to positive value for UI while correctly comparing in AutoTradingManager
- Activate canAddNewPosition in AutoTradingManager based on actual holding count (< maxAllowedStocks)
- Bypass max holding limit for existing holding watering (!hasCode) so averaging down continues
- Verified with compileKotlin and full project build
2026-11-17 15:51:20 +09:00
lun_admin 4253d19d15 feat(ui): implement modern tabbed trading dashboard redesign
- Introduce GlobalStatusBar with 4 real-time engine badges (LLM, RAG, OAuth, WebSocket), market operation status chip, and single-stock budget badge
- Redesign Real-time Decision Stream (42% width) with search, filter chips, dropzone, and modern card view with quick-sell action
- Structure TradeConfigPanel (58% width) into 4 dedicated tabs (Risk & Trading, 5-Tier Grade Policies, Watering & Morning Sell, Schedule & Filters) with card-based layouts
- Verified build and compilation successfully
2026-11-17 15:40:34 +09:00
lun_admin 0b6b8da1a5 fix(trading): align trade configs, decouple sell offsets, and add steady uptrend toggle
- Decouple sell order tick offsets:
  - Separate morningSellOrderAppend (morning exit sell order above avg price) and stopLossOrderAppend (stop-loss sell order tick offset from current price) in TradeConfig and TradeConfigPanel
- Add steady uptrend entry toggle:
  - Add useSteadyUptrend boolean flag in TradeConfig to allow users to toggle steady 5/20 MA trendline pre-pass vs strict statistical rebound filtering
  - Add UI switch field in TradeConfigPanel
- Fix flat price (0.0% fluctuation) drop bug in candidate discovery filter (AutoTradingManager)
- Correct ConfigIndex enum ordinal calculation (remove +10 gap in GRADE_2_BUY) and fix LOSS_MAXRATE label typo
- Align profit target formula between UI and engine: baseProfitRate = PROFIT_INDEX * gradeGuide (plus TAX_INDEX)
- Dynamically link SystemSleepPreventer operating hours to KisSession.startTime() and KisSession.endTime()
- Verified clean build with ./gradlew compileKotlin (0 errors)
2026-11-17 15:30:38 +09:00
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
lun_admin 83d671bece ... 2026-06-02 15:05:02 +09:00
lun_admin 059d1830b7 ... 2026-06-02 14:43:13 +09:00
lun_admin ada0d9d6fe ... 2026-06-02 14:40:33 +09:00
lun_admin 9d43c04670 ... 2026-06-02 11:19:31 +09:00
lun_admin d0bdc57a1e ... 2026-06-02 10:43:37 +09:00
lun_admin 558a39e2d3 ... 2026-06-01 17:55:10 +09:00
lun_admin 510e19b2e8 .... 2026-06-01 13:37:07 +09:00
lun_admin 3fcce5e5c6 .... 2026-05-29 13:29:17 +09:00
lun_admin 74c3e2462d ... 2026-05-27 12:45:19 +09:00
lun_admin ef32260bdb ... 2026-05-26 14:18:41 +09:00
lun_admin 1cca11edc4 .... 2026-05-26 11:20:37 +09:00
lun_admin e94869b9e7 ... 2026-05-20 17:18:15 +09:00
lun_admin ce63b5760a ... 2026-05-19 13:33:59 +09:00
lun_admin 9af9f46748 ... 2026-05-18 17:56:26 +09:00
lun_admin 4c27d71701 ... 2026-05-18 13:03:10 +09:00
lun_admin b9ba8efc1a ... 2026-05-14 13:27:33 +09:00
lun_admin ad6d00ac39 ... 2026-05-13 11:37:57 +09:00
lun_admin 619407966e ... 2026-05-07 14:53:19 +09:00
lun_admin 6f98b0fde4 .. 2026-05-06 17:21:45 +09:00
lun_admin 5c00152de9 .. 2026-05-06 17:13:59 +09:00
lun_admin 07a66a3fa3 .. 2026-05-06 16:43:49 +09:00
lun_admin d7efc433bd .. 2026-05-06 15:53:55 +09:00
lun_admin 0413fa3e2e .. 2026-05-04 11:19:52 +09:00
lun_admin 23d505eabe . 2026-05-04 11:03:19 +09:00
lun_admin 7c953304fa .. 2026-04-30 17:27:59 +09:00
lun_admin 3c7f652f38 ... 2026-04-29 17:56:16 +09:00
lun_admin 9fefdc22f2 ... 2026-04-29 15:41:20 +09:00
lun_admin 2c736e687c ... 2026-04-29 15:32:09 +09:00
lun_admin a3a0338cc5 ... 2026-04-20 17:09:54 +09:00
lun_admin 2d577300c3 ... 2026-04-17 18:08:53 +09:00
lun_admin ed12d07bc2 리포팅 테스트 2026-04-16 15:48:23 +09:00
lun_admin 68a7a05961 ... 2026-04-15 10:53:40 +09:00
lun_admin dd1f961d57 ... 2026-04-15 10:39:46 +09:00
lun_admin db134d5e9e ... 2026-04-15 10:25:42 +09:00
lun_admin 295b429d6d ... 2026-04-15 10:08:57 +09:00
lun_admin 84cfb2782d ... 2026-04-13 18:02:38 +09:00
lun_admin a320dcde02 ... 2026-04-10 17:15:31 +09:00
lun_admin 7d03cc78b1 ... 2026-04-09 17:03:52 +09:00
lun_admin dec19983af sss 2026-04-09 14:01:43 +09:00