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) CancelOrder

func (*SpotAccountClient) CancelOrdersOnOneSymbol

func (*SpotAccountClient) GetAccountInfo

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

func (*SpotAccountClient) GetAllOrders

func (*SpotAccountClient) GetOpenOrders

func (*SpotAccountClient) GetTradeList

func (*SpotAccountClient) NewOrder

func (*SpotAccountClient) QueryOrder

func (*SpotAccountClient) TestNewOrder

func (s *SpotAccountClient) TestNewOrder(ctx context.Context, param types.NewOrderParam) 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
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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