mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 00:35:15 +00:00
grid2: add PlainText method on GridProfit struct
This commit is contained in:
parent
532d474564
commit
aa4130ed30
|
@ -18,3 +18,7 @@ type GridProfit struct {
|
|||
func (p *GridProfit) String() string {
|
||||
return fmt.Sprintf("GRID PROFIT: %f %s @ %s orderID %d", p.Profit.Float64(), p.Currency, p.Time.String(), p.Order.OrderID)
|
||||
}
|
||||
|
||||
func (p *GridProfit) PlainText() string {
|
||||
return fmt.Sprintf("Grid profit: %f %s @ %s orderID %d", p.Profit.Float64(), p.Currency, p.Time.String(), p.Order.OrderID)
|
||||
}
|
||||
|
|
|
@ -315,7 +315,7 @@ func (s *Strategy) processFilledOrder(o types.Order) {
|
|||
if o.Side == types.SideTypeBuy {
|
||||
baseSellQuantityReduction = s.aggregateOrderBaseFee(o)
|
||||
|
||||
s.logger.Infof("base fee: %f %s", baseSellQuantityReduction.Float64(), s.Market.BaseCurrency)
|
||||
s.logger.Infof("buy order base fee: %f %s", baseSellQuantityReduction.Float64(), s.Market.BaseCurrency)
|
||||
|
||||
newQuantity = newQuantity.Sub(baseSellQuantityReduction)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user