Skip to content

Reduce trailing churn#1046

Merged
carkod merged 5 commits into
masterfrom
reduce-trailing-churn
Jun 5, 2026
Merged

Reduce trailing churn#1046
carkod merged 5 commits into
masterfrom
reduce-trailing-churn

Conversation

@carkod

@carkod carkod commented Jun 2, 2026

Copy link
Copy Markdown
Owner

No description provided.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bc12d9f44d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +147 to +150
symbolPnl.set(
bot.pair,
(symbolPnl.get(bot.pair) ?? 0) + getNetProfit(bot),
);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Weight symbol concentration by PnL amount

When the dashboard has bots with materially different order sizes, this concentration calculation misstates exposure because getNetProfit(bot) returns a percentage return from computeSingleBotProfit, not a currency PnL amount. A $10 bot up 20% and a $10,000 bot up 1% will be counted as 20 vs 1 here, even though the larger bot dominates actual PnL, so the top-symbol share/HHI can point operators at the wrong concentration risk.

Useful? React with 👍 / 👎.

@carkod carkod merged commit 052aacf into master Jun 5, 2026
14 checks passed
@carkod carkod deleted the reduce-trailing-churn branch June 5, 2026 23:42
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.

1 participant