mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-23 15:25:14 +00:00
18 lines
368 B
Go
18 lines
368 B
Go
|
// Code generated by "callbackgen -type LocalActiveOrderBook"; DO NOT EDIT.
|
||
|
|
||
|
package bbgo
|
||
|
|
||
|
import (
|
||
|
"github.com/c9s/bbgo/pkg/types"
|
||
|
)
|
||
|
|
||
|
func (b *LocalActiveOrderBook) OnFilled(cb func(o types.Order)) {
|
||
|
b.filledCallbacks = append(b.filledCallbacks, cb)
|
||
|
}
|
||
|
|
||
|
func (b *LocalActiveOrderBook) EmitFilled(o types.Order) {
|
||
|
for _, cb := range b.filledCallbacks {
|
||
|
cb(o)
|
||
|
}
|
||
|
}
|