state

package
v0.0.0-...-a129c9c Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

type State struct {
	PriceReads          chan types.ReadPriceOp
	PriceWrites         chan types.WritePriceOp
	PositionsInfoReads  chan types.ReadPositionsInfo
	PositionsInfoWrites chan types.WritePositionsInfo
	// contains filtered or unexported fields
}

func New

func New(cfg config.Config, notif notification.Notification) *State

func (*State) ReadLatestPriceForMarket

func (s *State) ReadLatestPriceForMarket(market string) (float64, error)

func (*State) RunPositionsInfo

func (s *State) RunPositionsInfo()

func (*State) RunStateLatestPrices

func (s *State) RunStateLatestPrices()

Jump to

Keyboard shortcuts

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