Merge pull request #1129 from c9s/narumi/fixedmaker/onstart

strategy: fixedmaker: replenish on start
This commit is contained in:
なるみ 2023-03-23 17:29:47 +08:00 committed by GitHub
commit bf9cd78ba4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {