Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2 strategy - Unhandled error in background task when running status command #7012

Open
rapcmia opened this issue May 6, 2024 · 1 comment
Assignees

Comments

@rapcmia
Copy link
Contributor

rapcmia commented May 6, 2024

Describe the bug

While reviewing bots for trader experiments, one of our scripts return an error when executing status command

image

2024-05-06 11:57:30,896 - 15 - hummingbot.core.utils.async_utils - ERROR - Unhandled error in background task: 1 validation error for PerformanceReport
close_type_counts -> __key__
  none is not an allowed value (type=type_error.none.not_allowed)
Traceback (most recent call last):
  File "/home/hummingbot/hummingbot/core/utils/async_utils.py", line 9, in safe_wrapper
    return await c
  File "/home/hummingbot/hummingbot/client/command/status_command.py", line 152, in status_check_all
    self.notify(await self.strategy_status())
  File "/home/hummingbot/hummingbot/client/command/status_command.py", line 78, in strategy_status
    st_status = self.strategy.format_status()
  File "/home/hummingbot/hummingbot/strategy/strategy_v2_base.py", line 382, in format_status
    performance_report = self.executor_orchestrator.generate_performance_report(controller_id)
  File "/home/hummingbot/hummingbot/smart_components/executors/executor_orchestrator.py", line 183, in generate_performance_report
    report = PerformanceReport(
  File "pydantic/main.py", line 342, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for PerformanceReport
close_type_counts -> __key__
  none is not an allowed value (type=type_error.none.not_allowed)

Steps to reproduce

QA to add, need to reproduce the issue

Release version

dev-1.28.0

Type of installation

Source

Attach required files

n/a

@rapcmia
Copy link
Contributor Author

rapcmia commented May 7, 2024

After monitoring XEMM today, got our first 2 trades and check history which works ok however when running status command this issue occurred
image

Checking if we can reproduce this on other v2 strategy controllers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants