mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-24 07:45:15 +00:00
16 lines
295 B
Go
16 lines
295 B
Go
// Code generated by "callbackgen -type VWAP"; DO NOT EDIT.
|
|
|
|
package indicator
|
|
|
|
import ()
|
|
|
|
func (V *VWAP) OnUpdate(cb func(value float64)) {
|
|
V.UpdateCallbacks = append(V.UpdateCallbacks, cb)
|
|
}
|
|
|
|
func (V *VWAP) EmitUpdate(value float64) {
|
|
for _, cb := range V.UpdateCallbacks {
|
|
cb(value)
|
|
}
|
|
}
|