refactor: optimize codebase encoding

This commit is contained in:
tinkle-community
2026-03-12 16:12:08 +08:00
parent 2314ece9d1
commit 736d2d385d
61 changed files with 2301 additions and 1533 deletions

View File

@@ -115,7 +115,7 @@ func (t *LighterTraderV2) GetOrderStatus(symbol string, orderID string) (map[str
resp, err := t.client.Do(req)
if err != nil {
// ✅ 正确做法:查询失败返回错误,而不是假设成交
// Correct approach: return error on query failure, do not assume order is filled
return nil, fmt.Errorf("failed to query order status: %w", err)
}
defer resp.Body.Close()