gethlylemarketdata

package
v2.0.0-alpha.17 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMinAndMaxDatesFromGethMarketByAssetID

func GetMinAndMaxDatesFromGethMarketByAssetID(dbConnPgx utils.PgxIface, assetID, marketDataTypeID *int) (*time.Time, *time.Time, error)

func GetTotalGethMarketDataCount

func GetTotalGethMarketDataCount(dbConnPgx utils.PgxIface) (*int, error)

func InsertGethMarketData

func InsertGethMarketData(dbConnPgx utils.PgxIface, marketData *GethMarketData) (int, error)

func InsertGethMarketDataList

func InsertGethMarketDataList(dbConnPgx utils.PgxIface, marketDataList []GethMarketData) error

func RemoveGethMarketData

func RemoveGethMarketData(dbConnPgx utils.PgxIface, marketDataID *int) error

func RemoveGethMarketDataByMarketDataTypeIDFromBaseAssetAsOfDate

func RemoveGethMarketDataByMarketDataTypeIDFromBaseAssetAsOfDate(dbConnPgx utils.PgxIface, assetID, marketDataTypeID *int, asOfDate *time.Time) error

func RemoveGethMarketDataByMarketDataTypeIDFromBaseAssetBetweenDates

func RemoveGethMarketDataByMarketDataTypeIDFromBaseAssetBetweenDates(dbConnPgx utils.PgxIface, assetID, marketDataTypeID *int, startDate, endDate *time.Time) error

func RemoveGethMarketDataFromBaseAssetBetweenDates

func RemoveGethMarketDataFromBaseAssetBetweenDates(dbConnPgx utils.PgxIface, assetID *int, startDate, endDate *time.Time) error

func UpdateGethMarketData

func UpdateGethMarketData(dbConnPgx utils.PgxIface, marketData *GethMarketData) error

Types

type GethMarketData

type GethMarketData struct {
	ID                *int              `json:"id" db:"id"`                                //1
	UUID              string            `json:"uuid" db:"uuid"`                            //2
	Name              string            `json:"name" db:"name"`                            //3
	AlternateName     string            `json:"alternateName" db:"alternate_name"`         //4
	StartDate         time.Time         `json:"startDate" db:"start_date"`                 //5
	EndDate           time.Time         `json:"endDate" db:"end_date"`                     //6
	AssetID           *int              `json:"assetId" db:"asset_id"`                     //7
	OpenUSD           *decimal.Decimal  `json:"openUsd" db:"open_usd"`                     //8
	CloseUSD          *decimal.Decimal  `json:"closeUsd" db:"close_usd"`                   //9
	HighUSD           *decimal.Decimal  `json:"highUsd" db:"high_usd"`                     //10
	LowUSD            *decimal.Decimal  `json:"lowUsd" db:"low_usd"`                       //11
	PriceUSD          *decimal.Decimal  `json:"priceUsd" db:"price_usd"`                   //12
	VolumeUSD         *decimal.Decimal  `json:"volumeUsd" db:"volume_usd"`                 //13
	MarketCapUSD      *decimal.Decimal  `json:"marketCapUsd" db:"market_cap_usd"`          //14
	Ticker            string            `json:"ticker" db:"ticker"`                        //15
	Description       string            `json:"description" db:"description"`              //16
	IntervalID        *int              `json:"intervalId" db:"interval_id"`               //17
	MarketDataTypeID  *int              `json:"marketDataTypeId" db:"market_data_type_id"` //18
	SourceID          *int              `json:"sourceId" db:"source_id"`                   //19
	TotalSupply       *decimal.Decimal  `json:"totalSupply" db:"total_supply"`             //20
	MaxSupply         *decimal.Decimal  `json:"maxSupply" db:"max_supply"`                 //21
	CirculatingSupply *decimal.Decimal  `json:"circulatingSupply" db:"circulating_supply"` //22
	Sparkline7d       []decimal.Decimal `json:"sparkline7d" db:"sparkline_7d"`             //23
	CreatedBy         string            `json:"createdBy" db:"created_by"`                 //24
	CreatedAt         time.Time         `json:"createdAt" db:"created_at"`                 //25
	UpdatedBy         string            `json:"updatedBy" db:"updated_by"`                 //26
	UpdatedAt         time.Time         `json:"updatedAt" db:"updated_at"`                 //27
	GethProcessJobID  *int              `json:"gethProcessJobId" db:"geth_process_job_id"` //28
}

MarketData

func GetGethMarketData

func GetGethMarketData(dbConnPgx utils.PgxIface, marketDataID *int) (*GethMarketData, error)

func GetGethMarketDataList

func GetGethMarketDataList(dbConnPgx utils.PgxIface, ids []int) ([]GethMarketData, error)

func GetGethMarketDataListByPagination

func GetGethMarketDataListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, _filters []string) ([]GethMarketData, error)

for refinedev

func GetGethMarketDataListByUUIDs

func GetGethMarketDataListByUUIDs(dbConnPgx utils.PgxIface, UUIDList []string) ([]GethMarketData, error)

func GetStartAndEndDateDiffGethMarketDataList

func GetStartAndEndDateDiffGethMarketDataList(dbConnPgx utils.PgxIface, diffInDate *int) ([]GethMarketData, error)

Jump to

Keyboard shortcuts

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