deposit2transfer

package
v1.62.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: AGPL-3.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const ID = "deposit2transfer"

Variables

This section is empty.

Functions

This section is empty.

Types

type Strategy

type Strategy struct {
	Environment *bbgo.Environment

	Assets []string `json:"assets"`

	Interval      types.Duration `json:"interval"`
	TransferDelay types.Duration `json:"transferDelay"`

	IgnoreDust  bool                        `json:"ignoreDust"`
	DustAmounts map[string]fixedpoint.Value `json:"dustAmounts"`

	AutoRepay bool `json:"autoRepay"`

	SlackAlert *slackalert.SlackAlert `json:"slackAlert"`
	// contains filtered or unexported fields
}

func (*Strategy) Defaults

func (s *Strategy) Defaults() error

func (*Strategy) ID

func (s *Strategy) ID() string

func (*Strategy) Initialize added in v1.61.0

func (s *Strategy) Initialize() error

func (*Strategy) InstanceID

func (s *Strategy) InstanceID() string

func (*Strategy) Run

func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, session *bbgo.ExchangeSession) error

func (*Strategy) Subscribe

func (s *Strategy) Subscribe(session *bbgo.ExchangeSession)

func (*Strategy) Validate

func (s *Strategy) Validate() error

Jump to

Keyboard shortcuts

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