Improve(interface): replace some struct with interface for testing (#994)

* fix(trader): get peakPnlPct using posKey

* fix(docs): keep readme at the same page

* improve(interface): replace with interface

* refactor mcp

---------

Co-authored-by: zbhan <zbhan@freewheel.tv>
This commit is contained in:
Shui
2025-11-13 22:22:05 -05:00
committed by tangmengqiu
parent 79358d4776
commit 3f5f964a67
8 changed files with 164 additions and 93 deletions

View File

@@ -31,7 +31,7 @@ type AutoTraderTestSuite struct {
// Mock 依赖
mockTrader *MockTrader
mockDB *MockDatabase
mockLogger *logger.DecisionLogger
mockLogger logger.IDecisionLogger
// gomonkey patches
patches *gomonkey.Patches