add some logs

This commit is contained in:
kbearXD 2024-04-16 16:52:50 +08:00
parent 2f3e0044c1
commit 2a6c6e935b
2 changed files with 1 additions and 1 deletions

View File

@ -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

View File

@ -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")
}