Documentation ¶
Index ¶
- Variables
- func Add(exchange string, p currency.Pair, assetType string, price, volume float64)
- func AlreadyExists(exchange string, p currency.Pair, assetType string, price, volume float64) bool
- func Append(exchange string, p currency.Pair, 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 AlreadyExists ¶
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 currency.Pair AssetType string Price float64 Volume float64 }
Item holds various fields for storing currency pair stats
func SortExchangesByPrice ¶
SortExchangesByPrice 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.