gethlylemarketdata

package
v1.3.45 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsertMarketData

func InsertMarketData(marketData MarketData) (int, error)

func InsertMarketDataList

func InsertMarketDataList(marketDataList []MarketData) error

func InsertMarketDataListManual

func InsertMarketDataListManual(marketDataList []MarketData) error

func RemoveMarketData

func RemoveMarketData(marketDataID int) error

func RemoveMarketDataByMarketDataTypeIDFromBaseAssetBetweenDates added in v1.3.36

func RemoveMarketDataByMarketDataTypeIDFromBaseAssetBetweenDates(assetID, marketDataTypeID *int, startDate, endDate *time.Time) error

func RemoveMarketDataFromBaseAssetBetweenDates

func RemoveMarketDataFromBaseAssetBetweenDates(assetID *int, startDate, endDate *time.Time) error

func UpdateMarketData

func UpdateMarketData(marketData MarketData) error

Types

type MarketData

type MarketData struct {
	ID                *int              `json:"id"`
	UUID              string            `json:"uuid"`
	Name              string            `json:"name"`
	AlternateName     string            `json:"alternateName"`
	StartDate         time.Time         `json:"startDate"`
	EndDate           time.Time         `json:"endDate"`
	AssetID           *int              `json:"assetId"`
	OpenUSD           *decimal.Decimal  `json:"openUsd"`
	CloseUSD          *decimal.Decimal  `json:"closeUsd"`
	HighUSD           *decimal.Decimal  `json:"highUsd"`
	LowUSD            *decimal.Decimal  `json:"lowUsd"`
	PriceUSD          *decimal.Decimal  `json:"priceUsd"`
	VolumeUSD         *decimal.Decimal  `json:"volumeUsd"`
	MarketCapUSD      *decimal.Decimal  `json:"marketCapUsd"`
	Ticker            string            `json:"ticker"`
	Description       string            `json:"description"`
	IntervalID        *int              `json:"intervalId"`
	MarketDataTypeID  *int              `json:"marketDataTypeId"`
	SourceID          *int              `json:"sourceId"`
	TotalSupply       *decimal.Decimal  `json:"totalSupply"`
	MaxSupply         *decimal.Decimal  `json:"maxSupply"`
	CirculatingSupply *decimal.Decimal  `json:"circulatingSupply"`
	Sparkline7d       []decimal.Decimal `json:"sparkline7d"`
	CreatedBy         string            `json:"createdBy"`
	CreatedAt         time.Time         `json:"createdAt"`
	UpdatedBy         string            `json:"updatedBy"`
	UpdatedAt         time.Time         `json:"updatedAt"`
	GethProcessJobID  *int              `json:"gethProcessJobId"`
}

MarketData

func GetMarketData

func GetMarketData(marketDataID int) (*MarketData, error)

func GetMarketDataList

func GetMarketDataList(ids []int) ([]MarketData, error)

func GetMarketDataListByUUIDs

func GetMarketDataListByUUIDs(UUIDList []string) ([]MarketData, error)

func GetStartAndEndDateDiffMarketDataList

func GetStartAndEndDateDiffMarketDataList(diffInDate int) ([]MarketData, error)

Jump to

Keyboard shortcuts

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