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:
tinkle-community
2025-12-07 18:52:42 +08:00
parent bee4e5dd41
commit 07ac8e4ecd
2 changed files with 5 additions and 18 deletions

View File

@@ -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()