mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
ftx: remove legacy CancelOrderByOrderID method
This commit is contained in:
parent
064da7f938
commit
60ad6bc901
|
@ -65,22 +65,6 @@ func (r *orderRequest) PlaceOrder(ctx context.Context, p PlaceOrderPayload) (ord
|
|||
|
||||
return o, nil
|
||||
}
|
||||
func (r *orderRequest) CancelOrderByOrderID(ctx context.Context, orderID uint64) (cancelOrderResponse, error) {
|
||||
resp, err := r.
|
||||
Method("DELETE").
|
||||
ReferenceURL("api/orders").
|
||||
ID(strconv.FormatUint(orderID, 10)).
|
||||
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
|
||||
}
|
||||
|
||||
func (r *orderRequest) CancelOrderByClientID(ctx context.Context, clientID string) (cancelOrderResponse, error) {
|
||||
resp, err := r.
|
||||
|
|
Loading…
Reference in New Issue
Block a user