gecko

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Coin

type Coin struct {
	Symbol string `db:"symbol"`
	CoinId string `db:"coin_id"`
	Name   string `db:"name"`
}

type CoinList

type CoinList struct {
	Coins []Coin
}

func (CoinList) GetTokens

func (cl CoinList) GetTokens() []string

type Provider

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

func New

func New(builtins []config.TokenConfig, db data.Db) Provider

func (Provider) GetPrices

func (cg Provider) GetPrices(tokens []string, fiat string) (data.TokenPrices, error)

func (Provider) Name

func (cg Provider) Name() string

Jump to

Keyboard shortcuts

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