portfoliowatcher

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PortfolioDataProvider

type PortfolioDataProvider interface {
	GetBalance(ctx context.Context, accountID tinkoffinvest.AccountID) (decimal.Decimal, error)
	GetPortfolio(ctx context.Context, accountID tinkoffinvest.AccountID) (*tinkoffinvest.Portfolio, error)
}

type Watcher

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

func New

func New(interval time.Duration, accountID tinkoffinvest.AccountID, provider PortfolioDataProvider) *Watcher

func (*Watcher) Run

func (w *Watcher) Run(ctx context.Context) error

Directories

Path Synopsis
Package portfoliowatchermocks is a generated GoMock package.
Package portfoliowatchermocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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