From 1fcb2c1a6f9997fda29e9a36a54f74f28426ce23 Mon Sep 17 00:00:00 2001 From: Peilin Zheng Date: Fri, 1 Sep 2023 11:29:58 +0800 Subject: [PATCH] fix MarginAccountOrderResponse fix cummulativeQuoteQty add accountId add selfTradePreventionMode --- margin.go | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/margin.go b/margin.go index 87bb939..07e9715 100644 --- a/margin.go +++ b/margin.go @@ -1507,23 +1507,25 @@ func (s *MarginAccountOrderService) Do(ctx context.Context, opts ...RequestOptio // MarginAccountOrderResponse define margin account order response type MarginAccountOrderResponse struct { - ClientOrderId string `json:"clientOrderId"` - CumulativeQuoteQty string `json:"cumulativeQuoteQty"` - ExecutedQty string `json:"executedQty"` - IcebergQty string `json:"icebergQty"` - IsWorking bool `json:"isWorking"` - OrderId int `json:"orderId"` - OrigQty string `json:"origQty"` - Price string `json:"price"` - Side string `json:"side"` - Status string `json:"status"` - StopPrice string `json:"stopPrice"` - Symbol string `json:"symbol"` - IsIsolated bool `json:"isIsolated"` - Time uint64 `json:"time"` - TimeInForce string `json:"timeInForce"` - OrderType string `json:"type"` - UpdateTime uint64 `json:"updateTime"` + AccountId uint64 `json:"accountId"` + ClientOrderId string `json:"clientOrderId"` + CummulativeQuoteQty string `json:"cummulativeQuoteQty"` + ExecutedQty string `json:"executedQty"` + IcebergQty string `json:"icebergQty"` + IsWorking bool `json:"isWorking"` + OrderId int `json:"orderId"` + OrigQty string `json:"origQty"` + Price string `json:"price"` + SelfTradePreventionMode string `json:"selfTradePreventionMode"` + Side string `json:"side"` + Status string `json:"status"` + StopPrice string `json:"stopPrice"` + Symbol string `json:"symbol"` + IsIsolated bool `json:"isIsolated"` + Time uint64 `json:"time"` + TimeInForce string `json:"timeInForce"` + OrderType string `json:"type"` + UpdateTime uint64 `json:"updateTime"` } // Query Margin Account's Open Order (USER_DATA) API Endpoint