app

package
v0.0.0-...-a52a137 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOutputs

func NewOutputs(opt *AppOption) []core.Converter

NewOutputs create timeframe instance

Types

type AppOption

type AppOption struct {
	Start      time.Time
	End        time.Time
	Instrument *instrument.Metadata
	Format     string
	Folder     string
	Periods    string
	Spread     uint32
	Mode       uint32
	CsvHeader  bool
}

AppOption download options

func ParseOption

func ParseOption(args ArgsList) (*AppOption, error)

ParseOption parse input command line

type ArgsList

type ArgsList struct {
	Verbose bool
	Header  bool
	Spread  uint
	Model   uint
	Dump    string
	Symbol  string
	Output  string
	Format  string
	Period  string
	Start   string
	End     string
}

type DukaApp

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

DukaApp used to download source tick data

func NewApp

func NewApp(opt *AppOption) *DukaApp

NewApp create an application instance by input arguments

func (*DukaApp) Execute

func (app *DukaApp) Execute() error

Execute download source bi5 tick data from dukascopy

Jump to

Keyboard shortcuts

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