Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrEmptyAccounts is returned when the accounts are empty. ErrEmptyAccounts = errors.New("empty accounts") // ErrInvalidExchange is returned when the exchange is invalid. 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
}
Forwardtest is a forwardtest.
func (*Forwardtest) AddOrder ¶
func (ft *Forwardtest) AddOrder(o order.Order, cs candlestick.Candlestick) error
AddOrder adds an order to the forwardtest.
func (Forwardtest) GetAccountsSymbols ¶
func (ft Forwardtest) GetAccountsSymbols() []string
GetAccountsSymbols returns the list of symbols used in the accounts.
type NewForwardtestParams ¶
NewForwardtestParams is the params for the New function.
func (NewForwardtestParams) Validate ¶
func (np NewForwardtestParams) Validate() error
Validate validates the NewParams.
Click to show internal directories.
Click to hide internal directories.