mockaccount

package
v0.0.0-...-5bb7b8c Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMockBars

func CreateMockBars(l int, randomLevel int, strength float64) []marketdata.Bar

func MockBar

func MockBar(index float64, randLevel int, strength float64) marketdata.Bar

Types

type MockPortfolio

type MockPortfolio struct {
	Mu  sync.Mutex
	Pos map[string]alpaca.Position
	//Currency string          `json:"currency"`
	Cash float64 `json:"cash"`
}

func (*MockPortfolio) AddBuy

func (m *MockPortfolio) AddBuy(s string, fq float64, fp float64)

Jump to

Keyboard shortcuts

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