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