Documentation ¶
Index ¶
- Variables
- func Add(exchange string, p currency.Pair, a asset.Item, price, volume float64) error
- func AlreadyExists(exchange string, p currency.Pair, assetType asset.Item, price, volume float64) bool
- func Append(exchange string, p currency.Pair, a asset.Item, price, volume float64)
- type ByPrice
- type ByVolume
- type Item
Constants ¶
This section is empty.
Variables ¶
View Source
var Items []Item
Items var array
Functions ¶
Types ¶
type Item ¶
type Item struct { Exchange string Pair currency.Pair AssetType asset.Item 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.