fix trade format alignment

This commit is contained in:
c9s 2022-06-08 18:06:49 +08:00
parent f1cce3e123
commit 83d7aab4d4
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -146,7 +146,7 @@ func trimTrailingZero(a float64) string {
// String is for console output
func (trade Trade) String() string {
return fmt.Sprintf("TRADE %s %s %4s %-4s @ %6s | amount %s | fee %s %s | orderID %d | %s",
return fmt.Sprintf("TRADE %s %s %4s %-4s @ %-6s | amount %s | fee %s %s | orderID %d | %s",
trade.Exchange.String(),
trade.Symbol,
trade.Side,