entry

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: AGPL-3.0 Imports: 32 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommand added in v0.4.1

func AddCommand(parent string, command *cobra.Command)

AddCommand registers a Cobra command. Command-specific flags should be local variables captured by RunE, so extending the CLI does not require CmdArgs changes.

func AddGroup added in v0.1.31

func AddGroup(name, help string)

AddGroup registers a Cobra command group for applications embedding banbot.

func AggKlineBigs added in v0.2.4

func AggKlineBigs(args *config.CmdArgs) *errs.Error

func Execute added in v0.4.1

func Execute(args []string) error

Execute runs banbot with an explicit argument list. It is separated from RunCmd so callers and tests can execute the Cobra command tree without exits.

func LoadKLinesToDB

func LoadKLinesToDB(args *config.CmdArgs) *errs.Error

func NewRootCommand added in v0.4.1

func NewRootCommand() *cobra.Command

NewRootCommand builds the complete Cobra command tree.

func RunBackTest

func RunBackTest(args *config.CmdArgs) *errs.Error

func RunCmd

func RunCmd()

func RunDownData

func RunDownData(args *config.CmdArgs) *errs.Error

func RunKlineAdjFactors

func RunKlineAdjFactors(args *config.CmdArgs) *errs.Error

func RunKlineCorrect

func RunKlineCorrect(args *config.CmdArgs) *errs.Error

func RunSeriesDown added in v0.4.1

func RunSeriesDown(args *config.CmdArgs) *errs.Error

func RunSpider

func RunSpider(args *config.CmdArgs) *errs.Error

func RunSpiderWith added in v0.4.0

func RunSpiderWith(args *config.CmdArgs, startup data.SpiderStartupFunc) *errs.Error

func RunTrade

func RunTrade(args *config.CmdArgs) *errs.Error

func RunTradeWith added in v0.4.0

func RunTradeWith(args *config.CmdArgs, startup live.CryptoTraderStartupFunc) *errs.Error

func RunVerifyData added in v0.3.1

func RunVerifyData(args *config.CmdArgs) *errs.Error

Types

type FuncEntry

type FuncEntry = func(args *config.CmdArgs) *errs.Error

Jump to

Keyboard shortcuts

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