pricestorage

package
v0.0.0-...-db328d6 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartHistorySaveLoop

func StartHistorySaveLoop()

Types

type HistoryRecord

type HistoryRecord struct {
	Time    time.Time
	Manager string
	Prices  map[string]float64
}

type PriceStorage

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

func New

func New(managerName string) *PriceStorage

func (*PriceStorage) CacheFile

func (c *PriceStorage) CacheFile() string

func (*PriceStorage) LastFetch

func (c *PriceStorage) LastFetch() time.Time

func (*PriceStorage) Load

func (c *PriceStorage) Load() error

func (*PriceStorage) Price

func (c *PriceStorage) Price(assetId string) (float64, bool)

func (*PriceStorage) Save

func (c *PriceStorage) Save() error

func (*PriceStorage) Update

func (c *PriceStorage) Update(prices map[string]float64)

Jump to

Keyboard shortcuts

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