ftx: remove legacy method CancelOrderByClientID

This commit is contained in:
c9s 2022-03-03 11:42:13 +08:00
parent 60ad6bc901
commit 37db477ece

View File

@ -66,21 +66,3 @@ func (r *orderRequest) PlaceOrder(ctx context.Context, p PlaceOrderPayload) (ord
return o, nil
}
func (r *orderRequest) CancelOrderByClientID(ctx context.Context, clientID string) (cancelOrderResponse, error) {
resp, err := r.
Method("DELETE").
ReferenceURL("api/orders/by_client_id").
ID(clientID).
DoAuthenticatedRequest(ctx)
if err != nil {
return cancelOrderResponse{}, err
}
var co cancelOrderResponse
if err := json.Unmarshal(resp.Body, &r); err != nil {
return cancelOrderResponse{}, err
}
return co, nil
}