mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 06:53:52 +00:00
ftx: remove legacy method CancelOrderByClientID
This commit is contained in:
parent
60ad6bc901
commit
37db477ece
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user