Skip to content

fix/Show an LP executor's earned fees in its detail view instead of the transaction fee - #263

Open
lgrawet wants to merge 2 commits into
hummingbot:mainfrom
lgrawet:fix/lp-cumulative-fees-display
Open

lgrawet wants to merge 2 commits into
hummingbot:mainfrom
lgrawet:fix/lp-cumulative-fees-display

Conversation

@lgrawet

@lgrawet lgrawet commented Oct 1, 2026

Copy link
Copy Markdown

Show an LP executor's earned fees in its detail view instead of the transaction fee fee: the connector fills cum_fees_quote with what the open and close cost on-chain and puts the fee income in custom_info.fees_earned_quote, so the one number that says whether a band is worth keeping read three orders of magnitude low — a live DJT-USDC band showed $0.000023 against $0.074624 actually earned; the formatter now prefers fees_earned_quote when the executor carries it and falls back to cum_fees_quote for executors that have no custom_info twin

…ransaction fee: the connector fills cum_fees_quote with what the open and close cost on-chain and puts the fee income in custom_info.fees_earned_quote, so the one number that says whether a band is worth keeping read three orders of magnitude low — a live DJT-USDC band showed $0.000023 against $0.074624 actually earned; the formatter now prefers fees_earned_quote when the executor carries it and falls back to cum_fees_quote for executors that have no custom_info twin
@greptile-apps

greptile-apps Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Medium risk] Changes how executor detail view displays fees.

The PR appears safe to merge based on the reviewed changes.

Summary

The executor detail formatter now shows LP fee income from custom_info.fees_earned_quote without falling back to transaction cost. Other executors show cum_fees_quote as “Fees Paid,” and tests cover both paths.

Reviews (2) · Last reviewed commit: "Never fall back to the tx cost for an LP..."

Comment thread mcp_servers/hummingbot_api/formatters/executors.py Outdated
Comment thread mcp_servers/hummingbot_api/formatters/executors.py Outdated
…e direction

An LP executor without custom_info.fees_earned_quote fell back to
cum_fees_quote, which for an LP is the on-chain transaction cost — so the
detail view could still show a cost as fee income, the confusion this branch
exists to fix. LP now reads fees_earned_quote only; when the field is absent
the income is unknown and no fee line is printed. Non-LP executors keep their
cum_fees_quote, labelled "Fees Paid" so a client cannot read a paid fee as
income against the LP's "Fees Earned".
@lgrawet lgrawet changed the title Bug/Show an LP executor's earned fees in its detail view instead of the transaction fee fix/Show an LP executor's earned fees in its detail view instead of the transaction fee Oct 1, 2026
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