mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-25 16:25:16 +00:00
replenish on start
This commit is contained in:
parent
b48f9701fb
commit
32c617a283
|
@ -135,6 +135,7 @@ func (s *Strategy) Run(ctx context.Context, _ bbgo.OrderExecutor, session *bbgo.
|
||||||
|
|
||||||
session.UserDataStream.OnStart(func() {
|
session.UserDataStream.OnStart(func() {
|
||||||
// you can place orders here when bbgo is started, this will be called only once.
|
// you can place orders here when bbgo is started, this will be called only once.
|
||||||
|
s.replenish(ctx)
|
||||||
})
|
})
|
||||||
|
|
||||||
s.activeOrderBook.OnFilled(func(order types.Order) {
|
s.activeOrderBook.OnFilled(func(order types.Order) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user