2022-05-24 09:40:00 +00:00
|
|
|
package v3
|
|
|
|
|
|
|
|
//go:generate -command GetRequest requestgen -method GET
|
|
|
|
//go:generate -command PostRequest requestgen -method POST
|
|
|
|
//go:generate -command DeleteRequest requestgen -method DELETE
|
|
|
|
|
|
|
|
import (
|
2022-08-10 07:22:04 +00:00
|
|
|
"github.com/c9s/requestgen"
|
|
|
|
|
2022-05-24 09:40:00 +00:00
|
|
|
maxapi "github.com/c9s/bbgo/pkg/exchange/max/maxapi"
|
|
|
|
)
|
|
|
|
|
2022-05-28 08:06:16 +00:00
|
|
|
// create type alias
|
2022-05-26 11:52:38 +00:00
|
|
|
type WalletType = maxapi.WalletType
|
2022-08-09 10:53:17 +00:00
|
|
|
type OrderType = maxapi.OrderType
|
|
|
|
|
2022-05-24 09:40:00 +00:00
|
|
|
type Order = maxapi.Order
|
2022-05-28 08:47:41 +00:00
|
|
|
type Account = maxapi.Account
|
2022-05-24 09:40:00 +00:00
|
|
|
|
|
|
|
// OrderService manages the Order endpoint.
|
|
|
|
type OrderService struct {
|
2022-08-10 07:22:04 +00:00
|
|
|
Client requestgen.AuthenticatedAPIClient
|
2022-05-24 09:40:00 +00:00
|
|
|
}
|