backtest

package
v0.0.0-...-25e01b6 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backtest

type Backtest struct {
	Deployment DeploymentType
	Ingestors  []ingenium.Ingestor
	Strategies []ingenium.Strategy
	Portfolio  ingenium.Portfolio
	Executor   ingenium.Executor
}

func NewBacktest

func NewBacktest(options ...BacktestOption) *Backtest

func (*Backtest) Cleanup

func (b *Backtest) Cleanup()

func (*Backtest) Run

func (b *Backtest) Run()

type BacktestOption

type BacktestOption func(*Backtest)

func WithDeploymentType

func WithDeploymentType(t DeploymentType) BacktestOption

func WithExecutor

func WithExecutor(executor ingenium.Executor) BacktestOption

func WithIngestor

func WithIngestor(ingestor ingenium.Ingestor) BacktestOption

func WithPortfolio

func WithPortfolio(portfolio ingenium.Portfolio) BacktestOption

func WithStrategy

func WithStrategy(strategy ingenium.Strategy) BacktestOption

type DeploymentType

type DeploymentType string
const (
	DeploymentLocal DeploymentType = "local"
)

Jump to

Keyboard shortcuts

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