oracle

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	client *mixin.Client,
	markets core.MarketStore,
	feeders core.FeederStore,
	wallets core.WalletStore,
	feeds []*core.FeedConfig,
	system *core.System,
	config *Config,
) worker.Worker

Types

type Config

type Config struct {
	MaxInterval          time.Duration   `json:"max_interval"`
	PriceChangeThreshold decimal.Decimal `json:"price_change_threshold"`
}

type Oracle

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

func (*Oracle) OnMessage

func (m *Oracle) OnMessage(ctx context.Context, msg *mixin.MessageView, userID string) error

func (*Oracle) Run

func (m *Oracle) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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