mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-12 15:26:55 +08:00
Merge pull request #421 from Im-Sue/fix/trader-manager-hyperliquid-testnet-clean
fix(trader): add missing HyperliquidTestnet configuration in loadSing…
This commit is contained in:
@@ -23,9 +23,9 @@ type CompetitionCache struct {
|
|||||||
|
|
||||||
// TraderManager 管理多个trader实例
|
// TraderManager 管理多个trader实例
|
||||||
type TraderManager struct {
|
type TraderManager struct {
|
||||||
traders map[string]*trader.AutoTrader // key: trader ID
|
traders map[string]*trader.AutoTrader // key: trader ID
|
||||||
competitionCache *CompetitionCache
|
competitionCache *CompetitionCache
|
||||||
mu sync.RWMutex
|
mu sync.RWMutex
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewTraderManager 创建trader管理器
|
// NewTraderManager 创建trader管理器
|
||||||
@@ -889,6 +889,7 @@ func (tm *TraderManager) loadSingleTrader(traderCfg *config.TraderRecord, aiMode
|
|||||||
DefaultCoins: defaultCoins,
|
DefaultCoins: defaultCoins,
|
||||||
TradingCoins: tradingCoins,
|
TradingCoins: tradingCoins,
|
||||||
SystemPromptTemplate: traderCfg.SystemPromptTemplate, // 系统提示词模板
|
SystemPromptTemplate: traderCfg.SystemPromptTemplate, // 系统提示词模板
|
||||||
|
HyperliquidTestnet: exchangeCfg.Testnet, // Hyperliquid测试网
|
||||||
}
|
}
|
||||||
|
|
||||||
// 根据交易所类型设置API密钥
|
// 根据交易所类型设置API密钥
|
||||||
|
|||||||
Reference in New Issue
Block a user