exchangerate

package
v0.0.1-alpha-7 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

Provider struct representing the ExchangeRate provider client. Used for currency pairs (e.g HBAR/ETH)

func NewProvider

func NewProvider(coin string, currency string) *Provider

NewProvider creates new instance of the Exchange rate provider client

func (Provider) GetEthVsHbarRate

func (erp Provider) GetEthVsHbarRate() (float64, error)

GetEthVsHbarRate retrieves the current ETH/HBAR rate from the 3rd party API

Jump to

Keyboard shortcuts

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