forwardtest

package
v0.0.0-...-f05cc18 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: AGPL-3.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyAccounts   = errors.New("empty accounts")
	ErrInvalidExchange = errors.New("invalid exchange")
)

Functions

This section is empty.

Types

type ForwardTest

type ForwardTest struct {
	ID        uuid.UUID
	UpdatedAt time.Time
	Accounts  map[string]account.Account
	Orders    []order.Order
}

func New

func New(payload NewPayload) ForwardTest

func (*ForwardTest) AddOrder

func (ft *ForwardTest) AddOrder(o order.Order, cs candlestick.Candlestick) error

func (ForwardTest) GetAccountsSymbols

func (ft ForwardTest) GetAccountsSymbols() []string

type NewPayload

type NewPayload struct {
	Accounts map[string]account.Account
}

func (NewPayload) Validate

func (np NewPayload) Validate() error

type Status

type Status struct {
	Balance float64
}

Jump to

Keyboard shortcuts

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