mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 23:05:15 +00:00
fix(ftx/rest): use Id() to make rest requests
This commit is contained in:
parent
7fd3375741
commit
9226d086b3
|
@ -68,7 +68,7 @@ func (r *orderRequest) CancelOrderByOrderID(ctx context.Context, orderID uint64)
|
||||||
resp, err := r.
|
resp, err := r.
|
||||||
Method("DELETE").
|
Method("DELETE").
|
||||||
ReferenceURL("api/orders").
|
ReferenceURL("api/orders").
|
||||||
Payloads(map[string]interface{}{"order_id": orderID}).
|
Id(strconv.FormatUint(orderID, 10)).
|
||||||
DoAuthenticatedRequest(ctx)
|
DoAuthenticatedRequest(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return cancelOrderResponse{}, err
|
return cancelOrderResponse{}, err
|
||||||
|
@ -85,7 +85,7 @@ func (r *orderRequest) CancelOrderByClientID(ctx context.Context, clientID strin
|
||||||
resp, err := r.
|
resp, err := r.
|
||||||
Method("DELETE").
|
Method("DELETE").
|
||||||
ReferenceURL("api/orders/by_client_id").
|
ReferenceURL("api/orders/by_client_id").
|
||||||
Payloads(map[string]interface{}{"client_order_id": clientID}).
|
Id(clientID).
|
||||||
DoAuthenticatedRequest(ctx)
|
DoAuthenticatedRequest(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return cancelOrderResponse{}, err
|
return cancelOrderResponse{}, err
|
||||||
|
|
Loading…
Reference in New Issue
Block a user