fix: correct HL fee parsing (OrderStatus not statuses[]) and add productType to BG fills query

This commit is contained in:
jackyu66git
2026-05-04 20:06:27 +08:00
parent 6e9b982c66
commit 411365b66e
3 changed files with 16 additions and 17 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ func (b *BitgetTrade) PlaceMarketOrder(side, symbol, size, tradeSide string) (st
func (b *BitgetTrade) GetTradeFee(symbol, orderID string) (feeUSD float64, err error) {
ts := fmt.Sprintf("%d", time.Now().UnixMilli())
method := "GET"
requestPath := "/api/v2/mix/order/fills?symbol=" + symbol + "&orderId=" + orderID
requestPath := "/api/v2/mix/order/fills?symbol=" + symbol + "&orderId=" + orderID + "&productType=USDT-FUTURES"
host := "https://api.bitget.com"
sign := b.sign(method, requestPath, ts, "")