Documentation ¶
Index ¶
- Constants
- type MongoTicks
- func (t *MongoTicks) FetchAggregateVolumeForTokens(tokens []types.Address) (map[types.Address]types.Int, error)
- func (t *MongoTicks) FetchLatestCloseForTokens(tokens []types.Address) (map[types.Address]float64, error)
- func (t *MongoTicks) FetchTicks(token types.Address) ([]types.Tick, error)
- func (t *MongoTicks) InsertTicks(ticks []types.Tick) error
- type Ticks
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 (*MongoTicks) FetchLatestCloseForTokens ¶
func (*MongoTicks) FetchTicks ¶
func (*MongoTicks) InsertTicks ¶
func (t *MongoTicks) InsertTicks(ticks []types.Tick) error
Click to show internal directories.
Click to hide internal directories.