pool

package
v1.3.57 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertPool

func InsertPool(pool Pool) (int, error)

func InsertPools

func InsertPools(pools []Pool) error

func RemovePool

func RemovePool(poolID int) error

func UpdatePool

func UpdatePool(pool Pool) error

Types

type Pool

type Pool struct {
	ID            *int       `json:"id"`
	TargetAssetID *int       `json:"targetAssetId"`
	StrategyID    *int       `json:"strategyId"`
	AccountID     *int       `json:"accountId"`
	Name          string     `json:"name"`
	UUID          string     `json:"uuid"`
	AlternateName string     `json:"alternateName"`
	StartDate     *time.Time `json:"startDate"`
	EndDate       *time.Time `json:"endDate"`
	Description   string     `json:"description"`
	ChainID       *int       `json:"chainId"`
	FrequencyID   *int       `json:"frequencyId"`
	CreatedBy     string     `json:"createdBy"`
	CreatedAt     time.Time  `json:"createdAt"`
	UpdatedBy     string     `json:"updatedBy"`
	UpdatedAt     time.Time  `json:"updatedAt"`
}

func GetPool

func GetPool(poolID int) (*Pool, error)

func GetPools

func GetPools(ids []int) ([]Pool, error)

func GetPoolsByStrategyID added in v1.0.3

func GetPoolsByStrategyID(strategyID *int) ([]Pool, error)

func GetPoolsByUUIDs

func GetPoolsByUUIDs(UUIDList []string) ([]Pool, error)

func GetStartAndEndDateDiffPools

func GetStartAndEndDateDiffPools(diffInDate int) ([]Pool, error)

func GetTopTenStrategies

func GetTopTenStrategies() ([]Pool, error)

Jump to

Keyboard shortcuts

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