market

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KlinePublisher

type KlinePublisher interface {
	Publish() chan struct{}
	Subscribe() kline.Subscriber
}

type Service

type Service struct {
	Logger          *zap.Logger
	Strategy        Strategy
	TickerPublisher TickerPublisher
	KlinePublisher  KlinePublisher
}

func (*Service) Serv

func (s *Service) Serv(ctx context.Context) error

type Strategy

type Strategy interface {
	OnTickerUpdate(*indicator.Ticker) bool
	OnKlineUpdate([]*indicator.Kline)
	OnNotice()
}

type TickerPublisher

type TickerPublisher interface {
	Publish() error
	Subscribe() ticker.Subscriber
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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