account

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OptionsAccountClient

type OptionsAccountClient struct {
	*eoutils.OptionsClient
	// contains filtered or unexported fields
}

func NewOptionsAccountClient

func NewOptionsAccountClient(cfg *eoutils.OptionsClientCfg) (*OptionsAccountClient, error)

func (*OptionsAccountClient) CancelAllOrdersBySymbol

func (o *OptionsAccountClient) CancelAllOrdersBySymbol(ctx context.Context, param types.CancelAllOrdersParam) error

func (*OptionsAccountClient) CancelAllOrdersByUnderlying

func (o *OptionsAccountClient) CancelAllOrdersByUnderlying(ctx context.Context, param types.CancelAllOrdersByUnderlyingParam) error

func (*OptionsAccountClient) CancelOrder

func (o *OptionsAccountClient) CancelOrder(ctx context.Context, param types.CancelOrderParam) (*types.Order, error)

func (*OptionsAccountClient) GetAccountInfo

func (o *OptionsAccountClient) GetAccountInfo(ctx context.Context) (*types.AccountInfo, error)

func (*OptionsAccountClient) GetExerciseRecord

func (o *OptionsAccountClient) GetExerciseRecord(ctx context.Context, param types.GetExerciseRecordParam) ([]*types.UserTrade, error)

func (*OptionsAccountClient) GetFundingFlow

func (*OptionsAccountClient) GetOpenOrders

func (*OptionsAccountClient) GetOrderHistory

func (o *OptionsAccountClient) GetOrderHistory(ctx context.Context, param types.GetOrderHistoryParam) ([]*types.Order, error)

func (*OptionsAccountClient) GetPositionInfo

func (o *OptionsAccountClient) GetPositionInfo(ctx context.Context, param types.GetPositionInfoParam) ([]*types.Position, error)

func (*OptionsAccountClient) GetSingleOrder

func (o *OptionsAccountClient) GetSingleOrder(ctx context.Context, param types.GetSingleOrderParam) (*types.Order, error)

func (*OptionsAccountClient) GetTradeList

func (o *OptionsAccountClient) GetTradeList(ctx context.Context, param types.GetTradeListParam) ([]*types.UserTrade, error)

func (*OptionsAccountClient) NewOrder

type OptionsAccountClientCfg

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