mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
fix(ftx): use ID()
This commit is contained in:
parent
9226d086b3
commit
239d55ce33
|
@ -95,7 +95,7 @@ func (r *restRequest) buildURL() (*url.URL, error) {
|
||||||
return r.baseURL.ResolveReference(refURL), nil
|
return r.baseURL.ResolveReference(refURL), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *restRequest) Id(id string) *restRequest {
|
func (r *restRequest) ID(id string) *restRequest {
|
||||||
r.id = id
|
r.id = id
|
||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
|
@ -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").
|
||||||
Id(strconv.FormatUint(orderID, 10)).
|
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").
|
||||||
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