mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 23:05:15 +00:00
Merge pull request #1129 from c9s/narumi/fixedmaker/onstart
strategy: fixedmaker: replenish on start
This commit is contained in:
commit
bf9cd78ba4
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user