remove stock field from report

This commit is contained in:
c9s 2022-05-10 01:11:12 +08:00
parent 2ddff59de6
commit 54debaf979
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -5,10 +5,11 @@ import (
"strconv"
"time"
"github.com/c9s/bbgo/pkg/fixedpoint"
log "github.com/sirupsen/logrus"
"github.com/slack-go/slack"
"github.com/c9s/bbgo/pkg/fixedpoint"
"github.com/c9s/bbgo/pkg/slack/slackstyle"
"github.com/c9s/bbgo/pkg/types"
)
@ -41,10 +42,7 @@ func (report AverageCostPnlReport) Print() {
log.Infof("AVERAGE COST: %s", types.USD.FormatMoney(report.AverageCost))
log.Infof("TOTAL BUY VOLUME: %v", report.BuyVolume)
log.Infof("TOTAL SELL VOLUME: %v", report.SellVolume)
log.Infof("STOCK: %s", report.Stock.String())
// FIXME:
// log.Infof("FEE (USD): %f", report.FeeInUSD)
log.Infof("CURRENT PRICE: %s", types.USD.FormatMoney(report.LastPrice))
log.Infof("CURRENCY FEES:")
for currency, fee := range report.CurrencyFees {