diff --git a/pkg/model/quotation.go b/pkg/model/quotation.go index 78cbb0113..62d86a2e3 100644 --- a/pkg/model/quotation.go +++ b/pkg/model/quotation.go @@ -267,7 +267,7 @@ func (datastore *DB) GetAssetPriceUSDCache(asset dia.Asset) (price float64, err return } -// GetSortedQuotations returns quotations for all assets in @assets, sorted by 24h volume +// GetSortedAssetQuotations returns quotations for all assets in @assets, sorted by 24h volume // in descending order. func (datastore *DB) GetSortedAssetQuotations(assets []dia.Asset) ([]AssetQuotation, error) { var quotations []AssetQuotation @@ -343,7 +343,7 @@ func (datastore *DB) GetOldestQuotation(asset dia.Asset) (quotation AssetQuotati // HISTORICAL QUOTES // ------------------------------------------------------------------------------ -// SetHistoricalQuote stores a historical quote for an asset symbol at a specific time into postgres. +// SetHistoricalQuotation stores a historical quote for an asset symbol at a specific time into postgres. func (rdb *RelDB) SetHistoricalQuotation(quotation AssetQuotation) error { queryString := ` INSERT INTO %s (asset_id,price,quote_time,source) diff --git a/pkg/utils/statistics.go b/pkg/utils/statistics.go index 49e045d8f..3e4c110fc 100644 --- a/pkg/utils/statistics.go +++ b/pkg/utils/statistics.go @@ -40,7 +40,7 @@ func ComputeMedian(samples []float64) (median float64) { return } -// vwap returns the volume weighted average price for the slices @prices and @volumes. +// Vwap returns the volume weighted average price for the slices @prices and @volumes. func Vwap(prices []float64, volumes []float64) (float64, error) { //log.Info("prices, volumes: ", prices, volumes) if len(prices) != len(volumes) {