mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
grid: disable trade marking
This commit is contained in:
parent
5929385a2e
commit
85bb9f214e
|
@ -3,9 +3,10 @@ package grid
|
|||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"sync"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/sirupsen/logrus"
|
||||
"sync"
|
||||
|
||||
"github.com/c9s/bbgo/pkg/bbgo"
|
||||
"github.com/c9s/bbgo/pkg/exchange/max"
|
||||
|
@ -589,6 +590,7 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se
|
|||
s.state.ProfitStats.AddTrade(trade)
|
||||
})
|
||||
|
||||
/*
|
||||
if s.TradeService != nil {
|
||||
s.tradeCollector.OnTrade(func(trade types.Trade) {
|
||||
if err := s.TradeService.Mark(ctx, trade.ID, ID); err != nil {
|
||||
|
@ -596,6 +598,7 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se
|
|||
}
|
||||
})
|
||||
}
|
||||
*/
|
||||
|
||||
s.tradeCollector.OnPositionUpdate(func(position *bbgo.Position) {
|
||||
s.Notifiability.Notify(position)
|
||||
|
|
Loading…
Reference in New Issue
Block a user