Skip to content

Conversation

@lgrawet
Copy link
Contributor

@lgrawet lgrawet commented Dec 16, 2025

Before submitting this PR, please make sure:

  • Your code builds clean without any errors or warnings
  • Tests all pass
  • You are using approved title ("feat/", "fix/", "docs/", "refactor/")

A description of the changes proposed in the pull request:
This PR is meant to push the performance report to controllers so the data is accessible from inside the controller itself.
The purpose is to use realized PnL for compound interest.

Tests performed by the developer:
./start
Run controller and print : self.logger().info(f"Realized PnL quote: {self.performance_report.realized_pnl_quote}")

Tips for QA testing:

Copy link
Contributor

@cardosofede cardosofede left a comment

Choose a reason for hiding this comment

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

just apply that typing check

self.config = config
self.executors_info: List[ExecutorInfo] = []
self.positions_held: List[PositionSummary] = []
self.performance_report: PerformanceReport = None
Copy link
Contributor

Choose a reason for hiding this comment

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

probably you need to type it as Optional[PerformanceReport]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@cardosofede commit pushed!

@rapcmia rapcmia merged commit aed23cc into hummingbot:development Dec 17, 2025
2 checks passed
@rapcmia rapcmia moved this to Development v2.12.0 in Pull Request Board Dec 17, 2025
@rapcmia rapcmia added this to the v2.12 milestone Dec 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Development v2.12.0

Development

Successfully merging this pull request may close these issues.

3 participants