trader

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2016 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Executor = make(map[int64]*Global)
)

Trader Variable

Functions

func GetTraderStatus

func GetTraderStatus(id int64) (status int64)

GetTraderStatus ...

func Switch

func Switch(id int64) (err error)

Switch ...

Types

type Global

type Global struct {
	model.Trader
	Logger model.Logger
	Ctx    *otto.Otto
	// contains filtered or unexported fields
}

Global ...

func (*Global) AddTask

func (g *Global) AddTask(fn otto.Value, args ...interface{}) bool

AddTask ...

func (*Global) ExecTasks

func (g *Global) ExecTasks() (results []interface{})

ExecTasks ...

func (*Global) Log

func (g *Global) Log(msgs ...interface{})

Log ...

func (*Global) LogProfit

func (g *Global) LogProfit(msgs ...interface{})

LogProfit ...

func (*Global) LogStatus

func (g *Global) LogStatus(msgs ...interface{})

LogStatus ...

func (*Global) Sleep

func (g *Global) Sleep(intervals ...interface{})

Sleep ...

Jump to

Keyboard shortcuts

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