candlesticks

package
v0.0.0-...-5e10106 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithContext

func WithContext(parent context.Context, exchange string, candlesticks Candlesticks) context.Context

Types

type CandlestickService

type CandlestickService interface {
	Do(ctx context.Context) (*candlestick.List, error)
	StartTime(startTime timestamp.Timestamp) CandlestickService
	EndTime(endTime timestamp.Timestamp) CandlestickService
	Limit(limit int) CandlestickService
	Period() period.Period
	Pair() pair.Pair
}

CandlestickService is the interface for candle stick services

type Candlesticks

type Candlesticks interface {
	Service(pair pair.Pair, period period.Period) (CandlestickService, error)
}

Candlesticks is an interface for service

func FromContext

func FromContext(ctx context.Context, exchange string) (Candlesticks, bool)

type Exchanges

type Exchanges map[string]Candlesticks

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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