candlesticks

package
v0.0.0-...-e7652ed Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Candlesticks

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

func New

func New(db db.Adapter, services map[string]exchanges.Adapter) Candlesticks

func (Candlesticks) GetCached

func (c Candlesticks) GetCached(ctx context.Context, payload GetCachedPayload) (*candlestick.List, error)

type GetCachedPayload

type GetCachedPayload struct {
	ExchangeName string
	PairSymbol   string
	Period       period.Symbol
	Start        *time.Time
	End          *time.Time
	Limit        uint
}

type Operator

type Operator interface {
	GetCached(ctx context.Context, payload GetCachedPayload) (*candlestick.List, error)
}

Jump to

Keyboard shortcuts

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