Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DailyVolume ¶
DailyVolume represents any volume value which can be either bought or sold depending on the query
type DailyVolumeAction ¶
type DailyVolumeAction string
DailyVolumeAction represents either a sell or a buy
const ( DailyVolumeActionBuy DailyVolumeAction = "buy" DailyVolumeActionSell DailyVolumeAction = "sell" )
type of DailyVolumeAction
func ParseDailyVolumeAction ¶
func ParseDailyVolumeAction(action string) (DailyVolumeAction, error)
ParseDailyVolumeAction converts a string to a DailyVolumeAction
func (DailyVolumeAction) IsBuy ¶
func (a DailyVolumeAction) IsBuy() bool
IsBuy returns whether the action is buy
func (DailyVolumeAction) IsSell ¶
func (a DailyVolumeAction) IsSell() bool
IsSell returns whether the action is sell
func (DailyVolumeAction) String ¶
func (a DailyVolumeAction) String() string
String is the Stringer method impl
type DailyVolumeByDate ¶
type DailyVolumeByDate struct {
// contains filtered or unexported fields
}
DailyVolumeByDate is a query that fetches the daily volume of sales
func MakeDailyVolumeByDateForMarketIdsAction ¶
func MakeDailyVolumeByDateForMarketIdsAction( db *sql.DB, marketIDs []string, action DailyVolumeAction, optionalAccountIDs []string, ) (*DailyVolumeByDate, error)
MakeDailyVolumeByDateForMarketIdsAction makes the DailyVolumeByDate query for a set of marketIds and an action
func (*DailyVolumeByDate) QueryRow ¶
func (q *DailyVolumeByDate) QueryRow(args ...interface{}) (interface{}, error)
QueryRow impl.
type StrategyMirrorTradeTriggerExists ¶
type StrategyMirrorTradeTriggerExists struct {
// contains filtered or unexported fields
}
StrategyMirrorTradeTriggerExists is a query that fetches the row by primary key
func MakeStrategyMirrorTradeTriggerExists ¶
func MakeStrategyMirrorTradeTriggerExists(db *sql.DB, marketID string) (*StrategyMirrorTradeTriggerExists, error)
MakeStrategyMirrorTradeTriggerExists makes the StrategyMirrorTradeTriggerExists query
func (*StrategyMirrorTradeTriggerExists) Name ¶
func (q *StrategyMirrorTradeTriggerExists) Name() string
Name impl.
func (*StrategyMirrorTradeTriggerExists) QueryRow ¶
func (q *StrategyMirrorTradeTriggerExists) QueryRow(args ...interface{}) (interface{}, error)
QueryRow impl.