account

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 UsdMFuturesAccountClient

type UsdMFuturesAccountClient struct {
	*umutils.USDMarginedClient
	// contains filtered or unexported fields
}

func (*UsdMFuturesAccountClient) CancelAllOpenOrders

func (u *UsdMFuturesAccountClient) CancelAllOpenOrders(ctx context.Context, param types.CancelAllOpenOrdersParam) error

func (*UsdMFuturesAccountClient) CancelOrder

func (*UsdMFuturesAccountClient) ChangeInitialLeverage

func (*UsdMFuturesAccountClient) ChangeMarginType

func (u *UsdMFuturesAccountClient) ChangeMarginType(ctx context.Context, param types.ChangeMarginTypeParam) error

func (*UsdMFuturesAccountClient) ChangeMultiAssetsMode

func (*UsdMFuturesAccountClient) ChangePositionMode

func (*UsdMFuturesAccountClient) GetAccountInformation

func (u *UsdMFuturesAccountClient) GetAccountInformation(ctx context.Context) (*types.GetAccountInfoResp, error)

func (*UsdMFuturesAccountClient) GetAccountTradeList

func (*UsdMFuturesAccountClient) GetAllOrders

func (*UsdMFuturesAccountClient) GetBalance

func (*UsdMFuturesAccountClient) GetMultiAssetsMode

func (*UsdMFuturesAccountClient) GetPositionInformation

func (u *UsdMFuturesAccountClient) GetPositionInformation(ctx context.Context, param types.GetPositionParam) (*types.GetPositionResp, error)

func (*UsdMFuturesAccountClient) GetPositionMode

func (*UsdMFuturesAccountClient) ModifyIsolatedPositionMargin

func (*UsdMFuturesAccountClient) NewOrder

func (*UsdMFuturesAccountClient) QueryAllOpenOrders

func (*UsdMFuturesAccountClient) QueryOpenOrder

func (u *UsdMFuturesAccountClient) QueryOpenOrder(ctx context.Context, param types.GetOrderParam) (*types.OrderResp, error)

func (*UsdMFuturesAccountClient) QueryOrder

type UsdMFuturesAccountClientCfg

type UsdMFuturesAccountClientCfg 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