rest

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SpotClient

type SpotClient struct {
	// contains filtered or unexported fields
}

func NewSpotClient

func NewSpotClient(cfg *SpotClientCfg) (*SpotClient, error)

func (*SpotClient) CancelOrder

func (scli *SpotClient) CancelOrder(ctx context.Context, param types.CancelOrderParams) (*types.CancelOrderResp, error)

func (*SpotClient) CancelOrders

func (scli *SpotClient) CancelOrders(ctx context.Context, param types.CancelOrdersParam) (*types.CancelOrdersResp, error)

func (*SpotClient) GetAccountInfo

func (scli *SpotClient) GetAccountInfo(ctx context.Context) (*types.GetAccountInfoResponse, error)

func (*SpotClient) GetAccountValuation

func (scli *SpotClient) GetAccountValuation(ctx context.Context, param types.GetAccountValuationParam) (*types.GetAccountValuationResp, error)

func (*SpotClient) GetAllMarketTickers

func (scli *SpotClient) GetAllMarketTickers(ctx context.Context) (*types.GetMarketTickersResp, error)

func (*SpotClient) GetKline

func (scli *SpotClient) GetKline(ctx context.Context, param types.GetKlineParam) (*types.GetKlineResp, error)

func (*SpotClient) GetMarketDepth

func (scli *SpotClient) GetMarketDepth(ctx context.Context, param types.GetMarketDepthParam) (*types.GetMarketDepthResp, error)

func (*SpotClient) GetMergedMarketTicker

func (scli *SpotClient) GetMergedMarketTicker(ctx context.Context, param types.GetMergedMarketTickerParam) (*types.GetMergedMarketTickerResp, error)

func (*SpotClient) GetOpenOrders

func (scli *SpotClient) GetOpenOrders(ctx context.Context, param types.GetOpenOrdersParam) (*types.GetOpenOrdersResp, error)

func (*SpotClient) GetSymbolInfo

func (scli *SpotClient) GetSymbolInfo(ctx context.Context) (*types.GetSymbolInfoResp, error)

func (*SpotClient) GetSymbols

func (scli *SpotClient) GetSymbols(ctx context.Context, param types.GetSymbolsParam) (*types.GetSymbolsResp, error)

func (*SpotClient) NewOrder

func (scli *SpotClient) NewOrder(ctx context.Context, param types.NewOrderParam) (*types.NewOrderResp, error)

func (*SpotClient) SearchMatchResults

func (scli *SpotClient) SearchMatchResults(ctx context.Context, param types.SearchMatchResultsParam) (*types.SearchMatchResultsResp, error)

type SpotClientCfg

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

	BaseURL string `validate:"required"`
	Key     string
	Secret  string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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