@@ -288,37 +288,35 @@ func (s *GetOrderService) Do(ctx context.Context, opts ...RequestOption) (res *G
288288}
289289
290290type GetOpenOrdersService struct {
291- c * Client
292- symbol string
293- orderId int
294- clientOrderID string
291+ c * Client
292+ symbol string
295293}
296294
297295// Define response of get order request
298296type GetOpenOrdersResponse struct {
299- Orders []* OpenOrderResponse `json:"orders"`
297+ Orders []* GetOrderResponse `json:"orders"`
300298}
301299
302- type OpenOrderResponse struct {
303- Symbol string `json:"symbol"`
304- OrderId int `json:"orderId"`
305- Side SideType `json:"side"`
306- PositionSide PositionSideType `json:"positionSide"`
307- OrderType OrderType `json:"type"`
308- OrigQuantity string `json:"origQty"`
309- Price string `json:"price"`
310- Quantity string `json:"executedQty"`
311- AveragePrice string `json:"avgPrice"`
312- CumQuote string `json:"cumQuote"`
313- StopPrice string `json:"stopPrice"`
314- Profit string `json:"profit"`
315- Fee string `json:"commission"`
316- Status OrderStatus `json:"status"`
317- Time int64 `json:"time"`
318- UpdateTime int64 `json:"ppdateTime"`
319- WorkingType OrderWorkingType `json:"workingType"`
320- ClientOrderID string `json:"clientOrderID"`
321- }
300+ // type OpenOrderResponse struct {
301+ // Symbol string `json:"symbol"`
302+ // OrderId int `json:"orderId"`
303+ // Side SideType `json:"side"`
304+ // PositionSide PositionSideType `json:"positionSide"`
305+ // OrderType OrderType `json:"type"`
306+ // OrigQuantity string `json:"origQty"`
307+ // Price string `json:"price"`
308+ // Quantity string `json:"executedQty"`
309+ // AveragePrice string `json:"avgPrice"`
310+ // CumQuote string `json:"cumQuote"`
311+ // StopPrice string `json:"stopPrice"`
312+ // Profit string `json:"profit"`
313+ // Fee string `json:"commission"`
314+ // Status OrderStatus `json:"status"`
315+ // Time int64 `json:"time"`
316+ // UpdateTime int64 `json:"ppdateTime"`
317+ // WorkingType OrderWorkingType `json:"workingType"`
318+ // ClientOrderID string `json:"clientOrderID"`
319+ // }
322320
323321func (s * GetOpenOrdersService ) Symbol (symbol string ) * GetOpenOrdersService {
324322 s .symbol = symbol
0 commit comments