mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
16 lines
304 B
Go
16 lines
304 B
Go
// Code generated by "callbackgen -type Stream"; DO NOT EDIT.
|
|
|
|
package bybit
|
|
|
|
import ()
|
|
|
|
func (s *Stream) OnBookEvent(cb func(e BookEvent)) {
|
|
s.bookEventCallbacks = append(s.bookEventCallbacks, cb)
|
|
}
|
|
|
|
func (s *Stream) EmitBookEvent(e BookEvent) {
|
|
for _, cb := range s.bookEventCallbacks {
|
|
cb(e)
|
|
}
|
|
}
|