mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 17:13:51 +00:00
20 lines
326 B
Go
20 lines
326 B
Go
// Code generated by "callbackgen -type Stream -interface"; DO NOT EDIT.
|
|
|
|
package okex
|
|
|
|
import ()
|
|
|
|
func (s *Stream) OnKline(cb func()) {
|
|
s.klineCallbacks = append(s.klineCallbacks, cb)
|
|
}
|
|
|
|
func (s *Stream) EmitKline() {
|
|
for _, cb := range s.klineCallbacks {
|
|
cb()
|
|
}
|
|
}
|
|
|
|
type StreamEventHub interface {
|
|
OnKline(cb func())
|
|
}
|