strategy

package
v1.39.2 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultStyle

func DefaultStyle() *table.Style

func DefaultWhiteList

func DefaultWhiteList() []string

func PrintConfig

func PrintConfig(s interface{}, f io.Writer, style *table.Style, withColor bool, whiteLists ...string)

@param s: strategy object @param f: io.Writer used for writing the config dump @param style: pretty print table style. Use DefaultStyle() to get default one. @param withColor: whether to print with color @param whiteLists: fields to be printed out from embedded struct (1st layer only)

Types

type JsonArr

type JsonArr []JsonStruct

func (JsonArr) Len

func (a JsonArr) Len() int

func (JsonArr) Less

func (a JsonArr) Less(i, j int) bool

func (JsonArr) Swap

func (a JsonArr) Swap(i, j int)

type JsonStruct

type JsonStruct struct {
	Key   string
	Json  string
	Type  string
	Value interface{}
}

Directories

Path Synopsis
flashcrash strategy tries to place the orders at 30%~50% of the current price, so that you can catch the orders while flashcrash happens
flashcrash strategy tries to place the orders at 30%~50% of the current price, so that you can catch the orders while flashcrash happens

Jump to

Keyboard shortcuts

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