store

package
v0.0.0-...-231d620 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2025 License: Apache-2.0 Imports: 8 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

This section is empty.

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) CountSuperEqCandlesForDate

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

func (*Store) CountSuperFOCandlesForDate

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

func (*Store) CountSuperFxCandlesForDate

func (s *Store) CountSuperFxCandlesForDate(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) StoreSuperEq

func (s *Store) StoreSuperEq(ctx context.Context, candles []*SuperCandleEq) error

func (*Store) StoreSuperFO

func (s *Store) StoreSuperFO(ctx context.Context, candles []*SuperCandleFO) error

func (*Store) StoreSuperFx

func (s *Store) StoreSuperFx(ctx context.Context, candles []*SuperCandleFx) error

type SuperCandleEq

type SuperCandleEq struct {
	Time  time.Time
	SecID string
	*moexalgo.EqTradeStat
	*moexalgo.EqObStat
	*moexalgo.OrderStat
}

type SuperCandleFO

type SuperCandleFO struct {
	Time  time.Time
	SecID string
	*moexalgo.FOTradeStat
	*moexalgo.FOObStat
}

type SuperCandleFx

type SuperCandleFx struct {
	Time  time.Time
	SecID string
	*moexalgo.EqTradeStat
	*moexalgo.FOObStat
	*moexalgo.OrderStat
}

Jump to

Keyboard shortcuts

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