Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SimplePriceSolver ¶
type SimplePriceSolver struct {
// contains filtered or unexported fields
}
SimplePriceSolver implements a map-structure-based price index
func NewSimplePriceResolver ¶
func NewSimplePriceResolver(markets types.MarketMap) *SimplePriceSolver
func (*SimplePriceSolver) ResolvePrice ¶
func (m *SimplePriceSolver) ResolvePrice(asset string, preferredFiats ...string) (fixedpoint.Value, bool)
func (*SimplePriceSolver) Update ¶
func (m *SimplePriceSolver) Update(symbol string, price fixedpoint.Value)
func (*SimplePriceSolver) UpdateFromTrade ¶
func (m *SimplePriceSolver) UpdateFromTrade(trade types.Trade)
Click to show internal directories.
Click to hide internal directories.