indexCalculationService

package
v0.0.0-...-3beb7e2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 14, 2022 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MAX_RELATIVE_CAP float64 = 0.3
)

Functions

func CalculateWeights

func CalculateWeights(indexSymbol string, constituents *[]models.CryptoIndexConstituent) error

func GetIndexBasket

func GetIndexBasket(symbolsList []string) ([]models.CryptoIndexConstituent, error)

Get supply and price information for the index constituents

func GetIndexValue

func GetIndexValue(indexSymbol string, currentConstituents []models.CryptoIndexConstituent) float64

func UpdateConstituentsMarketData

func UpdateConstituentsMarketData(indexSymbol string, currentConstituents *[]models.CryptoIndexConstituent) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL