Documentation ¶
Index ¶
- func InsertStrategyMarketDataAsset(strategyMarketDataAsset StrategyMarketDataAsset) (int, error)
- func InsertStrategyMarketDataAssets(strategyMarketDataAssets []StrategyMarketDataAsset) error
- func RemoveStrategyMarketDataAsset(strategyMarketDataAssetID int) error
- func UpdateStrategyMarketDataAsset(strategyMarketDataAsset StrategyMarketDataAsset) error
- type StrategyMarketDataAsset
- func GetStartAndEndDateDiffStrategyMarketDataAssets(diffInDate int) ([]StrategyMarketDataAsset, error)
- func GetStrategyMarketDataAsset(strategyMarketDataAssetID int) (*StrategyMarketDataAsset, error)
- func GetStrategyMarketDataAssets(ids []int) ([]StrategyMarketDataAsset, error)
- func GetStrategyMarketDataAssetsByStrategyID(strategyID *int) ([]StrategyMarketDataAsset, error)
- func GetStrategyMarketDataAssetsByUUIDs(UUIDList []string) ([]StrategyMarketDataAsset, error)
- func GetTopTenStrategies() ([]StrategyMarketDataAsset, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InsertStrategyMarketDataAsset ¶
func InsertStrategyMarketDataAsset(strategyMarketDataAsset StrategyMarketDataAsset) (int, error)
func InsertStrategyMarketDataAssets ¶
func InsertStrategyMarketDataAssets(strategyMarketDataAssets []StrategyMarketDataAsset) error
func UpdateStrategyMarketDataAsset ¶
func UpdateStrategyMarketDataAsset(strategyMarketDataAsset StrategyMarketDataAsset) error
Types ¶
type StrategyMarketDataAsset ¶
type StrategyMarketDataAsset struct { ID *int `json:"id"` StrategyID *int `json:"strategyId"` BaseAssetID *int `json:"baseAssetId"` QuoteAssetID *int `json:"quoteAssetId"` Name string `json:"name"` UUID string `json:"uuid"` AlternateName string `json:"alternateName"` StartDate *time.Time `json:"startDate"` EndDate *time.Time `json:"endDate"` Ticker string `json:"ticker"` Description string `json:"description"` SourceID *int `json:"sourceId"` FrequencyID *int `json:"frequencyId"` CreatedBy string `json:"createdBy"` CreatedAt time.Time `json:"createdAt"` UpdatedBy string `json:"updatedBy"` UpdatedAt time.Time `json:"updatedAt"` }
func GetStartAndEndDateDiffStrategyMarketDataAssets ¶
func GetStartAndEndDateDiffStrategyMarketDataAssets(diffInDate int) ([]StrategyMarketDataAsset, error)
func GetStrategyMarketDataAsset ¶
func GetStrategyMarketDataAsset(strategyMarketDataAssetID int) (*StrategyMarketDataAsset, error)
func GetStrategyMarketDataAssets ¶
func GetStrategyMarketDataAssets(ids []int) ([]StrategyMarketDataAsset, error)
func GetStrategyMarketDataAssetsByStrategyID ¶ added in v1.0.2
func GetStrategyMarketDataAssetsByStrategyID(strategyID *int) ([]StrategyMarketDataAsset, error)
func GetStrategyMarketDataAssetsByUUIDs ¶
func GetStrategyMarketDataAssetsByUUIDs(UUIDList []string) ([]StrategyMarketDataAsset, error)
func GetTopTenStrategies ¶
func GetTopTenStrategies() ([]StrategyMarketDataAsset, error)
Click to show internal directories.
Click to hide internal directories.