Skip to content

fix: correct bot status pnl percentage#23

Open
fudujiji wants to merge 1 commit into
hummingbot:mainfrom
fudujiji:fix-bot-status-pnl-percentage
Open

fix: correct bot status pnl percentage#23
fudujiji wants to merge 1 commit into
hummingbot:mainfrom
fudujiji:fix-bot-status-pnl-percentage

Conversation

@fudujiji

@fudujiji fudujiji commented Jun 1, 2026

Copy link
Copy Markdown

Summary

  • format bot status global_pnl_pct values without applying an extra x100 multiplier
  • keep the shared decimal percentage formatter unchanged for other formatter paths

Fixes #16.

Verification

  • .venv/bin/python -m ruff check hummingbot_mcp/formatters/bots.py
  • .venv/bin/python -m compileall -q hummingbot_mcp
  • manual formatter check with global_pnl_pct=-0.3291 renders -0.33%, not -32.91%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Wrong PnL percentage reported

1 participant