mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-09 22:10:57 +08:00
fix: use http.DefaultClient for OKX trader
- Use http.DefaultClient instead of custom client, consistent with Binance/Bybit SDKs - Remove unnecessary noProxyFunc and net/url import - All exchanges now use the same HTTP client behavior
This commit is contained in:
@@ -199,8 +199,9 @@ func (tm *TraderManager) GetCompetitionData() (map[string]interface{}, error) {
|
||||
|
||||
// 获取所有交易员列表
|
||||
allTraders := make([]*trader.AutoTrader, 0, len(tm.traders))
|
||||
for _, t := range tm.traders {
|
||||
for id, t := range tm.traders {
|
||||
allTraders = append(allTraders, t)
|
||||
logger.Infof("📋 竞赛数据包含交易员: %s (%s)", t.GetName(), id)
|
||||
}
|
||||
tm.mu.RUnlock()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user