From ef91bec2dda03294473b5b1eb61bceeb2ce207b0 Mon Sep 17 00:00:00 2001 From: tinkle-community Date: Tue, 13 Jan 2026 13:24:57 +0800 Subject: [PATCH] debug: add logging for Lighter GetActiveOrders API call --- trader/lighter_trader_v2_orders.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/trader/lighter_trader_v2_orders.go b/trader/lighter_trader_v2_orders.go index c30783c2..1c6acea7 100644 --- a/trader/lighter_trader_v2_orders.go +++ b/trader/lighter_trader_v2_orders.go @@ -214,6 +214,8 @@ func (t *LighterTraderV2) GetActiveOrders(symbol string) ([]OrderResponse, error endpoint := fmt.Sprintf("%s/api/v1/accountActiveOrders?account_index=%d&market_id=%d", t.baseURL, t.accountIndex, marketIndex) + logger.Infof("📋 LIGHTER GetActiveOrders: endpoint=%s", endpoint) + // Send GET request req, err := http.NewRequest("GET", endpoint, nil) if err != nil { @@ -235,6 +237,8 @@ func (t *LighterTraderV2) GetActiveOrders(symbol string) ([]OrderResponse, error return nil, fmt.Errorf("failed to read response: %w", err) } + logger.Infof("📋 LIGHTER GetActiveOrders raw response: %s", string(body)) + // Parse response var apiResp struct { Code int `json:"code"`