qbtrade/pkg/exchange/max/maxapi/cancel_order_request.go

20 lines
625 B
Go
Raw Permalink Normal View History

2024-06-27 14:42:38 +00:00
package max
//go:generate -command GetRequest requestgen -method GET
//go:generate -command PostRequest requestgen -method POST
//go:generate -command DeleteRequest requestgen -method DELETE
import "github.com/c9s/requestgen"
func (s *OrderService) NewCancelOrderRequest() *CancelOrderRequest {
return &CancelOrderRequest{client: s.client}
}
//go:generate PostRequest -url "/api/v2/order/delete" -type CancelOrderRequest -responseType .Order
type CancelOrderRequest struct {
client requestgen.AuthenticatedAPIClient
id *uint64 `param:"id,omitempty"`
clientOrderID *string `param:"client_oid,omitempty"`
}