download

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Downloader

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

func NewDownloader

func NewDownloader(exchange service.Feeder) Downloader

func (Downloader) Download

func (d Downloader) Download(ctx context.Context, pair, timeframe string, output string, options ...Option) error

type Option

type Option func(*Parameters)

func WithDays

func WithDays(days int) Option

func WithInterval

func WithInterval(start, end time.Time) Option

type Parameters

type Parameters struct {
	Start time.Time
	End   time.Time
}

Jump to

Keyboard shortcuts

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