bbgo/pkg/exchange/max/maxapi/v3/get_order_request.go

20 lines
595 B
Go
Raw Permalink Normal View History

package v3
//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 *Client) NewGetOrderRequest() *GetOrderRequest {
return &GetOrderRequest{client: s.Client}
}
//go:generate GetRequest -url "/api/v3/order" -type GetOrderRequest -responseType .Order
type GetOrderRequest struct {
client requestgen.AuthenticatedAPIClient
id *uint64 `param:"id,omitempty"`
clientOrderID *string `param:"client_oid,omitempty"`
}