mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
add some logs
This commit is contained in:
parent
2f3e0044c1
commit
2a6c6e935b
|
@ -164,7 +164,6 @@ func (rc *Collector) CollectRoundTrades(ctx context.Context, round Round) ([]typ
|
|||
}
|
||||
|
||||
for _, order := range roundOrders {
|
||||
rc.logger.Infof("collect trades from order: %s", order.String())
|
||||
if order.ExecutedQuantity.IsZero() {
|
||||
rc.logger.Info("collect trads from order but no executed quantity ", order.String())
|
||||
continue
|
||||
|
|
|
@ -24,6 +24,7 @@ func (s *Strategy) placeTakeProfitOrders(ctx context.Context) error {
|
|||
roundPosition := types.NewPositionFromMarket(s.Market)
|
||||
|
||||
for _, trade := range trades {
|
||||
s.logger.Infof("add trade into the position of this round %s", trade.String())
|
||||
if trade.FeeProcessing {
|
||||
return fmt.Errorf("failed to place the take-profit order because there is a trade's fee not ready")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user