xnav

package
v1.33.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: AGPL-3.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const ID = "xnav"

Variables

Functions

This section is empty.

Types

type State

type State struct {
	Since int64 `json:"since"`
}

func (*State) IsOver24Hours

func (s *State) IsOver24Hours() bool

func (*State) PlainText

func (s *State) PlainText() string

func (*State) Reset

func (s *State) Reset()

func (*State) SlackAttachment

func (s *State) SlackAttachment() slack.Attachment

type Strategy

type Strategy struct {
	Notifiability *bbgo.Notifiability
	*bbgo.Graceful
	*bbgo.Persistence
	*bbgo.Environment

	Interval      types.Interval `json:"interval"`
	ReportOnStart bool           `json:"reportOnStart"`
	IgnoreDusts   bool           `json:"ignoreDusts"`
	// contains filtered or unexported fields
}

func (*Strategy) CrossRun

func (s *Strategy) CrossRun(ctx context.Context, _ bbgo.OrderExecutionRouter, sessions map[string]*bbgo.ExchangeSession) error

func (*Strategy) CrossSubscribe

func (s *Strategy) CrossSubscribe(sessions map[string]*bbgo.ExchangeSession)

func (*Strategy) ID

func (s *Strategy) ID() string

func (*Strategy) LoadState

func (s *Strategy) LoadState() error

func (*Strategy) SaveState

func (s *Strategy) SaveState()

Jump to

Keyboard shortcuts

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