genv

package
v0.0.0-...-e3e60e4 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MessageShow string = "Message.Debug"
View Source
var OrderCloseLong string = "Order.Close.Long"
View Source
var OrderCloseShort string = "Order.Close.Short"
View Source
var OrderOpenLong string = "Order.Open.Long"
View Source
var OrderOpenShort string = "Order.Open.Short"

Functions

func GetSimpleBundle

func GetSimpleBundle(filename, data string, opts ...interface{}) (*js.Bundle, error)

func GetSimpleRunner

func GetSimpleRunner(tb testing.TB, filename, data string, opts ...interface{}) (*js.Runner, error)

Types

type OrderPayload

type OrderPayload struct {
	Symbol   string           `json:"symbol" db:"symbol"`
	Side     types.SideType   `json:"side" db:"side"`
	Quantity fixedpoint.Value `json:"quantity" db:"quantity"`
	Price    fixedpoint.Value `json:"price" db:"price"`
}

type Strategy

type Strategy struct {
	// contains filtered or unexported fields
}

func NewStragegy

func NewStragegy() *Strategy

func (*Strategy) Close

func (s *Strategy) Close(close *floats.Slice)

func (*Strategy) GetSMA

func (s *Strategy) GetSMA() floats.Slice

func (*Strategy) Run

func (s *Strategy) Run()

Jump to

Keyboard shortcuts

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