spotaccount

package
v0.0.0-...-9ed198c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SpotAccountClient

type SpotAccountClient struct {
	*spotutils.SpotClient
	// contains filtered or unexported fields
}

func NewSpotAccountClient

func NewSpotAccountClient(cfg *SpotAccountClientCfg) (*SpotAccountClient, error)

func (*SpotAccountClient) CreateOrder

func (*SpotAccountClient) GetAccountInfo

func (s *SpotAccountClient) GetAccountInfo(ctx context.Context) (*types.AccountInfo, error)

func (*SpotAccountClient) QueryOrder

func (s *SpotAccountClient) QueryOrder(ctx context.Context, param types.QueryOrderParam) (*types.Order, error)

func (*SpotAccountClient) Transfer

func (s *SpotAccountClient) Transfer(ctx context.Context, param types.TransferParam) error

type SpotAccountClientCfg

type SpotAccountClientCfg struct {
	Debug bool
	// Logger
	Logger *slog.Logger

	BaseURL    string `validate:"required"`
	Key        string `validate:"required"`
	Secret     string `validate:"required"`
	RecvWindow int
	HTTPClient *http.Client
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL