providers

package
v0.0.0-...-8276e37 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: NCSA Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bitpanda

func Bitpanda(c *resty.Client) (p *bitpanda.Bitpanda)

Bitpanda returns an initialized provider implementation.

func CoinGate

func CoinGate(c *resty.Client) (p *coingate.CoinGate)

CoinGate returns an initialized provider implementation.

func Coingecko

func Coingecko(c *resty.Client) (p *coingecko.Coingecko)

Coingecko returns an initialized provider implementation.

func LiveCoinWatch

func LiveCoinWatch(c *resty.Client) (p *livecoinwatch.LiveCoinWatch)

LiveCoinWatch returns an initialized provider implementation.

Types

type Provider

type Provider interface {
	SetMarket(market string) (err error)
	FetchRate(coin string, fiat string) (rate types.ExchangeRate, err error)
	FetchRateSynced(coin string, fiat string, rates *types.ExchangeRates, wg *sync.WaitGroup)
}

Provider is the common interface used for every specific provider.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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