Documentation ¶
Index ¶
- Variables
- func Add(exchange string, p pair.CurrencyPair, assetType string, price, volume float64)
- func AlreadyExists(exchange string, p pair.CurrencyPair, assetType string, price, volume float64) bool
- func Append(exchange string, p pair.CurrencyPair, assetType string, price, volume float64)
- type ByPrice
- type ByVolume
- type Item
Constants ¶
This section is empty.
Variables ¶
View Source
var Items []Item
Items var array
Functions ¶
func Add ¶
func Add(exchange string, p pair.CurrencyPair, assetType string, price, volume float64)
Add adds or updates the item stats
func AlreadyExists ¶
func AlreadyExists(exchange string, p pair.CurrencyPair, assetType string, price, volume float64) bool
AlreadyExists checks to see if item info already exists for a specific currency pair and asset type
Types ¶
type Item ¶
type Item struct { Exchange string Pair pair.CurrencyPair AssetType string Price float64 Volume float64 }
Item holds various fields for storing currency pair stats
func SortExchangesByPrice ¶
func SortExchangesByPrice(p pair.CurrencyPair, assetType string, reverse bool) []Item
SortExchangesByPrice sorts item info by volume for a specific currency pair and asset type. Reverse will reverse the order from lowest to highest
func SortExchangesByVolume ¶
func SortExchangesByVolume(p pair.CurrencyPair, assetType string, reverse bool) []Item
SortExchangesByVolume sorts item info by volume for a specific currency pair and asset type. Reverse will reverse the order from lowest to highest
Click to show internal directories.
Click to hide internal directories.