fix(ftx): use ID()

This commit is contained in:
Jui-Nan Lin 2021-05-24 14:18:40 +08:00
parent 9226d086b3
commit 239d55ce33
2 changed files with 3 additions and 3 deletions

View File

@ -95,7 +95,7 @@ func (r *restRequest) buildURL() (*url.URL, error) {
return r.baseURL.ResolveReference(refURL), nil
}
func (r *restRequest) Id(id string) *restRequest {
func (r *restRequest) ID(id string) *restRequest {
r.id = id
return r
}

View File

@ -68,7 +68,7 @@ func (r *orderRequest) CancelOrderByOrderID(ctx context.Context, orderID uint64)
resp, err := r.
Method("DELETE").
ReferenceURL("api/orders").
Id(strconv.FormatUint(orderID, 10)).
ID(strconv.FormatUint(orderID, 10)).
DoAuthenticatedRequest(ctx)
if err != nil {
return cancelOrderResponse{}, err
@ -85,7 +85,7 @@ func (r *orderRequest) CancelOrderByClientID(ctx context.Context, clientID strin
resp, err := r.
Method("DELETE").
ReferenceURL("api/orders/by_client_id").
Id(clientID).
ID(clientID).
DoAuthenticatedRequest(ctx)
if err != nil {
return cancelOrderResponse{}, err