wallet

package
v0.0.0-...-795c9cd Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SpotWalletClient

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

func NewSpotWalletClient

func NewSpotWalletClient(cfg *SpotWalletClientCfg) (*SpotWalletClient, error)

func (*SpotWalletClient) GetAllCoinsInfo

func (s *SpotWalletClient) GetAllCoinsInfo(ctx context.Context) ([]*types.CoinInfo, error)

func (*SpotWalletClient) GetApiRestrictions

func (s *SpotWalletClient) GetApiRestrictions(ctx context.Context) (*types.ApiRestrictions, error)

func (*SpotWalletClient) GetAssetDetail

func (s *SpotWalletClient) GetAssetDetail(ctx context.Context, param types.GetAssetDetailParam) (map[string]*types.AssetDetail, error)

func (*SpotWalletClient) GetFundingAsset

func (s *SpotWalletClient) GetFundingAsset(ctx context.Context, param types.GetFundingAssetParam) ([]*types.FundingAsset, error)

func (*SpotWalletClient) GetSystemStatus

func (s *SpotWalletClient) GetSystemStatus(ctx context.Context) (*types.SystemStatus, error)

func (*SpotWalletClient) GetTradeFee

func (s *SpotWalletClient) GetTradeFee(ctx context.Context, param types.GetTradeFeeParam) ([]*types.TradeFee, error)

func (*SpotWalletClient) GetUniversalTransferHistory

func (*SpotWalletClient) GetUserAsset

func (s *SpotWalletClient) GetUserAsset(ctx context.Context, param types.GetUserAssetParam) ([]*types.UserAsset, error)

func (*SpotWalletClient) UniversalTransfer

type SpotWalletClientCfg

type SpotWalletClientCfg struct {
	Debug bool
	// Logger
	Logger *log.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