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 (
|
|
|
|
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-05-24 09:40:00 +00:00
|
|
|
type Order = maxapi.Order
|
2022-05-28 08:06:16 +00:00
|
|
|
type Trade = maxapi.Trade
|
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-05-26 10:49:18 +00:00
|
|
|
Client *maxapi.RestClient
|
2022-05-24 09:40:00 +00:00
|
|
|
}
|