mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-13 02:23:51 +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
|
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) {
|
func (r *orderRequest) CancelOrderByClientID(ctx context.Context, clientID string) (cancelOrderResponse, error) {
|
||||||
resp, err := r.
|
resp, err := r.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user