exchanges package - github.com/grupokindynos/obol/services/exchanges - Go Packages

exchanges

package
v0.0.0-...-e9fdc67 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 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 CoinGecko

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

func NewCoinGecko

func NewCoinGecko() *CoinGecko

func (*CoinGecko) GetSimplePriceToBtcAsRate

func (c *CoinGecko) GetSimplePriceToBtcAsRate(asset string) (orders map[string][]models.MarketOrder, err error)

Meant to be used as a provisional way of retrieving fees for coins as their BTC values. The only case it should be used indefinitely is if a listing does not require PolisPay services (a.k.a. Shift and Gift Cards).

type Price

type Price struct {
	Usd decimal.Decimal `json:"usd"`
	Btc decimal.Decimal `json:"btc"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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