mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-14 19:13:52 +00:00
24 lines
552 B
Go
24 lines
552 B
Go
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"
|
|
|
|
maxapi "github.com/c9s/bbgo/pkg/exchange/max/maxapi"
|
|
)
|
|
|
|
// create type alias
|
|
type WalletType = maxapi.WalletType
|
|
type OrderType = maxapi.OrderType
|
|
|
|
type Order = maxapi.Order
|
|
type Account = maxapi.Account
|
|
|
|
// OrderService manages the Order endpoint.
|
|
type OrderService struct {
|
|
Client requestgen.AuthenticatedAPIClient
|
|
}
|