mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 16:55:15 +00:00
20 lines
375 B
Go
20 lines
375 B
Go
package dca2
|
|
|
|
import (
|
|
"fmt"
|
|
"strings"
|
|
|
|
"github.com/c9s/bbgo/pkg/types"
|
|
)
|
|
|
|
func (s *Strategy) debugOrders(submitOrders []types.Order) {
|
|
var sb strings.Builder
|
|
sb.WriteString("DCA ORDERS[\n")
|
|
for i, order := range submitOrders {
|
|
sb.WriteString(fmt.Sprintf("%3d) ", i+1) + order.String() + "\n")
|
|
}
|
|
sb.WriteString("] END OF DCA ORDERS")
|
|
|
|
s.logger.Info(sb.String())
|
|
}
|