Skip to content

Commit

Permalink
Merge pull request c9s#1129 from c9s/narumi/fixedmaker/onstart
Browse files Browse the repository at this point in the history
strategy: fixedmaker: replenish on start
  • Loading branch information
narumiruna authored Mar 23, 2023
2 parents da381dc + 32c617a commit bf9cd78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/strategy/fixedmaker/strategy.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ func (s *Strategy) Run(ctx context.Context, _ bbgo.OrderExecutor, session *bbgo.

session.UserDataStream.OnStart(func() {
// 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) {
Expand Down

0 comments on commit bf9cd78

Please sign in to comment.