Documentation ¶
Index ¶
- func InsertMarketData(marketData MarketData) (int, error)
- func InsertMarketDataList(marketDataList []MarketData) error
- func InsertMarketDataListManual(marketDataList []MarketData) error
- func RemoveMarketData(marketDataID int) error
- func RemoveMarketDataByMarketDataTypeIDFromBaseAssetBetweenDates(assetID, marketDataTypeID *int, startDate, endDate time.Time) error
- func RemoveMarketDataFromBaseAssetBetweenDates(assetID *int, startDate, endDate *time.Time) error
- func UpdateMarketData(marketData MarketData) error
- type MarketData
- func GetMarketData(marketDataID int) (*MarketData, error)
- func GetMarketDataList(ids []int) ([]MarketData, error)
- func GetMarketDataListByUUIDs(UUIDList []string) ([]MarketData, error)
- func GetStartAndEndDateDiffMarketDataList(diffInDate int) ([]MarketData, error)
- func GetTopTenMarketDatas() ([]MarketData, error)
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 RemoveMarketDataByMarketDataTypeIDFromBaseAssetBetweenDates ¶ added in v1.3.36
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"` }
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)
func GetTopTenMarketDatas ¶
func GetTopTenMarketDatas() ([]MarketData, error)
Click to show internal directories.
Click to hide internal directories.