store

package
v0.0.0-...-cca584c Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClickhouseURL = "127.0.0.1:9000"
View Source
var TimezoneMSK *time.Location

Functions

func Test

func Test() (err error)

Types

type Store

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

func New

func New() (*Store, error)

func (*Store) Close

func (s *Store) Close() error

func (*Store) CountCandlesForDate

func (s *Store) CountCandlesForDate(ctx context.Context, ticker string, date time.Time) (uint64, error)

func (*Store) CountSuperCandlesForDate

func (s *Store) CountSuperCandlesForDate(ctx context.Context, date time.Time) (uint64, error)

func (*Store) StoreCandles

func (s *Store) StoreCandles(ctx context.Context, ticker string, candles []gomoex.Candle) error

func (*Store) StoreSuperCandles

func (s *Store) StoreSuperCandles(ctx context.Context, candles []*SuperCandle) error

type SuperCandle

type SuperCandle struct {
	Time  time.Time
	SecID string
	*moexalgo.TradeStat
	*moexalgo.ObStat
	*moexalgo.OrderStat
}

Jump to

Keyboard shortcuts

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