mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
16 lines
331 B
Go
16 lines
331 B
Go
// Code generated by "callbackgen -type StochStream"; DO NOT EDIT.
|
|
|
|
package indicatorv2
|
|
|
|
import ()
|
|
|
|
func (S *StochStream) OnUpdate(cb func(k float64, d float64)) {
|
|
S.updateCallbacks = append(S.updateCallbacks, cb)
|
|
}
|
|
|
|
func (S *StochStream) EmitUpdate(k float64, d float64) {
|
|
for _, cb := range S.updateCallbacks {
|
|
cb(k, d)
|
|
}
|
|
}
|