client

package
v0.0.30 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(configPath string, dbPath string) (Client, error)

func (Client) GetBalancesFromDate added in v0.0.26

func (c Client) GetBalancesFromDate(from time.Time) (data.Balances, error)

Get balance within range

func (Client) GetFiat

func (c Client) GetFiat() string

func (Client) GetFiatSymbol

func (c Client) GetFiatSymbol() string

func (Client) GetLastBalance

func (c Client) GetLastBalance() data.Balances

GetLastBalance return last balance series

func (Client) GetLastBalanceUpdate

func (c Client) GetLastBalanceUpdate() time.Time

GetLastBalanceUpdate return timestamp of last balance update

func (Client) QueryBalance

func (c Client) QueryBalance(options data.BalanceQueryOptions) (data.Balances, error)

QueryBalance will fetch data from the DB

func (Client) UpdateBalance

func (c Client) UpdateBalance(updateTtlSeconds int64) error

UpdateBalance will update the balance for each wallet if rs exceeds updateTtlSeconds

Jump to

Keyboard shortcuts

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