Documentation ¶
Index ¶
- func GetTotalStrategyMarketDataAssetsCount(dbConnPgx utils.PgxIface) (*int, error)
- func InsertStrategyMarketDataAsset(dbConnPgx utils.PgxIface, strategyMarketDataAsset *StrategyMarketDataAsset) (int, error)
- func InsertStrategyMarketDataAssets(dbConnPgx utils.PgxIface, strategyMarketDataAssets []StrategyMarketDataAsset) error
- func RemoveStrategyMarketDataAsset(dbConnPgx utils.PgxIface, strategyMarketDataAssetID *int) error
- func UpdateStrategyMarketDataAsset(dbConnPgx utils.PgxIface, strategyMarketDataAsset *StrategyMarketDataAsset) error
- type StrategyMarketDataAsset
- func GetStartAndEndDateDiffStrategyMarketDataAssets(dbConnPgx utils.PgxIface, diffInDate *int) ([]StrategyMarketDataAsset, error)
- func GetStrategyMarketDataAsset(dbConnPgx utils.PgxIface, strategyMarketDataAssetID *int) (*StrategyMarketDataAsset, error)
- func GetStrategyMarketDataAssetListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, ...) ([]StrategyMarketDataAsset, error)
- func GetStrategyMarketDataAssets(dbConnPgx utils.PgxIface, ids []int) ([]StrategyMarketDataAsset, error)
- func GetStrategyMarketDataAssetsByStrategyID(dbConnPgx utils.PgxIface, strategyID *int) ([]StrategyMarketDataAsset, error)
- func GetStrategyMarketDataAssetsByUUIDs(dbConnPgx utils.PgxIface, UUIDList []string) ([]StrategyMarketDataAsset, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertStrategyMarketDataAsset ¶
func InsertStrategyMarketDataAsset(dbConnPgx utils.PgxIface, strategyMarketDataAsset *StrategyMarketDataAsset) (int, error)
func InsertStrategyMarketDataAssets ¶
func InsertStrategyMarketDataAssets(dbConnPgx utils.PgxIface, strategyMarketDataAssets []StrategyMarketDataAsset) error
func UpdateStrategyMarketDataAsset ¶
func UpdateStrategyMarketDataAsset(dbConnPgx utils.PgxIface, strategyMarketDataAsset *StrategyMarketDataAsset) error
Types ¶
type StrategyMarketDataAsset ¶
type StrategyMarketDataAsset struct { ID *int `json:"id" db:"id"` //1 StrategyID *int `json:"strategyId" db:"strategy_id"` //2 BaseAssetID *int `json:"baseAssetId" db:"base_asset_id"` //3 QuoteAssetID *int `json:"quoteAssetId" db:"quote_asset_id"` //4 UUID string `json:"uuid" db:"uuid"` //5 Name string `json:"name" db:"name"` //6 AlternateName string `json:"alternateName" db:"alternate_name"` //7 StartDate *time.Time `json:"startDate" db:"start_date"` //8 EndDate *time.Time `json:"endDate" db:"end_date"` //9 Ticker string `json:"ticker" db:"ticker"` //10 Description string `json:"description" db:"description"` //11 SourceID *int `json:"sourceId" db:"source_id"` //12 FrequencyID *int `json:"frequencyId" db:"frequency_id"` //13 CreatedBy string `json:"createdBy" db:"created_by"` //14 CreatedAt time.Time `json:"createdAt" db:"created_at"` //15 UpdatedBy string `json:"updatedBy" db:"updated_by"` //16 UpdatedAt time.Time `json:"updatedAt" db:"updated_at"` //17 }
func GetStartAndEndDateDiffStrategyMarketDataAssets ¶
func GetStartAndEndDateDiffStrategyMarketDataAssets(dbConnPgx utils.PgxIface, diffInDate *int) ([]StrategyMarketDataAsset, error)
func GetStrategyMarketDataAsset ¶
func GetStrategyMarketDataAsset(dbConnPgx utils.PgxIface, strategyMarketDataAssetID *int) (*StrategyMarketDataAsset, error)
func GetStrategyMarketDataAssetListByPagination ¶
func GetStrategyMarketDataAssetListByPagination(dbConnPgx utils.PgxIface, _start, _end *int, _order, _sort string, _filters []string) ([]StrategyMarketDataAsset, error)
for refinedev
func GetStrategyMarketDataAssets ¶
func GetStrategyMarketDataAssets(dbConnPgx utils.PgxIface, ids []int) ([]StrategyMarketDataAsset, error)
func GetStrategyMarketDataAssetsByStrategyID ¶
func GetStrategyMarketDataAssetsByStrategyID(dbConnPgx utils.PgxIface, strategyID *int) ([]StrategyMarketDataAsset, error)
func GetStrategyMarketDataAssetsByUUIDs ¶
func GetStrategyMarketDataAssetsByUUIDs(dbConnPgx utils.PgxIface, UUIDList []string) ([]StrategyMarketDataAsset, error)
Click to show internal directories.
Click to hide internal directories.