price

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiSourceProvider

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

func (MultiSourceProvider) GetPrices

func (p MultiSourceProvider) GetPrices(tokens []string, fiat string) (data.TokenPrices, error)

func (MultiSourceProvider) Name

func (p MultiSourceProvider) Name() string

type Provider

type Provider interface {
	GetPrices(tokens []string, fiat string) (data.TokenPrices, error)
	Name() string
}

func New

func New(builtins []config.TokenConfig, db data.Db, httpClient *http.Client) Provider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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