File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -542,11 +542,14 @@ func (m *TradingManager) SlackBlocks() []slack.Block {
542542 }
543543
544544 // Add position details
545- positionDetails := fmt .Sprintf ("*TradingManager %s Position Details:*\n - Side: `%s`\n - Entry Price: `%s`\n - Size: `%s`" ,
545+ positionDetails := fmt .Sprintf ("*TradingManager %s Position Details:*\n - Side: `%s`\n - Entry Price: `%s`\n - Size: `%s` (`%s` in %s) " ,
546546 m .market .Symbol ,
547547 m .Position .Side (),
548548 m .Position .AverageCost .String (),
549- m .Position .Base .String ())
549+ m .Position .GetBase ().String (),
550+ m .Position .AverageCost .Mul (m .Position .GetBase ().Abs ()),
551+ m .market .QuoteCurrency ,
552+ )
550553
551554 if ! currentPrice .IsZero () {
552555 positionDetails += fmt .Sprintf ("\n - Current Price: `%s`" , currentPrice .String ())
You can’t perform that action at this time.
0 commit comments