Documentation ¶
Index ¶
- func GetMinAndMaxDatesFromGethMarketByAssetID(dbConnPgx utils.PgxIface, assetID, marketDataTypeID *int) (*time.Time, *time.Time, error)
- func GetTotalGethMarketDataCount(dbConnPgx utils.PgxIface) (*int, error)
- func InsertGethMarketData(dbConnPgx utils.PgxIface, marketData *GethMarketData) (int, error)
- func InsertGethMarketDataList(dbConnPgx utils.PgxIface, marketDataList []GethMarketData) error
- func RemoveGethMarketData(dbConnPgx utils.PgxIface, marketDataID *int) error
- func RemoveGethMarketDataByMarketDataTypeIDFromBaseAssetAsOfDate(dbConnPgx utils.PgxIface, assetID, marketDataTypeID *int, asOfDate *time.Time) error
- func RemoveGethMarketDataByMarketDataTypeIDFromBaseAssetBetweenDates(dbConnPgx utils.PgxIface, assetID, marketDataTypeID *int, ...) error
- func RemoveGethMarketDataFromBaseAssetBetweenDates(dbConnPgx utils.PgxIface, assetID *int, startDate, endDate *time.Time) error
- func UpdateGethMarketData(dbConnPgx utils.PgxIface, marketData *GethMarketData) error
- type GethMarketData
- func GetGethMarketData(dbConnPgx utils.PgxIface, marketDataID *int) (*GethMarketData, error)
- func GetGethMarketDataByStartDateAndMarketDataTypeID(dbConnPgx utils.PgxIface, startDate *time.Time, marketDataTypeID *int) (*GethMarketData, error)
- func GetGethMarketDataList(dbConnPgx utils.PgxIface, ids []int) ([]GethMarketData, error)
- func GetGethMarketDataListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, ...) ([]GethMarketData, error)
- func GetGethMarketDataListByUUIDs(dbConnPgx utils.PgxIface, UUIDList []string) ([]GethMarketData, error)
- func GetStartAndEndDateDiffGethMarketDataList(dbConnPgx utils.PgxIface, diffInDate *int) ([]GethMarketData, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertGethMarketData ¶
func InsertGethMarketData(dbConnPgx utils.PgxIface, marketData *GethMarketData) (int, error)
func InsertGethMarketDataList ¶
func InsertGethMarketDataList(dbConnPgx utils.PgxIface, marketDataList []GethMarketData) error
func RemoveGethMarketData ¶
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)
Click to show internal directories.
Click to hide internal directories.