Documentation ¶
Index ¶
- Variables
- func CalculateWeights(indexSymbol string, constituents *[]models.CryptoIndexConstituent) error
- func GetIndexBasket(constituentsAddresses []string) ([]models.CryptoIndexConstituent, error)
- func GetIndexValue(indexSymbol string, currentConstituents []models.CryptoIndexConstituent) float64
- func UpdateConstituentsMarketData(index string, currentConstituents *[]models.CryptoIndexConstituent) error
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(constituentsAddresses []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(index string, currentConstituents *[]models.CryptoIndexConstituent) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.