stats

package
v0.0.0-...-77ca9cc Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExchInfo []ExchangeInfo

Functions

func AddExchangeInfo

func AddExchangeInfo(exchange, crypto, fiat string, price, volume float64)

func AppendExchangeInfo

func AppendExchangeInfo(exchange, crypto, fiat string, price, volume float64)

func ExchangeInfoAlreadyExists

func ExchangeInfoAlreadyExists(exchange, crypto, fiat string, price, volume float64) bool

Types

type ByPrice

type ByPrice []ExchangeInfo

func (ByPrice) Len

func (this ByPrice) Len() int

func (ByPrice) Less

func (this ByPrice) Less(i, j int) bool

func (ByPrice) Swap

func (this ByPrice) Swap(i, j int)

type ByVolume

type ByVolume []ExchangeInfo

func (ByVolume) Len

func (this ByVolume) Len() int

func (ByVolume) Less

func (this ByVolume) Less(i, j int) bool

func (ByVolume) Swap

func (this ByVolume) Swap(i, j int)

type ExchangeInfo

type ExchangeInfo struct {
	Exchange      string
	FirstCurrency string
	FiatCurrency  string
	Price         float64
	Volume        float64
}

func SortExchangesByPrice

func SortExchangesByPrice(crypto, fiat string, reverse bool) []ExchangeInfo

func SortExchangesByVolume

func SortExchangesByVolume(crypto, fiat string, reverse bool) []ExchangeInfo

Jump to

Keyboard shortcuts

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