strategy

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SellToken

func SellToken(ctx context.Context, svcCtx *svc.ServiceContext, strategyRecord *ent.Strategy, title string, uiSellAmount, minSellPrice *decimal.Decimal, exit bool) (ent.Order, error)

Types

type GridStrategy

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

func NewGridStrategy

func NewGridStrategy(svcCtx *svc.ServiceContext, s *ent.Strategy) *GridStrategy

func (*GridStrategy) ID

func (s *GridStrategy) ID() string

func (*GridStrategy) OnTick

func (s *GridStrategy) OnTick(ctx context.Context, ohlcs []charts.Ohlc) error

func (*GridStrategy) TokenAddress

func (s *GridStrategy) TokenAddress() string

Jump to

Keyboard shortcuts

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