queries

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2020 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DailyVolume

type DailyVolume struct {
	BaseVol  float64
	QuoteVol float64
}

DailyVolume represents any volume value which can be either bought or sold depending on the query

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 string,
	optionalAccountIDs []string,
) (*DailyVolumeByDate, error)

MakeDailyVolumeByDateForMarketIdsAction makes the DailyVolumeByDate query for a set of marketIds and an action

func (*DailyVolumeByDate) Name

func (q *DailyVolumeByDate) Name() string

Name impl.

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

Name impl.

func (*StrategyMirrorTradeTriggerExists) QueryRow

func (q *StrategyMirrorTradeTriggerExists) QueryRow(args ...interface{}) (interface{}, error)

QueryRow impl.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL