bbgo_origin/pkg/exchange/max/maxapi/v3/order.go

24 lines
552 B
Go
Raw Normal View History

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 (
"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 {
Client requestgen.AuthenticatedAPIClient
2022-05-24 09:40:00 +00:00
}