@@ -60,7 +60,7 @@ func (s *CreateOrderService) Quantity(quantity float64) *CreateOrderService {
6060}
6161
6262type CreateOrderResponse struct {
63- OrderId string `json:"orderId"`
63+ OrderId int64 `json:"orderId"`
6464}
6565
6666func (s * CreateOrderService ) Do (ctx context.Context , opts ... RequestOption ) (res * CreateOrderResponse , err error ) {
@@ -126,7 +126,7 @@ func (s *CreateOrderService) Do(ctx context.Context, opts ...RequestOption) (res
126126type CancelOrderService struct {
127127 c * Client
128128 symbol string
129- orderId int
129+ orderId int64
130130 clientOrderID string
131131}
132132
@@ -135,7 +135,7 @@ func (s *CancelOrderService) Symbol(symbol string) *CancelOrderService {
135135 return s
136136}
137137
138- func (s * CancelOrderService ) OrderId (orderId int ) * CancelOrderService {
138+ func (s * CancelOrderService ) OrderId (orderId int64 ) * CancelOrderService {
139139 s .orderId = orderId
140140
141141 return s
@@ -161,7 +161,7 @@ type CancelOrderResponse struct {
161161 OrigQty string `json:"origQty"`
162162 AvgPrice string `json:"avgPrice"`
163163 ExecutedQty string `json:"executedQty"`
164- OrderId int `json:"orderId"`
164+ OrderId int64 `json:"orderId"`
165165 Profit string `json:"profit"`
166166 Commission string `json:"commission"`
167167 UpdateTime int `json:"updateTime"`
@@ -264,11 +264,11 @@ func (s *CancelAllOrdersService) Do(ctx context.Context, opts ...RequestOption)
264264type GetOrderService struct {
265265 c * Client
266266 symbol string
267- orderId int
267+ orderId int64
268268 clientOrderID string
269269}
270270
271- // Define response of get order request
271+ // GetOrderResponse Define response of get order request
272272type GetOrderResponse struct {
273273 Time int64 `json:"time"`
274274 Symbol string `json:"symbol"`
@@ -283,10 +283,10 @@ type GetOrderResponse struct {
283283 OrigQuantity string `json:"origQty"`
284284 AveragePrice string `json:"avgPrice"`
285285 Quantity string `json:"executedQty"`
286- OrderId int `json:"orderId"`
286+ OrderId int64 `json:"orderId"`
287287 Profit string `json:"profit"`
288288 Fee string `json:"commission"`
289- UpdateTime int64 `json:"ppdateTime "`
289+ UpdateTime int64 `json:"updateTime "`
290290 WorkingType OrderWorkingType `json:"workingType"`
291291 ClientOrderID string `json:"clientOrderID"`
292292}
@@ -296,7 +296,7 @@ func (s *GetOrderService) Symbol(symbol string) *GetOrderService {
296296 return s
297297}
298298
299- func (s * GetOrderService ) OrderId (orderId int ) * GetOrderService {
299+ func (s * GetOrderService ) OrderId (orderId int64 ) * GetOrderService {
300300 s .orderId = orderId
301301 return s
302302}
@@ -348,7 +348,7 @@ type GetOpenOrdersService struct {
348348 symbol string
349349}
350350
351- // Define response of get order request
351+ // GetOpenOrdersResponse Define response of get order request
352352type GetOpenOrdersResponse struct {
353353 Orders []* GetOrderResponse `json:"orders"`
354354}
@@ -369,7 +369,7 @@ type GetOpenOrdersResponse struct {
369369// Fee string `json:"commission"`
370370// Status OrderStatus `json:"status"`
371371// Time int64 `json:"time"`
372- // UpdateTime int64 `json:"ppdateTime "`
372+ // UpdateTime int64 `json:"updateTime "`
373373// WorkingType OrderWorkingType `json:"workingType"`
374374// ClientOrderID string `json:"clientOrderID"`
375375// }
0 commit comments