Skip to content

Commit 7e59c96

Browse files
committed
correct some name
1 parent 4b03901 commit 7e59c96

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

v2/options/order_service.go

+8-8
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ func (s *ListOpenOrdersService) Do(ctx context.Context, opts ...RequestOption) (
270270
type GetOrderService struct {
271271
c *Client
272272
symbol string
273-
OrderId *int64
273+
orderId *int64
274274
clientOrderId *string
275275
}
276276

@@ -280,9 +280,9 @@ func (s *GetOrderService) Symbol(symbol string) *GetOrderService {
280280
return s
281281
}
282282

283-
// OrderID set OrderId
284-
func (s *GetOrderService) OrderID(OrderId int64) *GetOrderService {
285-
s.OrderId = &OrderId
283+
// OrderID set orderId
284+
func (s *GetOrderService) OrderID(orderId int64) *GetOrderService {
285+
s.orderId = &orderId
286286
return s
287287
}
288288

@@ -300,8 +300,8 @@ func (s *GetOrderService) Do(ctx context.Context, opts ...RequestOption) (res *O
300300
secType: secTypeSigned,
301301
}
302302
r.setParam("symbol", s.symbol)
303-
if s.OrderId != nil {
304-
r.setParam("orderId", *s.OrderId)
303+
if s.orderId != nil {
304+
r.setParam("orderId", *s.orderId)
305305
}
306306
if s.clientOrderId != nil {
307307
r.setParam("clientOrderId", *s.clientOrderId)
@@ -379,8 +379,8 @@ type CancelAllOpenOrdersService struct {
379379
}
380380

381381
type CancelAllOpenOrdersRsp struct {
382-
Code string
383-
Msg string
382+
Code string `json:"code"`
383+
Msg string `json:"msg"`
384384
}
385385

386386
// Symbol set symbol

0 commit comments

Comments
 (0)