ticks

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2018 License: GPL-3.0 Imports: 6 Imported by: 4

Documentation

Index

Constants

View Source
const (
	DBName   = "dexy"
	FileName = "ticks"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoTicks

type MongoTicks struct {
	// contains filtered or unexported fields
}

func NewMongoTicks

func NewMongoTicks(connection string) (*MongoTicks, error)

func (*MongoTicks) FetchAggregateVolumeForTokens

func (t *MongoTicks) FetchAggregateVolumeForTokens(tokens []types.Address) (map[types.Address]types.Int, error)

func (*MongoTicks) FetchLatestCloseForTokens

func (t *MongoTicks) FetchLatestCloseForTokens(tokens []types.Address) (map[types.Address]float64, error)

func (*MongoTicks) FetchTicks

func (t *MongoTicks) FetchTicks(token types.Address) ([]types.Tick, error)

func (*MongoTicks) InsertTicks

func (t *MongoTicks) InsertTicks(ticks []types.Tick) error

type Ticks

type Ticks interface {
	InsertTicks(ticks []types.Tick) error
	FetchTicks(token types.Address) ([]types.Tick, error)
	FetchAggregateVolumeForTokens(tokens []types.Address) (map[types.Address]types.Int, error)
	FetchLatestCloseForTokens(tokens []types.Address) (map[types.Address]float64, error)
}

Jump to

Keyboard shortcuts

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