Documentation ¶
Index ¶
- func GetTotalMarketDataCount(dbConnPgx utils.PgxIface) (*int, error)
- func InsertMarketData(dbConnPgx utils.PgxIface, marketData *MarketData) (int, error)
- func InsertMarketDataList(dbConnPgx utils.PgxIface, marketDataList []MarketData) error
- func RemoveMarketData(dbConnPgx utils.PgxIface, marketDataID *int) error
- func RemoveMarketDataFromBaseAssetBetweenDates(dbConnPgx utils.PgxIface, assetID *int, startDate, endDate time.Time) error
- func UpdateMarketData(dbConnPgx utils.PgxIface, marketData *MarketData) error
- type MarketData
- func GetMarketData(dbConnPgx utils.PgxIface, marketDataID *int) (*MarketData, error)
- func GetMarketDataList(dbConnPgx utils.PgxIface, ids []int) ([]MarketData, error)
- func GetMarketDataListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, ...) ([]MarketData, error)
- func GetMarketDataListByUUIDs(dbConnPgx utils.PgxIface, UUIDList []string) ([]MarketData, error)
- func GetStartAndEndDateDiffMarketDataList(dbConnPgx utils.PgxIface, diffInDate *int) ([]MarketData, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertMarketData ¶
func InsertMarketData(dbConnPgx utils.PgxIface, marketData *MarketData) (int, error)
func InsertMarketDataList ¶
func InsertMarketDataList(dbConnPgx utils.PgxIface, marketDataList []MarketData) error
func UpdateMarketData ¶
func UpdateMarketData(dbConnPgx utils.PgxIface, marketData *MarketData) error
Types ¶
type MarketData ¶
type MarketData 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 *float64 `json:"openUsd" db:"open_usd"` //8 CloseUSD *float64 `json:"closeUsd" db:"close_usd"` //9 HighUSD *float64 `json:"highUsd" db:"high_usd"` //10 LowUSD *float64 `json:"lowUsd" db:"low_usd"` //11 PriceUSD *float64 `json:"priceUsd" db:"price_usd"` //12 VolumeUSD *float64 `json:"volumeUsd" db:"volume_usd"` //13 MarketCapUSD *float64 `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 *float64 `json:"totalSupply" db:"total_supply"` //20 MaxSupply *float64 `json:"maxSupply" db:"max_supply"` //21 CirculatingSupply *float64 `json:"circulatingSupply" db:"circulating_supply"` //22 Sparkline7d []float64 `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 }
MarketData
func GetMarketData ¶
func GetMarketData(dbConnPgx utils.PgxIface, marketDataID *int) (*MarketData, error)
func GetMarketDataList ¶
func GetMarketDataList(dbConnPgx utils.PgxIface, ids []int) ([]MarketData, error)
func GetMarketDataListByPagination ¶
func GetMarketDataListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, _filters []string) ([]MarketData, error)
for refinedev
func GetMarketDataListByUUIDs ¶
func GetMarketDataListByUUIDs(dbConnPgx utils.PgxIface, UUIDList []string) ([]MarketData, error)
func GetStartAndEndDateDiffMarketDataList ¶
func GetStartAndEndDateDiffMarketDataList(dbConnPgx utils.PgxIface, diffInDate *int) ([]MarketData, error)
Click to show internal directories.
Click to hide internal directories.