Documentation
¶
Index ¶
- Variables
- func NewRunnerExport(file string) (r engine.Runner, err error)
- type CallInfo
- func (ci *CallInfo) Init(engine *engine.Engine, data common.ParamData) (err error)
- func (ci *CallInfo) OnCandle(candle Candle) (err error)
- func (ci *CallInfo) OnDepth(depth Depth) (err error)
- func (ci *CallInfo) OnEvent(e Event) (err error)
- func (ci *CallInfo) OnPosition(pos, price float64) (err error)
- func (ci *CallInfo) OnTrade(trade Trade) (err error)
- func (ci *CallInfo) OnTradeHistory(trade Trade) (err error)
- func (ci *CallInfo) Param() (paramInfo []common.Param, err error)
- type Runner
- func (r *Runner) GetName() string
- func (r *Runner) Init(engine *engine.Engine, params common.ParamData) (err error)
- func (r *Runner) OnCandle(candle Candle) (err error)
- func (r *Runner) OnDepth(depth Depth) (err error)
- func (r *Runner) OnEvent(e Event) (err error)
- func (r *Runner) OnPosition(pos, price float64) (err error)
- func (r *Runner) OnTrade(trade Trade) (err error)
- func (r *Runner) OnTradeHistory(trade Trade) (err error)
- func (r *Runner) Param() (paramInfo []common.Param, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoMethod = errors.New("no such method")
)
Functions ¶
Types ¶
type CallInfo ¶
type CallInfo struct {
// contains filtered or unexported fields
}
func NewCallInfo ¶
func (*CallInfo) OnPosition ¶
func (*CallInfo) OnTradeHistory ¶
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
func (*Runner) OnPosition ¶
func (*Runner) OnTradeHistory ¶
Click to show internal directories.
Click to hide internal directories.